var j8e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var sqt=j8e((mf,Gl)=>{(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const a of o)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(o){const a={};return o.integrity&&(a.integrity=o.integrity),o.referrerPolicy&&(a.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?a.credentials="include":o.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(o){if(o.ep)return;o.ep=!0;const a=n(o);fetch(o.href,a)}})();/** * @vue/shared v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/function Ca(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const Ci={},em=[],ka=()=>{},Gv=()=>!1,L0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),QT=e=>e.startsWith("onUpdate:"),Si=Object.assign,e5=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},V8e=Object.prototype.hasOwnProperty,Gi=(e,t)=>V8e.call(e,t),Wn=Array.isArray,tm=e=>Vm(e)==="[object Map]",D0=e=>Vm(e)==="[object Set]",xj=e=>Vm(e)==="[object Date]",Sde=e=>Vm(e)==="[object RegExp]",Er=e=>typeof e=="function",Mr=e=>typeof e=="string",Zl=e=>typeof e=="symbol",Yi=e=>e!==null&&typeof e=="object",t5=e=>(Yi(e)||Er(e))&&Er(e.then)&&Er(e.catch),SU=Object.prototype.toString,Vm=e=>SU.call(e),kde=e=>Vm(e).slice(8,-1),O_=e=>Vm(e)==="[object Object]",n5=e=>Mr(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Ah=Ca(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),xde=Ca("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),r5=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},z8e=/-\w/g,Ro=r5(e=>e.replace(z8e,t=>t.slice(1).toUpperCase())),U8e=/\B([A-Z])/g,bl=r5(e=>e.replace(U8e,"-$1").toLowerCase()),P0=r5(e=>e.charAt(0).toUpperCase()+e.slice(1)),nm=r5(e=>e?`on${P0(e)}`:""),gl=(e,t)=>!Object.is(e,t),rm=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},Nb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Fb=e=>{const t=Mr(e)?Number(e):NaN;return isNaN(t)?e:t};let Mte;const $_=()=>Mte||(Mte=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),H8e=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function W8e(e){return H8e.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function G8e(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const K8e={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"},q8e={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]:"CACHED",[-2]:"BAIL"},Y8e={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"},X8e={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},Z8e={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},J8e="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",xU=Ca(J8e),Q8e=xU,Ote=2;function Cde(e,t=0,n=e.length){if(t=Math.max(0,Math.min(t,e.length)),n=Math.max(0,Math.min(n,e.length)),t>n)return"";let r=e.split(/(\r?\n)/);const o=r.filter((l,c)=>c%2===1);r=r.filter((l,c)=>c%2===0);let a=0;const s=[];for(let l=0;l=t){for(let c=l-Ote;c<=l+Ote||n>a;c++){if(c<0||c>=r.length)continue;const d=c+1;s.push(`${d}${" ".repeat(Math.max(3-String(d).length,0))}| ${r[c]}`);const h=r[c].length,p=o[c]&&o[c].length||0;if(c===l){const m=t-(a-(h+p)),g=Math.max(1,n>a?h-m:n-t);s.push(" | "+" ".repeat(m)+"^".repeat(g))}else if(c>l){if(n>a){const m=Math.max(Math.min(n-a,h),1);s.push(" | "+"^".repeat(m))}a+=h+p}}break}return s.join(` `)}function Ge(e){if(Wn(e)){const t={};for(let n=0;n{if(n){const r=n.split(tTe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function rTe(e){if(!e)return"";if(Mr(e))return e;let t="";for(const n in e){const r=e[n];if(Mr(r)||typeof r=="number"){const o=n.startsWith("--")?n:bl(n);t+=`${o}:${r};`}}return t}function le(e){let t="";if(Mr(e))t=e;else if(Wn(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,rP={};function cTe(e){if(rP.hasOwnProperty(e))return rP[e];const t=uTe.test(e);return t&&console.error(`unsafe attribute name: ${e}`),rP[e]=!t}const dTe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},fTe=Ca("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"),hTe=Ca("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"),pTe=Ca("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 vTe(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const mTe=/["'&<>]/;function gTe(e){const t=""+e,n=mTe.exec(t);if(!n)return t;let r="",o,a,s=0;for(a=n.index;a||--!>|?@[\\\]^`{|}~]/g;function _Te(e,t){return e.replace(Dde,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function STe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&rBh(n,t))}const Pde=e=>!!(e&&e.__v_isRef===!0),Ve=e=>Mr(e)?e:e==null?"":Wn(e)||Yi(e)&&(e.toString===SU||!Er(e.toString))?Pde(e)?Ve(e.value):JSON.stringify(e,Rde,2):String(e),Rde=(e,t)=>Pde(t)?Rde(e,t.value):tm(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[iP(r,a)+" =>"]=o,n),{})}:D0(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>iP(n))}:Zl(t)?iP(t):Yi(t)&&!Wn(t)&&!O_(t)?String(t):t,iP=(e,t="")=>{var n;return Zl(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Mde(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const kTe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:em,EMPTY_OBJ:Ci,NO:Gv,NOOP:ka,PatchFlagNames:q8e,PatchFlags:K8e,ShapeFlags:Y8e,SlotFlags:X8e,camelize:Ro,capitalize:P0,cssVarNameEscapeSymbolsRE:Dde,def:kU,escapeHtml:gTe,escapeHtmlComment:bTe,extend:Si,genCacheKey:G8e,genPropsAccessExp:W8e,generateCodeFrame:Cde,getEscapedCssVarName:_Te,getGlobalThis:$_,hasChanged:gl,hasOwn:Gi,hyphenate:bl,includeBooleanAttr:wU,invokeArrayFns:rm,isArray:Wn,isBooleanAttr:lTe,isBuiltInDirective:xde,isDate:xj,isFunction:Er,isGloballyAllowed:xU,isGloballyWhitelisted:Q8e,isHTMLTag:wde,isIntegerKey:n5,isKnownHtmlAttr:fTe,isKnownMathMLAttr:pTe,isKnownSvgAttr:hTe,isMap:tm,isMathMLTag:Tde,isModelListener:QT,isObject:Yi,isOn:L0,isPlainObject:O_,isPromise:t5,isRegExp:Sde,isRenderableAttrValue:vTe,isReservedProp:Ah,isSSRSafeAttrName:cTe,isSVGTag:Ede,isSet:D0,isSpecialBooleanAttr:Lde,isString:Mr,isSymbol:Zl,isVoidTag:Ade,looseEqual:Bh,looseIndexOf:B_,looseToNumber:Nb,makeMap:Ca,normalizeClass:le,normalizeCssVarValue:Mde,normalizeProps:Ki,normalizeStyle:Ge,objectToString:SU,parseStringStyle:CU,propsToAttrMap:dTe,remove:e5,slotFlagsText:Z8e,stringifyStyle:rTe,toDisplayString:Ve,toHandlerKey:nm,toNumber:Fb,toRawType:kde,toTypeString:Vm},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let fl;class EU{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=fl,!t&&fl&&(this.index=(fl.scopes||(fl.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t0&&--this._on===0&&(fl=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,r;for(n=0,r=this.effects.length;n0)return;if(U4){let t=U4;for(U4=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;z4;){let t=z4;for(z4=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(r){e||(e=r)}t=n}}if(e)throw e}function Bde(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Nde(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),DU(r),xTe(r)):t=r,r.dep.activeLink=r.prevActiveLink,r.prevActiveLink=void 0,r=o}e.deps=t,e.depsTail=n}function Cj(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(Fde(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function Fde(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Vb)||(e.globalVersion=Vb,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cj(e))))return;e.flags|=2;const t=e.dep,n=Lo,r=Ed;Lo=e,Ed=!0;try{Bde(e);const o=e.fn(e._value);(t.version===0||gl(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Lo=n,Ed=r,Nde(e),e.flags&=-3}}function DU(e,t=!1){const{dep:n,prevSub:r,nextSub:o}=e;if(r&&(r.nextSub=o,e.prevSub=void 0),o&&(o.prevSub=r,e.nextSub=void 0),n.subs===e&&(n.subs=r,!r&&n.computed)){n.computed.flags&=-5;for(let a=n.computed.deps;a;a=a.nextDep)DU(a,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function xTe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function CTe(e,t){e.effect instanceof jb&&(e=e.effect.fn);const n=new jb(e);t&&Si(n,t);try{n.run()}catch(o){throw n.stop(),o}const r=n.run.bind(n);return r.effect=n,r}function wTe(e){e.effect.stop()}let Ed=!0;const jde=[];function Nh(){jde.push(Ed),Ed=!1}function Fh(){const e=jde.pop();Ed=e===void 0?!0:e}function $te(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Lo;Lo=void 0;try{t()}finally{Lo=n}}}let Vb=0,ETe=class{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}};class o5{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,this.__v_skip=!0}track(t){if(!Lo||!Ed||Lo===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Lo)n=this.activeLink=new ETe(Lo,this),Lo.deps?(n.prevDep=Lo.depsTail,Lo.depsTail.nextDep=n,Lo.depsTail=n):Lo.deps=Lo.depsTail=n,Vde(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const r=n.nextDep;r.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=r),n.prevDep=Lo.depsTail,n.nextDep=void 0,Lo.depsTail.nextDep=n,Lo.depsTail=n,Lo.deps===n&&(Lo.deps=r)}return n}trigger(t){this.version++,Vb++,this.notify(t)}notify(t){IU();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{LU()}}}function Vde(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let r=t.deps;r;r=r.nextDep)Vde(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const y8=new WeakMap,im=Symbol(""),wj=Symbol(""),zb=Symbol("");function yl(e,t,n){if(Ed&&Lo){let r=y8.get(e);r||y8.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new o5),o.map=r,o.key=n),o.track()}}function bh(e,t,n,r,o,a){const s=y8.get(e);if(!s){Vb++;return}const l=c=>{c&&c.trigger()};if(IU(),t==="clear")s.forEach(l);else{const c=Wn(e),d=c&&n5(n);if(c&&n==="length"){const h=Number(r);s.forEach((p,m)=>{(m==="length"||m===zb||!Zl(m)&&m>=h)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),d&&l(s.get(zb)),t){case"add":c?d&&l(s.get("length")):(l(s.get(im)),tm(e)&&l(s.get(wj)));break;case"delete":c||(l(s.get(im)),tm(e)&&l(s.get(wj)));break;case"set":tm(e)&&l(s.get(im));break}}LU()}function TTe(e,t){const n=y8.get(e);return n&&n.get(t)}function e1(e){const t=Mi(e);return t===e?t:(yl(t,"iterate",zb),sc(e)?t:t.map(Fa))}function s5(e){return yl(e=Mi(e),"iterate",zb),e}const ATe={__proto__:null,[Symbol.iterator](){return sP(this,Symbol.iterator,Fa)},concat(...e){return e1(this).concat(...e.map(t=>Wn(t)?e1(t):t))},entries(){return sP(this,"entries",e=>(e[1]=Fa(e[1]),e))},every(e,t){return sh(this,"every",e,t,void 0,arguments)},filter(e,t){return sh(this,"filter",e,t,n=>n.map(Fa),arguments)},find(e,t){return sh(this,"find",e,t,Fa,arguments)},findIndex(e,t){return sh(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return sh(this,"findLast",e,t,Fa,arguments)},findLastIndex(e,t){return sh(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return sh(this,"forEach",e,t,void 0,arguments)},includes(...e){return aP(this,"includes",e)},indexOf(...e){return aP(this,"indexOf",e)},join(e){return e1(this).join(e)},lastIndexOf(...e){return aP(this,"lastIndexOf",e)},map(e,t){return sh(this,"map",e,t,void 0,arguments)},pop(){return V2(this,"pop")},push(...e){return V2(this,"push",e)},reduce(e,...t){return Bte(this,"reduce",e,t)},reduceRight(e,...t){return Bte(this,"reduceRight",e,t)},shift(){return V2(this,"shift")},some(e,t){return sh(this,"some",e,t,void 0,arguments)},splice(...e){return V2(this,"splice",e)},toReversed(){return e1(this).toReversed()},toSorted(e){return e1(this).toSorted(e)},toSpliced(...e){return e1(this).toSpliced(...e)},unshift(...e){return V2(this,"unshift",e)},values(){return sP(this,"values",Fa)}};function sP(e,t,n){const r=s5(e),o=r[t]();return r!==e&&!sc(e)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.done||(a.value=n(a.value)),a}),o}const ITe=Array.prototype;function sh(e,t,n,r,o,a){const s=s5(e),l=s!==e&&!sc(e),c=s[t];if(c!==ITe[t]){const p=c.apply(e,a);return l?Fa(p):p}let d=n;s!==e&&(l?d=function(p,m){return n.call(this,Fa(p),m,e)}:n.length>2&&(d=function(p,m){return n.call(this,p,m,e)}));const h=c.call(s,d,r);return l&&o?o(h):h}function Bte(e,t,n,r){const o=s5(e);let a=n;return o!==e&&(sc(e)?n.length>3&&(a=function(s,l,c){return n.call(this,s,l,c,e)}):a=function(s,l,c){return n.call(this,s,Fa(l),c,e)}),o[t](a,...r)}function aP(e,t,n){const r=Mi(e);yl(r,"iterate",zb);const o=r[t](...n);return(o===-1||o===!1)&&u5(n[0])?(n[0]=Mi(n[0]),r[t](...n)):o}function V2(e,t,n=[]){Nh(),IU();const r=Mi(e)[t].apply(e,n);return LU(),Fh(),r}const LTe=Ca("__proto__,__v_isRef,__isVue"),zde=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Zl));function DTe(e){Zl(e)||(e=String(e));const t=Mi(this);return yl(t,"has",e),t.hasOwnProperty(e)}class Ude{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,r){if(n==="__v_skip")return t.__v_skip;const o=this._isReadonly,a=this._isShallow;if(n==="__v_isReactive")return!o;if(n==="__v_isReadonly")return o;if(n==="__v_isShallow")return a;if(n==="__v_raw")return r===(o?a?Yde:qde:a?Kde:Gde).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Wn(t);if(!o){let c;if(s&&(c=ATe[n]))return c;if(n==="hasOwnProperty")return DTe}const l=Reflect.get(t,n,Mo(t)?t:r);if((Zl(n)?zde.has(n):LTe(n))||(o||yl(t,"get",n),a))return l;if(Mo(l)){const c=s&&n5(n)?l:l.value;return o&&Yi(c)?Ub(c):c}return Yi(l)?o?Ub(l):Yt(l):l}}class Hde extends Ude{constructor(t=!1){super(!1,t)}set(t,n,r,o){let a=t[n];if(!this._isShallow){const c=jh(a);if(!sc(r)&&!jh(r)&&(a=Mi(a),r=Mi(r)),!Wn(t)&&Mo(a)&&!Mo(r))return c||(a.value=r),!0}const s=Wn(t)&&n5(n)?Number(n)e,Qk=e=>Reflect.getPrototypeOf(e);function $Te(e,t,n){return function(...r){const o=this.__v_raw,a=Mi(o),s=tm(a),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,d=o[e](...r),h=n?Ej:t?b8:Fa;return!t&&yl(a,"iterate",c?wj:im),{next(){const{value:p,done:m}=d.next();return m?{value:p,done:m}:{value:l?[h(p[0]),h(p[1])]:h(p),done:m}},[Symbol.iterator](){return this}}}}function ex(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function BTe(e,t){const n={get(o){const a=this.__v_raw,s=Mi(a),l=Mi(o);e||(gl(o,l)&&yl(s,"get",o),yl(s,"get",l));const{has:c}=Qk(s),d=t?Ej:e?b8:Fa;if(c.call(s,o))return d(a.get(o));if(c.call(s,l))return d(a.get(l));a!==s&&a.get(o)},get size(){const o=this.__v_raw;return!e&&yl(Mi(o),"iterate",im),o.size},has(o){const a=this.__v_raw,s=Mi(a),l=Mi(o);return e||(gl(o,l)&&yl(s,"has",o),yl(s,"has",l)),o===l?a.has(o):a.has(o)||a.has(l)},forEach(o,a){const s=this,l=s.__v_raw,c=Mi(l),d=t?Ej:e?b8:Fa;return!e&&yl(c,"iterate",im),l.forEach((h,p)=>o.call(a,d(h),d(p),s))}};return Si(n,e?{add:ex("add"),set:ex("set"),delete:ex("delete"),clear:ex("clear")}:{add(o){!t&&!sc(o)&&!jh(o)&&(o=Mi(o));const a=Mi(this);return Qk(a).has.call(a,o)||(a.add(o),bh(a,"add",o,o)),this},set(o,a){!t&&!sc(a)&&!jh(a)&&(a=Mi(a));const s=Mi(this),{has:l,get:c}=Qk(s);let d=l.call(s,o);d||(o=Mi(o),d=l.call(s,o));const h=c.call(s,o);return s.set(o,a),d?gl(a,h)&&bh(s,"set",o,a):bh(s,"add",o,a),this},delete(o){const a=Mi(this),{has:s,get:l}=Qk(a);let c=s.call(a,o);c||(o=Mi(o),c=s.call(a,o)),l&&l.call(a,o);const d=a.delete(o);return c&&bh(a,"delete",o,void 0),d},clear(){const o=Mi(this),a=o.size!==0,s=o.clear();return a&&bh(o,"clear",void 0,void 0),s}}),["keys","values","entries",Symbol.iterator].forEach(o=>{n[o]=$Te(o,e,t)}),n}function a5(e,t){const n=BTe(e,t);return(r,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(Gi(n,o)&&o in r?n:r,o,a)}const NTe={get:a5(!1,!1)},FTe={get:a5(!1,!0)},jTe={get:a5(!0,!1)},VTe={get:a5(!0,!0)},Gde=new WeakMap,Kde=new WeakMap,qde=new WeakMap,Yde=new WeakMap;function zTe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function UTe(e){return e.__v_skip||!Object.isExtensible(e)?0:zTe(kde(e))}function Yt(e){return jh(e)?e:l5(e,!1,PTe,NTe,Gde)}function PU(e){return l5(e,!1,MTe,FTe,Kde)}function Ub(e){return l5(e,!0,RTe,jTe,qde)}function HTe(e){return l5(e,!0,OTe,VTe,Yde)}function l5(e,t,n,r,o){if(!Yi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=UTe(e);if(a===0)return e;const s=o.get(e);if(s)return s;const l=new Proxy(e,a===2?r:n);return o.set(e,l),l}function gf(e){return jh(e)?gf(e.__v_raw):!!(e&&e.__v_isReactive)}function jh(e){return!!(e&&e.__v_isReadonly)}function sc(e){return!!(e&&e.__v_isShallow)}function u5(e){return e?!!e.__v_raw:!1}function Mi(e){const t=e&&e.__v_raw;return t?Mi(t):e}function c5(e){return!Gi(e,"__v_skip")&&Object.isExtensible(e)&&kU(e,"__v_skip",!0),e}const Fa=e=>Yi(e)?Yt(e):e,b8=e=>Yi(e)?Ub(e):e;function Mo(e){return e?e.__v_isRef===!0:!1}function fe(e){return Xde(e,!1)}function a0(e){return Xde(e,!0)}function Xde(e,t){return Mo(e)?e:new WTe(e,t)}class WTe{constructor(t,n){this.dep=new o5,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Mi(t),this._value=n?t:Fa(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,r=this.__v_isShallow||sc(t)||jh(t);t=r?t:Mi(t),gl(t,n)&&(this._rawValue=t,this._value=r?t:Fa(t),this.dep.trigger())}}function GTe(e){e.dep&&e.dep.trigger()}function et(e){return Mo(e)?e.value:e}function KTe(e){return Er(e)?e():et(e)}const qTe={get:(e,t,n)=>t==="__v_raw"?e:et(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Mo(o)&&!Mo(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function RU(e){return gf(e)?e:new Proxy(e,qTe)}class YTe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new o5,{get:r,set:o}=t(n.track.bind(n),n.trigger.bind(n));this._get=r,this._set=o}get value(){return this._value=this._get()}set value(t){this._set(t)}}function Zde(e){return new YTe(e)}function nn(e){const t=Wn(e)?new Array(e.length):{};for(const n in e)t[n]=Jde(e,n);return t}class XTe{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return TTe(Mi(this._object),this._key)}}class ZTe{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 Iu(e,t,n){return Mo(e)?e:Er(e)?new ZTe(e):Yi(e)&&arguments.length>1?Jde(e,t,n):fe(e)}function Jde(e,t,n){const r=e[t];return Mo(r)?r:new XTe(e,t,n)}class JTe{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new o5(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Vb-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Lo!==this)return $de(this,!0),!0}get value(){const t=this.dep.track();return Fde(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function QTe(e,t,n=!1){let r,o;return Er(e)?r=e:(r=e.get,o=e.set),new JTe(r,o,n)}const e5e={GET:"get",HAS:"has",ITERATE:"iterate"},t5e={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},tx={},_8=new WeakMap;let Up;function n5e(){return Up}function Qde(e,t=!1,n=Up){if(n){let r=_8.get(n);r||_8.set(n,r=[]),r.push(e)}}function r5e(e,t,n=Ci){const{immediate:r,deep:o,once:a,scheduler:s,augmentJob:l,call:c}=n,d=_=>o?_:sc(_)||o===!1||o===0?_h(_,1):_h(_);let h,p,m,g,y=!1,S=!1;if(Mo(e)?(p=()=>e.value,y=sc(e)):gf(e)?(p=()=>d(e),y=!0):Wn(e)?(S=!0,y=e.some(_=>gf(_)||sc(_)),p=()=>e.map(_=>{if(Mo(_))return _.value;if(gf(_))return d(_);if(Er(_))return c?c(_,2):_()})):Er(e)?t?p=c?()=>c(e,2):e:p=()=>{if(m){Nh();try{m()}finally{Fh()}}const _=Up;Up=h;try{return c?c(e,3,[g]):e(g)}finally{Up=_}}:p=ka,t&&o){const _=p,T=o===!0?1/0:o;p=()=>_h(_(),T)}const k=i5(),C=()=>{h.stop(),k&&k.active&&e5(k.effects,h)};if(a&&t){const _=t;t=(...T)=>{_(...T),C()}}let x=S?new Array(e.length).fill(tx):tx;const E=_=>{if(!(!(h.flags&1)||!h.dirty&&!_))if(t){const T=h.run();if(o||y||(S?T.some((D,P)=>gl(D,x[P])):gl(T,x))){m&&m();const D=Up;Up=h;try{const P=[T,x===tx?void 0:S&&x[0]===tx?[]:x,g];x=T,c?c(t,3,P):t(...P)}finally{Up=D}}}else h.run()};return l&&l(E),h=new jb(p),h.scheduler=s?()=>s(E,!1):E,g=_=>Qde(_,!1,h),m=h.onStop=()=>{const _=_8.get(h);if(_){if(c)c(_,4);else for(const T of _)T();_8.delete(h)}},t?r?E(!0):x=h.run():s?s(E.bind(null,!0),!0):h.run(),C.pause=h.pause.bind(h),C.resume=h.resume.bind(h),C.stop=C,C}function _h(e,t=1/0,n){if(t<=0||!Yi(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Mo(e))_h(e.value,t,n);else if(Wn(e))for(let r=0;r{_h(r,t,n)});else if(O_(e)){for(const r in e)_h(e[r],t,n);for(const r of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,r)&&_h(e[r],t,n)}return e}/** * @vue/runtime-core v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/const efe=[];function i5e(e){efe.push(e)}function o5e(){efe.pop()}function s5e(e,t){}const a5e={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"},l5e={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 Qy(e,t,n,r){try{return r?e(...r):e()}catch(o){zm(o,t,n)}}function Gc(e,t,n,r){if(Er(e)){const o=Qy(e,t,n,r);return o&&t5(o)&&o.catch(a=>{zm(a,t,n)}),o}if(Wn(e)){const o=[];for(let a=0;a>>1,o=Ul[r],a=Wb(o);a=Wb(n)?Ul.push(e):Ul.splice(c5e(t),0,e),e.flags|=1,nfe()}}function nfe(){S8||(S8=tfe.then(rfe))}function Hb(e){Wn(e)?Y1.push(...e):Hp&&e.id===-1?Hp.splice(I1+1,0,e):e.flags&1||(Y1.push(e),e.flags|=1),nfe()}function Nte(e,t,n=ef+1){for(;nWb(n)-Wb(r));if(Y1.length=0,Hp){Hp.push(...t);return}for(Hp=t,I1=0;I1e.id==null?e.flags&2?-1:1/0:e.id;function rfe(e){try{for(ef=0;efL1.emit(o,...a)),nx=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(a=>{ife(a,t)}),setTimeout(()=>{L1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,nx=[])},3e3)):nx=[]}let Ha=null,d5=null;function Gb(e){const t=Ha;return Ha=e,d5=e&&e.type.__scopeId||null,t}function d5e(e){d5=e}function f5e(){d5=null}const h5e=e=>de;function de(e,t=Ha,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Yb(-1);const a=Gb(t);let s;try{s=e(...o)}finally{Gb(a),r._d&&Yb(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function wi(e,t){if(Ha===null)return e;const n=j_(Ha),r=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,H4=e=>e&&(e.disabled||e.disabled===""),Fte=e=>e&&(e.defer||e.defer===""),jte=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Vte=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Tj=(e,t)=>{const n=e&&e.to;return Mr(n)?t?t(n):null:n},afe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,s,l,c,d){const{mc:h,pc:p,pbc:m,o:{insert:g,querySelector:y,createText:S,createComment:k}}=d,C=H4(t.props);let{shapeFlag:x,children:E,dynamicChildren:_}=t;if(e==null){const T=t.el=S(""),D=t.anchor=S("");g(T,n,r),g(D,n,r);const P=($,I)=>{x&16&&h(E,$,I,o,a,s,l,c)},M=()=>{const $=t.target=Tj(t.props,y),I=lfe($,t,S,g);$&&(s!=="svg"&&jte($)?s="svg":s!=="mathml"&&Vte($)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add($),C||(P($,I),jC(t,!1)))};C&&(P(n,D),jC(t,!0)),Fte(t.props)?(t.el.__isMounted=!1,la(()=>{M(),delete t.el.__isMounted},a)):M()}else{if(Fte(t.props)&&e.el.__isMounted===!1){la(()=>{afe.process(e,t,n,r,o,a,s,l,c,d)},a);return}t.el=e.el,t.targetStart=e.targetStart;const T=t.anchor=e.anchor,D=t.target=e.target,P=t.targetAnchor=e.targetAnchor,M=H4(e.props),$=M?n:D,I=M?T:P;if(s==="svg"||jte(D)?s="svg":(s==="mathml"||Vte(D))&&(s="mathml"),_?(m(e.dynamicChildren,_,$,o,a,s,l),GU(e,t,!0)):c||p(e,t,$,I,o,a,s,l,!1),C)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):rx(t,n,T,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const N=t.target=Tj(t.props,y);N&&rx(t,N,null,d,0)}else M&&rx(t,D,P,d,1);jC(t,C)}},remove(e,t,n,{um:r,o:{remove:o}},a){const{shapeFlag:s,children:l,anchor:c,targetStart:d,targetAnchor:h,target:p,props:m}=e;if(p&&(o(d),o(h)),a&&o(c),s&16){const g=a||!H4(m);for(let y=0;y{e.isMounted=!0}),Oo(()=>{e.isUnmounting=!0}),e}const kc=[Function,Array],$U={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:kc,onEnter:kc,onAfterEnter:kc,onEnterCancelled:kc,onBeforeLeave:kc,onLeave:kc,onAfterLeave:kc,onLeaveCancelled:kc,onBeforeAppear:kc,onAppear:kc,onAfterAppear:kc,onAppearCancelled:kc},ufe=e=>{const t=e.subTree;return t.component?ufe(t.component):t},v5e={name:"BaseTransition",props:$U,setup(e,{slots:t}){const n=go(),r=OU();return()=>{const o=t.default&&f5(t.default(),!0);if(!o||!o.length)return;const a=cfe(o),s=Mi(e),{mode:l}=s;if(r.isLeaving)return lP(a);const c=zte(a);if(!c)return lP(a);let d=ky(c,s,r,n,p=>d=p);c.type!==Ss&&Vh(c,d);let h=n.subTree&&zte(n.subTree);if(h&&h.type!==Ss&&!Sd(h,c)&&ufe(n).type!==Ss){let p=ky(h,s,r,n);if(Vh(h,p),l==="out-in"&&c.type!==Ss)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,h=void 0},lP(a);l==="in-out"&&c.type!==Ss?p.delayLeave=(m,g,y)=>{const S=ffe(r,h);S[String(h.key)]=h,m[yh]=()=>{g(),m[yh]=void 0,delete d.delayedLeave,h=void 0},d.delayedLeave=()=>{y(),delete d.delayedLeave,h=void 0}}:h=void 0}else h&&(h=void 0);return a}}};function cfe(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==Ss){t=n;break}}return t}const dfe=v5e;function ffe(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ky(e,t,n,r,o){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:m,onLeave:g,onAfterLeave:y,onLeaveCancelled:S,onBeforeAppear:k,onAppear:C,onAfterAppear:x,onAppearCancelled:E}=t,_=String(e.key),T=ffe(n,e),D=($,I)=>{$&&Gc($,r,9,I)},P=($,I)=>{const N=I[1];D($,I),Wn($)?$.every(j=>j.length<=1)&&N():$.length<=1&&N()},M={mode:s,persisted:l,beforeEnter($){let I=c;if(!n.isMounted)if(a)I=k||c;else return;$[yh]&&$[yh](!0);const N=T[_];N&&Sd(e,N)&&N.el[yh]&&N.el[yh](),D(I,[$])},enter($){let I=d,N=h,j=p;if(!n.isMounted)if(a)I=C||d,N=x||h,j=E||p;else return;let U=!1;const z=$[ix]=G=>{U||(U=!0,G?D(j,[$]):D(N,[$]),M.delayedLeave&&M.delayedLeave(),$[ix]=void 0)};I?P(I,[$,z]):z()},leave($,I){const N=String(e.key);if($[ix]&&$[ix](!0),n.isUnmounting)return I();D(m,[$]);let j=!1;const U=$[yh]=z=>{j||(j=!0,I(),z?D(S,[$]):D(y,[$]),$[yh]=void 0,T[N]===e&&delete T[N])};T[N]=e,g?P(g,[$,U]):U()},clone($){const I=ky($,t,n,r,o);return o&&o(I),I}};return M}function lP(e){if(N_(e))return e=Cl(e),e.children=null,e}function zte(e){if(!N_(e))return sfe(e.type)&&e.children?cfe(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&Er(n.default))return n.default()}}function Vh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Vh(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 f5(e,t=!1,n){let r=[],o=0;for(let a=0;a1)for(let a=0;an.value,set:a=>n.value=a})}return n}const x8=new WeakMap;function X1(e,t,n,r,o=!1){if(Wn(e)){e.forEach((y,S)=>X1(y,t&&(Wn(t)?t[S]:t),n,r,o));return}if(l0(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&X1(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?j_(r.component):r.el,s=o?null:a,{i:l,r:c}=e,d=t&&t.r,h=l.refs===Ci?l.refs={}:l.refs,p=l.setupState,m=Mi(p),g=p===Ci?Gv:y=>Gi(m,y);if(d!=null&&d!==c){if(Ute(t),Mr(d))h[d]=null,g(d)&&(p[d]=null);else if(Mo(d)){d.value=null;const y=t;y.k&&(h[y.k]=null)}}if(Er(c))Qy(c,l,12,[s,h]);else{const y=Mr(c),S=Mo(c);if(y||S){const k=()=>{if(e.f){const C=y?g(c)?p[c]:h[c]:c.value;if(o)Wn(C)&&e5(C,a);else if(Wn(C))C.includes(a)||C.push(a);else if(y)h[c]=[a],g(c)&&(p[c]=h[c]);else{const x=[a];c.value=x,e.k&&(h[e.k]=x)}}else y?(h[c]=s,g(c)&&(p[c]=s)):S&&(c.value=s,e.k&&(h[e.k]=s))};if(s){const C=()=>{k(),x8.delete(e)};C.id=-1,x8.set(e,C),la(C,n)}else Ute(e),k()}}}function Ute(e){const t=x8.get(e);t&&(t.flags|=8,x8.delete(e))}let Hte=!1;const t1=()=>{Hte||(console.error("Hydration completed but contains mismatches."),Hte=!0)},y5e=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",b5e=e=>e.namespaceURI.includes("MathML"),ox=e=>{if(e.nodeType===1){if(y5e(e))return"svg";if(b5e(e))return"mathml"}},B1=e=>e.nodeType===8;function _5e(e){const{mt:t,p:n,o:{patchProp:r,createText:o,nextSibling:a,parentNode:s,remove:l,insert:c,createComment:d}}=e,h=(E,_)=>{if(!_.hasChildNodes()){n(null,E,_),k8(),_._vnode=E;return}p(_.firstChild,E,null,null,null),k8(),_._vnode=E},p=(E,_,T,D,P,M=!1)=>{M=M||!!_.dynamicChildren;const $=B1(E)&&E.data==="[",I=()=>S(E,_,T,D,P,$),{type:N,ref:j,shapeFlag:U,patchFlag:z}=_;let G=E.nodeType;_.el=E,z===-2&&(M=!1,_.dynamicChildren=null);let X=null;switch(N){case u0:G!==3?_.children===""?(c(_.el=o(""),s(E),E),X=E):X=I():(E.data!==_.children&&(t1(),E.data=_.children),X=a(E));break;case Ss:x(E)?(X=a(E),C(_.el=E.content.firstChild,E,T)):G!==8||$?X=I():X=a(E);break;case sm:if($&&(E=a(E),G=E.nodeType),G===1||G===3){X=E;const ie=!_.children.length;for(let ee=0;ee<_.staticCount;ee++)ie&&(_.children+=X.nodeType===1?X.outerHTML:X.data),ee===_.staticCount-1&&(_.anchor=X),X=a(X);return $?a(X):X}else I();break;case Ft:$?X=y(E,_,T,D,P,M):X=I();break;default:if(U&1)(G!==1||_.type.toLowerCase()!==E.tagName.toLowerCase())&&!x(E)?X=I():X=m(E,_,T,D,P,M);else if(U&6){_.slotScopeIds=P;const ie=s(E);if($?X=k(E):B1(E)&&E.data==="teleport start"?X=k(E,E.data,"teleport end"):X=a(E),t(_,ie,null,T,D,ox(ie),M),l0(_)&&!_.type.__asyncResolved){let ee;$?(ee=O(Ft),ee.anchor=X?X.previousSibling:ie.lastChild):ee=E.nodeType===3?We(""):O("div"),ee.el=E,_.component.subTree=ee}}else U&64?G!==8?X=I():X=_.type.hydrate(E,_,T,D,P,M,e,g):U&128&&(X=_.type.hydrate(E,_,T,D,ox(s(E)),P,M,e,p))}return j!=null&&X1(j,null,D,_),X},m=(E,_,T,D,P,M)=>{M=M||!!_.dynamicChildren;const{type:$,props:I,patchFlag:N,shapeFlag:j,dirs:U,transition:z}=_,G=$==="input"||$==="option";if(G||N!==-1){U&&nf(_,null,T,"created");let X=!1;if(x(E)){X=$fe(null,z)&&T&&T.vnode.props&&T.vnode.props.appear;const ee=E.content.firstChild;if(X){const W=ee.getAttribute("class");W&&(ee.$cls=W),z.beforeEnter(ee)}C(ee,E,T),_.el=E=ee}if(j&16&&!(I&&(I.innerHTML||I.textContent))){let ee=g(E.firstChild,_,E,T,D,P,M);for(;ee;){sx(E,1)||t1();const W=ee;ee=ee.nextSibling,l(W)}}else if(j&8){let ee=_.children;ee[0]===` `&&(E.tagName==="PRE"||E.tagName==="TEXTAREA")&&(ee=ee.slice(1)),E.textContent!==ee&&(sx(E,0)||t1(),E.textContent=_.children)}if(I){if(G||!M||N&48){const ee=E.tagName.includes("-");for(const W in I)(G&&(W.endsWith("value")||W==="indeterminate")||L0(W)&&!Ah(W)||W[0]==="."||ee)&&r(E,W,null,I[W],void 0,T)}else if(I.onClick)r(E,"onClick",null,I.onClick,void 0,T);else if(N&4&&gf(I.style))for(const ee in I.style)I.style[ee]}let ie;(ie=I&&I.onVnodeBeforeMount)&&vu(ie,T,_),U&&nf(_,null,T,"beforeMount"),((ie=I&&I.onVnodeMounted)||U||X)&&Wfe(()=>{ie&&vu(ie,T,_),X&&z.enter(E),U&&nf(_,null,T,"mounted")},D)}return E.nextSibling},g=(E,_,T,D,P,M,$)=>{$=$||!!_.dynamicChildren;const I=_.children,N=I.length;for(let j=0;j{const{slotScopeIds:$}=_;$&&(P=P?P.concat($):$);const I=s(E),N=g(a(E),_,I,T,D,P,M);return N&&B1(N)&&N.data==="]"?a(_.anchor=N):(t1(),c(_.anchor=d("]"),I,N),N)},S=(E,_,T,D,P,M)=>{if(sx(E.parentElement,1)||t1(),_.el=null,M){const N=k(E);for(;;){const j=a(E);if(j&&j!==N)l(j);else break}}const $=a(E),I=s(E);return l(E),n(null,_,I,$,T,D,ox(I),P),T&&(T.vnode.el=_.el,v5(T,_.el)),$},k=(E,_="[",T="]")=>{let D=0;for(;E;)if(E=a(E),E&&B1(E)&&(E.data===_&&D++,E.data===T)){if(D===0)return a(E);D--}return E},C=(E,_,T)=>{const D=_.parentNode;D&&D.replaceChild(E,_);let P=T;for(;P;)P.vnode.el===_&&(P.vnode.el=P.subTree.el=E),P=P.parent},x=E=>E.nodeType===1&&E.tagName==="TEMPLATE";return[h,p]}const Wte="data-allow-mismatch",S5e={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function sx(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(Wte);)e=e.parentElement;const n=e&&e.getAttribute(Wte);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(S5e[t])}}const k5e=$_().requestIdleCallback||(e=>setTimeout(e,1)),x5e=$_().cancelIdleCallback||(e=>clearTimeout(e)),C5e=(e=1e4)=>t=>{const n=k5e(t,{timeout:e});return()=>x5e(n)};function w5e(e){const{top:t,left:n,bottom:r,right:o}=e.getBoundingClientRect(),{innerHeight:a,innerWidth:s}=window;return(t>0&&t0&&r0&&n0&&o(t,n)=>{const r=new IntersectionObserver(o=>{for(const a of o)if(a.isIntersecting){r.disconnect(),t();break}},e);return n(o=>{if(o instanceof Element){if(w5e(o))return t(),r.disconnect(),!1;r.observe(o)}}),()=>r.disconnect()},T5e=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},A5e=(e=[])=>(t,n)=>{Mr(e)&&(e=[e]);let r=!1;const o=s=>{r||(r=!0,a(),t(),s.target.dispatchEvent(new s.constructor(s.type,s)))},a=()=>{n(s=>{for(const l of e)s.removeEventListener(l,o)})};return n(s=>{for(const l of e)s.addEventListener(l,o,{once:!0})}),a};function I5e(e,t){if(B1(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(B1(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const l0=e=>!!e.type.__asyncLoader;function Hm(e){Er(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:o=200,hydrate:a,timeout:s,suspensible:l=!0,onError:c}=e;let d=null,h,p=0;const m=()=>(p++,d=null,g()),g=()=>{let y;return d||(y=d=t().catch(S=>{if(S=S instanceof Error?S:new Error(String(S)),c)return new Promise((k,C)=>{c(S,()=>k(m()),()=>C(S),p+1)});throw S}).then(S=>y!==d&&d?d:(S&&(S.__esModule||S[Symbol.toStringTag]==="Module")&&(S=S.default),h=S,S)))};return ke({name:"AsyncComponentWrapper",__asyncLoader:g,__asyncHydrate(y,S,k){let C=!1;(S.bu||(S.bu=[])).push(()=>C=!0);const x=()=>{C||k()},E=a?()=>{const _=a(x,T=>I5e(y,T));_&&(S.bum||(S.bum=[])).push(_)}:x;h?E():g().then(()=>!S.isUnmounted&&E())},get __asyncResolved(){return h},setup(){const y=Ua;if(BU(y),h)return()=>uP(h,y);const S=E=>{d=null,zm(E,y,13,!r)};if(l&&y.suspense||xy)return g().then(E=>()=>uP(E,y)).catch(E=>(S(E),()=>r?O(r,{error:E}):null));const k=fe(!1),C=fe(),x=fe(!!o);return o&&setTimeout(()=>{x.value=!1},o),s!=null&&setTimeout(()=>{if(!k.value&&!C.value){const E=new Error(`Async component timed out after ${s}ms.`);S(E),C.value=E}},s),g().then(()=>{k.value=!0,y.parent&&N_(y.parent.vnode)&&y.parent.update()}).catch(E=>{S(E),C.value=E}),()=>{if(k.value&&h)return uP(h,y);if(C.value&&r)return O(r,{error:C.value});if(n&&!x.value)return O(n)}}})}function uP(e,t){const{ref:n,props:r,children:o,ce:a}=t.vnode,s=O(e,r,o);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const N_=e=>e.type.__isKeepAlive,L5e={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=go(),r=n.ctx;if(!r.renderer)return()=>{const x=t.default&&t.default();return x&&x.length===1?x[0]:x};const o=new Map,a=new Set;let s=null;const l=n.suspense,{renderer:{p:c,m:d,um:h,o:{createElement:p}}}=r,m=p("div");r.activate=(x,E,_,T,D)=>{const P=x.component;d(x,E,_,0,l),c(P.vnode,x,E,_,P,l,T,x.slotScopeIds,D),la(()=>{P.isDeactivated=!1,P.a&&rm(P.a);const M=x.props&&x.props.onVnodeMounted;M&&vu(M,P.parent,x)},l)},r.deactivate=x=>{const E=x.component;w8(E.m),w8(E.a),d(x,m,null,1,l),la(()=>{E.da&&rm(E.da);const _=x.props&&x.props.onVnodeUnmounted;_&&vu(_,E.parent,x),E.isDeactivated=!0},l)};function g(x){cP(x),h(x,n,l,!0)}function y(x){o.forEach((E,_)=>{const T=Nj(E.type);T&&!x(T)&&S(_)})}function S(x){const E=o.get(x);E&&(!s||!Sd(E,s))?g(E):s&&cP(s),o.delete(x),a.delete(x)}Pt(()=>[e.include,e.exclude],([x,E])=>{x&&y(_=>k4(x,_)),E&&y(_=>!k4(E,_))},{flush:"post",deep:!0});let k=null;const C=()=>{k!=null&&(E8(n.subTree.type)?la(()=>{o.set(k,ax(n.subTree))},n.subTree.suspense):o.set(k,ax(n.subTree)))};return vn(C),Qa(C),Oo(()=>{o.forEach(x=>{const{subTree:E,suspense:_}=n,T=ax(E);if(x.type===T.type&&x.key===T.key){cP(T);const D=T.component.da;D&&la(D,_);return}g(x)})}),()=>{if(k=null,!t.default)return s=null;const x=t.default(),E=x[0];if(x.length>1)return s=null,x;if(!Ui(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return s=null,E;let _=ax(E);if(_.type===Ss)return s=null,_;const T=_.type,D=Nj(l0(_)?_.type.__asyncResolved||{}:T),{include:P,exclude:M,max:$}=e;if(P&&(!D||!k4(P,D))||M&&D&&k4(M,D))return _.shapeFlag&=-257,s=_,E;const I=_.key==null?T:_.key,N=o.get(I);return _.el&&(_=Cl(_),E.shapeFlag&128&&(E.ssContent=_)),k=I,N?(_.el=N.el,_.component=N.component,_.transition&&Vh(_,_.transition),_.shapeFlag|=512,a.delete(I),a.add(I)):(a.add(I),$&&a.size>parseInt($,10)&&S(a.values().next().value)),_.shapeFlag|=256,s=_,E8(E.type)?E:_}}},D5e=L5e;function k4(e,t){return Wn(e)?e.some(n=>k4(n,t)):Mr(e)?e.split(",").includes(t):Sde(e)?(e.lastIndex=0,e.test(t)):!1}function hfe(e,t){pfe(e,"a",t)}function NU(e,t){pfe(e,"da",t)}function pfe(e,t,n=Ua){const r=e.__wdc||(e.__wdc=()=>{let o=n;for(;o;){if(o.isDeactivated)return;o=o.parent}return e()});if(h5(t,r,n),n){let o=n.parent;for(;o&&o.parent;)N_(o.parent.vnode)&&P5e(r,t,n,o),o=o.parent}}function P5e(e,t,n,r){const o=h5(t,e,r,!0);vi(()=>{e5(r[t],o)},n)}function cP(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function ax(e){return e.shapeFlag&128?e.ssContent:e}function h5(e,t,n=Ua,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{Nh();const l=xm(n),c=Gc(t,n,e,s);return l(),Fh(),c});return r?o.unshift(a):o.push(a),a}}const Gh=e=>(t,n=Ua)=>{(!xy||e==="sp")&&h5(e,(...r)=>t(...r),n)},vfe=Gh("bm"),vn=Gh("m"),FU=Gh("bu"),Qa=Gh("u"),Oo=Gh("bum"),vi=Gh("um"),mfe=Gh("sp"),gfe=Gh("rtg"),yfe=Gh("rtc");function bfe(e,t=Ua){h5("ec",e,t)}const jU="components",R5e="directives";function Pe(e,t){return VU(jU,e,!0,t)||e}const _fe=Symbol.for("v-ndc");function Wa(e){return Mr(e)?VU(jU,e,!1)||e:e||_fe}function e3(e){return VU(R5e,e)}function VU(e,t,n=!0,r=!1){const o=Ha||Ua;if(o){const a=o.type;if(e===jU){const l=Nj(a,!1);if(l&&(l===t||l===Ro(t)||l===P0(Ro(t))))return a}const s=Gte(o[e]||a[e],t)||Gte(o.appContext[e],t);return!s&&r?a:s}}function Gte(e,t){return e&&(e[t]||e[Ro(t)]||e[P0(Ro(t))])}function pn(e,t,n,r){let o;const a=n&&n[r],s=Wn(e);if(s||Mr(e)){const l=s&&gf(e);let c=!1,d=!1;l&&(c=!sc(e),d=jh(e),e=s5(e)),o=new Array(e.length);for(let h=0,p=e.length;ht(l,c,void 0,a&&a[c]));else{const l=Object.keys(e);o=new Array(l.length);for(let c=0,d=l.length;c{const a=r.fn(...o);return a&&(a.key=r.key),a}:r.fn)}return e}function dt(e,t,n={},r,o){if(Ha.ce||Ha.parent&&l0(Ha.parent)&&Ha.parent.ce){const d=Object.keys(n).length>0;return t!=="default"&&(n.name=t),H(),Je(Ft,null,[O("slot",n,r&&r())],d?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),H();const s=a&&zU(a(n)),l=n.key||s&&s.key,c=Je(Ft,{key:(l&&!Zl(l)?l:`_${t}`)+(!s&&r?"_fb":"")},s||(r?r():[]),s&&e._===1?64:-2);return!o&&c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),a&&a._c&&(a._d=!0),c}function zU(e){return e.some(t=>Ui(t)?!(t.type===Ss||t.type===Ft&&!zU(t.children)):!0)?e:null}function M5e(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:nm(r)]=e[r];return n}const Aj=e=>e?Xfe(e)?j_(e):Aj(e.parent):null,W4=Si(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=>Aj(e.parent),$root:e=>Aj(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>UU(e),$forceUpdate:e=>e.f||(e.f=()=>{MU(e.update)}),$nextTick:e=>e.n||(e.n=_n.bind(e.proxy)),$watch:e=>cAe.bind(e)}),dP=(e,t)=>e!==Ci&&!e.__isScriptSetup&&Gi(e,t),Ij={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:r,data:o,props:a,accessCache:s,type:l,appContext:c}=e;let d;if(t[0]!=="$"){const g=s[t];if(g!==void 0)switch(g){case 1:return r[t];case 2:return o[t];case 4:return n[t];case 3:return a[t]}else{if(dP(r,t))return s[t]=1,r[t];if(o!==Ci&&Gi(o,t))return s[t]=2,o[t];if((d=e.propsOptions[0])&&Gi(d,t))return s[t]=3,a[t];if(n!==Ci&&Gi(n,t))return s[t]=4,n[t];Lj&&(s[t]=0)}}const h=W4[t];let p,m;if(h)return t==="$attrs"&&yl(e.attrs,"get",""),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==Ci&&Gi(n,t))return s[t]=4,n[t];if(m=c.config.globalProperties,Gi(m,t))return m[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return dP(o,t)?(o[t]=n,!0):r!==Ci&&Gi(r,t)?(r[t]=n,!0):Gi(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(a[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:o,propsOptions:a,type:s}},l){let c,d;return!!(n[l]||e!==Ci&&l[0]!=="$"&&Gi(e,l)||dP(t,l)||(c=a[0])&&Gi(c,l)||Gi(r,l)||Gi(W4,l)||Gi(o.config.globalProperties,l)||(d=s.__cssModules)&&d[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Gi(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},O5e=Si({},Ij,{get(e,t){if(t!==Symbol.unscopables)return Ij.get(e,t,e)},has(e,t){return t[0]!=="_"&&!xU(t)}});function $5e(){return null}function B5e(){return null}function N5e(e){}function F5e(e){}function j5e(){return null}function V5e(){}function z5e(e,t){return null}function U5e(){return Sfe().slots}function H5e(){return Sfe().attrs}function Sfe(e){const t=go();return t.setupContext||(t.setupContext=Qfe(t))}function Kb(e){return Wn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function W5e(e,t){const n=Kb(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?Wn(o)||Er(o)?o=n[r]={type:o,default:t[r]}:o.default=t[r]:o===null&&(o=n[r]={default:t[r]}),o&&t[`__skip_${r}`]&&(o.skipFactory=!0)}return n}function G5e(e,t){return!e||!t?e||t:Wn(e)&&Wn(t)?e.concat(t):Si({},Kb(e),Kb(t))}function K5e(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function q5e(e){const t=go();let n=e();return Oj(),t5(n)&&(n=n.catch(r=>{throw xm(t),r})),[n,()=>xm(t)]}let Lj=!0;function Y5e(e){const t=UU(e),n=e.proxy,r=e.ctx;Lj=!1,t.beforeCreate&&Kte(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:s,watch:l,provide:c,inject:d,created:h,beforeMount:p,mounted:m,beforeUpdate:g,updated:y,activated:S,deactivated:k,beforeDestroy:C,beforeUnmount:x,destroyed:E,unmounted:_,render:T,renderTracked:D,renderTriggered:P,errorCaptured:M,serverPrefetch:$,expose:I,inheritAttrs:N,components:j,directives:U,filters:z}=t;if(d&&X5e(d,r,null),s)for(const ie in s){const ee=s[ie];Er(ee)&&(r[ie]=ee.bind(n))}if(o){const ie=o.call(n,n);Yi(ie)&&(e.data=Yt(ie))}if(Lj=!0,a)for(const ie in a){const ee=a[ie],W=Er(ee)?ee.bind(n,n):Er(ee.get)?ee.get.bind(n,n):ka,q=!Er(ee)&&Er(ee.set)?ee.set.bind(n):ka,Q=F({get:W,set:q});Object.defineProperty(r,ie,{enumerable:!0,configurable:!0,get:()=>Q.value,set:ne=>Q.value=ne})}if(l)for(const ie in l)kfe(l[ie],r,n,ie);if(c){const ie=Er(c)?c.call(n):c;Reflect.ownKeys(ie).forEach(ee=>{ti(ee,ie[ee])})}h&&Kte(h,e,"c");function X(ie,ee){Wn(ee)?ee.forEach(W=>ie(W.bind(n))):ee&&ie(ee.bind(n))}if(X(vfe,p),X(vn,m),X(FU,g),X(Qa,y),X(hfe,S),X(NU,k),X(bfe,M),X(yfe,D),X(gfe,P),X(Oo,x),X(vi,_),X(mfe,$),Wn(I))if(I.length){const ie=e.exposed||(e.exposed={});I.forEach(ee=>{Object.defineProperty(ie,ee,{get:()=>n[ee],set:W=>n[ee]=W,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===ka&&(e.render=T),N!=null&&(e.inheritAttrs=N),j&&(e.components=j),U&&(e.directives=U),$&&BU(e)}function X5e(e,t,n=ka){Wn(e)&&(e=Dj(e));for(const r in e){const o=e[r];let a;Yi(o)?"default"in o?a=Pn(o.from||r,o.default,!0):a=Pn(o.from||r):a=Pn(o),Mo(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function Kte(e,t,n){Gc(Wn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function kfe(e,t,n,r){let o=r.includes(".")?Vfe(n,r):()=>n[r];if(Mr(e)){const a=t[e];Er(a)&&Pt(o,a)}else if(Er(e))Pt(o,e.bind(n));else if(Yi(e))if(Wn(e))e.forEach(a=>kfe(a,t,n,r));else{const a=Er(e.handler)?e.handler.bind(n):t[e.handler];Er(a)&&Pt(o,a,e)}}function UU(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:o,optionsCache:a,config:{optionMergeStrategies:s}}=e.appContext,l=a.get(t);let c;return l?c=l:!o.length&&!n&&!r?c=t:(c={},o.length&&o.forEach(d=>C8(c,d,s,!0)),C8(c,t,s)),Yi(t)&&a.set(t,c),c}function C8(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&C8(e,a,n,!0),o&&o.forEach(s=>C8(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=Z5e[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const Z5e={data:qte,props:Yte,emits:Yte,methods:x4,computed:x4,beforeCreate:Nl,created:Nl,beforeMount:Nl,mounted:Nl,beforeUpdate:Nl,updated:Nl,beforeDestroy:Nl,beforeUnmount:Nl,destroyed:Nl,unmounted:Nl,activated:Nl,deactivated:Nl,errorCaptured:Nl,serverPrefetch:Nl,components:x4,directives:x4,watch:Q5e,provide:qte,inject:J5e};function qte(e,t){return t?e?function(){return Si(Er(e)?e.call(this,this):e,Er(t)?t.call(this,this):t)}:t:e}function J5e(e,t){return x4(Dj(e),Dj(t))}function Dj(e){if(Wn(e)){const t={};for(let n=0;n1)return n&&Er(t)?t.call(r&&r.proxy):t}}function Cfe(){return!!(go()||om)}const wfe={},Efe=()=>Object.create(wfe),Tfe=e=>Object.getPrototypeOf(e)===wfe;function nAe(e,t,n,r=!1){const o={},a=Efe();e.propsDefaults=Object.create(null),Afe(e,t,o,a);for(const s in e.propsOptions[0])s in o||(o[s]=void 0);n?e.props=r?o:PU(o):e.type.props?e.props=o:e.props=a,e.attrs=a}function rAe(e,t,n,r){const{props:o,attrs:a,vnode:{patchFlag:s}}=e,l=Mi(o),[c]=e.propsOptions;let d=!1;if((r||s>0)&&!(s&16)){if(s&8){const h=e.vnode.dynamicProps;for(let p=0;p{c=!0;const[m,g]=Ife(p,t,!0);Si(s,m),g&&l.push(...g)};!n&&t.mixins.length&&t.mixins.forEach(h),e.extends&&h(e.extends),e.mixins&&e.mixins.forEach(h)}if(!a&&!c)return Yi(e)&&r.set(e,em),em;if(Wn(a))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",WU=e=>Wn(e)?e.map(mu):[mu(e)],oAe=(e,t,n)=>{if(t._n)return t;const r=de((...o)=>WU(t(...o)),n);return r._c=!1,r},Lfe=(e,t,n)=>{const r=e._ctx;for(const o in e){if(HU(o))continue;const a=e[o];if(Er(a))t[o]=oAe(o,a,r);else if(a!=null){const s=WU(a);t[o]=()=>s}}},Dfe=(e,t)=>{const n=WU(t);e.slots.default=()=>n},Pfe=(e,t,n)=>{for(const r in t)(n||!HU(r))&&(e[r]=t[r])},sAe=(e,t,n)=>{const r=e.slots=Efe();if(e.vnode.shapeFlag&32){const o=t._;o?(Pfe(r,t,n),n&&kU(r,"_",o,!0)):Lfe(t,r)}else t&&Dfe(e,t)},aAe=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=Ci;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:Pfe(o,t,n):(a=!t.$stable,Lfe(t,o)),s=t}else t&&(Dfe(e,t),s={default:1});if(a)for(const l in o)!HU(l)&&s[l]==null&&delete o[l]},la=Wfe;function Rfe(e){return Ofe(e)}function Mfe(e){return Ofe(e,_5e)}function Ofe(e,t){const n=$_();n.__VUE__=!0;const{insert:r,remove:o,patchProp:a,createElement:s,createText:l,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:m,setScopeId:g=ka,insertStaticContent:y}=e,S=(be,_e,Ne,Se=null,$e=null,Xe=null,rt=void 0,nt=null,gt=!!_e.dynamicChildren)=>{if(be===_e)return;be&&!Sd(be,_e)&&(Se=ve(be),ne(be,$e,Xe,!0),be=null),_e.patchFlag===-2&&(gt=!1,_e.dynamicChildren=null);const{type:yt,ref:$t,shapeFlag:Ct}=_e;switch(yt){case u0:k(be,_e,Ne,Se);break;case Ss:C(be,_e,Ne,Se);break;case sm:be==null&&x(_e,Ne,Se,rt);break;case Ft:j(be,_e,Ne,Se,$e,Xe,rt,nt,gt);break;default:Ct&1?T(be,_e,Ne,Se,$e,Xe,rt,nt,gt):Ct&6?U(be,_e,Ne,Se,$e,Xe,rt,nt,gt):(Ct&64||Ct&128)&&yt.process(be,_e,Ne,Se,$e,Xe,rt,nt,gt,Be)}$t!=null&&$e?X1($t,be&&be.ref,Xe,_e||be,!_e):$t==null&&be&&be.ref!=null&&X1(be.ref,null,Xe,be,!0)},k=(be,_e,Ne,Se)=>{if(be==null)r(_e.el=l(_e.children),Ne,Se);else{const $e=_e.el=be.el;_e.children!==be.children&&d($e,_e.children)}},C=(be,_e,Ne,Se)=>{be==null?r(_e.el=c(_e.children||""),Ne,Se):_e.el=be.el},x=(be,_e,Ne,Se)=>{[be.el,be.anchor]=y(be.children,_e,Ne,Se,be.el,be.anchor)},E=({el:be,anchor:_e},Ne,Se)=>{let $e;for(;be&&be!==_e;)$e=m(be),r(be,Ne,Se),be=$e;r(_e,Ne,Se)},_=({el:be,anchor:_e})=>{let Ne;for(;be&&be!==_e;)Ne=m(be),o(be),be=Ne;o(_e)},T=(be,_e,Ne,Se,$e,Xe,rt,nt,gt)=>{_e.type==="svg"?rt="svg":_e.type==="math"&&(rt="mathml"),be==null?D(_e,Ne,Se,$e,Xe,rt,nt,gt):$(be,_e,$e,Xe,rt,nt,gt)},D=(be,_e,Ne,Se,$e,Xe,rt,nt)=>{let gt,yt;const{props:$t,shapeFlag:Ct,transition:Dt,dirs:on}=be;if(gt=be.el=s(be.type,Xe,$t&&$t.is,$t),Ct&8?h(gt,be.children):Ct&16&&M(be.children,gt,null,Se,$e,fP(be,Xe),rt,nt),on&&nf(be,null,Se,"created"),P(gt,be,be.scopeId,rt,Se),$t){for(const xt in $t)xt!=="value"&&!Ah(xt)&&a(gt,xt,null,$t[xt],Xe,Se);"value"in $t&&a(gt,"value",null,$t.value,Xe),(yt=$t.onVnodeBeforeMount)&&vu(yt,Se,be)}on&&nf(be,null,Se,"beforeMount");const lt=$fe($e,Dt);lt&&Dt.beforeEnter(gt),r(gt,_e,Ne),((yt=$t&&$t.onVnodeMounted)||lt||on)&&la(()=>{yt&&vu(yt,Se,be),lt&&Dt.enter(gt),on&&nf(be,null,Se,"mounted")},$e)},P=(be,_e,Ne,Se,$e)=>{if(Ne&&g(be,Ne),Se)for(let Xe=0;Xe{for(let yt=gt;yt{const nt=_e.el=be.el;let{patchFlag:gt,dynamicChildren:yt,dirs:$t}=_e;gt|=be.patchFlag&16;const Ct=be.props||Ci,Dt=_e.props||Ci;let on;if(Ne&&uv(Ne,!1),(on=Dt.onVnodeBeforeUpdate)&&vu(on,Ne,_e,be),$t&&nf(_e,be,Ne,"beforeUpdate"),Ne&&uv(Ne,!0),(Ct.innerHTML&&Dt.innerHTML==null||Ct.textContent&&Dt.textContent==null)&&h(nt,""),yt?I(be.dynamicChildren,yt,nt,Ne,Se,fP(_e,$e),Xe):rt||ee(be,_e,nt,null,Ne,Se,fP(_e,$e),Xe,!1),gt>0){if(gt&16)N(nt,Ct,Dt,Ne,$e);else if(gt&2&&Ct.class!==Dt.class&&a(nt,"class",null,Dt.class,$e),gt&4&&a(nt,"style",Ct.style,Dt.style,$e),gt&8){const lt=_e.dynamicProps;for(let xt=0;xt{on&&vu(on,Ne,_e,be),$t&&nf(_e,be,Ne,"updated")},Se)},I=(be,_e,Ne,Se,$e,Xe,rt)=>{for(let nt=0;nt<_e.length;nt++){const gt=be[nt],yt=_e[nt],$t=gt.el&&(gt.type===Ft||!Sd(gt,yt)||gt.shapeFlag&198)?p(gt.el):Ne;S(gt,yt,$t,null,Se,$e,Xe,rt,!0)}},N=(be,_e,Ne,Se,$e)=>{if(_e!==Ne){if(_e!==Ci)for(const Xe in _e)!Ah(Xe)&&!(Xe in Ne)&&a(be,Xe,_e[Xe],null,$e,Se);for(const Xe in Ne){if(Ah(Xe))continue;const rt=Ne[Xe],nt=_e[Xe];rt!==nt&&Xe!=="value"&&a(be,Xe,nt,rt,$e,Se)}"value"in Ne&&a(be,"value",_e.value,Ne.value,$e)}},j=(be,_e,Ne,Se,$e,Xe,rt,nt,gt)=>{const yt=_e.el=be?be.el:l(""),$t=_e.anchor=be?be.anchor:l("");let{patchFlag:Ct,dynamicChildren:Dt,slotScopeIds:on}=_e;on&&(nt=nt?nt.concat(on):on),be==null?(r(yt,Ne,Se),r($t,Ne,Se),M(_e.children||[],Ne,$t,$e,Xe,rt,nt,gt)):Ct>0&&Ct&64&&Dt&&be.dynamicChildren?(I(be.dynamicChildren,Dt,Ne,$e,Xe,rt,nt),(_e.key!=null||$e&&_e===$e.subTree)&&GU(be,_e,!0)):ee(be,_e,Ne,$t,$e,Xe,rt,nt,gt)},U=(be,_e,Ne,Se,$e,Xe,rt,nt,gt)=>{_e.slotScopeIds=nt,be==null?_e.shapeFlag&512?$e.ctx.activate(_e,Ne,Se,rt,gt):z(_e,Ne,Se,$e,Xe,rt,gt):G(be,_e,gt)},z=(be,_e,Ne,Se,$e,Xe,rt)=>{const nt=be.component=Yfe(be,Se,$e);if(N_(be)&&(nt.ctx.renderer=Be),Zfe(nt,!1,rt),nt.asyncDep){if($e&&$e.registerDep(nt,X,rt),!be.el){const gt=nt.subTree=O(Ss);C(null,gt,_e,Ne),be.placeholder=gt.el}}else X(nt,be,_e,Ne,$e,Xe,rt)},G=(be,_e,Ne)=>{const Se=_e.component=be.component;if(gAe(be,_e,Ne))if(Se.asyncDep&&!Se.asyncResolved){ie(Se,_e,Ne);return}else Se.next=_e,Se.update();else _e.el=be.el,Se.vnode=_e},X=(be,_e,Ne,Se,$e,Xe,rt)=>{const nt=()=>{if(be.isMounted){let{next:Ct,bu:Dt,u:on,parent:lt,vnode:xt}=be;{const Ht=Bfe(be);if(Ht){Ct&&(Ct.el=xt.el,ie(be,Ct,rt)),Ht.asyncDep.then(()=>{be.isUnmounted||nt()});return}}let Ye=Ct,Ue;uv(be,!1),Ct?(Ct.el=xt.el,ie(be,Ct,rt)):Ct=xt,Dt&&rm(Dt),(Ue=Ct.props&&Ct.props.onVnodeBeforeUpdate)&&vu(Ue,lt,Ct,xt),uv(be,!0);const ut=VC(be),St=be.subTree;be.subTree=ut,S(St,ut,p(St.el),ve(St),be,$e,Xe),Ct.el=ut.el,Ye===null&&v5(be,ut.el),on&&la(on,$e),(Ue=Ct.props&&Ct.props.onVnodeUpdated)&&la(()=>vu(Ue,lt,Ct,xt),$e)}else{let Ct;const{el:Dt,props:on}=_e,{bm:lt,m:xt,parent:Ye,root:Ue,type:ut}=be,St=l0(_e);if(uv(be,!1),lt&&rm(lt),!St&&(Ct=on&&on.onVnodeBeforeMount)&&vu(Ct,Ye,_e),uv(be,!0),Dt&&ze){const Ht=()=>{be.subTree=VC(be),ze(Dt,be.subTree,be,$e,null)};St&&ut.__asyncHydrate?ut.__asyncHydrate(Dt,be,Ht):Ht()}else{Ue.ce&&Ue.ce._def.shadowRoot!==!1&&Ue.ce._injectChildStyle(ut);const Ht=be.subTree=VC(be);S(null,Ht,Ne,Se,be,$e,Xe),_e.el=Ht.el}if(xt&&la(xt,$e),!St&&(Ct=on&&on.onVnodeMounted)){const Ht=_e;la(()=>vu(Ct,Ye,Ht),$e)}(_e.shapeFlag&256||Ye&&l0(Ye.vnode)&&Ye.vnode.shapeFlag&256)&&be.a&&la(be.a,$e),be.isMounted=!0,_e=Ne=Se=null}};be.scope.on();const gt=be.effect=new jb(nt);be.scope.off();const yt=be.update=gt.run.bind(gt),$t=be.job=gt.runIfDirty.bind(gt);$t.i=be,$t.id=be.uid,gt.scheduler=()=>MU($t),uv(be,!0),yt()},ie=(be,_e,Ne)=>{_e.component=be;const Se=be.vnode.props;be.vnode=_e,be.next=null,rAe(be,_e.props,Se,Ne),aAe(be,_e.children,Ne),Nh(),Nte(be),Fh()},ee=(be,_e,Ne,Se,$e,Xe,rt,nt,gt=!1)=>{const yt=be&&be.children,$t=be?be.shapeFlag:0,Ct=_e.children,{patchFlag:Dt,shapeFlag:on}=_e;if(Dt>0){if(Dt&128){q(yt,Ct,Ne,Se,$e,Xe,rt,nt,gt);return}else if(Dt&256){W(yt,Ct,Ne,Se,$e,Xe,rt,nt,gt);return}}on&8?($t&16&&we(yt,$e,Xe),Ct!==yt&&h(Ne,Ct)):$t&16?on&16?q(yt,Ct,Ne,Se,$e,Xe,rt,nt,gt):we(yt,$e,Xe,!0):($t&8&&h(Ne,""),on&16&&M(Ct,Ne,Se,$e,Xe,rt,nt,gt))},W=(be,_e,Ne,Se,$e,Xe,rt,nt,gt)=>{be=be||em,_e=_e||em;const yt=be.length,$t=_e.length,Ct=Math.min(yt,$t);let Dt;for(Dt=0;Dt$t?we(be,$e,Xe,!0,!1,Ct):M(_e,Ne,Se,$e,Xe,rt,nt,gt,Ct)},q=(be,_e,Ne,Se,$e,Xe,rt,nt,gt)=>{let yt=0;const $t=_e.length;let Ct=be.length-1,Dt=$t-1;for(;yt<=Ct&&yt<=Dt;){const on=be[yt],lt=_e[yt]=gt?Wp(_e[yt]):mu(_e[yt]);if(Sd(on,lt))S(on,lt,Ne,null,$e,Xe,rt,nt,gt);else break;yt++}for(;yt<=Ct&&yt<=Dt;){const on=be[Ct],lt=_e[Dt]=gt?Wp(_e[Dt]):mu(_e[Dt]);if(Sd(on,lt))S(on,lt,Ne,null,$e,Xe,rt,nt,gt);else break;Ct--,Dt--}if(yt>Ct){if(yt<=Dt){const on=Dt+1,lt=on<$t?_e[on].el:Se;for(;yt<=Dt;)S(null,_e[yt]=gt?Wp(_e[yt]):mu(_e[yt]),Ne,lt,$e,Xe,rt,nt,gt),yt++}}else if(yt>Dt)for(;yt<=Ct;)ne(be[yt],$e,Xe,!0),yt++;else{const on=yt,lt=yt,xt=new Map;for(yt=lt;yt<=Dt;yt++){const At=_e[yt]=gt?Wp(_e[yt]):mu(_e[yt]);At.key!=null&&xt.set(At.key,yt)}let Ye,Ue=0;const ut=Dt-lt+1;let St=!1,Ht=0;const bt=new Array(ut);for(yt=0;yt=ut){ne(At,$e,Xe,!0);continue}let tn;if(At.key!=null)tn=xt.get(At.key);else for(Ye=lt;Ye<=Dt;Ye++)if(bt[Ye-lt]===0&&Sd(At,_e[Ye])){tn=Ye;break}tn===void 0?ne(At,$e,Xe,!0):(bt[tn-lt]=yt+1,tn>=Ht?Ht=tn:St=!0,S(At,_e[tn],Ne,null,$e,Xe,rt,nt,gt),Ue++)}const Fe=St?lAe(bt):em;for(Ye=Fe.length-1,yt=ut-1;yt>=0;yt--){const At=lt+yt,tn=_e[At],sn=_e[At+1],Gt=At+1<$t?sn.el||sn.placeholder:Se;bt[yt]===0?S(null,tn,Ne,Gt,$e,Xe,rt,nt,gt):St&&(Ye<0||yt!==Fe[Ye]?Q(tn,Ne,Gt,2):Ye--)}}},Q=(be,_e,Ne,Se,$e=null)=>{const{el:Xe,type:rt,transition:nt,children:gt,shapeFlag:yt}=be;if(yt&6){Q(be.component.subTree,_e,Ne,Se);return}if(yt&128){be.suspense.move(_e,Ne,Se);return}if(yt&64){rt.move(be,_e,Ne,Be);return}if(rt===Ft){r(Xe,_e,Ne);for(let Ct=0;Ctnt.enter(Xe),$e);else{const{leave:Ct,delayLeave:Dt,afterLeave:on}=nt,lt=()=>{be.ctx.isUnmounted?o(Xe):r(Xe,_e,Ne)},xt=()=>{Xe._isLeaving&&Xe[yh](!0),Ct(Xe,()=>{lt(),on&&on()})};Dt?Dt(Xe,lt,xt):xt()}else r(Xe,_e,Ne)},ne=(be,_e,Ne,Se=!1,$e=!1)=>{const{type:Xe,props:rt,ref:nt,children:gt,dynamicChildren:yt,shapeFlag:$t,patchFlag:Ct,dirs:Dt,cacheIndex:on}=be;if(Ct===-2&&($e=!1),nt!=null&&(Nh(),X1(nt,null,Ne,be,!0),Fh()),on!=null&&(_e.renderCache[on]=void 0),$t&256){_e.ctx.deactivate(be);return}const lt=$t&1&&Dt,xt=!l0(be);let Ye;if(xt&&(Ye=rt&&rt.onVnodeBeforeUnmount)&&vu(Ye,_e,be),$t&6)Ce(be.component,Ne,Se);else{if($t&128){be.suspense.unmount(Ne,Se);return}lt&&nf(be,null,_e,"beforeUnmount"),$t&64?be.type.remove(be,_e,Ne,Be,Se):yt&&!yt.hasOnce&&(Xe!==Ft||Ct>0&&Ct&64)?we(yt,_e,Ne,!1,!0):(Xe===Ft&&Ct&384||!$e&&$t&16)&&we(gt,_e,Ne),Se&&ae(be)}(xt&&(Ye=rt&&rt.onVnodeUnmounted)||lt)&&la(()=>{Ye&&vu(Ye,_e,be),lt&&nf(be,null,_e,"unmounted")},Ne)},ae=be=>{const{type:_e,el:Ne,anchor:Se,transition:$e}=be;if(_e===Ft){re(Ne,Se);return}if(_e===sm){_(be);return}const Xe=()=>{o(Ne),$e&&!$e.persisted&&$e.afterLeave&&$e.afterLeave()};if(be.shapeFlag&1&&$e&&!$e.persisted){const{leave:rt,delayLeave:nt}=$e,gt=()=>rt(Ne,Xe);nt?nt(be.el,Xe,gt):gt()}else Xe()},re=(be,_e)=>{let Ne;for(;be!==_e;)Ne=m(be),o(be),be=Ne;o(_e)},Ce=(be,_e,Ne)=>{const{bum:Se,scope:$e,job:Xe,subTree:rt,um:nt,m:gt,a:yt}=be;w8(gt),w8(yt),Se&&rm(Se),$e.stop(),Xe&&(Xe.flags|=8,ne(rt,be,_e,Ne)),nt&&la(nt,_e),la(()=>{be.isUnmounted=!0},_e)},we=(be,_e,Ne,Se=!1,$e=!1,Xe=0)=>{for(let rt=Xe;rt{if(be.shapeFlag&6)return ve(be.component.subTree);if(be.shapeFlag&128)return be.suspense.next();const _e=m(be.anchor||be.el),Ne=_e&&_e[ofe];return Ne?m(Ne):_e};let me=!1;const xe=(be,_e,Ne)=>{be==null?_e._vnode&&ne(_e._vnode,null,null,!0):S(_e._vnode||null,be,_e,null,null,null,Ne),_e._vnode=be,me||(me=!0,Nte(),k8(),me=!1)},Be={p:S,um:ne,m:Q,r:ae,mt:z,mc:M,pc:ee,pbc:I,n:ve,o:e};let Ke,ze;return t&&([Ke,ze]=t(Be)),{render:xe,hydrate:Ke,createApp:tAe(xe,Ke)}}function fP({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function uv({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function $fe(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function GU(e,t,n=!1){const r=e.children,o=t.children;if(Wn(r)&&Wn(o))for(let a=0;a>1,e[n[l]]0&&(t[r]=n[a-1]),n[a]=r)}}for(a=n.length,s=n[a-1];a-- >0;)n[a]=s,s=t[s];return n}function Bfe(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Bfe(t)}function w8(e){if(e)for(let t=0;tPn(Nfe);function Os(e,t){return F_(e,null,t)}function uAe(e,t){return F_(e,null,{flush:"post"})}function jfe(e,t){return F_(e,null,{flush:"sync"})}function Pt(e,t,n){return F_(e,t,n)}function F_(e,t,n=Ci){const{immediate:r,deep:o,flush:a,once:s}=n,l=Si({},n),c=t&&r||!t&&a!=="post";let d;if(xy){if(a==="sync"){const g=Ffe();d=g.__watcherHandles||(g.__watcherHandles=[])}else if(!c){const g=()=>{};return g.stop=ka,g.resume=ka,g.pause=ka,g}}const h=Ua;l.call=(g,y,S)=>Gc(g,h,y,S);let p=!1;a==="post"?l.scheduler=g=>{la(g,h&&h.suspense)}:a!=="sync"&&(p=!0,l.scheduler=(g,y)=>{y?g():MU(g)}),l.augmentJob=g=>{t&&(g.flags|=4),p&&(g.flags|=2,h&&(g.id=h.uid,g.i=h))};const m=r5e(e,t,l);return xy&&(d?d.push(m):c&&m()),m}function cAe(e,t,n){const r=this.proxy,o=Mr(e)?e.includes(".")?Vfe(r,e):()=>r[e]:e.bind(r,r);let a;Er(t)?a=t:(a=t.handler,n=t);const s=xm(this),l=F_(o,a.bind(r),n);return s(),l}function Vfe(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{let h,p=Ci,m;return jfe(()=>{const g=e[o];gl(h,g)&&(h=g,d())}),{get(){return c(),n.get?n.get(h):h},set(g){const y=n.set?n.set(g):g;if(!gl(y,h)&&!(p!==Ci&&gl(g,p)))return;const S=r.vnode.props;S&&(t in S||o in S||a in S)&&(`onUpdate:${t}`in S||`onUpdate:${o}`in S||`onUpdate:${a}`in S)||(h=g,d()),r.emit(`update:${t}`,y),gl(g,y)&&gl(g,p)&&!gl(y,m)&&d(),p=g,m=y}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||Ci:l,done:!1}:{done:!0}}}},l}const zfe=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${Ro(t)}Modifiers`]||e[`${bl(t)}Modifiers`];function fAe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ci;let o=n;const a=t.startsWith("update:"),s=a&&zfe(r,t.slice(7));s&&(s.trim&&(o=n.map(h=>Mr(h)?h.trim():h)),s.number&&(o=n.map(Nb)));let l,c=r[l=nm(t)]||r[l=nm(Ro(t))];!c&&a&&(c=r[l=nm(bl(t))]),c&&Gc(c,e,6,o);const d=r[l+"Once"];if(d){if(!e.emitted)e.emitted={};else if(e.emitted[l])return;e.emitted[l]=!0,Gc(d,e,6,o)}}const hAe=new WeakMap;function Ufe(e,t,n=!1){const r=n?hAe:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const a=e.emits;let s={},l=!1;if(!Er(e)){const c=d=>{const h=Ufe(d,t,!0);h&&(l=!0,Si(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!l?(Yi(e)&&r.set(e,null),null):(Wn(a)?a.forEach(c=>s[c]=null):Si(s,a),Yi(e)&&r.set(e,s),s)}function p5(e,t){return!e||!L0(t)?!1:(t=t.slice(2).replace(/Once$/,""),Gi(e,t[0].toLowerCase()+t.slice(1))||Gi(e,bl(t))||Gi(e,t))}function VC(e){const{type:t,vnode:n,proxy:r,withProxy:o,propsOptions:[a],slots:s,attrs:l,emit:c,render:d,renderCache:h,props:p,data:m,setupState:g,ctx:y,inheritAttrs:S}=e,k=Gb(e);let C,x;try{if(n.shapeFlag&4){const _=o||r,T=_;C=mu(d.call(T,_,h,p,g,m,y)),x=l}else{const _=t;C=mu(_.length>1?_(p,{attrs:l,slots:s,emit:c}):_(p,null)),x=t.props?l:vAe(l)}}catch(_){G4.length=0,zm(_,e,1),C=O(Ss)}let E=C;if(x&&S!==!1){const _=Object.keys(x),{shapeFlag:T}=E;_.length&&T&7&&(a&&_.some(QT)&&(x=mAe(x,a)),E=Cl(E,x,!1,!0))}return n.dirs&&(E=Cl(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Vh(E,n.transition),C=E,Gb(k),C}function pAe(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||L0(n))&&((t||(t={}))[n]=e[n]);return t},mAe=(e,t)=>{const n={};for(const r in e)(!QT(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function gAe(e,t,n){const{props:r,children:o,component:a}=e,{props:s,children:l,patchFlag:c}=t,d=a.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return r?Zte(r,s,d):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;let Rj=0;const yAe={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,a,s,l,c,d){if(e==null)_Ae(t,n,r,o,a,s,l,c,d);else{if(a&&a.deps>0&&!e.suspense.isInFallback){t.suspense=e.suspense,t.suspense.vnode=t,t.el=e.el;return}SAe(e,t,n,r,o,s,l,c,d)}},hydrate:kAe,normalize:xAe},bAe=yAe;function qb(e,t){const n=e.props&&e.props[t];Er(n)&&n()}function _Ae(e,t,n,r,o,a,s,l,c){const{p:d,o:{createElement:h}}=c,p=h("div"),m=e.suspense=Hfe(e,o,r,t,p,n,a,s,l,c);d(null,m.pendingBranch=e.ssContent,p,null,r,m,a,s),m.deps>0?(qb(e,"onPending"),qb(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,a,s),Z1(m,e.ssFallback)):m.resolve(!1,!0)}function SAe(e,t,n,r,o,a,s,l,{p:c,um:d,o:{createElement:h}}){const p=t.suspense=e.suspense;p.vnode=t,t.el=e.el;const m=t.ssContent,g=t.ssFallback,{activeBranch:y,pendingBranch:S,isInFallback:k,isHydrating:C}=p;if(S)p.pendingBranch=m,Sd(S,m)?(c(S,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():k&&(C||(c(y,g,n,r,o,null,a,s,l),Z1(p,g)))):(p.pendingId=Rj++,C?(p.isHydrating=!1,p.activeBranch=S):d(S,o,p),p.deps=0,p.effects.length=0,p.hiddenContainer=h("div"),k?(c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():(c(y,g,n,r,o,null,a,s,l),Z1(p,g))):y&&Sd(y,m)?(c(y,m,n,r,o,p,a,s,l),p.resolve(!0)):(c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0&&p.resolve()));else if(y&&Sd(y,m))c(y,m,n,r,o,p,a,s,l),Z1(p,m);else if(qb(t,"onPending"),p.pendingBranch=m,m.shapeFlag&512?p.pendingId=m.component.suspenseId:p.pendingId=Rj++,c(null,m,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0)p.resolve();else{const{timeout:x,pendingId:E}=p;x>0?setTimeout(()=>{p.pendingId===E&&p.fallback(g)},x):x===0&&p.fallback(g)}}function Hfe(e,t,n,r,o,a,s,l,c,d,h=!1){const{p,m,um:g,n:y,o:{parentNode:S,remove:k}}=d;let C;const x=CAe(e);x&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const E=e.props?Fb(e.props.timeout):void 0,_=a,T={vnode:e,parent:t,parentComponent:n,namespace:s,container:r,hiddenContainer:o,deps:0,pendingId:Rj++,timeout:typeof E=="number"?E:-1,activeBranch:null,pendingBranch:null,isInFallback:!h,isHydrating:h,isUnmounted:!1,effects:[],resolve(D=!1,P=!1){const{vnode:M,activeBranch:$,pendingBranch:I,pendingId:N,effects:j,parentComponent:U,container:z}=T;let G=!1;T.isHydrating?T.isHydrating=!1:D||(G=$&&I.transition&&I.transition.mode==="out-in",G&&($.transition.afterLeave=()=>{N===T.pendingId&&(m(I,z,a===_?y($):a,0),Hb(j))}),$&&(S($.el)===z&&(a=y($)),g($,U,T,!0)),G||m(I,z,a,0)),Z1(T,I),T.pendingBranch=null,T.isInFallback=!1;let X=T.parent,ie=!1;for(;X;){if(X.pendingBranch){X.effects.push(...j),ie=!0;break}X=X.parent}!ie&&!G&&Hb(j),T.effects=[],x&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),qb(M,"onResolve")},fallback(D){if(!T.pendingBranch)return;const{vnode:P,activeBranch:M,parentComponent:$,container:I,namespace:N}=T;qb(P,"onFallback");const j=y(M),U=()=>{T.isInFallback&&(p(null,D,I,j,$,null,N,l,c),Z1(T,D))},z=D.transition&&D.transition.mode==="out-in";z&&(M.transition.afterLeave=U),T.isInFallback=!0,g(M,$,null,!0),z||U()},move(D,P,M){T.activeBranch&&m(T.activeBranch,D,P,M),T.container=D},next(){return T.activeBranch&&y(T.activeBranch)},registerDep(D,P,M){const $=!!T.pendingBranch;$&&T.deps++;const I=D.vnode.el;D.asyncDep.catch(N=>{zm(N,D,0)}).then(N=>{if(D.isUnmounted||T.isUnmounted||T.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:j}=D;$j(D,N,!1),I&&(j.el=I);const U=!I&&D.subTree.el;P(D,j,S(I||D.subTree.el),I?null:y(D.subTree),T,s,M),U&&k(U),v5(D,j.el),$&&--T.deps===0&&T.resolve()})},unmount(D,P){T.isUnmounted=!0,T.activeBranch&&g(T.activeBranch,n,D,P),T.pendingBranch&&g(T.pendingBranch,n,D,P)}};return T}function kAe(e,t,n,r,o,a,s,l,c){const d=t.suspense=Hfe(t,r,n,e.parentNode,document.createElement("div"),null,o,a,s,l,!0),h=c(e,d.pendingBranch=t.ssContent,n,d,a,s);return d.deps===0&&d.resolve(!1,!0),h}function xAe(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=Jte(r?n.default:n),e.ssFallback=r?Jte(n.fallback):O(Ss)}function Jte(e){let t;if(Er(e)){const n=km&&e._c;n&&(e._d=!1,H()),e=e(),n&&(e._d=!0,t=kl,Gfe())}return Wn(e)&&(e=pAe(e)),e=mu(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Wfe(e,t){t&&t.pendingBranch?Wn(e)?t.effects.push(...e):t.effects.push(e):Hb(e)}function Z1(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e;let o=t.el;for(;!o&&t.component;)t=t.component.subTree,o=t.el;n.el=o,r&&r.subTree===n&&(r.vnode.el=o,v5(r,o))}function CAe(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Ft=Symbol.for("v-fgt"),u0=Symbol.for("v-txt"),Ss=Symbol.for("v-cmt"),sm=Symbol.for("v-stc"),G4=[];let kl=null;function H(e=!1){G4.push(kl=e?null:[])}function Gfe(){G4.pop(),kl=G4[G4.length-1]||null}let km=1;function Yb(e,t=!1){km+=e,e<0&&kl&&t&&(kl.hasOnce=!0)}function Kfe(e){return e.dynamicChildren=km>0?kl||em:null,Gfe(),km>0&&kl&&kl.push(e),e}function J(e,t,n,r,o,a){return Kfe(L(e,t,n,r,o,a,!0))}function Je(e,t,n,r,o){return Kfe(O(e,t,n,r,o,!0))}function Ui(e){return e?e.__v_isVNode===!0:!1}function Sd(e,t){return e.type===t.type&&e.key===t.key}function wAe(e){}const qfe=({key:e})=>e??null,zC=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Mr(e)||Mo(e)||Er(e)?{i:Ha,r:e,k:t,f:!!n}:e:null);function L(e,t=null,n=null,r=0,o=null,a=e===Ft?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&qfe(t),ref:t&&zC(t),scopeId:d5,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:a,patchFlag:r,dynamicProps:o,dynamicChildren:null,appContext:null,ctx:Ha};return l?(KU(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=Mr(n)?8:16),km>0&&!s&&kl&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&kl.push(c),c}const O=EAe;function EAe(e,t=null,n=null,r=0,o=null,a=!1){if((!e||e===_fe)&&(e=Ss),Ui(e)){const l=Cl(e,t,!0);return n&&KU(l,n),km>0&&!a&&kl&&(l.shapeFlag&6?kl[kl.indexOf(e)]=l:kl.push(l)),l.patchFlag=-2,l}if(RAe(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:l,style:c}=t;l&&!Mr(l)&&(t.class=le(l)),Yi(c)&&(u5(c)&&!Wn(c)&&(c=Si({},c)),t.style=Ge(c))}const s=Mr(e)?1:E8(e)?128:sfe(e)?64:Yi(e)?4:Er(e)?2:0;return L(e,t,n,r,o,s,a,!0)}function Sa(e){return e?u5(e)||Tfe(e)?Si({},e):e:null}function Cl(e,t,n=!1,r=!1){const{props:o,ref:a,patchFlag:s,children:l,transition:c}=e,d=t?zt(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&qfe(d),ref:t&&t.ref?n&&a?Wn(a)?a.concat(zC(t)):[a,zC(t)]:zC(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:l,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ft?s===-1?16:s|16:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Cl(e.ssContent),ssFallback:e.ssFallback&&Cl(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Vh(h,c.clone(h)),h}function We(e=" ",t=0){return O(u0,null,e,t)}function xh(e,t){const n=O(sm,null,e);return n.staticCount=t,n}function Me(e="",t=!1){return t?(H(),Je(Ss,null,e)):O(Ss,null,e)}function mu(e){return e==null||typeof e=="boolean"?O(Ss):Wn(e)?O(Ft,null,e.slice()):Ui(e)?Wp(e):O(u0,null,String(e))}function Wp(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Cl(e)}function KU(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Wn(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),KU(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Tfe(t)?t._ctx=Ha:o===3&&Ha&&(Ha.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Er(t)?(t={default:t,_ctx:Ha},n=32):(t=String(t),r&64?(n=16,t=[We(t)]):n=8);e.children=t,e.shapeFlag|=n}function zt(...e){const t={};for(let n=0;nUa||Ha;let T8,Mj;{const e=$_(),t=(n,r)=>{let o;return(o=e[n])||(o=e[n]=[]),o.push(r),a=>{o.length>1?o.forEach(s=>s(a)):o[0](a)}};T8=t("__VUE_INSTANCE_SETTERS__",n=>Ua=n),Mj=t("__VUE_SSR_SETTERS__",n=>xy=n)}const xm=e=>{const t=Ua;return T8(e),e.scope.on(),()=>{e.scope.off(),T8(t)}},Oj=()=>{Ua&&Ua.scope.off(),T8(null)};function Xfe(e){return e.vnode.shapeFlag&4}let xy=!1;function Zfe(e,t=!1,n=!1){t&&Mj(t);const{props:r,children:o}=e.vnode,a=Xfe(e);nAe(e,r,a,t),sAe(e,o,n||t);const s=a?IAe(e,t):void 0;return t&&Mj(!1),s}function IAe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ij);const{setup:r}=n;if(r){Nh();const o=e.setupContext=r.length>1?Qfe(e):null,a=xm(e),s=Qy(r,e,0,[e.props,o]),l=t5(s);if(Fh(),a(),(l||e.sp)&&!l0(e)&&BU(e),l){if(s.then(Oj,Oj),t)return s.then(c=>{$j(e,c,t)}).catch(c=>{zm(c,e,0)});e.asyncDep=s}else $j(e,s,t)}else Jfe(e,t)}function $j(e,t,n){Er(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Yi(t)&&(e.setupState=RU(t)),Jfe(e,n)}let A8,Bj;function LAe(e){A8=e,Bj=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,O5e))}}const DAe=()=>!A8;function Jfe(e,t,n){const r=e.type;if(!e.render){if(!t&&A8&&!r.render){const o=r.template||UU(e).template;if(o){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,d=Si(Si({isCustomElement:a,delimiters:l},s),c);r.render=A8(o,d)}}e.render=r.render||ka,Bj&&Bj(e)}{const o=xm(e);Nh();try{Y5e(e)}finally{Fh(),o()}}}const PAe={get(e,t){return yl(e,"get",""),e[t]}};function Qfe(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,PAe),slots:e.slots,emit:e.emit,expose:t}}function j_(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(RU(c5(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in W4)return W4[n](e)},has(t,n){return n in t||n in W4}})):e.proxy}function Nj(e,t=!0){return Er(e)?e.displayName||e.name:e.name||t&&e.__name}function RAe(e){return Er(e)&&"__vccOpts"in e}const F=(e,t)=>QTe(e,t,xy);function da(e,t,n){try{Yb(-1);const r=arguments.length;return r===2?Yi(t)&&!Wn(t)?Ui(t)?O(e,null,[t]):O(e,t):O(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Ui(n)&&(n=[n]),O(e,t,n))}finally{Yb(1)}}function MAe(){}function OAe(e,t,n,r){const o=n[r];if(o&&ehe(o,e))return o;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function ehe(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&kl&&kl.push(e),!0}const the="3.5.22",$Ae=ka,BAe=l5e,NAe=L1,FAe=ife,jAe={createComponentInstance:Yfe,setupComponent:Zfe,renderComponentRoot:VC,setCurrentRenderingInstance:Gb,isVNode:Ui,normalizeVNode:mu,getComponentPublicInstance:j_,ensureValidVNode:zU,pushWarningContext:i5e,popWarningContext:o5e},VAe=jAe,zAe=null,UAe=null,HAe=null;/** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Fj;const Qte=typeof window<"u"&&window.trustedTypes;if(Qte)try{Fj=Qte.createPolicy("vue",{createHTML:e=>e})}catch{}const nhe=Fj?e=>Fj.createHTML(e):e=>e,WAe="http://www.w3.org/2000/svg",GAe="http://www.w3.org/1998/Math/MathML",ph=typeof document<"u"?document:null,ene=ph&&ph.createElement("template"),KAe={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const o=t==="svg"?ph.createElementNS(WAe,e):t==="mathml"?ph.createElementNS(GAe,e):n?ph.createElement(e,{is:n}):ph.createElement(e);return e==="select"&&r&&r.multiple!=null&&o.setAttribute("multiple",r.multiple),o},createText:e=>ph.createTextNode(e),createComment:e=>ph.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ph.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,o,a){const s=n?n.previousSibling:t.lastChild;if(o&&(o===a||o.nextSibling))for(;t.insertBefore(o.cloneNode(!0),n),!(o===a||!(o=o.nextSibling)););else{ene.innerHTML=nhe(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=ene.content;if(r==="svg"||r==="mathml"){const c=l.firstChild;for(;c.firstChild;)l.appendChild(c.firstChild);l.removeChild(c)}t.insertBefore(l,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},kp="transition",z2="animation",Cy=Symbol("_vtc"),rhe={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},ihe=Si({},$U,rhe),qAe=e=>(e.displayName="Transition",e.props=ihe,e),xs=qAe((e,{slots:t})=>da(dfe,ohe(e),t)),cv=(e,t=[])=>{Wn(e)?e.forEach(n=>n(...t)):e&&e(...t)},tne=e=>e?Wn(e)?e.some(t=>t.length>1):e.length>1:!1;function ohe(e){const t={};for(const j in e)j in rhe||(t[j]=e[j]);if(e.css===!1)return t;const{name:n="v",type:r,duration:o,enterFromClass:a=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:l=`${n}-enter-to`,appearFromClass:c=a,appearActiveClass:d=s,appearToClass:h=l,leaveFromClass:p=`${n}-leave-from`,leaveActiveClass:m=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,y=YAe(o),S=y&&y[0],k=y&&y[1],{onBeforeEnter:C,onEnter:x,onEnterCancelled:E,onLeave:_,onLeaveCancelled:T,onBeforeAppear:D=C,onAppear:P=x,onAppearCancelled:M=E}=t,$=(j,U,z,G)=>{j._enterCancelled=G,Np(j,U?h:l),Np(j,U?d:s),z&&z()},I=(j,U)=>{j._isLeaving=!1,Np(j,p),Np(j,g),Np(j,m),U&&U()},N=j=>(U,z)=>{const G=j?P:x,X=()=>$(U,j,z);cv(G,[U,X]),nne(()=>{Np(U,j?c:a),Qd(U,j?h:l),tne(G)||rne(U,r,S,X)})};return Si(t,{onBeforeEnter(j){cv(C,[j]),Qd(j,a),Qd(j,s)},onBeforeAppear(j){cv(D,[j]),Qd(j,c),Qd(j,d)},onEnter:N(!1),onAppear:N(!0),onLeave(j,U){j._isLeaving=!0;const z=()=>I(j,U);Qd(j,p),j._enterCancelled?(Qd(j,m),jj(j)):(jj(j),Qd(j,m)),nne(()=>{j._isLeaving&&(Np(j,p),Qd(j,g),tne(_)||rne(j,r,k,z))}),cv(_,[j,z])},onEnterCancelled(j){$(j,!1,void 0,!0),cv(E,[j])},onAppearCancelled(j){$(j,!0,void 0,!0),cv(M,[j])},onLeaveCancelled(j){I(j),cv(T,[j])}})}function YAe(e){if(e==null)return null;if(Yi(e))return[hP(e.enter),hP(e.leave)];{const t=hP(e);return[t,t]}}function hP(e){return Fb(e)}function Qd(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Cy]||(e[Cy]=new Set)).add(t)}function Np(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Cy];n&&(n.delete(t),n.size||(e[Cy]=void 0))}function nne(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let XAe=0;function rne(e,t,n,r){const o=e._endId=++XAe,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:c}=she(e,t);if(!s)return r();const d=s+"end";let h=0;const p=()=>{e.removeEventListener(d,m),a()},m=g=>{g.target===e&&++h>=c&&p()};setTimeout(()=>{h(n[y]||"").split(", "),o=r(`${kp}Delay`),a=r(`${kp}Duration`),s=ine(o,a),l=r(`${z2}Delay`),c=r(`${z2}Duration`),d=ine(l,c);let h=null,p=0,m=0;t===kp?s>0&&(h=kp,p=s,m=a.length):t===z2?d>0&&(h=z2,p=d,m=c.length):(p=Math.max(s,d),h=p>0?s>d?kp:z2:null,m=h?h===kp?a.length:c.length:0);const g=h===kp&&/\b(?:transform|all)(?:,|$)/.test(r(`${kp}Property`).toString());return{type:h,timeout:p,propCount:m,hasTransform:g}}function ine(e,t){for(;e.lengthone(n)+one(e[r])))}function one(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function jj(e){return(e?e.ownerDocument:document).body.offsetHeight}function ZAe(e,t,n){const r=e[Cy];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const I8=Symbol("_vod"),ahe=Symbol("_vsh"),Qo={name:"show",beforeMount(e,{value:t},{transition:n}){e[I8]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):U2(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),U2(e,!0),r.enter(e)):r.leave(e,()=>{U2(e,!1)}):U2(e,t))},beforeUnmount(e,{value:t}){U2(e,t)}};function U2(e,t){e.style.display=t?e[I8]:"none",e[ahe]=!t}function JAe(){Qo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const lhe=Symbol("");function uhe(e){const t=go();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>L8(a,o))},r=()=>{const o=e(t.proxy);t.ce?L8(t.ce,o):Vj(t.subTree,o),n(o)};FU(()=>{Hb(r)}),vn(()=>{Pt(r,ka,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),vi(()=>o.disconnect())})}function Vj(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Vj(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)L8(e.el,t);else if(e.type===Ft)e.children.forEach(n=>Vj(n,t));else if(e.type===sm){let{el:n,anchor:r}=e;for(;n&&(L8(n,t),n!==r);)n=n.nextSibling}}function L8(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const a=Mde(t[o]);n.setProperty(`--${o}`,a),r+=`--${o}: ${a};`}n[lhe]=r}}const QAe=/(?:^|;)\s*display\s*:/;function eIe(e,t,n){const r=e.style,o=Mr(n);let a=!1;if(n&&!o){if(t)if(Mr(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&UC(r,l,"")}else for(const s in t)n[s]==null&&UC(r,s,"");for(const s in n)s==="display"&&(a=!0),UC(r,s,n[s])}else if(o){if(t!==n){const s=r[lhe];s&&(n+=";"+s),r.cssText=n,a=QAe.test(n)}}else t&&e.removeAttribute("style");I8 in e&&(e[I8]=a?r.display:"",e[ahe]&&(r.display="none"))}const sne=/\s*!important$/;function UC(e,t,n){if(Wn(n))n.forEach(r=>UC(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=tIe(e,t);sne.test(n)?e.setProperty(bl(r),n.replace(sne,""),"important"):e[r]=n}}const ane=["Webkit","Moz","ms"],pP={};function tIe(e,t){const n=pP[t];if(n)return n;let r=Ro(t);if(r!=="filter"&&r in e)return pP[t]=r;r=P0(r);for(let o=0;ovP||(oIe.then(()=>vP=0),vP=Date.now());function aIe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Gc(lIe(r,n.value),t,5,[r])};return n.value=e,n.attached=sIe(),n}function lIe(e,t){if(Wn(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>o=>!o._stopped&&r&&r(o))}else return t}const hne=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,uIe=(e,t,n,r,o,a)=>{const s=o==="svg";t==="class"?ZAe(e,r,s):t==="style"?eIe(e,n,r):L0(t)?QT(t)||rIe(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):cIe(e,t,r,s))?(cne(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&une(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Mr(r))?cne(e,Ro(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),une(e,t,r,s))};function cIe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&hne(t)&&Er(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const o=e.tagName;if(o==="IMG"||o==="VIDEO"||o==="CANVAS"||o==="SOURCE")return!1}return hne(t)&&Mr(n)?!1:t in e}const pne={};function che(e,t,n){let r=ke(e,t);O_(r)&&(r=Si({},r,t));class o extends m5{constructor(s){super(r,s,n)}}return o.def=r,o}const dIe=((e,t)=>che(e,t,bhe)),fIe=typeof HTMLElement<"u"?HTMLElement:class{};class m5 extends fIe{constructor(t,n={},r=Ey){super(),this._def=t,this._props=n,this._createApp=r,this._isVueCE=!0,this._instance=null,this._app=null,this._nonce=this._def.nonce,this._connected=!1,this._resolved=!1,this._numberProps=null,this._styleChildren=new WeakSet,this._ob=null,this.shadowRoot&&r!==Ey?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Si({},t.shadowRootOptions,{mode:"open"})),this._root=this.shadowRoot):this._root=this}connectedCallback(){if(!this.isConnected)return;!this.shadowRoot&&!this._resolved&&this._parseSlots(),this._connected=!0;let t=this;for(;t=t&&(t.parentNode||t.host);)if(t instanceof m5){this._parent=t;break}this._instance||(this._resolved?this._mount(this._def):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._inheritParentContext(t))}_inheritParentContext(t=this._parent){t&&this._app&&Object.setPrototypeOf(this._app._context.provides,t._instance.provides)}disconnectedCallback(){this._connected=!1,_n(()=>{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,this._teleportTargets&&(this._teleportTargets.clear(),this._teleportTargets=void 0))})}_processMutations(t){for(const n of t)this._setAttr(n.attributeName)}_resolveDef(){if(this._pendingResolve)return;for(let r=0;r{this._resolved=!0,this._pendingResolve=void 0;const{props:a,styles:s}=r;let l;if(a&&!Wn(a))for(const c in a){const d=a[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=Fb(this._props[c])),(l||(l=Object.create(null)))[Ro(c)]=!0)}this._numberProps=l,this._resolveProps(r),this.shadowRoot&&this._applyStyles(s),this._mount(r)},n=this._def.__asyncLoader;n?this._pendingResolve=n().then(r=>{r.configureApp=this._def.configureApp,t(this._def=r,!0)}):t(this._def)}_mount(t){this._app=this._createApp(t),this._inheritParentContext(),t.configureApp&&t.configureApp(this._app),this._app._ceVNode=this._createVNode(),this._app.mount(this._root);const n=this._instance&&this._instance.exposed;if(n)for(const r in n)Gi(this,r)||Object.defineProperty(this,r,{get:()=>et(n[r])})}_resolveProps(t){const{props:n}=t,r=Wn(n)?n:Object.keys(n||{});for(const o of Object.keys(this))o[0]!=="_"&&r.includes(o)&&this._setProp(o,this[o]);for(const o of r.map(Ro))Object.defineProperty(this,o,{get(){return this._getProp(o)},set(a){this._setProp(o,a,!0,!0)}})}_setAttr(t){if(t.startsWith("data-v-"))return;const n=this.hasAttribute(t);let r=n?this.getAttribute(t):pne;const o=Ro(t);n&&this._numberProps&&this._numberProps[o]&&(r=Fb(r)),this._setProp(o,r,!1,!0)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,o=!1){if(n!==this._props[t]&&(n===pne?delete this._props[t]:(this._props[t]=n,t==="key"&&this._app&&(this._app._ceVNode.key=n)),o&&this._instance&&this._update(),r)){const a=this._ob;a&&(this._processMutations(a.takeRecords()),a.disconnect()),n===!0?this.setAttribute(bl(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(bl(t),n+""):n||this.removeAttribute(bl(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Kc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=O(this._def,Si(t,this._props));return this._instance||(n.ce=r=>{this._instance=r,r.ce=this,r.isCE=!0;const o=(a,s)=>{this.dispatchEvent(new CustomEvent(a,O_(s[0])?Si({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{o(a,s),bl(a)!==a&&o(bl(a),s)},this._setParent()}),n}_applyStyles(t,n){if(!t)return;if(n){if(n===this._def||this._styleChildren.has(n))return;this._styleChildren.add(n)}const r=this._nonce;for(let o=t.length-1;o>=0;o--){const a=document.createElement("style");r&&a.setAttribute("nonce",r),a.textContent=t[o],this.shadowRoot.prepend(a)}}_parseSlots(){const t=this._slots={};let n;for(;n=this.firstChild;){const r=n.nodeType===1&&n.getAttribute("slot")||"default";(t[r]||(t[r]=[])).push(n),this.removeChild(n)}}_renderSlots(){const t=this._getSlots(),n=this._instance.type.__scopeId;for(let r=0;r(n.push(...Array.from(r.querySelectorAll("slot"))),n),[])}_injectChildStyle(t){this._applyStyles(t.styles,t)}_removeChildStyle(t){}}function dhe(e){const t=go(),n=t&&t.ce;return n||null}function hIe(){const e=dhe();return e&&e.shadowRoot}function pIe(e="$style"){{const t=go();if(!t)return Ci;const n=t.type.__cssModules;if(!n)return Ci;const r=n[e];return r||Ci}}const fhe=new WeakMap,hhe=new WeakMap,D8=Symbol("_moveCb"),vne=Symbol("_enterCb"),vIe=e=>(delete e.props.mode,e),mIe=vIe({name:"TransitionGroup",props:Si({},ihe,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=go(),r=OU();let o,a;return Qa(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!_Ie(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(gIe),o.forEach(yIe);const l=o.filter(bIe);jj(n.vnode.el),l.forEach(c=>{const d=c.el,h=d.style;Qd(d,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=d[D8]=m=>{m&&m.target!==d||(!m||m.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",p),d[D8]=null,Np(d,s))};d.addEventListener("transitionend",p)}),o=[]}),()=>{const s=Mi(e),l=ohe(s);let c=s.tag||Ft;if(o=[],a)for(let d=0;d{l.split(/\s+/).forEach(c=>c&&r.classList.remove(c))}),n.split(/\s+/).forEach(l=>l&&r.classList.add(l)),r.style.display="none";const a=t.nodeType===1?t:t.parentNode;a.appendChild(r);const{hasTransform:s}=she(r);return a.removeChild(r),s}const v0=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Wn(t)?n=>rm(t,n):t};function SIe(e){e.target.composing=!0}function mne(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Fc=Symbol("_assign"),Jl={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Fc]=v0(o);const a=r||o.props&&o.props.type==="number";Sh(e,t?"change":"input",s=>{if(s.target.composing)return;let l=e.value;n&&(l=l.trim()),a&&(l=Nb(l)),e[Fc](l)}),n&&Sh(e,"change",()=>{e.value=e.value.trim()}),t||(Sh(e,"compositionstart",SIe),Sh(e,"compositionend",mne),Sh(e,"change",mne))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:a}},s){if(e[Fc]=v0(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?Nb(e.value):e.value,c=t??"";l!==c&&(document.activeElement===e&&e.type!=="range"&&(r&&t===n||o&&e.value.trim()===c)||(e.value=c))}},qU={deep:!0,created(e,t,n){e[Fc]=v0(n),Sh(e,"change",()=>{const r=e._modelValue,o=wy(e),a=e.checked,s=e[Fc];if(Wn(r)){const l=B_(r,o),c=l!==-1;if(a&&!c)s(r.concat(o));else if(!a&&c){const d=[...r];d.splice(l,1),s(d)}}else if(D0(r)){const l=new Set(r);a?l.add(o):l.delete(o),s(l)}else s(phe(e,a))})},mounted:gne,beforeUpdate(e,t,n){e[Fc]=v0(n),gne(e,t,n)}};function gne(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(Wn(t))o=B_(t,r.props.value)>-1;else if(D0(t))o=t.has(r.props.value);else{if(t===n)return;o=Bh(t,phe(e,!0))}e.checked!==o&&(e.checked=o)}const YU={created(e,{value:t},n){e.checked=Bh(t,n.props.value),e[Fc]=v0(n),Sh(e,"change",()=>{e[Fc](wy(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Fc]=v0(r),t!==n&&(e.checked=Bh(t,r.props.value))}},XU={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=D0(t);Sh(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?Nb(wy(s)):wy(s));e[Fc](e.multiple?o?new Set(a):a:a[0]),e._assigning=!0,_n(()=>{e._assigning=!1})}),e[Fc]=v0(r)},mounted(e,{value:t}){yne(e,t)},beforeUpdate(e,t,n){e[Fc]=v0(n)},updated(e,{value:t}){e._assigning||yne(e,t)}};function yne(e,t){const n=e.multiple,r=Wn(t);if(!(n&&!r&&!D0(t))){for(let o=0,a=e.options.length;oString(d)===String(l)):s.selected=B_(t,l)>-1}else s.selected=t.has(l);else if(Bh(wy(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function wy(e){return"_value"in e?e._value:e.value}function phe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const g5={created(e,t,n){lx(e,t,n,null,"created")},mounted(e,t,n){lx(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){lx(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){lx(e,t,n,r,"updated")}};function vhe(e,t){switch(e){case"SELECT":return XU;case"TEXTAREA":return Jl;default:switch(t){case"checkbox":return qU;case"radio":return YU;default:return Jl}}}function lx(e,t,n,r,o){const s=vhe(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}function kIe(){Jl.getSSRProps=({value:e})=>({value:e}),YU.getSSRProps=({value:e},t)=>{if(t.props&&Bh(t.props.value,e))return{checked:!0}},qU.getSSRProps=({value:e},t)=>{if(Wn(e)){if(t.props&&B_(e,t.props.value)>-1)return{checked:!0}}else if(D0(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},g5.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=vhe(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const xIe=["ctrl","shift","alt","meta"],CIe={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)=>xIe.some(n=>e[`${n}Key`]&&!t.includes(n))},us=(e,t)=>{const n=e._withMods||(e._withMods={}),r=t.join(".");return n[r]||(n[r]=((o,...a)=>{for(let s=0;s{const n=e._withKeys||(e._withKeys={}),r=t.join(".");return n[r]||(n[r]=(o=>{if(!("key"in o))return;const a=bl(o.key);if(t.some(s=>s===a||wIe[s]===a))return e(o)}))},mhe=Si({patchProp:uIe},KAe);let K4,bne=!1;function ghe(){return K4||(K4=Rfe(mhe))}function yhe(){return K4=bne?K4:Mfe(mhe),bne=!0,K4}const Kc=((...e)=>{ghe().render(...e)}),EIe=((...e)=>{yhe().hydrate(...e)}),Ey=((...e)=>{const t=ghe().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=She(r);if(!o)return;const a=t._component;!Er(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,_he(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}),bhe=((...e)=>{const t=yhe().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=She(r);if(o)return n(o,!0,_he(o))},t});function _he(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function She(e){return Mr(e)?document.querySelector(e):e}let _ne=!1;const TIe=()=>{_ne||(_ne=!0,kIe(),JAe())},AIe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:dfe,BaseTransitionPropsValidators:$U,Comment:Ss,DeprecationTypes:HAe,EffectScope:EU,ErrorCodes:a5e,ErrorTypeStrings:BAe,Fragment:Ft,KeepAlive:D5e,ReactiveEffect:jb,Static:sm,Suspense:bAe,Teleport:Um,Text:u0,TrackOpTypes:e5e,Transition:xs,TransitionGroup:t3,TriggerOpTypes:t5e,VueElement:m5,assertNumber:s5e,callWithAsyncErrorHandling:Gc,callWithErrorHandling:Qy,camelize:Ro,capitalize:P0,cloneVNode:Cl,compatUtils:UAe,computed:F,createApp:Ey,createBlock:Je,createCommentVNode:Me,createElementBlock:J,createElementVNode:L,createHydrationRenderer:Mfe,createPropsRestProxy:K5e,createRenderer:Rfe,createSSRApp:bhe,createSlots:wo,createStaticVNode:xh,createTextVNode:We,createVNode:O,customRef:Zde,defineAsyncComponent:Hm,defineComponent:ke,defineCustomElement:che,defineEmits:B5e,defineExpose:N5e,defineModel:V5e,defineOptions:F5e,defineProps:$5e,defineSSRCustomElement:dIe,defineSlots:j5e,devtools:NAe,effect:CTe,effectScope:TU,getCurrentInstance:go,getCurrentScope:i5,getCurrentWatcher:n5e,getTransitionRawChildren:f5,guardReactiveProps:Sa,h:da,handleError:zm,hasInjectionContext:Cfe,hydrate:EIe,hydrateOnIdle:C5e,hydrateOnInteraction:A5e,hydrateOnMediaQuery:T5e,hydrateOnVisible:E5e,initCustomFormatter:MAe,initDirectivesForSSR:TIe,inject:Pn,isMemoSame:ehe,isProxy:u5,isReactive:gf,isReadonly:jh,isRef:Mo,isRuntimeOnly:DAe,isShallow:sc,isVNode:Ui,markRaw:c5,mergeDefaults:W5e,mergeModels:G5e,mergeProps:zt,nextTick:_n,normalizeClass:le,normalizeProps:Ki,normalizeStyle:Ge,onActivated:hfe,onBeforeMount:vfe,onBeforeUnmount:Oo,onBeforeUpdate:FU,onDeactivated:NU,onErrorCaptured:bfe,onMounted:vn,onRenderTracked:yfe,onRenderTriggered:gfe,onScopeDispose:AU,onServerPrefetch:mfe,onUnmounted:vi,onUpdated:Qa,onWatcherCleanup:Qde,openBlock:H,popScopeId:f5e,provide:ti,proxyRefs:RU,pushScopeId:d5e,queuePostFlushCb:Hb,reactive:Yt,readonly:Ub,ref:fe,registerRuntimeCompiler:LAe,render:Kc,renderList:pn,renderSlot:dt,resolveComponent:Pe,resolveDirective:e3,resolveDynamicComponent:Wa,resolveFilter:zAe,resolveTransitionHooks:ky,setBlockTracking:Yb,setDevtoolsHook:FAe,setTransitionHooks:Vh,shallowReactive:PU,shallowReadonly:HTe,shallowRef:a0,ssrContextKey:Nfe,ssrUtils:VAe,stop:wTe,toDisplayString:Ve,toHandlerKey:nm,toHandlers:M5e,toRaw:Mi,toRef:Iu,toRefs:nn,toValue:KTe,transformVNodeArgs:wAe,triggerRef:GTe,unref:et,useAttrs:H5e,useCssModule:pIe,useCssVars:uhe,useHost:dhe,useId:m5e,useModel:dAe,useSSRContext:Ffe,useShadowRoot:hIe,useSlots:U5e,useTemplateRef:g5e,useTransitionState:OU,vModelCheckbox:qU,vModelDynamic:g5,vModelRadio:YU,vModelSelect:XU,vModelText:Jl,vShow:Qo,version:the,warn:$Ae,watch:Pt,watchEffect:Os,watchPostEffect:uAe,watchSyncEffect:jfe,withAsyncContext:q5e,withCtx:de,withDefaults:z5e,withDirectives:wi,withKeys:Ch,withMemo:OAe,withModifiers:us,withScopeId:h5e},Symbol.toStringTag,{value:"Module"}));/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const D1=typeof document<"u";function khe(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function IIe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&khe(e.default)}const io=Object.assign;function mP(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ad(o)?o.map(e):e(o)}return n}const q4=()=>{},Ad=Array.isArray,xhe=/#/g,LIe=/&/g,DIe=/\//g,PIe=/=/g,RIe=/\?/g,Che=/\+/g,MIe=/%5B/g,OIe=/%5D/g,whe=/%5E/g,$Ie=/%60/g,Ehe=/%7B/g,BIe=/%7C/g,The=/%7D/g,NIe=/%20/g;function ZU(e){return encodeURI(""+e).replace(BIe,"|").replace(MIe,"[").replace(OIe,"]")}function FIe(e){return ZU(e).replace(Ehe,"{").replace(The,"}").replace(whe,"^")}function zj(e){return ZU(e).replace(Che,"%2B").replace(NIe,"+").replace(xhe,"%23").replace(LIe,"%26").replace($Ie,"`").replace(Ehe,"{").replace(The,"}").replace(whe,"^")}function jIe(e){return zj(e).replace(PIe,"%3D")}function VIe(e){return ZU(e).replace(xhe,"%23").replace(RIe,"%3F")}function zIe(e){return e==null?"":VIe(e).replace(DIe,"%2F")}function Xb(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const UIe=/\/$/,HIe=e=>e.replace(UIe,"");function gP(e,t,n="/"){let r,o={},a="",s="";const l=t.indexOf("#");let c=t.indexOf("?");return l=0&&(c=-1),c>-1&&(r=t.slice(0,c),a=t.slice(c+1,l>-1?l:t.length),o=e(a)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=qIe(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:Xb(s)}}function WIe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Sne(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function GIe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Ty(t.matched[r],n.matched[o])&&Ahe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ty(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Ahe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!KIe(e[n],t[n]))return!1;return!0}function KIe(e,t){return Ad(e)?kne(e,t):Ad(t)?kne(t,e):e===t}function kne(e,t){return Ad(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function qIe(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/"),o=r[r.length-1];(o===".."||o===".")&&r.push("");let a=n.length-1,s,l;for(s=0;s1&&a--;else break;return n.slice(0,a).join("/")+"/"+r.slice(s).join("/")}const xp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var Zb;(function(e){e.pop="pop",e.push="push"})(Zb||(Zb={}));var Y4;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Y4||(Y4={}));function YIe(e){if(!e)if(D1){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),HIe(e)}const XIe=/^[^#]+#/;function ZIe(e,t){return e.replace(XIe,"#")+t}function JIe(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const y5=()=>({left:window.scrollX,top:window.scrollY});function QIe(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),o=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!o)return;t=JIe(o,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 xne(e,t){return(history.state?history.state.position-t:-1)+e}const Uj=new Map;function eLe(e,t){Uj.set(e,t)}function tLe(e){const t=Uj.get(e);return Uj.delete(e),t}let nLe=()=>location.protocol+"//"+location.host;function Ihe(e,t){const{pathname:n,search:r,hash:o}=t,a=e.indexOf("#");if(a>-1){let l=o.includes(e.slice(a))?e.slice(a).length:1,c=o.slice(l);return c[0]!=="/"&&(c="/"+c),Sne(c,"")}return Sne(n,e)+r+o}function rLe(e,t,n,r){let o=[],a=[],s=null;const l=({state:m})=>{const g=Ihe(e,location),y=n.value,S=t.value;let k=0;if(m){if(n.value=g,t.value=m,s&&s===y){s=null;return}k=S?m.position-S.position:0}else r(g);o.forEach(C=>{C(n.value,y,{delta:k,type:Zb.pop,direction:k?k>0?Y4.forward:Y4.back:Y4.unknown})})};function c(){s=n.value}function d(m){o.push(m);const g=()=>{const y=o.indexOf(m);y>-1&&o.splice(y,1)};return a.push(g),g}function h(){const{history:m}=window;m.state&&m.replaceState(io({},m.state,{scroll:y5()}),"")}function p(){for(const m of a)m();a=[],window.removeEventListener("popstate",l),window.removeEventListener("beforeunload",h)}return window.addEventListener("popstate",l),window.addEventListener("beforeunload",h,{passive:!0}),{pauseListeners:c,listen:d,destroy:p}}function Cne(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?y5():null}}function iLe(e){const{history:t,location:n}=window,r={value:Ihe(e,n)},o={value:t.state};o.value||a(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function a(c,d,h){const p=e.indexOf("#"),m=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:nLe()+e+c;try{t[h?"replaceState":"pushState"](d,"",m),o.value=d}catch(g){console.error(g),n[h?"replace":"assign"](m)}}function s(c,d){const h=io({},t.state,Cne(o.value.back,c,o.value.forward,!0),d,{position:o.value.position});a(c,h,!0),r.value=c}function l(c,d){const h=io({},o.value,t.state,{forward:c,scroll:y5()});a(h.current,h,!0);const p=io({},Cne(r.value,c,null),{position:h.position+1},d);a(c,p,!1),r.value=c}return{location:r,state:o,push:l,replace:s}}function oLe(e){e=YIe(e);const t=iLe(e),n=rLe(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=io({location:"",base:e,go:r,createHref:ZIe.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function sLe(e){return typeof e=="string"||e&&typeof e=="object"}function Lhe(e){return typeof e=="string"||typeof e=="symbol"}const Dhe=Symbol("");var wne;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(wne||(wne={}));function Ay(e,t){return io(new Error,{type:e,[Dhe]:!0},t)}function ah(e,t){return e instanceof Error&&Dhe in e&&(t==null||!!(e.type&t))}const Ene="[^/]+?",aLe={sensitive:!1,strict:!1,start:!0,end:!0},lLe=/[.+*?^${}()[\]/\\]/g;function uLe(e,t){const n=io({},aLe,t),r=[];let o=n.start?"^":"";const a=[];for(const d of e){const h=d.length?[]:[90];n.strict&&!d.length&&(o+="/");for(let p=0;pt.length?t.length===1&&t[0]===80?1:-1:0}function Phe(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const dLe={type:0,value:""},fLe=/[a-zA-Z0-9_]/;function hLe(e){if(!e)return[[]];if(e==="/")return[[dLe]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(g){throw new Error(`ERR (${n})/"${d}": ${g}`)}let n=0,r=n;const o=[];let a;function s(){a&&o.push(a),a=[]}let l=0,c,d="",h="";function p(){d&&(n===0?a.push({type:0,value:d}):n===1||n===2||n===3?(a.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${d}) must be alone in its segment. eg: '/:ids+.`),a.push({type:1,value:d,regexp:h,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),d="")}function m(){d+=c}for(;l{s(E)}:q4}function s(p){if(Lhe(p)){const m=r.get(p);m&&(r.delete(p),n.splice(n.indexOf(m),1),m.children.forEach(s),m.alias.forEach(s))}else{const m=n.indexOf(p);m>-1&&(n.splice(m,1),p.record.name&&r.delete(p.record.name),p.children.forEach(s),p.alias.forEach(s))}}function l(){return n}function c(p){const m=yLe(p,n);n.splice(m,0,p),p.record.name&&!Lne(p)&&r.set(p.record.name,p)}function d(p,m){let g,y={},S,k;if("name"in p&&p.name){if(g=r.get(p.name),!g)throw Ay(1,{location:p});k=g.record.name,y=io(Ane(m.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),p.params&&Ane(p.params,g.keys.map(E=>E.name))),S=g.stringify(y)}else if(p.path!=null)S=p.path,g=n.find(E=>E.re.test(S)),g&&(y=g.parse(S),k=g.record.name);else{if(g=m.name?r.get(m.name):n.find(E=>E.re.test(m.path)),!g)throw Ay(1,{location:p,currentLocation:m});k=g.record.name,y=io({},m.params,p.params),S=g.stringify(y)}const C=[];let x=g;for(;x;)C.unshift(x.record),x=x.parent;return{name:k,path:S,params:y,matched:C,meta:gLe(C)}}e.forEach(p=>a(p));function h(){n.length=0,r.clear()}return{addRoute:a,resolve:d,removeRoute:s,clearRoutes:h,getRoutes:l,getRecordMatcher:o}}function Ane(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Ine(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:mLe(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 mLe(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="object"?n[r]:n;return t}function Lne(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function gLe(e){return e.reduce((t,n)=>io(t,n.meta),{})}function Dne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function yLe(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Phe(e,t[a])<0?r=a:n=a+1}const o=bLe(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function bLe(e){let t=e;for(;t=t.parent;)if(Rhe(t)&&Phe(e,t)===0)return t}function Rhe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function _Le(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let o=0;oa&&zj(a)):[r&&zj(r)]).forEach(a=>{a!==void 0&&(t+=(t.length?"&":"")+n,a!=null&&(t+="="+a))})}return t}function SLe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ad(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const kLe=Symbol(""),Rne=Symbol(""),b5=Symbol(""),JU=Symbol(""),Hj=Symbol("");function H2(){let e=[];function t(r){return e.push(r),()=>{const o=e.indexOf(r);o>-1&&e.splice(o,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Gp(e,t,n,r,o,a=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,c)=>{const d=m=>{m===!1?c(Ay(4,{from:n,to:t})):m instanceof Error?c(m):sLe(m)?c(Ay(2,{from:t,to:m})):(s&&r.enterCallbacks[o]===s&&typeof m=="function"&&s.push(m),l())},h=a(()=>e.call(r&&r.instances[o],t,n,d));let p=Promise.resolve(h);e.length<3&&(p=p.then(d)),p.catch(m=>c(m))})}function yP(e,t,n,r,o=a=>a()){const a=[];for(const s of e)for(const l in s.components){let c=s.components[l];if(!(t!=="beforeRouteEnter"&&!s.instances[l]))if(khe(c)){const h=(c.__vccOpts||c)[t];h&&a.push(Gp(h,n,r,s,l,o))}else{let d=c();a.push(()=>d.then(h=>{if(!h)throw new Error(`Couldn't resolve component "${l}" at "${s.path}"`);const p=IIe(h)?h.default:h;s.mods[l]=h,s.components[l]=p;const g=(p.__vccOpts||p)[t];return g&&Gp(g,n,r,s,l,o)()}))}}return a}function Mne(e){const t=Pn(b5),n=Pn(JU),r=F(()=>{const c=et(e.to);return t.resolve(c)}),o=F(()=>{const{matched:c}=r.value,{length:d}=c,h=c[d-1],p=n.matched;if(!h||!p.length)return-1;const m=p.findIndex(Ty.bind(null,h));if(m>-1)return m;const g=One(c[d-2]);return d>1&&One(h)===g&&p[p.length-1].path!==g?p.findIndex(Ty.bind(null,c[d-2])):m}),a=F(()=>o.value>-1&&TLe(n.params,r.value.params)),s=F(()=>o.value>-1&&o.value===n.matched.length-1&&Ahe(n.params,r.value.params));function l(c={}){if(ELe(c)){const d=t[et(e.replace)?"replace":"push"](et(e.to)).catch(q4);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>d),d}return Promise.resolve()}return{route:r,href:F(()=>r.value.href),isActive:a,isExactActive:s,navigate:l}}function xLe(e){return e.length===1?e[0]:e}const CLe=ke({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"},viewTransition:Boolean},useLink:Mne,setup(e,{slots:t}){const n=Yt(Mne(e)),{options:r}=Pn(b5),o=F(()=>({[$ne(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[$ne(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&xLe(t.default(n));return e.custom?a:da("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:o.value},a)}}}),wLe=CLe;function ELe(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 TLe(e,t){for(const n in t){const r=t[n],o=e[n];if(typeof r=="string"){if(r!==o)return!1}else if(!Ad(o)||o.length!==r.length||r.some((a,s)=>a!==o[s]))return!1}return!0}function One(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const $ne=(e,t,n)=>e??t??n,ALe=ke({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=Pn(Hj),o=F(()=>e.route||r.value),a=Pn(Rne,0),s=F(()=>{let d=et(a);const{matched:h}=o.value;let p;for(;(p=h[d])&&!p.components;)d++;return d}),l=F(()=>o.value.matched[s.value]);ti(Rne,F(()=>s.value+1)),ti(kLe,l),ti(Hj,o);const c=fe();return Pt(()=>[c.value,l.value,e.name],([d,h,p],[m,g,y])=>{h&&(h.instances[p]=d,g&&g!==h&&d&&d===m&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),d&&h&&(!g||!Ty(h,g)||!m)&&(h.enterCallbacks[p]||[]).forEach(S=>S(d))},{flush:"post"}),()=>{const d=o.value,h=e.name,p=l.value,m=p&&p.components[h];if(!m)return Bne(n.default,{Component:m,route:d});const g=p.props[h],y=g?g===!0?d.params:typeof g=="function"?g(d):g:null,k=da(m,io({},y,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(p.instances[h]=null)},ref:c}));return Bne(n.default,{Component:k,route:d})||k}}});function Bne(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const ILe=ALe;function LLe(e){const t=vLe(e.routes,e),n=e.parseQuery||_Le,r=e.stringifyQuery||Pne,o=e.history,a=H2(),s=H2(),l=H2(),c=a0(xp);let d=xp;D1&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=mP.bind(null,ve=>""+ve),p=mP.bind(null,zIe),m=mP.bind(null,Xb);function g(ve,me){let xe,Be;return Lhe(ve)?(xe=t.getRecordMatcher(ve),Be=me):Be=ve,t.addRoute(Be,xe)}function y(ve){const me=t.getRecordMatcher(ve);me&&t.removeRoute(me)}function S(){return t.getRoutes().map(ve=>ve.record)}function k(ve){return!!t.getRecordMatcher(ve)}function C(ve,me){if(me=io({},me||c.value),typeof ve=="string"){const _e=gP(n,ve,me.path),Ne=t.resolve({path:_e.path},me),Se=o.createHref(_e.fullPath);return io(_e,Ne,{params:m(Ne.params),hash:Xb(_e.hash),redirectedFrom:void 0,href:Se})}let xe;if(ve.path!=null)xe=io({},ve,{path:gP(n,ve.path,me.path).path});else{const _e=io({},ve.params);for(const Ne in _e)_e[Ne]==null&&delete _e[Ne];xe=io({},ve,{params:p(_e)}),me.params=p(me.params)}const Be=t.resolve(xe,me),Ke=ve.hash||"";Be.params=h(m(Be.params));const ze=WIe(r,io({},ve,{hash:FIe(Ke),path:Be.path})),be=o.createHref(ze);return io({fullPath:ze,hash:Ke,query:r===Pne?SLe(ve.query):ve.query||{}},Be,{redirectedFrom:void 0,href:be})}function x(ve){return typeof ve=="string"?gP(n,ve,c.value.path):io({},ve)}function E(ve,me){if(d!==ve)return Ay(8,{from:me,to:ve})}function _(ve){return P(ve)}function T(ve){return _(io(x(ve),{replace:!0}))}function D(ve){const me=ve.matched[ve.matched.length-1];if(me&&me.redirect){const{redirect:xe}=me;let Be=typeof xe=="function"?xe(ve):xe;return typeof Be=="string"&&(Be=Be.includes("?")||Be.includes("#")?Be=x(Be):{path:Be},Be.params={}),io({query:ve.query,hash:ve.hash,params:Be.path!=null?{}:ve.params},Be)}}function P(ve,me){const xe=d=C(ve),Be=c.value,Ke=ve.state,ze=ve.force,be=ve.replace===!0,_e=D(xe);if(_e)return P(io(x(_e),{state:typeof _e=="object"?io({},Ke,_e.state):Ke,force:ze,replace:be}),me||xe);const Ne=xe;Ne.redirectedFrom=me;let Se;return!ze&&GIe(r,Be,xe)&&(Se=Ay(16,{to:Ne,from:Be}),Q(Be,Be,!0,!1)),(Se?Promise.resolve(Se):I(Ne,Be)).catch($e=>ah($e)?ah($e,2)?$e:q($e):ee($e,Ne,Be)).then($e=>{if($e){if(ah($e,2))return P(io({replace:be},x($e.to),{state:typeof $e.to=="object"?io({},Ke,$e.to.state):Ke,force:ze}),me||Ne)}else $e=j(Ne,Be,!0,be,Ke);return N(Ne,Be,$e),$e})}function M(ve,me){const xe=E(ve,me);return xe?Promise.reject(xe):Promise.resolve()}function $(ve){const me=re.values().next().value;return me&&typeof me.runWithContext=="function"?me.runWithContext(ve):ve()}function I(ve,me){let xe;const[Be,Ke,ze]=DLe(ve,me);xe=yP(Be.reverse(),"beforeRouteLeave",ve,me);for(const _e of Be)_e.leaveGuards.forEach(Ne=>{xe.push(Gp(Ne,ve,me))});const be=M.bind(null,ve,me);return xe.push(be),we(xe).then(()=>{xe=[];for(const _e of a.list())xe.push(Gp(_e,ve,me));return xe.push(be),we(xe)}).then(()=>{xe=yP(Ke,"beforeRouteUpdate",ve,me);for(const _e of Ke)_e.updateGuards.forEach(Ne=>{xe.push(Gp(Ne,ve,me))});return xe.push(be),we(xe)}).then(()=>{xe=[];for(const _e of ze)if(_e.beforeEnter)if(Ad(_e.beforeEnter))for(const Ne of _e.beforeEnter)xe.push(Gp(Ne,ve,me));else xe.push(Gp(_e.beforeEnter,ve,me));return xe.push(be),we(xe)}).then(()=>(ve.matched.forEach(_e=>_e.enterCallbacks={}),xe=yP(ze,"beforeRouteEnter",ve,me,$),xe.push(be),we(xe))).then(()=>{xe=[];for(const _e of s.list())xe.push(Gp(_e,ve,me));return xe.push(be),we(xe)}).catch(_e=>ah(_e,8)?_e:Promise.reject(_e))}function N(ve,me,xe){l.list().forEach(Be=>$(()=>Be(ve,me,xe)))}function j(ve,me,xe,Be,Ke){const ze=E(ve,me);if(ze)return ze;const be=me===xp,_e=D1?history.state:{};xe&&(Be||be?o.replace(ve.fullPath,io({scroll:be&&_e&&_e.scroll},Ke)):o.push(ve.fullPath,Ke)),c.value=ve,Q(ve,me,xe,be),q()}let U;function z(){U||(U=o.listen((ve,me,xe)=>{if(!Ce.listening)return;const Be=C(ve),Ke=D(Be);if(Ke){P(io(Ke,{replace:!0,force:!0}),Be).catch(q4);return}d=Be;const ze=c.value;D1&&eLe(xne(ze.fullPath,xe.delta),y5()),I(Be,ze).catch(be=>ah(be,12)?be:ah(be,2)?(P(io(x(be.to),{force:!0}),Be).then(_e=>{ah(_e,20)&&!xe.delta&&xe.type===Zb.pop&&o.go(-1,!1)}).catch(q4),Promise.reject()):(xe.delta&&o.go(-xe.delta,!1),ee(be,Be,ze))).then(be=>{be=be||j(Be,ze,!1),be&&(xe.delta&&!ah(be,8)?o.go(-xe.delta,!1):xe.type===Zb.pop&&ah(be,20)&&o.go(-1,!1)),N(Be,ze,be)}).catch(q4)}))}let G=H2(),X=H2(),ie;function ee(ve,me,xe){q(ve);const Be=X.list();return Be.length?Be.forEach(Ke=>Ke(ve,me,xe)):console.error(ve),Promise.reject(ve)}function W(){return ie&&c.value!==xp?Promise.resolve():new Promise((ve,me)=>{G.add([ve,me])})}function q(ve){return ie||(ie=!ve,z(),G.list().forEach(([me,xe])=>ve?xe(ve):me()),G.reset()),ve}function Q(ve,me,xe,Be){const{scrollBehavior:Ke}=e;if(!D1||!Ke)return Promise.resolve();const ze=!xe&&tLe(xne(ve.fullPath,0))||(Be||!xe)&&history.state&&history.state.scroll||null;return _n().then(()=>Ke(ve,me,ze)).then(be=>be&&QIe(be)).catch(be=>ee(be,ve,me))}const ne=ve=>o.go(ve);let ae;const re=new Set,Ce={currentRoute:c,listening:!0,addRoute:g,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:S,resolve:C,options:e,push:_,replace:T,go:ne,back:()=>ne(-1),forward:()=>ne(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:X.add,isReady:W,install(ve){const me=this;ve.component("RouterLink",wLe),ve.component("RouterView",ILe),ve.config.globalProperties.$router=me,Object.defineProperty(ve.config.globalProperties,"$route",{enumerable:!0,get:()=>et(c)}),D1&&!ae&&c.value===xp&&(ae=!0,_(o.location).catch(Ke=>{}));const xe={};for(const Ke in xp)Object.defineProperty(xe,Ke,{get:()=>c.value[Ke],enumerable:!0});ve.provide(b5,me),ve.provide(JU,PU(xe)),ve.provide(Hj,c);const Be=ve.unmount;re.add(ve),ve.unmount=function(){re.delete(ve),re.size<1&&(d=xp,U&&U(),U=null,c.value=xp,ae=!1,ie=!1),Be()}}};function we(ve){return ve.reduce((me,xe)=>me.then(()=>$(xe)),Promise.resolve())}return Ce}function DLe(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;sTy(d,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(d=>Ty(d,c))||o.push(c))}return[n,r,o]}function El(){return Pn(b5)}function _5(e){return Pn(JU)}const Wm=Object.prototype.toString;function tr(e){return Wm.call(e)==="[object Array]"}function Tl(e){return Wm.call(e)==="[object Null]"}function wl(e){return Wm.call(e)==="[object Boolean]"}function mr(e){return Wm.call(e)==="[object Object]"}const Cm=e=>Wm.call(e)==="[object Promise]";function cs(e){return Wm.call(e)==="[object String]"}function Ze(e){return Wm.call(e)==="[object Number]"&&e===e}function wn(e){return e===void 0}function xn(e){return typeof e=="function"}function PLe(e){return mr(e)&&Object.keys(e).length===0}function Nne(e){return e||e===0}function HC(e){return e===window}const Mhe=e=>e?.$!==void 0,RLe=e=>/\[Q]Q/.test(e);function jc(e){return mr(e)&&"$y"in e&&"$M"in e&&"$D"in e&&"$d"in e&&"$H"in e&&"$m"in e&&"$s"in e}const Ya=Symbol("ArcoConfigProvider"),ux={formatYear:"YYYY 年",formatMonth:"YYYY 年 MM 月",today:"今天",view:{month:"月",year:"年",week:"周",day:"日"},month:{long:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"},short:{January:"一月",February:"二月",March:"三月",April:"四月",May:"五月",June:"六月",July:"七月",August:"八月",September:"九月",October:"十月",November:"十一月",December:"十二月"}},week:{long:{self:"周",monday:"周一",tuesday:"周二",wednesday:"周三",thursday:"周四",friday:"周五",saturday:"周六",sunday:"周日"},short:{self:"周",monday:"一",tuesday:"二",wednesday:"三",thursday:"四",friday:"五",saturday:"六",sunday:"日"}}},MLe={locale:"zh-CN",empty:{description:"暂无数据"},drawer:{okText:"确定",cancelText:"取消"},popconfirm:{okText:"确定",cancelText:"取消"},modal:{okText:"确定",cancelText:"取消"},pagination:{goto:"前往",page:"页",countPerPage:"条/页",total:"共 {0} 条"},table:{okText:"确定",resetText:"重置"},upload:{start:"开始",cancel:"取消",delete:"删除",retry:"点击重试",buttonText:"点击上传",preview:"预览",drag:"点击或拖拽文件到此处上传",dragHover:"释放文件并开始上传",error:"上传失败"},calendar:ux,datePicker:{view:ux.view,month:ux.month,week:ux.week,placeholder:{date:"请选择日期",week:"请选择周",month:"请选择月份",year:"请选择年份",quarter:"请选择季度",time:"请选择时间"},rangePlaceholder:{date:["开始日期","结束日期"],week:["开始周","结束周"],month:["开始月份","结束月份"],year:["开始年份","结束年份"],quarter:["开始季度","结束季度"],time:["开始时间","结束时间"]},selectTime:"选择时间",today:"今天",now:"此刻",ok:"确定"},image:{loading:"加载中"},imagePreview:{fullScreen:"全屏",rotateRight:"向右旋转",rotateLeft:"向左旋转",zoomIn:"放大",zoomOut:"缩小",originalSize:"原始尺寸"},typography:{copied:"已复制",copy:"复制",expand:"展开",collapse:"折叠",edit:"编辑"},form:{validateMessages:{required:"#{field} 是必填项",type:{string:"#{field} 不是合法的文本类型",number:"#{field} 不是合法的数字类型",boolean:"#{field} 不是合法的布尔类型",array:"#{field} 不是合法的数组类型",object:"#{field} 不是合法的对象类型",url:"#{field} 不是合法的 url 地址",email:"#{field} 不是合法的邮箱地址",ip:"#{field} 不是合法的 IP 地址"},number:{min:"`#{value}` 小于最小值 `#{min}`",max:"`#{value}` 大于最大值 `#{max}`",equal:"`#{value}` 不等于 `#{equal}`",range:"`#{value}` 不在 `#{min} ~ #{max}` 范围内",positive:"`#{value}` 不是正数",negative:"`#{value}` 不是负数"},array:{length:"`#{field}` 个数不等于 #{length}",minLength:"`#{field}` 个数最少为 #{minLength}",maxLength:"`#{field}` 个数最多为 #{maxLength}",includes:"#{field} 不包含 #{includes}",deepEqual:"#{field} 不等于 #{deepEqual}",empty:"`#{field}` 不是空数组"},string:{minLength:"字符数最少为 #{minLength}",maxLength:"字符数最多为 #{maxLength}",length:"字符数必须是 #{length}",match:"`#{value}` 不符合模式 #{pattern}",uppercase:"`#{value}` 必须全大写",lowercase:"`#{value}` 必须全小写"},object:{deepEqual:"`#{field}` 不等于期望值",hasKeys:"`#{field}` 不包含必须字段",empty:"`#{field}` 不是对象"},boolean:{true:"期望是 `true`",false:"期望是 `false`"}}},colorPicker:{history:"最近使用颜色",preset:"系统预设颜色",empty:"暂无"}},QU=fe("zh-CN"),P8=Yt({"zh-CN":MLe}),OLe=(e,t)=>{for(const n of Object.keys(e))(!P8[n]||t?.overwrite)&&(P8[n]=e[n])},$Le=e=>{if(!P8[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}QU.value=e},BLe=()=>QU.value,$o=()=>{const e=Pn(Ya,void 0),t=F(()=>{var o;return(o=e?.locale)!=null?o:P8[QU.value]}),n=F(()=>t.value.locale);return{i18nMessage:t,locale:n,t:(o,...a)=>{const s=o.split(".");let l=t.value;for(const c of s){if(!l[c])return o;l=l[c]}return cs(l)&&a.length>0?l.replace(/{(\d+)}/g,(c,d)=>{var h;return(h=a[d])!=null?h:c}):l}}},NLe="A",FLe="arco",Wj="$arco",Gn=e=>{var t;return(t=e?.componentPrefix)!=null?t:NLe},Kn=(e,t)=>{var n;t&&t.classPrefix&&(e.config.globalProperties[Wj]={...(n=e.config.globalProperties[Wj])!=null?n:{},classPrefix:t.classPrefix})},Le=e=>{var t,n,r;const o=go(),a=Pn(Ya,void 0),s=(r=(n=a?.prefixCls)!=null?n:(t=o?.appContext.config.globalProperties[Wj])==null?void 0:t.classPrefix)!=null?r:FLe;return e?`${s}-${e}`:s};var Ohe=(function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,a){return o[0]===n?(r=a,!0):!1}),r}return(function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(n){var r=e(this.__entries__,n),o=this.__entries__[r];return o&&o[1]},t.prototype.set=function(n,r){var o=e(this.__entries__,n);~o?this.__entries__[o][1]=r:this.__entries__.push([n,r])},t.prototype.delete=function(n){var r=this.__entries__,o=e(r,n);~o&&r.splice(o,1)},t.prototype.has=function(n){return!!~e(this.__entries__,n)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(n,r){r===void 0&&(r=null);for(var o=0,a=this.__entries__;o0},e.prototype.connect_=function(){!Gj||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),WLe?(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(){!Gj||!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 n=t.propertyName,r=n===void 0?"":n,o=HLe.some(function(a){return!!~r.indexOf(a)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e})(),$he=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Iy(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new e7e(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 Iy(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)&&(n.delete(t),n.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(n){n.isActive()&&t.activeObservations_.push(n)})},e.prototype.broadcastActive=function(){if(this.hasActive()){var t=this.callbackCtx_,n=this.activeObservations_.map(function(r){return new t7e(r.target,r.broadcastRect())});this.callback_.call(t,n,t),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e})(),Nhe=typeof WeakMap<"u"?new WeakMap:new Ohe,Fhe=(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 n=GLe.getInstance(),r=new n7e(t,n,this);Nhe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Fhe.prototype[e]=function(){var t;return(t=Nhe.get(this))[e].apply(t,arguments)}});var k5=(function(){return typeof R8.ResizeObserver<"u"?R8.ResizeObserver:Fhe})();const x5=e=>!!(e&&e.shapeFlag&1),V_=(e,t)=>!!(e&&e.shapeFlag&6),r7e=(e,t)=>!!(e&&e.shapeFlag&8),C5=(e,t)=>!!(e&&e.shapeFlag&16),w5=(e,t)=>!!(e&&e.shapeFlag&32),J1=e=>{var t,n;if(e)for(const r of e){if(x5(r)||V_(r))return r;if(C5(r,r.children)){const o=J1(r.children);if(o)return o}else if(w5(r,r.children)){const o=(n=(t=r.children).default)==null?void 0:n.call(t);if(o){const a=J1(o);if(a)return a}}else if(tr(r)){const o=J1(r);if(o)return o}}},i7e=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},jhe=(e,t)=>{if(e&&e.length>0)for(let n=0;n0&&jhe(o,t))return!0}return!1},eH=e=>{if(C5(e,e.children))return e.children;if(tr(e))return e},Vhe=e=>{var t,n;if(x5(e))return e.el;if(V_(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const r=Vhe(e.component.subTree);if(r)return r}}else{const r=eH(e);return zhe(r)}},zhe=e=>{if(e&&e.length>0)for(const t of e){const n=Vhe(t);if(n)return n}},yf=(e,t=!1)=>{var n,r;const o=[];for(const a of e??[])x5(a)||V_(a)||t&&r7e(a,a.children)?o.push(a):C5(a,a.children)?o.push(...yf(a.children,t)):w5(a,a.children)?o.push(...yf((r=(n=a.children).default)==null?void 0:r.call(n),t)):tr(a)&&o.push(...yf(a,t));return o};function o7e(e){function t(n){const r=[];return n.forEach(o=>{var a,s;Ui(o)&&o.type===Ft?w5(o,o.children)?r.push(...t(((s=(a=o.children).default)==null?void 0:s.call(a))||[])):C5(o,o.children)?r.push(...t(o.children)):cs(o.children)&&r.push(o.children):r.push(o)}),r}return t(e)}const Hl=e=>{if(e)return xn(e)?e:()=>e},Uhe=(e,t)=>{var n;const r=[];if(V_(e,e.type))e.type.name===t?e.component&&r.push(e.component.uid):(n=e.component)!=null&&n.subTree&&r.push(...Uhe(e.component.subTree,t));else{const o=eH(e);o&&r.push(...Hhe(o,t))}return r},Hhe=(e,t)=>{const n=[];if(e&&e.length>0)for(const r of e)n.push(...Uhe(r,t));return n};var Id=ke({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let r;const o=fe(),a=F(()=>Mhe(o.value)?o.value.$el:o.value),s=c=>{c&&(r=new k5(d=>{const h=d[0];t("resize",h)}),r.observe(c))},l=()=>{r&&(r.disconnect(),r=null)};return Pt(a,c=>{r&&l(),c&&s(c)}),vn(()=>{a.value&&s(a.value)}),vi(()=>{l()}),()=>{var c,d;const h=J1((d=(c=n.default)==null?void 0:c.call(n))!=null?d:[]);return h?Cl(h,{ref:o},!0):null}}});const Whe=typeof window>"u"?global:window,Ghe=Whe.requestAnimationFrame,O8=Whe.cancelAnimationFrame;function wm(e){let t=0;const n=(...r)=>{t&&O8(t),t=Ghe(()=>{e(...r),t=0})};return n.cancel=()=>{O8(t),t=0},n}const Q1=()=>{},Khe=()=>{const{body:e}=document,t=document.documentElement;let n;try{n=(window.top||window.self||window).document.body}catch{}return{height:Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight,n?.scrollHeight||0,n?.clientHeight||0),width:Math.max(e.scrollWidth,e.offsetWidth,t.clientWidth,t.scrollWidth,t.offsetWidth,n?.scrollWidth||0,n?.clientWidth||0)}},z_=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),Di=z_?Q1:(e,t,n,r=!1)=>{e.addEventListener(t,n,r)},to=z_?Q1:(e,t,n,r=!1)=>{e.removeEventListener(t,n,r)},s7e=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},E5=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},qhe=(e,t)=>{var n;return z_?Q1():(n=(t??document).querySelector(e))!=null?n:void 0},sf=(e,t)=>{if(cs(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return qhe(n,t)}return e},a7e=(e,t)=>{const n=e.getBoundingClientRect(),r=t.getBoundingClientRect();return{top:n.top-r.top,bottom:r.bottom-n.bottom,left:n.left-r.left,right:r.right-n.right,width:n.width,height:n.height}},l7e=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,u7e=e=>e.tagName==="BODY"?window.innerWidth-Khe().width:e.offsetWidth-e.clientWidth;var je=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};function c7e(e){return HC(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const d7e=ke({name:"Affix",components:{ResizeObserver:Id},props:{offsetTop:{type:Number,default:0},offsetBottom:{type:Number},target:{type:[String,Object,Function]},targetContainer:{type:[String,Object,Function]}},emits:{change:e=>!0},setup(e,{emit:t}){const n=Le("affix"),{target:r,targetContainer:o}=nn(e),a=fe(),s=fe(),l=fe(!1),c=fe({}),d=fe({}),h=F(()=>({[n]:l.value})),p=wm(()=>{if(!a.value||!s.value)return;const{offsetTop:m,offsetBottom:g}=e,y=wn(g)?"top":"bottom",S=a.value.getBoundingClientRect(),k=c7e(s.value);let C=!1,x={};const E={width:`${a.value.offsetWidth}px`,height:`${a.value.offsetHeight}px`};y==="top"?(C=S.top-k.top<(m||0),x=C?{position:"fixed",top:`${k.top+(m||0)}px`}:{}):(C=k.bottom-S.bottom<(g||0),x=C?{position:"fixed",bottom:`${window.innerHeight-k.bottom+(g||0)}px`}:{}),C!==l.value&&(l.value=C,t("change",C)),c.value=E,d.value={...x,...C?E:{}}});return vn(()=>{Os(m=>{const g=r&&r.value!==window&&sf(r.value)||window;s.value=g,g&&(Di(g,"scroll",p),Di(g,"resize",p),m(()=>{to(g,"scroll",p),to(g,"resize",p)}))}),Os(m=>{if(!s.value)return;const g=o&&o.value!==window&&sf(o.value)||window;g&&(Di(g,"scroll",p),Di(g,"resize",p),m(()=>{to(g,"scroll",p),to(g,"resize",p)}))})}),{wrapperRef:a,isFixed:l,classNames:h,placeholderStyles:c,fixedStyles:d,updatePositionThrottle:p}},methods:{updatePosition(){this.updatePositionThrottle()}}}),f7e={ref:"wrapperRef"};function h7e(e,t,n,r,o,a){const s=Pe("ResizeObserver");return H(),Je(s,{onResize:e.updatePositionThrottle},{default:de(()=>[L("div",f7e,[e.isFixed?(H(),J("div",{key:0,style:Ge(e.placeholderStyles)},null,4)):Me("v-if",!0),L("div",{class:le(e.classNames),style:Ge(e.fixedStyles)},[O(s,{onResize:e.updatePositionThrottle},{default:de(()=>[dt(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var bP=je(d7e,[["render",h7e]]);const p7e=Object.assign(bP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+bP.name,bP)}}),v7e=ke({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:Le("icon-hover")}}});function m7e(e,t,n,r,o,a){return H(),J("span",{class:le([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[dt(e.$slots,"default")],2)}var To=je(v7e,[["render",m7e]]);const g7e=ke({name:"IconClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-close`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),y7e=["stroke-width","stroke-linecap","stroke-linejoin"];function b7e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M9.857 9.858 24 24m0 0 14.142 14.142M24 24 38.142 9.858M24 24 9.857 38.142"},null,-1)]),14,y7e)}var _P=je(g7e,[["render",b7e]]);const ds=Object.assign(_P,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_P.name,_P)}}),_7e=ke({name:"IconInfoCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-info-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),S7e=["stroke-width","stroke-linecap","stroke-linejoin"];function k7e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-30a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2Zm0 17h1a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h1v-8a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h3a1 1 0 0 1 1 1v11Z",fill:"currentColor",stroke:"none"},null,-1)]),14,S7e)}var SP=je(_7e,[["render",k7e]]);const n3=Object.assign(SP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SP.name,SP)}}),x7e=ke({name:"IconCheckCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-check-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),C7e=["stroke-width","stroke-linecap","stroke-linejoin"];function w7e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm10.207-24.379a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0L22 26.172l-4.878-4.88a1 1 0 0 0-1.415 0l-1.414 1.415a1 1 0 0 0 0 1.414l7 7a1 1 0 0 0 1.414 0l11.5-11.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,C7e)}var kP=je(x7e,[["render",w7e]]);const Kh=Object.assign(kP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kP.name,kP)}}),E7e=ke({name:"IconExclamationCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-exclamation-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),T7e=["stroke-width","stroke-linecap","stroke-linejoin"];function A7e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-2-11a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,T7e)}var xP=je(E7e,[["render",A7e]]);const If=Object.assign(xP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xP.name,xP)}}),I7e=ke({name:"IconCloseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-close-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),L7e=["stroke-width","stroke-linecap","stroke-linejoin"];function D7e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm4.955-27.771-4.95 4.95-4.95-4.95a1 1 0 0 0-1.414 0l-1.414 1.414a1 1 0 0 0 0 1.414l4.95 4.95-4.95 4.95a1 1 0 0 0 0 1.414l1.414 1.414a1 1 0 0 0 1.414 0l4.95-4.95 4.95 4.95a1 1 0 0 0 1.414 0l1.414-1.414a1 1 0 0 0 0-1.414l-4.95-4.95 4.95-4.95a1 1 0 0 0 0-1.414l-1.414-1.414a1 1 0 0 0-1.414 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,L7e)}var CP=je(I7e,[["render",D7e]]);const Gm=Object.assign(CP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CP.name,CP)}}),P7e=ke({name:"Alert",components:{IconHover:To,IconClose:ds,IconInfoCircleFill:n3,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Gm},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},title:String,banner:{type:Boolean,default:!1},center:{type:Boolean,default:!1}},emits:{close:e=>!0,afterClose:()=>!0},setup(e,{slots:t,emit:n}){const r=Le("alert"),o=fe(!0),a=c=>{o.value=!1,n("close",c)},s=()=>{n("afterClose")},l=F(()=>[r,`${r}-${e.type}`,{[`${r}-with-title`]:!!(e.title||t.title),[`${r}-banner`]:e.banner,[`${r}-center`]:e.center}]);return{prefixCls:r,cls:l,visible:o,handleClose:a,handleAfterLeave:s}}});function R7e(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),d=Pe("icon-close-circle-fill"),h=Pe("icon-close"),p=Pe("icon-hover");return H(),Je(xs,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:de(()=>[e.visible?(H(),J("div",{key:0,role:"alert",class:le(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(H(),J("div",{key:0,class:le(`${e.prefixCls}-icon`)},[dt(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Je(s,{key:0})):e.type==="success"?(H(),Je(l,{key:1})):e.type==="warning"?(H(),Je(c,{key:2})):e.type==="error"?(H(),Je(d,{key:3})):Me("v-if",!0)])],2)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(H(),J("div",{key:0,class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"default")],2)],2),e.$slots.action?(H(),J("div",{key:1,class:le(`${e.prefixCls}-action`)},[dt(e.$slots,"action")],2)):Me("v-if",!0),e.closable?(H(),J("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:le(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[dt(e.$slots,"close-element",{},()=>[O(p,null,{default:de(()=>[O(h)]),_:1})])],2)):Me("v-if",!0)],2)):Me("v-if",!0)]),_:3},8,["onAfterLeave"])}var wP=je(P7e,[["render",R7e]]);const Yhe=Object.assign(wP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+wP.name,wP)}});function jne(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Vne(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function EP(e,t){if(e.clientHeightt||a>e&&s=t&&l>=n?a-e-r:s>t&&ln?s-t+o:0}var Kj=function(e,t){var n=window,r=t.scrollMode,o=t.block,a=t.inline,s=t.boundary,l=t.skipOverflowHiddenElements,c=typeof s=="function"?s:function(_e){return _e!==s};if(!jne(e))throw new TypeError("Invalid target");for(var d,h,p=document.scrollingElement||document.documentElement,m=[],g=e;jne(g)&&c(g);){if((g=(h=(d=g).parentElement)==null?d.getRootNode().host||null:h)===p){m.push(g);break}g!=null&&g===document.body&&EP(g)&&!EP(document.documentElement)||g!=null&&EP(g,l)&&m.push(g)}for(var y=n.visualViewport?n.visualViewport.width:innerWidth,S=n.visualViewport?n.visualViewport.height:innerHeight,k=window.scrollX||pageXOffset,C=window.scrollY||pageYOffset,x=e.getBoundingClientRect(),E=x.height,_=x.width,T=x.top,D=x.right,P=x.bottom,M=x.left,$=o==="start"||o==="nearest"?T:o==="end"?P:T+E/2,I=a==="center"?M+_/2:a==="end"?D:M,N=[],j=0;j=0&&M>=0&&P<=S&&D<=y&&T>=ie&&P<=W&&M>=q&&D<=ee)return N;var Q=getComputedStyle(U),ne=parseInt(Q.borderLeftWidth,10),ae=parseInt(Q.borderTopWidth,10),re=parseInt(Q.borderRightWidth,10),Ce=parseInt(Q.borderBottomWidth,10),we=0,ve=0,me="offsetWidth"in U?U.offsetWidth-U.clientWidth-ne-re:0,xe="offsetHeight"in U?U.offsetHeight-U.clientHeight-ae-Ce:0,Be="offsetWidth"in U?U.offsetWidth===0?0:X/U.offsetWidth:0,Ke="offsetHeight"in U?U.offsetHeight===0?0:G/U.offsetHeight:0;if(p===U)we=o==="start"?$:o==="end"?$-S:o==="nearest"?cx(C,C+S,S,ae,Ce,C+$,C+$+E,E):$-S/2,ve=a==="start"?I:a==="center"?I-y/2:a==="end"?I-y:cx(k,k+y,y,ne,re,k+I,k+I+_,_),we=Math.max(0,we+C),ve=Math.max(0,ve+k);else{we=o==="start"?$-ie-ae:o==="end"?$-W+Ce+xe:o==="nearest"?cx(ie,W,G,ae,Ce+xe,$,$+E,E):$-(ie+G/2)+xe/2,ve=a==="start"?I-q-ne:a==="center"?I-(q+X/2)+me/2:a==="end"?I-ee+re+me:cx(q,ee,X,ne,re+me,I,I+_,_);var ze=U.scrollLeft,be=U.scrollTop;$+=be-(we=Math.max(0,Math.min(be+we/Ke,U.scrollHeight-G/Ke+xe))),I+=ze-(ve=Math.max(0,Math.min(ze+ve/Be,U.scrollWidth-X/Be+me)))}N.push({el:U,top:we,left:ve})}return N},U_=function(e){return function(t){return Math.pow(t,e)}},H_=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},T5=function(e){return function(t){return t<.5?U_(e)(t*2)/2:H_(e)(t*2-1)/2+.5}},M7e=function(e){return e},O7e=U_(2),$7e=H_(2),B7e=T5(2),N7e=U_(3),F7e=H_(3),j7e=T5(3),V7e=U_(4),z7e=H_(4),U7e=T5(4),H7e=U_(5),W7e=H_(5),G7e=T5(5),K7e=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},q7e=function(e){return Math.sin(Math.PI/2*e)},Y7e=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},tH=function(e){var t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?(e-=1.5/n,t*e*e+.75):e<2.5/n?(e-=2.25/n,t*e*e+.9375):(e-=2.625/n,t*e*e+.984375)},Xhe=function(e){return 1-tH(1-e)},X7e=function(e){return e<.5?Xhe(e*2)*.5:tH(e*2-1)*.5+.5},Z7e=Object.freeze({linear:M7e,quadIn:O7e,quadOut:$7e,quadInOut:B7e,cubicIn:N7e,cubicOut:F7e,cubicInOut:j7e,quartIn:V7e,quartOut:z7e,quartInOut:U7e,quintIn:H7e,quintOut:W7e,quintInOut:G7e,sineIn:K7e,sineOut:q7e,sineInOut:Y7e,bounceOut:tH,bounceIn:Xhe,bounceInOut:X7e}),Km=function(t){var n=t.from,r=t.to,o=t.duration,a=t.delay,s=t.easing,l=t.onStart,c=t.onUpdate,d=t.onFinish;for(var h in n)r[h]===void 0&&(r[h]=n[h]);for(var p in r)n[p]===void 0&&(n[p]=r[p]);this.from=n,this.to=r,this.duration=o||500,this.delay=a||0,this.easing=s||"linear",this.onStart=l,this.onUpdate=c||function(){},this.onFinish=d,this.startTime=Date.now()+this.delay,this.started=!1,this.finished=!1,this.timer=null,this.keys={}};Km.prototype.update=function(){if(this.time=Date.now(),!(this.timethis.duration?this.duration:this.elapsed;for(var t in this.to)this.keys[t]=this.from[t]+(this.to[t]-this.from[t])*Z7e[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};Km.prototype.start=function(){var t=this;this.startTime=Date.now()+this.delay;var n=function(){t.update(),t.timer=requestAnimationFrame(n),t.finished&&(cancelAnimationFrame(t.timer),t.timer=null)};n()};Km.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function J7e(e,t,n){new Km({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:o=>{e.scrollTop=o.scrollTop},onFinish:()=>{xn(n)&&n()}}).start()}const Zhe=Symbol("ArcoAnchor"),Q7e=["start","end","center","nearest"],eDe=ke({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>Ze(e)||Q7e.includes(e)},lineLess:{type:Boolean,default:!1},scrollContainer:{type:[String,Object]},changeHash:{type:Boolean,default:!0},smooth:{type:Boolean,default:!0}},emits:{select:(e,t)=>!0,change:e=>!0},setup(e,{emit:t}){const n=Le("anchor"),r=fe(),o=fe(),a=Yt({}),s=fe(""),l=fe(!1),c=fe(),d=fe(),h=(T,D)=>{T&&(a[T]=D)},p=T=>{delete a[T]},m=(T,D)=>{e.changeHash||T.preventDefault(),D&&(g(D),S(D)),t("select",D,s.value)},g=T=>{try{const D=sf(T);if(!D)return;let P,M=0;Ze(e.boundary)?(P="start",M=e.boundary):P=e.boundary;const $=Kj(D,{block:P});if(!$.length)return;const{el:I,top:N}=$[0],j=N-M;J7e(I,j,()=>{l.value=!1}),l.value=!0}catch(D){console.error(D)}},y=wm(()=>{if(l.value)return;const T=k();if(T&&T.id){const D=`#${T.id}`;S(D)}}),S=T=>{if(!a[T]&&r.value){const D=sf(`a[data-href='${T}']`,r.value);if(!D)return;a[T]=D}T!==s.value&&(s.value=T,_n(()=>{t("change",T)}))},k=()=>{if(!c.value||!d.value)return;const T=Ze(e.boundary)?e.boundary:0,D=d.value.getBoundingClientRect();for(const P of Object.keys(a)){const M=sf(P);if(M){const{top:$}=M.getBoundingClientRect(),I=HC(c.value)?$-T:$-D.top-T;if(I>=0&&I<=D.height/2)return M}}};Pt(s,()=>{const T=a[s.value];!e.lineLess&&T&&o.value&&(o.value.style.top=`${T.offsetTop}px`)});const C=()=>{c.value&&Di(c.value,"scroll",y)},x=()=>{c.value&&to(c.value,"scroll",y)},E=()=>{e.scrollContainer?(c.value=HC(e.scrollContainer)?window:sf(e.scrollContainer),d.value=HC(e.scrollContainer)?document.documentElement:sf(e.scrollContainer)):(c.value=window,d.value=document.documentElement)};vn(()=>{E();const T=decodeURIComponent(window.location.hash);T?(g(T),S(T)):y(),C()}),Oo(()=>{x()}),ti(Zhe,Yt({currentLink:s,addLink:h,removeLink:p,handleClick:m}));const _=F(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:_,anchorRef:r,lineSliderRef:o}}});function tDe(e,t,n,r,o,a){return H(),J("div",{ref:"anchorRef",class:le(e.cls)},[e.lineLess?Me("v-if",!0):(H(),J("div",{key:0,ref:"lineSliderRef",class:le(`${e.prefixCls}-line-slider`)},null,2)),L("ul",{class:le(`${e.prefixCls}-list`)},[dt(e.$slots,"default")],2)],2)}var TP=je(eDe,[["render",tDe]]);const nDe=ke({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=Le("anchor"),n=`${t}-link`,r=fe(),o=Pn(Zhe,void 0);vn(()=>{e.href&&r.value&&o?.addLink(e.href,r.value)});const a=F(()=>[`${n}-item`,{[`${n}-active`]:o?.currentLink===e.href}]);return{prefixCls:t,linkCls:n,cls:a,linkRef:r,handleClick:l=>o?.handleClick(l,e.href)}}}),rDe=["href"];function iDe(e,t,n,r,o,a){return H(),J("li",{ref:"linkRef",class:le(e.cls)},[L("a",{class:le(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[dt(e.$slots,"default",{},()=>[We(Ve(e.title),1)])],10,rDe),e.$slots.sublist?(H(),J("ul",{key:0,class:le(`${e.prefixCls}-sublist`)},[dt(e.$slots,"sublist")],2)):Me("v-if",!0)],2)}var WC=je(nDe,[["render",iDe]]);const oDe=Object.assign(TP,{Link:WC,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+TP.name,TP),e.component(n+WC.name,WC)}}),A5=["info","success","warning","error"],m0=["onFocus","onFocusin","onFocusout","onBlur","onChange","onBeforeinput","onInput","onReset","onSubmit","onInvalid","onKeydown","onKeypress","onKeyup","onCopy","onCut","onPaste","onCompositionstart","onCompositionupdate","onCompositionend","onSelect","autocomplete","autofocus","maxlength","minlength","name","pattern","readonly","required"],sDe=ke({name:"IconLoading",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-loading`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aDe=["stroke-width","stroke-linecap","stroke-linejoin"];function lDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"},null,-1)]),14,aDe)}var AP=je(sDe,[["render",lDe]]);const Xa=Object.assign(AP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AP.name,AP)}}),uDe=ke({name:"FeedbackIcon",components:{IconLoading:Xa,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Gm},props:{type:{type:String}},setup(e){const t=Le("feedback-icon");return{cls:F(()=>[t,`${t}-status-${e.type}`])}}});function cDe(e,t,n,r,o,a){const s=Pe("icon-loading"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),d=Pe("icon-close-circle-fill");return H(),J("span",{class:le(e.cls)},[e.type==="validating"?(H(),Je(s,{key:0})):e.type==="success"?(H(),Je(l,{key:1})):e.type==="warning"?(H(),Je(c,{key:2})):e.type==="error"?(H(),Je(d,{key:3})):Me("v-if",!0)],2)}var W_=je(uDe,[["render",cDe]]);const nH={key:"Enter"},Jhe={key:"Backspace",code:"Backspace"},dDe={code:"ArrowLeft"},fDe={code:"ArrowRight"},xa=(e,t)=>{const n={...e};for(const r of t)r in n&&delete n[r];return n};function kf(e,t){const n={};return t.forEach(r=>{const o=r;r in e&&(n[o]=e[o])}),n}const qj=Symbol("ArcoFormItemContext"),rH=Symbol("ArcoFormContext"),Ao=({size:e,disabled:t,error:n,uninject:r}={})=>{const o=r?{}:Pn(qj,{}),a=F(()=>{var h;return(h=e?.value)!=null?h:o.size}),s=F(()=>t?.value||o.disabled),l=F(()=>n?.value||o.error),c=Iu(o,"feedback"),d=Iu(o,"eventHandlers");return{formItemCtx:o,mergedSize:a,mergedDisabled:s,mergedError:l,feedback:c,eventHandlers:d}},wa=(e,{defaultValue:t="medium"}={})=>{const n=Pn(Ya,void 0);return{mergedSize:F(()=>{var o,a;return(a=(o=e?.value)!=null?o:n?.size)!=null?a:t})}};function Qhe(e){const t=fe();function n(){if(!e.value)return;const{selectionStart:o,selectionEnd:a,value:s}=e.value;if(o==null||a==null)return;const l=s.slice(0,Math.max(0,o)),c=s.slice(Math.max(0,a));t.value={selectionStart:o,selectionEnd:a,value:s,beforeTxt:l,afterTxt:c}}function r(){if(!e.value||!t.value)return;const{value:o}=e.value,{beforeTxt:a,afterTxt:s,selectionStart:l}=t.value;if(!a||!s||!l)return;let c=o.length;if(o.endsWith(s))c=o.length-s.length;else if(o.startsWith(a))c=a.length;else{const d=a[l-1],h=o.indexOf(d,l-1);h!==-1&&(c=h+1)}e.value.setSelectionRange(c,c)}return[n,r]}var X4=ke({name:"Input",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},size:{type:String},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},error:{type:Boolean,default:!1},placeholder:String,maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},wordLength:{type:Function},wordSlice:{type:Function},inputAttrs:{type:Object},type:{type:String,default:"text"},prepend:String,append:String},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,pressEnter:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{size:o,disabled:a,error:s,modelValue:l}=nn(e),c=Le("input"),d=fe(),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:g,eventHandlers:y}=Ao({size:o,disabled:a,error:s}),{mergedSize:S}=wa(h),[k,C]=Qhe(d),x=fe(e.defaultValue),E=F(()=>{var be;return(be=e.modelValue)!=null?be:x.value});let _=E.value;Pt(l,be=>{(wn(be)||Tl(be))&&(x.value="")}),Pt(E,(be,_e)=>{_=_e});const T=fe(!1),D=F(()=>e.allowClear&&!e.readonly&&!p.value&&!!E.value),P=fe(!1),M=fe(""),$=be=>{var _e;return xn(e.wordLength)?e.wordLength(be):(_e=be.length)!=null?_e:0},I=F(()=>$(E.value)),N=F(()=>m.value||!!(mr(e.maxLength)&&e.maxLength.errorOnly&&I.value>U.value)),j=F(()=>mr(e.maxLength)&&!!e.maxLength.errorOnly),U=F(()=>mr(e.maxLength)?e.maxLength.length:e.maxLength),z=F(()=>{const be=$("a");return Math.floor(U.value/be)}),G=be=>{var _e,Ne;U.value&&!j.value&&$(be)>U.value&&(be=(Ne=(_e=e.wordSlice)==null?void 0:_e.call(e,be,U.value))!=null?Ne:be.slice(0,z.value)),x.value=be,t("update:modelValue",be)},X=be=>{d.value&&be.target!==d.value&&(be.preventDefault(),d.value.focus())},ie=(be,_e)=>{var Ne,Se;be!==_&&(_=be,t("change",be,_e),(Se=(Ne=y.value)==null?void 0:Ne.onChange)==null||Se.call(Ne,_e))},ee=be=>{var _e,Ne;T.value=!0,t("focus",be),(Ne=(_e=y.value)==null?void 0:_e.onFocus)==null||Ne.call(_e,be)},W=be=>{var _e,Ne;T.value=!1,ie(E.value,be),t("blur",be),(Ne=(_e=y.value)==null?void 0:_e.onBlur)==null||Ne.call(_e,be)},q=be=>{var _e,Ne,Se;const{value:$e,selectionStart:Xe,selectionEnd:rt}=be.target;if(be.type==="compositionend"){if(P.value=!1,M.value="",U.value&&!j.value&&I.value>=U.value&&$($e)>U.value&&Xe===rt){Q();return}G($e),t("input",$e,be),(Ne=(_e=y.value)==null?void 0:_e.onInput)==null||Ne.call(_e,be),Q()}else P.value=!0,M.value=E.value+((Se=be.data)!=null?Se:"")},Q=()=>{k(),_n(()=>{d.value&&E.value!==d.value.value&&(d.value.value=E.value,C())})},ne=be=>{var _e,Ne;const{value:Se}=be.target;if(!P.value){if(U.value&&!j.value&&I.value>=U.value&&$(Se)>U.value&&be.inputType==="insertText"){Q();return}G(Se),t("input",Se,be),(Ne=(_e=y.value)==null?void 0:_e.onInput)==null||Ne.call(_e,be),Q()}},ae=be=>{G(""),ie("",be),t("clear",be)},re=be=>{const _e=be.key||be.code;!P.value&&_e===nH.key&&(ie(E.value,be),t("pressEnter",be))},Ce=F(()=>[`${c}-outer`,`${c}-outer-size-${S.value}`,{[`${c}-outer-has-suffix`]:!!n.suffix,[`${c}-outer-disabled`]:p.value}]),we=F(()=>[`${c}-wrapper`,{[`${c}-error`]:N.value,[`${c}-disabled`]:p.value,[`${c}-focus`]:T.value}]),ve=F(()=>[c,`${c}-size-${S.value}`]),me=F(()=>xa(r,m0)),xe=F(()=>kf(r,m0)),Be=F(()=>{const be={...xe.value,...e.inputAttrs};return N.value&&(be["aria-invalid"]=!0),be}),Ke=be=>{var _e;return O("span",zt({class:we.value,onMousedown:X},be?void 0:me.value),[n.prefix&&O("span",{class:`${c}-prefix`},[n.prefix()]),O("input",zt({ref:d,class:ve.value,value:E.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:p.value,onInput:ne,onKeydown:re,onFocus:ee,onBlur:W,onCompositionstart:q,onCompositionupdate:q,onCompositionend:q},Be.value),null),D.value&&O(To,{prefix:c,class:`${c}-clear-btn`,onClick:ae},{default:()=>[O(ds,null,null)]}),(n.suffix||!!e.maxLength&&e.showWordLimit||!!g.value)&&O("span",{class:[`${c}-suffix`,{[`${c}-suffix-has-feedback`]:g.value}]},[!!e.maxLength&&e.showWordLimit&&O("span",{class:`${c}-word-limit`},[I.value,We("/"),U.value]),(_e=n.suffix)==null?void 0:_e.call(n),!!g.value&&O(W_,{type:g.value},null)])])};return{inputRef:d,render:()=>n.prepend||n.append||e.prepend||e.append?O("span",zt({class:Ce.value},me.value),[(n.prepend||e.prepend)&&O("span",{class:`${c}-prepend`},[n.prepend?n.prepend():e.prepend]),Ke(!0),(n.append||e.append)&&O("span",{class:`${c}-append`},[n.append?n.append():e.append])]):Ke()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const hDe=ke({name:"IconSearch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-search`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pDe=["stroke-width","stroke-linecap","stroke-linejoin"];function vDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485"},null,-1)]),14,pDe)}var IP=je(hDe,[["render",vDe]]);const Em=Object.assign(IP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IP.name,IP)}}),epe=Symbol("ArcoButtonGroup"),mDe=ke({name:"Button",components:{IconLoading:Xa},props:{type:{type:String},shape:{type:String},status:{type:String},size:{type:String},long:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean},htmlType:{type:String,default:"button"},autofocus:{type:Boolean,default:!1},href:String},emits:{click:e=>!0},setup(e,{emit:t}){const{size:n,disabled:r}=nn(e),o=Le("btn"),a=Pn(epe,void 0),s=F(()=>{var g;return(g=n.value)!=null?g:a?.size}),l=F(()=>!!(r.value||a?.disabled)),{mergedSize:c,mergedDisabled:d}=Ao({size:s,disabled:l}),{mergedSize:h}=wa(c),p=F(()=>{var g,y,S,k,C,x;return[o,`${o}-${(y=(g=e.type)!=null?g:a?.type)!=null?y:"secondary"}`,`${o}-shape-${(k=(S=e.shape)!=null?S:a?.shape)!=null?k:"square"}`,`${o}-size-${h.value}`,`${o}-status-${(x=(C=e.status)!=null?C:a?.status)!=null?x:"normal"}`,{[`${o}-long`]:e.long,[`${o}-loading`]:e.loading,[`${o}-disabled`]:d.value,[`${o}-link`]:cs(e.href)}]});return{prefixCls:o,cls:p,mergedDisabled:d,handleClick:g=>{if(e.disabled||e.loading){g.preventDefault();return}t("click",g)}}}}),gDe=["href"],yDe=["type","disabled","autofocus"];function bDe(e,t,n,r,o,a){const s=Pe("icon-loading");return e.href?(H(),J("a",{key:0,class:le([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),href:e.mergedDisabled||e.loading?void 0:e.href,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(H(),J("span",{key:0,class:le(`${e.prefixCls}-icon`)},[e.loading?(H(),Je(s,{key:0,spin:"true"})):dt(e.$slots,"icon",{key:1})],2)):Me("v-if",!0),dt(e.$slots,"default")],10,gDe)):(H(),J("button",{key:1,class:le([e.cls,{[`${e.prefixCls}-only-icon`]:e.$slots.icon&&!e.$slots.default}]),type:e.htmlType,disabled:e.mergedDisabled,autofocus:e.autofocus,onClick:t[1]||(t[1]=(...l)=>e.handleClick&&e.handleClick(...l))},[e.loading||e.$slots.icon?(H(),J("span",{key:0,class:le(`${e.prefixCls}-icon`)},[e.loading?(H(),Je(s,{key:0,spin:!0})):dt(e.$slots,"icon",{key:1})],2)):Me("v-if",!0),dt(e.$slots,"default")],10,yDe))}var LP=je(mDe,[["render",bDe]]);const _De=ke({name:"ButtonGroup",props:{type:{type:String},status:{type:String},shape:{type:String},size:{type:String},disabled:{type:Boolean}},setup(e){const{type:t,size:n,status:r,disabled:o,shape:a}=nn(e),s=Le("btn-group");return ti(epe,Yt({type:t,size:n,shape:a,status:r,disabled:o})),{prefixCls:s}}});function SDe(e,t,n,r,o,a){return H(),J("div",{class:le(e.prefixCls)},[dt(e.$slots,"default")],2)}var Z4=je(_De,[["render",SDe]]);const Xo=Object.assign(LP,{Group:Z4,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+LP.name,LP),e.component(n+Z4.name,Z4)}});var GC=ke({name:"InputSearch",props:{searchButton:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},size:{type:String},buttonText:{type:String},buttonProps:{type:Object}},emits:{search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:r}=nn(e),o=Le("input-search"),{mergedSize:a}=wa(r),s=fe(),l=p=>{s.value.inputRef&&t("search",s.value.inputRef.value,p)},c=()=>{var p;return O(Ft,null,[e.loading?O(Xa,null,null):O(To,{onClick:l},{default:()=>[O(Em,null,null)]}),(p=n.suffix)==null?void 0:p.call(n)])},d=()=>{var p;let m={};return e.buttonText||n["button-default"]||n["button-icon"]?m={default:(p=n["button-default"])!=null?p:e.buttonText?()=>e.buttonText:void 0,icon:n["button-icon"]}:m={icon:()=>O(Em,null,null)},O(Xo,zt({type:"primary",class:`${o}-btn`,disabled:e.disabled,size:a.value,loading:e.loading},e.buttonProps,{onClick:l}),m)};return{inputRef:s,render:()=>O(X4,{ref:s,class:o,size:a.value,disabled:e.disabled},{prepend:n.prepend,prefix:n.prefix,suffix:e.searchButton?n.suffix:c,append:e.searchButton?d:n.append})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const kDe=ke({name:"IconEye",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-eye`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xDe=["stroke-width","stroke-linecap","stroke-linejoin"];function CDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"clip-rule":"evenodd",d:"M24 37c6.627 0 12.627-4.333 18-13-5.373-8.667-11.373-13-18-13-6.627 0-12.627 4.333-18 13 5.373 8.667 11.373 13 18 13Z"},null,-1),L("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"},null,-1)]),14,xDe)}var DP=je(kDe,[["render",CDe]]);const g0=Object.assign(DP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DP.name,DP)}}),wDe=ke({name:"IconEyeInvisible",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-eye-invisible`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),EDe=["stroke-width","stroke-linecap","stroke-linejoin"];function TDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M14 14.5c-2.69 2-5.415 5.33-8 9.5 5.373 8.667 11.373 13 18 13 3.325 0 6.491-1.09 9.5-3.271M17.463 12.5C19 11 21.75 11 24 11c6.627 0 12.627 4.333 18 13-1.766 2.848-3.599 5.228-5.5 7.14"},null,-1),L("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0ZM6.852 7.103l34.294 34.294"},null,-1)]),14,EDe)}var PP=je(wDe,[["render",TDe]]);const tpe=Object.assign(PP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PP.name,PP)}});function Ga(e){const t=fe(e);return[t,r=>{t.value=r}]}function fa(e,t){const{value:n}=nn(t),[r,o]=Ga(wn(n.value)?e:n.value);return Pt(n,s=>{wn(s)&&o(void 0)}),[F(()=>wn(n.value)?r.value:n.value),o,r]}const ADe=ke({name:"InputPassword",components:{IconEye:g0,IconEyeInvisible:tpe,AIconHover:To,AInput:X4},props:{visibility:{type:Boolean,default:void 0},defaultVisibility:{type:Boolean,default:!0},invisibleButton:{type:Boolean,default:!0}},emits:["visibility-change","update:visibility"],setup(e,{emit:t}){const{visibility:n,defaultVisibility:r}=nn(e),o=fe(),a=()=>{c(!s.value)},[s,l]=fa(r.value,Yt({value:n})),c=d=>{d!==s.value&&(t("visibility-change",d),t("update:visibility",d),l(d))};return{inputRef:o,mergedVisible:s,handleInvisible:a}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}}});function IDe(e,t,n,r,o,a){const s=Pe("icon-eye"),l=Pe("icon-eye-invisible"),c=Pe("a-icon-hover"),d=Pe("a-input");return H(),Je(d,{ref:"inputRef",type:e.mergedVisible?"password":"text"},wo({_:2},[e.$slots.prepend?{name:"prepend",fn:de(()=>[dt(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[dt(e.$slots,"prefix")]),key:"1"}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:de(()=>[e.invisibleButton?(H(),Je(c,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=us(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=us(()=>{},["prevent"]))},{default:de(()=>[e.mergedVisible?(H(),Je(l,{key:1})):(H(),Je(s,{key:0}))]),_:1},8,["onClick"])):Me("v-if",!0),dt(e.$slots,"suffix")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:de(()=>[dt(e.$slots,"append")]),key:"3"}:void 0]),1032,["type"])}var KC=je(ADe,[["render",IDe]]);const LDe=ke({name:"InputGroup",setup(){return{prefixCls:Le("input-group")}}});function DDe(e,t,n,r,o,a){return H(),J("div",{class:le(e.prefixCls)},[dt(e.$slots,"default")],2)}var ey=je(LDe,[["render",DDe]]);const R0=Object.assign(X4,{Search:GC,Password:KC,Group:ey,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+X4.name,X4),e.component(n+ey.name,ey),e.component(n+GC.name,GC),e.component(n+KC.name,KC)}}),PDe=()=>{const{height:e,width:t}=Khe();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},zne=(e,t)=>{var n,r;const o=e.getBoundingClientRect();return{top:o.top,bottom:o.bottom,left:o.left,right:o.right,scrollTop:o.top-t.top,scrollBottom:o.bottom-t.top,scrollLeft:o.left-t.left,scrollRight:o.right-t.left,width:(n=e.offsetWidth)!=null?n:e.clientWidth,height:(r=e.offsetHeight)!=null?r:e.clientHeight}},RDe=e=>{switch(e){case"top":case"tl":case"tr":return"top";case"bottom":case"bl":case"br":return"bottom";case"left":case"lt":case"lb":return"left";case"right":case"rt":case"rb":return"right";default:return"top"}},dx=(e,t)=>{switch(t){case"top":switch(e){case"bottom":return"top";case"bl":return"tl";case"br":return"tr";default:return e}case"bottom":switch(e){case"top":return"bottom";case"tl":return"bl";case"tr":return"br";default:return e}case"left":switch(e){case"right":return"left";case"rt":return"lt";case"rb":return"lb";default:return e}case"right":switch(e){case"left":return"right";case"lt":return"rt";case"lb":return"rb";default:return e}default:return e}},MDe=(e,t,{containerRect:n,triggerRect:r,popupRect:o,offset:a,translate:s})=>{const l=RDe(e),c=PDe(),d={top:n.top+t.top,bottom:c.height-(n.top+t.top+o.height),left:n.left+t.left,right:c.width-(n.left+t.left+o.width)};let h=e;if(l==="top"&&d.top<0)if(r.top>o.height)t.top=-n.top;else{const p=C4("bottom",r,o,{offset:a,translate:s});c.height-(n.top+p.top+o.height)>0&&(h=dx(e,"bottom"),t.top=p.top)}if(l==="bottom"&&d.bottom<0)if(c.height-r.bottom>o.height)t.top=-n.top+(c.height-o.height);else{const p=C4("top",r,o,{offset:a,translate:s});n.top+p.top>0&&(h=dx(e,"top"),t.top=p.top)}if(l==="left"&&d.left<0)if(r.left>o.width)t.left=-n.left;else{const p=C4("right",r,o,{offset:a,translate:s});c.width-(n.left+p.left+o.width)>0&&(h=dx(e,"right"),t.left=p.left)}if(l==="right"&&d.right<0)if(c.width-r.right>o.width)t.left=-n.left+(c.width-o.width);else{const p=C4("left",r,o,{offset:a,translate:s});n.left+p.left>0&&(h=dx(e,"left"),t.left=p.left)}return(l==="top"||l==="bottom")&&(d.left<0?t.left=-n.left:d.right<0&&(t.left=-n.left+(c.width-o.width))),(l==="left"||l==="right")&&(d.top<0?t.top=-n.top:d.bottom<0&&(t.top=-n.top+(c.height-o.height))),{popupPosition:t,position:h}},C4=(e,t,n,{offset:r=0,translate:o=[0,0]}={})=>{var a;const s=(a=tr(o)?o:o[e])!=null?a:[0,0];switch(e){case"top":return{left:t.scrollLeft+Math.round(t.width/2)-Math.round(n.width/2)+s[0],top:t.scrollTop-n.height-r+s[1]};case"tl":return{left:t.scrollLeft+s[0],top:t.scrollTop-n.height-r+s[1]};case"tr":return{left:t.scrollRight-n.width+s[0],top:t.scrollTop-n.height-r+s[1]};case"bottom":return{left:t.scrollLeft+Math.round(t.width/2)-Math.round(n.width/2)+s[0],top:t.scrollBottom+r+s[1]};case"bl":return{left:t.scrollLeft+s[0],top:t.scrollBottom+r+s[1]};case"br":return{left:t.scrollRight-n.width+s[0],top:t.scrollBottom+r+s[1]};case"left":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollTop+Math.round(t.height/2)-Math.round(n.height/2)+s[1]};case"lt":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollTop+s[1]};case"lb":return{left:t.scrollLeft-n.width-r+s[0],top:t.scrollBottom-n.height+s[1]};case"right":return{left:t.scrollRight+r+s[0],top:t.scrollTop+Math.round(t.height/2)-Math.round(n.height/2)+s[1]};case"rt":return{left:t.scrollRight+r+s[0],top:t.scrollTop+s[1]};case"rb":return{left:t.scrollRight+r+s[0],top:t.scrollBottom-n.height+s[1]};default:return{left:0,top:0}}},ODe=e=>{let t="0";["top","bottom"].includes(e)?t="50%":["left","lt","lb","tr","br"].includes(e)&&(t="100%");let n="0";return["left","right"].includes(e)?n="50%":["top","tl","tr","lb","rb"].includes(e)&&(n="100%"),`${t} ${n}`},$De=(e,t,n,r,{offset:o=0,translate:a=[0,0],customStyle:s={},autoFitPosition:l=!1}={})=>{let c=e,d=C4(e,n,r,{offset:o,translate:a});if(l){const p=MDe(e,d,{containerRect:t,popupRect:r,triggerRect:n,offset:o,translate:a});d=p.popupPosition,c=p.position}return{style:{left:`${d.left}px`,top:`${d.top}px`,...s},position:c}},BDe=(e,t,n,{customStyle:r={}})=>{if(["top","tl","tr","bottom","bl","br"].includes(e)){let a=Math.abs(t.scrollLeft+t.width/2-n.scrollLeft);return a>n.width-8&&(t.width>n.width?a=n.width/2:a=n.width-8),["top","tl","tr"].includes(e)?{left:`${a}px`,bottom:"0",transform:"translate(-50%,50%) rotate(45deg)",...r}:{left:`${a}px`,top:"0",transform:"translate(-50%,-50%) rotate(45deg)",...r}}let o=Math.abs(t.scrollTop+t.height/2-n.scrollTop);return o>n.height-8&&(t.height>n.height?o=n.height/2:o=n.height-8),["left","lt","lb"].includes(e)?{top:`${o}px`,right:"0",transform:"translate(50%,-50%) rotate(45deg)",...r}:{top:`${o}px`,left:"0",transform:"translate(-50%,-50%) rotate(45deg)",...r}},NDe=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,Une=e=>{var t;const n=[];let r=e;for(;r&&r!==document.documentElement;)NDe(r)&&n.push(r),r=(t=r.parentElement)!=null?t:void 0;return n},npe=()=>{const e={},t=fe(),n=()=>{const r=zhe(e.value);r!==t.value&&(t.value=r)};return vn(()=>n()),Qa(()=>n()),{children:e,firstElement:t}};var y0=ke({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:r,firstElement:o}=npe();let a;const s=c=>{c&&(a=new k5(d=>{const h=d[0];t("resize",h)}),a.observe(c))},l=()=>{a&&(a.disconnect(),a=null)};return Pt(o,c=>{a&&l(),c&&s(c)}),Oo(()=>{a&&l()}),()=>{var c;return r.value=(c=n.default)==null?void 0:c.call(n),r.value}}});function _d(e,t){const n=fe(e[t]);return Qa(()=>{const r=e[t];n.value!==r&&(n.value=r)}),n}const Hne=Symbol("ArcoTrigger"),FDe=1e3,jDe=5e3,VDe=1;class zDe{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||jDe:Array.from(this.popupStack.popup).pop()||FDe)+VDe,this.add=t=>{const n=this.getNextZIndex(t);return this.popupStack[t].add(n),t==="dialog"&&this.popupStack.popup.add(n),n},this.delete=(t,n)=>{this.popupStack[n].delete(t),n==="dialog"&&this.popupStack.popup.delete(t)},this.isLastDialog=t=>this.popupStack.dialog.size>1?t===Array.from(this.popupStack.dialog).pop():!0}}const RP=new zDe;function r3(e,{visible:t,runOnMounted:n}={}){const r=fe(0),o=()=>{r.value=RP.add(e)},a=()=>{RP.delete(r.value,e)},s=()=>e==="dialog"?RP.isLastDialog(r.value):!1;return Pt(()=>t?.value,l=>{l?o():a()},{immediate:!0}),n&&(vn(()=>{o()}),Oo(()=>{a()})),{zIndex:Ub(r),open:o,close:a,isLastDialog:s}}const UDe=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new k5(a=>{const s=a[0];xn(t)&&t(s)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var iH=ke({name:"ClientOnly",setup(e,{slots:t}){const n=fe(!1);return vn(()=>n.value=!0),()=>{var r;return n.value?(r=t.default)==null?void 0:r.call(t):null}}});const oH=({popupContainer:e,visible:t,defaultContainer:n="body",documentContainer:r})=>{const o=fe(e.value),a=fe(),s=()=>{const l=sf(e.value),c=l?e.value:n,d=l??(r?document.documentElement:sf(n));c!==o.value&&(o.value=c),d!==a.value&&(a.value=d)};return vn(()=>s()),Pt(t,l=>{o.value!==e.value&&l&&s()}),{teleportContainer:o,containerRef:a}},HDe=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var MP=ke({name:"Trigger",inheritAttrs:!1,props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"bottom"},disabled:{type:Boolean,default:!1},popupOffset:{type:Number,default:0},popupTranslate:{type:[Array,Object]},showArrow:{type:Boolean,default:!1},alignPoint:{type:Boolean,default:!1},popupHoverStay:{type:Boolean,default:!0},blurToClose:{type:Boolean,default:!0},clickToClose:{type:Boolean,default:!0},clickOutsideToClose:{type:Boolean,default:!0},unmountOnClose:{type:Boolean,default:!0},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupStyle:{type:Object},animationName:{type:String,default:"fade-in"},duration:{type:[Number,Object]},mouseEnterDelay:{type:Number,default:100},mouseLeaveDelay:{type:Number,default:100},focusDelay:{type:Number,default:0},autoFitPopupWidth:{type:Boolean,default:!1},autoFitPopupMinWidth:{type:Boolean,default:!1},autoFixPosition:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},updateAtScroll:{type:Boolean,default:!1},autoFitTransformOrigin:{type:Boolean,default:!1},hideEmpty:{type:Boolean,default:!1},openedClass:{type:[String,Array,Object]},autoFitPosition:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},preventFocus:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},scrollToCloseDistance:{type:Number,default:0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,show:()=>!0,hide:()=>!0,resize:()=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{popupContainer:o}=nn(e),a=Le("trigger"),s=F(()=>xa(r,HDe)),l=Pn(Ya,void 0),c=F(()=>[].concat(e.trigger)),d=new Set,h=Pn(Hne,void 0),{children:p,firstElement:m}=npe(),g=fe(),y=fe(e.defaultPopupVisible),S=fe(e.position),k=fe({}),C=fe({}),x=fe({}),E=fe(),_=fe({top:0,left:0});let T=null,D=null;const P=F(()=>{var xt;return(xt=e.popupVisible)!=null?xt:y.value}),{teleportContainer:M,containerRef:$}=oH({popupContainer:o,visible:P,documentContainer:!0}),{zIndex:I}=r3("popup",{visible:P});let N=0,j=!1,U=!1;const z=()=>{N&&(window.clearTimeout(N),N=0)},G=xt=>{if(e.alignPoint){const{pageX:Ye,pageY:Ue}=xt;_.value={top:Ue,left:Ye}}},X=()=>{if(!m.value||!g.value||!$.value)return;const xt=$.value.getBoundingClientRect(),Ye=e.alignPoint?{top:_.value.top,bottom:_.value.top,left:_.value.left,right:_.value.left,scrollTop:_.value.top,scrollBottom:_.value.top,scrollLeft:_.value.left,scrollRight:_.value.left,width:0,height:0}:zne(m.value,xt),Ue=()=>zne(g.value,xt),ut=Ue(),{style:St,position:Ht}=$De(e.position,xt,Ye,ut,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(C.value={transformOrigin:ODe(Ht)}),e.autoFitPopupMinWidth?St.minWidth=`${Ye.width}px`:e.autoFitPopupWidth&&(St.width=`${Ye.width}px`),S.value!==Ht&&(S.value=Ht),k.value=St,e.showArrow&&_n(()=>{x.value=BDe(Ht,Ye,Ue(),{customStyle:e.arrowStyle})})},ie=(xt,Ye)=>{if(xt===P.value&&N===0)return;const Ue=()=>{y.value=xt,t("update:popupVisible",xt),t("popupVisibleChange",xt),xt&&_n(()=>{X()})};xt||(T=null,D=null),Ye?(z(),xt!==P.value&&(N=window.setTimeout(Ue,Ye))):Ue()},ee=xt=>{var Ye;(Ye=r.onClick)==null||Ye.call(r,xt),!(e.disabled||P.value&&!e.clickToClose)&&(c.value.includes("click")?(G(xt),ie(!P.value)):c.value.includes("contextMenu")&&P.value&&ie(!1))},W=xt=>{var Ye;(Ye=r.onMouseenter)==null||Ye.call(r,xt),!(e.disabled||!c.value.includes("hover"))&&(G(xt),ie(!0,e.mouseEnterDelay))},q=xt=>{h?.onMouseenter(xt),W(xt)},Q=xt=>{var Ye;(Ye=r.onMouseleave)==null||Ye.call(r,xt),!(e.disabled||!c.value.includes("hover"))&&ie(!1,e.mouseLeaveDelay)},ne=xt=>{h?.onMouseleave(xt),Q(xt)},ae=xt=>{var Ye;(Ye=r.onFocusin)==null||Ye.call(r,xt),!(e.disabled||!c.value.includes("focus"))&&ie(!0,e.focusDelay)},re=xt=>{var Ye;(Ye=r.onFocusout)==null||Ye.call(r,xt),!(e.disabled||!c.value.includes("focus"))&&e.blurToClose&&ie(!1)},Ce=xt=>{var Ye;(Ye=r.onContextmenu)==null||Ye.call(r,xt),!(e.disabled||!c.value.includes("contextMenu")||P.value&&!e.clickToClose)&&(G(xt),ie(!P.value),xt.preventDefault())};ti(Hne,Yt({onMouseenter:q,onMouseleave:ne,addChildRef:xt=>{d.add(xt),h?.addChildRef(xt)},removeChildRef:xt=>{d.delete(xt),h?.removeChildRef(xt)}}));const me=()=>{to(document.documentElement,"mousedown",Ke),j=!1},xe=_d(n,"content"),Be=F(()=>{var xt;return e.hideEmpty&&i7e((xt=xe.value)==null?void 0:xt.call(xe))}),Ke=xt=>{var Ye,Ue,ut;if(!((Ye=m.value)!=null&&Ye.contains(xt.target)||(Ue=g.value)!=null&&Ue.contains(xt.target))){for(const St of d)if((ut=St.value)!=null&&ut.contains(xt.target))return;me(),ie(!1)}},ze=(xt,Ye)=>{const[Ue,ut]=xt,{scrollTop:St,scrollLeft:Ht}=Ye;return Math.abs(St-Ue)>=e.scrollToCloseDistance||Math.abs(Ht-ut)>=e.scrollToCloseDistance},be=wm(xt=>{if(P.value)if(e.scrollToClose||l?.scrollToClose){const Ye=xt.target;T||(T=[Ye.scrollTop,Ye.scrollLeft]),ze(T,Ye)?ie(!1):X()}else X()}),_e=()=>{to(window,"scroll",Ne),U=!1},Ne=wm(xt=>{const Ye=xt.target.documentElement;D||(D=[Ye.scrollTop,Ye.scrollLeft]),ze(D,Ye)&&(ie(!1),_e())}),Se=()=>{P.value&&X()},$e=()=>{Se(),t("resize")},Xe=xt=>{e.preventFocus&&xt.preventDefault()};h?.addChildRef(g);const rt=F(()=>P.value?e.openedClass:void 0);let nt;Pt(P,xt=>{if(e.clickOutsideToClose&&(!xt&&j?me():xt&&!j&&(Di(document.documentElement,"mousedown",Ke),j=!0)),(e.scrollToClose||l?.scrollToClose)&&(Di(window,"scroll",Ne),U=!0),e.updateAtScroll||l?.updateAtScroll){if(xt){nt=Une(m.value);for(const Ye of nt)Ye.addEventListener("scroll",be)}else if(nt){for(const Ye of nt)Ye.removeEventListener("scroll",be);nt=void 0}}xt&&($t.value=!0)}),Pt(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{P.value&&X()});const{createResizeObserver:gt,destroyResizeObserver:yt}=UDe({elementRef:$,onResize:Se});vn(()=>{if(gt(),P.value&&(X(),e.clickOutsideToClose&&!j&&(Di(document.documentElement,"mousedown",Ke),j=!0),e.updateAtScroll||l?.updateAtScroll)){nt=Une(m.value);for(const xt of nt)xt.addEventListener("scroll",be)}}),Qa(()=>{P.value&&X()}),NU(()=>{ie(!1)}),Oo(()=>{if(h?.removeChildRef(g),yt(),j&&me(),U&&_e(),nt){for(const xt of nt)xt.removeEventListener("scroll",be);nt=void 0}});const $t=fe(P.value),Ct=fe(!1),Dt=()=>{Ct.value=!0},on=()=>{Ct.value=!1,P.value&&t("show")},lt=()=>{Ct.value=!1,P.value||($t.value=!1,t("hide"))};return()=>{var xt,Ye;return p.value=(Ye=(xt=n.default)==null?void 0:xt.call(n))!=null?Ye:[],jhe(p.value,{class:rt.value,onClick:ee,onMouseenter:W,onMouseleave:Q,onFocusin:ae,onFocusout:re,onContextmenu:Ce}),O(Ft,null,[e.autoFixPosition?O(y0,{onResize:$e},{default:()=>[p.value]}):p.value,O(iH,null,{default:()=>[O(Um,{to:M.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||P.value||$t.value)&&!Be.value&&O(y0,{onResize:Se},{default:()=>[O("div",zt({ref:g,class:[`${a}-popup`,`${a}-position-${S.value}`],style:{...k.value,zIndex:I.value,pointerEvents:Ct.value?"none":"auto"},"trigger-placement":S.value,onMouseenter:q,onMouseleave:ne,onMousedown:Xe},s.value),[O(xs,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:Dt,onAfterEnter:on,onBeforeLeave:Dt,onAfterLeave:lt},{default:()=>{var Ue;return[wi(O("div",{class:`${a}-popup-wrapper`,style:C.value},[O("div",{class:[`${a}-content`,e.contentClass],style:e.contentStyle},[(Ue=n.content)==null?void 0:Ue.call(n)]),e.showArrow&&O("div",{ref:E,class:[`${a}-arrow`,e.arrowClass],style:x.value},null)]),[[Qo,P.value]])]}})])]})]})]})])}}});const ha=Object.assign(MP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+MP.name,MP)}}),WDe=ke({name:"IconEmpty",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-empty`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GDe=["stroke-width","stroke-linecap","stroke-linejoin"];function KDe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 5v6m7 1 4-4m-18 4-4-4m28.5 22H28s-1 3-4 3-4-3-4-3H6.5M40 41H8a2 2 0 0 1-2-2v-8.46a2 2 0 0 1 .272-1.007l6.15-10.54A2 2 0 0 1 14.148 18H33.85a2 2 0 0 1 1.728.992l6.149 10.541A2 2 0 0 1 42 30.541V39a2 2 0 0 1-2 2Z"},null,-1)]),14,GDe)}var OP=je(WDe,[["render",KDe]]);const sH=Object.assign(OP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OP.name,OP)}});var qC=ke({name:"Empty",inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){const r=Le("empty"),{t:o}=$o(),a=Pn(Ya,void 0);return()=>{var s,l,c,d;return!e.inConfigProvider&&a?.slots.empty&&!(t.image||e.imgSrc||e.description)?a.slots.empty({component:"empty"}):O("div",zt({class:r},n),[O("div",{class:`${r}-image`},[(l=(s=t.image)==null?void 0:s.call(t))!=null?l:e.imgSrc?O("img",{src:e.imgSrc,alt:e.description||"empty"},null):O(sH,null,null)]),O("div",{class:`${r}-description`},[(d=(c=t.default)==null?void 0:c.call(t))!=null?d:e.description||o("empty.description")])])}}});const qh=Object.assign(qC,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+qC.name,qC)}}),qDe=5;var YDe=ke({name:"DotLoading",props:{size:{type:Number}},setup(e){const t=Le("dot-loading");return()=>{const n=e.size?{width:`${e.size}px`,height:`${e.size}px`}:{};return O("div",{class:t,style:{width:e.size?`${e.size*7}px`:void 0,height:e.size?`${e.size}px`:void 0}},[Array(qDe).fill(1).map((r,o)=>O("div",{class:`${t}-item`,key:o,style:n},null))])}}}),$P=ke({name:"Spin",props:{size:{type:Number},loading:Boolean,dot:Boolean,tip:String,hideIcon:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Le("spin"),r=Pn(Ya,void 0),o=F(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),a=()=>{if(t.icon){const l=J1(t.icon());if(l)return Cl(l,{spin:!0})}return t.element?t.element():e.dot?O(YDe,{size:e.size},null):r?.slots.loading?r.slots.loading():O(Xa,{spin:!0,size:e.size},null)},s=()=>{var l,c,d;const h=e.size?{fontSize:`${e.size}px`}:void 0,p=!!((l=t.tip)!=null?l:e.tip);return O(Ft,null,[!e.hideIcon&&O("div",{class:`${n}-icon`,style:h},[a()]),p&&O("div",{class:`${n}-tip`},[(d=(c=t.tip)==null?void 0:c.call(t))!=null?d:e.tip])])};return()=>O("div",{class:o.value},[t.default?O(Ft,null,[t.default(),e.loading&&O("div",{class:`${n}-mask`},[O("div",{class:`${n}-mask-icon`},[s()])])]):s()])}});const Ld=Object.assign($P,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+$P.name,$P)}}),XDe=ke({name:"Thumb",props:{data:{type:Object},direction:{type:String,default:"horizontal"},alwaysShow:{type:Boolean,default:!1},both:{type:Boolean,default:!1}},emits:["scroll"],setup(e,{emit:t}){const n=Le("scrollbar"),r=fe(!1),o=fe(),a=fe(),s=F(()=>e.direction==="horizontal"?{size:"width",direction:"left",offset:"offsetWidth",client:"clientX"}:{size:"height",direction:"top",offset:"offsetHeight",client:"clientY"}),l=fe(0),c=fe(!1),d=fe(0),h=F(()=>{var x,E;return{[s.value.size]:`${(E=(x=e.data)==null?void 0:x.thumbSize)!=null?E:0}px`,[s.value.direction]:`${l.value}px`}}),p=x=>{x.preventDefault(),a.value&&(d.value=x[s.value.client]-a.value.getBoundingClientRect()[s.value.direction],c.value=!0,Di(window,"mousemove",y),Di(window,"mouseup",S),Di(window,"contextmenu",S))},m=x=>{var E,_,T,D;if(x.preventDefault(),a.value){const P=g(x[s.value.client]>a.value.getBoundingClientRect()[s.value.direction]?l.value+((_=(E=e.data)==null?void 0:E.thumbSize)!=null?_:0):l.value-((D=(T=e.data)==null?void 0:T.thumbSize)!=null?D:0));P!==l.value&&(l.value=P,t("scroll",P))}},g=x=>x<0?0:e.data&&x>e.data.max?e.data.max:x,y=x=>{if(o.value&&a.value){const E=g(x[s.value.client]-o.value.getBoundingClientRect()[s.value.direction]-d.value);E!==l.value&&(l.value=E,t("scroll",E))}},S=()=>{c.value=!1,to(window,"mousemove",y),to(window,"mouseup",S)},k=x=>{c.value||(x=g(x),x!==l.value&&(l.value=x))},C=F(()=>[`${n}-thumb`,`${n}-thumb-direction-${e.direction}`,{[`${n}-thumb-dragging`]:c.value}]);return{visible:r,trackRef:o,thumbRef:a,prefixCls:n,thumbCls:C,thumbStyle:h,handleThumbMouseDown:p,handleTrackClick:m,setOffset:k}}});function ZDe(e,t,n,r,o,a){return H(),Je(xs,null,{default:de(()=>[L("div",{ref:"trackRef",class:le([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=us((...s)=>e.handleTrackClick&&e.handleTrackClick(...s),["self"]))},[L("div",{ref:"thumbRef",class:le(e.thumbCls),style:Ge(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...s))},[L("div",{class:le(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var JDe=je(XDe,[["render",ZDe]]);const Wne=20,fx=15,QDe=ke({name:"Scrollbar",components:{ResizeObserver:y0,Thumb:JDe},inheritAttrs:!1,props:{type:{type:String,default:"embed"},outerClass:[String,Object,Array],outerStyle:{type:[String,Object,Array]},hide:{type:Boolean,default:!1},disableHorizontal:{type:Boolean,default:!1},disableVertical:{type:Boolean,default:!1}},emits:{scroll:e=>!0},setup(e,{emit:t}){const n=Le("scrollbar"),r=fe(),o=fe(),a=fe(),s=fe(),l=fe(),c=fe(!1),d=fe(!1),h=F(()=>c.value&&!e.disableHorizontal),p=F(()=>d.value&&!e.disableVertical),m=fe(!1),g=()=>{var _,T,D,P,M,$;if(r.value){const{clientWidth:I,clientHeight:N,offsetWidth:j,offsetHeight:U,scrollWidth:z,scrollHeight:G,scrollTop:X,scrollLeft:ie}=r.value;c.value=z>I,d.value=G>N,m.value=h.value&&p.value;const ee=e.type==="embed"&&m.value?j-fx:j,W=e.type==="embed"&&m.value?U-fx:U,q=Math.round(ee/Math.min(z/I,ee/Wne)),Q=ee-q,ne=(z-I)/Q,ae=Math.round(W/Math.min(G/N,W/Wne)),re=W-ae,Ce=(G-N)/re;if(o.value={ratio:ne,thumbSize:q,max:Q},a.value={ratio:Ce,thumbSize:ae,max:re},X>0){const we=Math.round(X/((T=(_=a.value)==null?void 0:_.ratio)!=null?T:1));(D=l.value)==null||D.setOffset(we)}if(ie>0){const we=Math.round(ie/((M=(P=a.value)==null?void 0:P.ratio)!=null?M:1));($=s.value)==null||$.setOffset(we)}}};vn(()=>{g()});const y=()=>{g()},S=_=>{var T,D,P,M,$,I;if(r.value){if(h.value&&!e.disableHorizontal){const N=Math.round(r.value.scrollLeft/((D=(T=o.value)==null?void 0:T.ratio)!=null?D:1));(P=s.value)==null||P.setOffset(N)}if(p.value&&!e.disableVertical){const N=Math.round(r.value.scrollTop/(($=(M=a.value)==null?void 0:M.ratio)!=null?$:1));(I=l.value)==null||I.setOffset(N)}}t("scroll",_)},k=_=>{var T,D;r.value&&r.value.scrollTo({left:_*((D=(T=o.value)==null?void 0:T.ratio)!=null?D:1)})},C=_=>{var T,D;r.value&&r.value.scrollTo({top:_*((D=(T=a.value)==null?void 0:T.ratio)!=null?D:1)})},x=F(()=>{const _={};return e.type==="track"&&(h.value&&(_.paddingBottom=`${fx}px`),p.value&&(_.paddingRight=`${fx}px`)),[_,e.outerStyle]}),E=F(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:m.value},e.outerClass]);return{prefixCls:n,cls:E,style:x,containerRef:r,horizontalThumbRef:s,verticalThumbRef:l,horizontalData:o,verticalData:a,isBoth:m,hasHorizontalScrollbar:h,hasVerticalScrollbar:p,handleResize:y,handleScroll:S,handleHorizontalScroll:k,handleVerticalScroll:C}},methods:{scrollTo(e,t){var n,r;mr(e)?(n=this.$refs.containerRef)==null||n.scrollTo(e):(e||t)&&((r=this.$refs.containerRef)==null||r.scrollTo(e,t))},scrollTop(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({top:e})},scrollLeft(e){var t;(t=this.$refs.containerRef)==null||t.scrollTo({left:e})}}});function ePe(e,t,n,r,o,a){const s=Pe("ResizeObserver"),l=Pe("thumb");return H(),J("div",{class:le(e.cls),style:Ge(e.style)},[O(s,{onResize:e.handleResize},{default:de(()=>[L("div",zt({ref:"containerRef",class:`${e.prefixCls}-container`},e.$attrs,{onScroll:t[0]||(t[0]=(...c)=>e.handleScroll&&e.handleScroll(...c))}),[O(s,{onResize:e.handleResize},{default:de(()=>[dt(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(H(),Je(l,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):Me("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(H(),Je(l,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):Me("v-if",!0)],6)}var BP=je(QDe,[["render",ePe]]);const Dd=Object.assign(BP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+BP.name,BP)}}),N1=e=>{const t=fe(),n=()=>Mhe(t.value)?t.value.$refs[e]:t.value,r=fe();return vn(()=>{r.value=n()}),Pt([t],()=>{r.value=n()}),{componentRef:t,elementRef:r}},I5=e=>{const t=F(()=>!!e.value),n=F(()=>{if(e.value)return{type:"embed",...wl(e.value)?void 0:e.value}});return{displayScrollbar:t,scrollbarProps:n}},tPe=ke({name:"SelectDropdown",components:{ScrollbarComponent:Dd,Empty:qh,Spin:Ld},props:{loading:Boolean,empty:Boolean,virtualList:Boolean,bottomOffset:{type:Number,default:0},scrollbar:{type:[Boolean,Object],default:!0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){var r,o,a;const{scrollbar:s}=nn(e),l=Le("select-dropdown"),c=Pn(Ya,void 0),d=(a=(o=c==null?void 0:(r=c.slots).empty)==null?void 0:o.call(r,{component:"select"}))==null?void 0:a[0],{componentRef:h,elementRef:p}=N1("containerRef"),{displayScrollbar:m,scrollbarProps:g}=I5(s),y=k=>{const{scrollTop:C,scrollHeight:x,offsetHeight:E}=k.target;x-(C+E)<=e.bottomOffset&&t("reachBottom",k),t("scroll",k)},S=F(()=>[l,{[`${l}-has-header`]:!!n.header,[`${l}-has-footer`]:!!n.footer}]);return{prefixCls:l,SelectEmpty:d,cls:S,wrapperRef:p,wrapperComRef:h,handleScroll:y,displayScrollbar:m,scrollbarProps:g}}});function nPe(e,t,n,r,o,a){const s=Pe("spin");return H(),J("div",{class:le(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(H(),J("div",{key:0,class:le(`${e.prefixCls}-header`)},[dt(e.$slots,"header")],2)):Me("v-if",!0),e.loading?(H(),Je(s,{key:1,class:le(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(H(),J("div",{key:2,class:le(`${e.prefixCls}-empty`)},[dt(e.$slots,"empty",{},()=>[(H(),Je(Wa(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):Me("v-if",!0),e.virtualList&&!e.loading&&!e.empty?dt(e.$slots,"virtual-list",{key:3}):Me("v-if",!0),e.virtualList?Me("v-if",!0):wi((H(),Je(Wa(e.displayScrollbar?"ScrollbarComponent":"div"),zt({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:de(()=>[L("ul",{class:le(`${e.prefixCls}-list`)},[dt(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[Qo,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(H(),J("div",{key:5,class:le(`${e.prefixCls}-footer`)},[dt(e.$slots,"footer")],2)):Me("v-if",!0)],2)}var aH=je(tPe,[["render",nPe]]),Gne=ke({name:"IconCheck",render(){return O("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 1024 1024",width:"200",height:"200",fill:"currentColor"},[O("path",{d:"M877.44815445 206.10060629a64.72691371 64.72691371 0 0 0-95.14856334 4.01306852L380.73381888 685.46812814 235.22771741 533.48933518a64.72691371 64.72691371 0 0 0-92.43003222-1.03563036l-45.82665557 45.82665443a64.72691371 64.72691371 0 0 0-0.90617629 90.61767965l239.61903446 250.10479331a64.72691371 64.72691371 0 0 0 71.19960405 15.14609778 64.33855261 64.33855261 0 0 0 35.08198741-21.23042702l36.24707186-42.71976334 40.5190474-40.77795556-3.36579926-3.49525333 411.40426297-486.74638962a64.72691371 64.72691371 0 0 0-3.88361443-87.64024149l-45.3088404-45.43829334z","p-id":"840"},null)])}});const rpe=Symbol("ArcoCheckboxGroup");var YC=ke({name:"Checkbox",components:{IconCheck:Gne,IconHover:To},props:{modelValue:{type:[Boolean,Array],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean]},disabled:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:r,modelValue:o}=nn(e),a=Le("checkbox"),s=fe(),l=e.uninjectGroupContext?void 0:Pn(rpe,void 0),c=l?.name==="ArcoCheckboxGroup",{mergedDisabled:d,eventHandlers:h}=Ao({disabled:r}),p=fe(e.defaultChecked),m=F(()=>{var _;return c?l?.computedValue:(_=e.modelValue)!=null?_:p.value}),g=F(()=>{var _;return tr(m.value)?m.value.includes((_=e.value)!=null?_:!0):m.value}),y=F(()=>l?.disabled||d?.value||!g.value&&l?.isMaxed),S=_=>{_.stopPropagation()},k=_=>{var T,D,P,M;const{checked:$}=_.target;let I=$;if(tr(m.value)){const N=new Set(m.value);$?N.add((T=e.value)!=null?T:!0):N.delete((D=e.value)!=null?D:!0),I=Array.from(N)}p.value=$,c&&tr(I)?l?.handleChange(I,_):(t("update:modelValue",I),t("change",I,_),(M=(P=h.value)==null?void 0:P.onChange)==null||M.call(P,_)),_n(()=>{s.value&&s.value.checked!==g.value&&(s.value.checked=g.value)})},C=F(()=>[a,{[`${a}-checked`]:g.value,[`${a}-indeterminate`]:e.indeterminate,[`${a}-disabled`]:y.value}]),x=_=>{var T,D;(D=(T=h.value)==null?void 0:T.onFocus)==null||D.call(T,_)},E=_=>{var T,D;(D=(T=h.value)==null?void 0:T.onBlur)==null||D.call(T,_)};return Pt(o,_=>{(wn(_)||Tl(_))&&(p.value=!1)}),Pt(m,_=>{var T;let D;tr(_)?D=_.includes((T=e.value)!=null?T:!0):D=_,p.value!==D&&(p.value=D),s.value&&s.value.checked!==D&&(s.value.checked=D)}),()=>{var _,T,D,P;return O("label",{"aria-disabled":y.value,class:C.value},[O("input",{ref:s,type:"checkbox",checked:g.value,value:e.value,class:`${a}-target`,disabled:y.value,onClick:S,onChange:k,onFocus:x,onBlur:E},null),(P=(D=(T=n.checkbox)!=null?T:(_=l?.slots)==null?void 0:_.checkbox)==null?void 0:D({checked:g.value,disabled:y.value}))!=null?P:O(To,{class:`${a}-icon-hover`,disabled:y.value||g.value},{default:()=>[O("div",{class:`${a}-icon`},[g.value&&O(Gne,{class:`${a}-icon-check`},null)])]}),n.default&&O("span",{class:`${a}-label`},[n.default()])])}}}),XC=ke({name:"CheckboxGroup",props:{modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},max:{type:Number},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{disabled:r}=nn(e),o=Le("checkbox-group"),{mergedDisabled:a,eventHandlers:s}=Ao({disabled:r}),l=fe(e.defaultValue),c=F(()=>tr(e.modelValue)?e.modelValue:l.value),d=F(()=>e.max===void 0?!1:c.value.length>=e.max),h=F(()=>{var y;return((y=e.options)!=null?y:[]).map(S=>cs(S)||Ze(S)?{label:S,value:S}:S)});ti(rpe,Yt({name:"ArcoCheckboxGroup",computedValue:c,disabled:a,isMaxed:d,slots:n,handleChange:(y,S)=>{var k,C;l.value=y,t("update:modelValue",y),t("change",y,S),(C=(k=s.value)==null?void 0:k.onChange)==null||C.call(k,S)}}));const m=F(()=>[o,`${o}-direction-${e.direction}`]);Pt(()=>e.modelValue,y=>{tr(y)?l.value=[...y]:l.value=[]});const g=()=>h.value.map(y=>{const S=c.value.includes(y.value);return O(YC,{key:y.value,value:y.value,disabled:y.disabled||!S&&d.value,indeterminate:y.indeterminate,modelValue:S},{default:()=>[n.label?n.label({data:y}):xn(y.label)?y.label():y.label]})});return()=>{var y;return O("span",{class:m.value},[h.value.length>0?g():(y=n.default)==null?void 0:y.call(n)])}}});const Td=Object.assign(YC,{Group:XC,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+YC.name,YC),e.component(n+XC.name,XC)}}),ipe=Symbol("ArcoSelectContext"),rPe=e=>mr(e)&&"isGroup"in e,ope=e=>mr(e)&&"isGroup"in e,iPe=(e,t="value")=>String(mr(e)?e[t]:e),Tm=(e,t="value")=>mr(e)?`__arco__option__object__${e[t]}`:e||Ze(e)||cs(e)||wl(e)?`__arco__option__${typeof e}-${e}`:"",oPe=e=>e.has("__arco__option__string-"),sPe=(e,{valueKey:t,fieldNames:n,origin:r,index:o=-1})=>{var a;if(mr(e)){const l=e[n.value];return{raw:e,index:o,key:Tm(l,t),origin:r,value:l,label:(a=e[n.label])!=null?a:iPe(l,t),render:e[n.render],disabled:!!e[n.disabled],tagProps:e[n.tagProps]}}const s={value:e,label:String(e),disabled:!1};return{raw:s,index:o,key:Tm(e,t),origin:r,...s}},Yj=(e,{valueKey:t,fieldNames:n,origin:r,optionInfoMap:o})=>{var a;const s=[];for(const l of e)if(rPe(l)){const c=Yj((a=l.options)!=null?a:[],{valueKey:t,fieldNames:n,origin:r,optionInfoMap:o});c.length>0&&s.push({...l,key:`__arco__group__${l.label}`,options:c})}else{const c=sPe(l,{valueKey:t,fieldNames:n,origin:r});s.push(c),o.get(c.key)||o.set(c.key,c)}return s},Kne=(e,{inputValue:t,filterOption:n})=>{const r=o=>{var a;const s=[];for(const l of o)if(ope(l)){const c=r((a=l.options)!=null?a:[]);c.length>0&&s.push({...l,options:c})}else L5(l,{inputValue:t,filterOption:n})&&s.push(l);return s};return r(e)},L5=(e,{inputValue:t,filterOption:n})=>xn(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,aPe=(e,t)=>{if(!e||!t||e.length!==t.length)return!1;for(const n of Object.keys(e))if(!i3(e[n],t[n]))return!1;return!0},lPe=(e,t)=>{if(!e||!t)return!1;const{length:n}=e;if(n!==t.length)return!1;for(let r=0;r{const n=Object.prototype.toString.call(e);return n!==Object.prototype.toString.call(t)?!1:n==="[object Object]"?aPe(e,t):n==="[object Array]"?lPe(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},uPe=ke({name:"Option",components:{Checkbox:Td},props:{value:{type:[String,Number,Boolean,Object],default:void 0},label:String,disabled:Boolean,tagProps:{type:Object},extra:{type:Object},index:{type:Number},internal:Boolean},setup(e){const{disabled:t,tagProps:n,index:r}=nn(e),o=Le("select-option"),a=Pn(ipe,void 0),s=go(),l=fe(),c=fe(n.value);Pt(n,(D,P)=>{i3(D,P)||(c.value=D)});const d=fe(""),h=F(()=>{var D,P;return(P=(D=e.value)!=null?D:e.label)!=null?P:d.value}),p=F(()=>{var D;return(D=e.label)!=null?D:d.value}),m=F(()=>Tm(h.value,a?.valueKey)),g=F(()=>{var D;return(D=a?.component)!=null?D:"li"}),y=()=>{var D;if(!e.label&&l.value){const P=(D=l.value.textContent)!=null?D:"";d.value!==P&&(d.value=P)}};vn(()=>y()),Qa(()=>y());const S=F(()=>{var D;return(D=a?.valueKeys.includes(m.value))!=null?D:!1}),k=F(()=>a?.activeKey===m.value);let C=fe(!0);if(!e.internal){const D=Yt({raw:{value:h,label:p,disabled:t,tagProps:c},ref:l,index:r,key:m,origin:"slot",value:h,label:p,disabled:t,tagProps:c});C=F(()=>L5(D,{inputValue:a?.inputValue,filterOption:a?.filterOption})),s&&a?.addSlotOptionInfo(s.uid,D),Oo(()=>{s&&a?.removeSlotOptionInfo(s.uid)})}const x=D=>{e.disabled||a?.onSelect(m.value,D)},E=()=>{e.disabled||a?.setActiveKey(m.value)},_=()=>{e.disabled||a?.setActiveKey()},T=F(()=>[o,{[`${o}-disabled`]:e.disabled,[`${o}-selected`]:S.value,[`${o}-active`]:k.value,[`${o}-multiple`]:a?.multiple}]);return{prefixCls:o,cls:T,selectCtx:a,itemRef:l,component:g,isSelected:S,isValid:C,handleClick:x,handleMouseEnter:E,handleMouseLeave:_}}});function cPe(e,t,n,r,o,a){const s=Pe("checkbox");return wi((H(),Je(Wa(e.component),{ref:"itemRef",class:le([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:e.handleClick,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave},{default:de(()=>[e.$slots.icon?(H(),J("span",{key:0,class:le(`${e.prefixCls}-icon`)},[dt(e.$slots,"icon")],2)):Me("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(H(),Je(s,{key:1,class:le(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:de(()=>[dt(e.$slots,"default",{},()=>[We(Ve(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(H(),J("span",{key:2,class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"default",{},()=>[We(Ve(e.label),1)])],2)),e.$slots.suffix?(H(),J("span",{key:3,class:le(`${e.prefixCls}-suffix`)},[dt(e.$slots,"suffix")],2)):Me("v-if",!0)]),_:3},40,["class","onClick","onMouseenter","onMouseleave"])),[[Qo,e.isValid]])}var am=je(uPe,[["render",cPe]]);const dPe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},fPe=({options:e,extraOptions:t,inputValue:n,filterOption:r,showExtraOptions:o,valueKey:a,fieldNames:s})=>{const l=F(()=>({...dPe,...s?.value})),c=Yt(new Map),d=F(()=>Array.from(c.values()).sort((E,_)=>Ze(E.index)&&Ze(_.index)?E.index-_.index:0)),h=F(()=>{var E,_;const T=new Map;return{optionInfos:Yj((E=e?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"options",optionInfoMap:T}),optionInfoMap:T}}),p=F(()=>{var E,_;const T=new Map;return{optionInfos:Yj((E=t?.value)!=null?E:[],{valueKey:(_=a?.value)!=null?_:"value",fieldNames:l.value,origin:"extraOptions",optionInfoMap:T}),optionInfoMap:T}}),m=Yt(new Map);Pt([d,e??fe([]),t??fe([]),a??fe("value")],()=>{m.clear(),d.value.forEach((E,_)=>{m.set(E.key,{...E,index:_})}),h.value.optionInfoMap.forEach(E=>{m.has(E.key)||(E.index=m.size,m.set(E.key,E))}),p.value.optionInfoMap.forEach(E=>{m.has(E.key)||(E.index=m.size,m.set(E.key,E))})},{immediate:!0,deep:!0});const g=F(()=>{var E;const _=Kne(h.value.optionInfos,{inputValue:n?.value,filterOption:r?.value});return((E=o?.value)==null||E)&&_.push(...Kne(p.value.optionInfos,{inputValue:n?.value,filterOption:r?.value})),_}),y=F(()=>Array.from(m.values()).filter(E=>E.origin==="extraOptions"&&o?.value===!1?!1:L5(E,{inputValue:n?.value,filterOption:r?.value}))),S=F(()=>y.value.filter(E=>!E.disabled).map(E=>E.key));return{validOptions:g,optionInfoMap:m,validOptionInfos:y,enabledOptionKeys:S,getNextSlotOptionIndex:()=>c.size,addSlotOptionInfo:(E,_)=>{c.set(E,_)},removeSlotOptionInfo:E=>{c.delete(E)}}},zo={ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},qne=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),D5=e=>{const t={};return e.forEach((n,r)=>{const o=cs(r)?{key:r}:r;t[qne(o)]=n}),n=>{const r=qne({key:n.key,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey}),o=t[r];o&&(n.stopPropagation(),o(n))}},lH=({multiple:e,options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,component:s,valueKey:l,fieldNames:c,loading:d,popupVisible:h,valueKeys:p,dropdownRef:m,optionRefs:g,virtualListRef:y,onSelect:S,onPopupVisibleChange:k,enterToOpen:C=!0,defaultActiveFirstOption:x})=>{const{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:$}=fPe({options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,valueKey:l,fieldNames:c}),I=fe();Pt(D,G=>{(!I.value||!G.includes(I.value))&&(I.value=G[0])});const N=G=>{I.value=G},j=G=>{const X=D.value.length;if(X===0)return;if(!I.value)return G==="down"?D.value[0]:D.value[X-1];const ie=D.value.indexOf(I.value),ee=(X+ie+(G==="up"?-1:1))%X;return D.value[ee]},U=G=>{var X,ie;y?.value&&y.value.scrollTo({key:G});const ee=_.get(G),W=(X=m?.value)==null?void 0:X.wrapperRef,q=(ie=g?.value[G])!=null?ie:ee?.ref;if(!W||!q||W.scrollHeight===W.offsetHeight)return;const Q=a7e(q,W),ne=W.scrollTop;Q.top<0?W.scrollTo(0,ne+Q.top):Q.bottom<0&&W.scrollTo(0,ne-Q.bottom)};Pt(h,G=>{var X;if(G){const ie=p.value[p.value.length-1];let ee=(X=x?.value)==null||X?D.value[0]:void 0;D.value.includes(ie)&&(ee=ie),ee!==I.value&&(I.value=ee),_n(()=>{I.value&&U(I.value)})}});const z=D5(new Map([[zo.ENTER,G=>{!d?.value&&!G.isComposing&&(h.value?I.value&&(S(I.value,G),G.preventDefault()):C&&(k(!0),G.preventDefault()))}],[zo.ESC,G=>{h.value&&(k(!1),G.preventDefault())}],[zo.ARROW_DOWN,G=>{if(h.value){const X=j("down");X&&(I.value=X,U(X)),G.preventDefault()}}],[zo.ARROW_UP,G=>{if(h.value){const X=j("up");X&&(I.value=X,U(X)),G.preventDefault()}}]]));return ti(ipe,Yt({multiple:e,valueKey:l,inputValue:r,filterOption:o,component:s,valueKeys:p,activeKey:I,setActiveKey:N,onSelect:S,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:$})),{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,activeKey:I,setActiveKey:N,addSlotOptionInfo:M,removeSlotOptionInfo:$,getNextActiveKey:j,scrollIntoView:U,handleKeyDown:z}},hPe=({dataKeys:e,contentRef:t,fixedSize:n,estimatedSize:r,buffer:o})=>{const a=fe(0),s=new Map,l=F(()=>e.value.length),c=fe(0),d=F(()=>{const P=c.value+o.value*3;return P>l.value?l.value:P}),h=F(()=>{const P=l.value-o.value*3;return P<0?0:P}),p=P=>{P<0?c.value=0:P>h.value?c.value=h.value:c.value=P},m=fe(n.value),g=F(()=>r.value!==30?r.value:a.value||r.value),y=(P,M)=>{s.set(P,M)},S=P=>{var M;if(m.value)return g.value;const $=e.value[P];return(M=s.get($))!=null?M:g.value},k=P=>s.has(P);vn(()=>{const P=Array.from(s.values()).reduce((M,$)=>M+$,0);P>0&&(a.value=P/s.size)});const C=P=>m.value?g.value*P:x(0,P),x=(P,M)=>{let $=0;for(let I=P;Im.value?g.value*c.value:x(0,c.value)),_=P=>{const M=P>=E.value;let $=Math.abs(P-E.value);const I=M?c.value:c.value-1;let N=0;for(;$>0;)$-=S(I+N),M?N++:N--;return N},T=P=>{const M=_(P),$=c.value+M-o.value;return $<0?0:$>h.value?h.value:$},D=F(()=>m.value?g.value*(l.value-d.value):x(d.value,l.value));return{frontPadding:E,behindPadding:D,start:c,end:d,getStartByScroll:T,setItemSize:y,hasItemSize:k,setStart:p,getScrollOffset:C}};var pPe=ke({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const r=(n=go())==null?void 0:n.vnode.key,o=fe(),a=()=>{var s,l,c,d;const h=(l=(s=o.value)==null?void 0:s.$el)!=null?l:o.value,p=(d=(c=h?.getBoundingClientRect)==null?void 0:c.call(h).height)!=null?d:h?.offsetHeight;p&&e.setItemSize(r,p)};return vn(()=>a()),Oo(()=>a()),()=>{var s;const l=J1((s=t.default)==null?void 0:s.call(t));return l?Cl(l,{ref:o},!0):null}}});const vPe=ke({name:"VirtualList",components:{VirtualListItem:pPe},props:{height:{type:[Number,String],default:200},data:{type:Array,default:()=>[]},threshold:{type:Number,default:0},itemKey:{type:String,default:"key"},fixedSize:{type:Boolean,default:!1},estimatedSize:{type:Number,default:30},buffer:{type:Number,default:10},component:{type:[String,Object],default:"div"},listAttrs:{type:Object},contentAttrs:{type:Object},paddingPosition:{type:String,default:"content"}},emits:{scroll:e=>!0,reachBottom:e=>!0},setup(e,{emit:t}){const{data:n,itemKey:r,fixedSize:o,estimatedSize:a,buffer:s,height:l}=nn(e),c=Le("virtual-list"),d=F(()=>mr(e.component)?{container:"div",list:"div",content:"div",...e.component}:{container:e.component,list:"div",content:"div"}),h=fe(),p=fe(),m=F(()=>({height:Ze(l.value)?`${l.value}px`:l.value,overflow:"auto"})),g=F(()=>n.value.map((I,N)=>{var j;return(j=I[r.value])!=null?j:N})),{frontPadding:y,behindPadding:S,start:k,end:C,getStartByScroll:x,setItemSize:E,hasItemSize:_,setStart:T,getScrollOffset:D}=hPe({dataKeys:g,contentRef:p,fixedSize:o,estimatedSize:a,buffer:s}),P=F(()=>e.threshold&&n.value.length<=e.threshold?n.value:n.value.slice(k.value,C.value)),M=I=>{const{scrollTop:N,scrollHeight:j,offsetHeight:U}=I.target,z=x(N);z!==k.value&&(T(z),_n(()=>{$(N)})),t("scroll",I),Math.floor(j-(N+U))<=0&&t("reachBottom",I)},$=I=>{var N,j;if(h.value)if(Ze(I))h.value.scrollTop=I;else{const U=(j=I.index)!=null?j:g.value.indexOf((N=I.key)!=null?N:"");T(U-s.value),h.value.scrollTop=D(U),_n(()=>{if(h.value){const z=D(U);z!==h.value.scrollTop&&(h.value.scrollTop=z)}})}};return{prefixCls:c,containerRef:h,contentRef:p,frontPadding:y,currentList:P,behindPadding:S,onScroll:M,setItemSize:E,hasItemSize:_,start:k,scrollTo:$,style:m,mergedComponent:d}}});function mPe(e,t,n,r,o,a){const s=Pe("VirtualListItem");return H(),Je(Wa(e.mergedComponent.container),{ref:"containerRef",class:le(e.prefixCls),style:Ge(e.style),onScroll:e.onScroll},{default:de(()=>[(H(),Je(Wa(e.mergedComponent.list),zt(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(H(),Je(Wa(e.mergedComponent.content),zt({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(H(!0),J(Ft,null,pn(e.currentList,(l,c)=>{var d;return H(),Je(s,{key:(d=l[e.itemKey])!=null?d:e.start+c,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:de(()=>[dt(e.$slots,"item",{item:l,index:e.start+c})]),_:2},1032,["has-item-size","set-item-size"])}),128))]),_:3},16,["style"]))]),_:3},16,["style"]))]),_:3},40,["class","style","onScroll"])}var o3=je(vPe,[["render",mPe]]),NP=ke({name:"AutoComplete",inheritAttrs:!1,props:{modelValue:{type:String,default:void 0},defaultValue:{type:String,default:""},disabled:{type:Boolean,default:!1},data:{type:Array,default:()=>[]},popupContainer:{type:[String,Object]},strict:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},triggerProps:{type:Object},allowClear:{type:Boolean,default:!1},virtualListProps:{type:Object}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:e=>!0,select:e=>!0,clear:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const{modelValue:o}=nn(e),a=Le("auto-complete"),{mergedDisabled:s,eventHandlers:l}=Ao({disabled:Iu(e,"disabled")}),c=fe(e.defaultValue),d=fe(),h=F(()=>{var q;return(q=e.modelValue)!=null?q:c.value});Pt(o,q=>{(wn(q)||Tl(q))&&(c.value="")});const p=F(()=>h.value?[Tm(h.value)]:[]),{data:m}=nn(e),g=fe(),y=fe({}),S=fe(!1),k=F(()=>S.value&&z.value.length>0),C=fe(),x=F(()=>e.virtualListProps?"div":"li"),E=q=>{S.value=q},_=(q,Q)=>{var ne;return!!((ne=Q.label)!=null&&ne.includes(q))},T=F(()=>xn(e.filterOption)?e.filterOption:e.filterOption&&e.strict?_:e.filterOption),D=q=>{var Q,ne;c.value=q,t("update:modelValue",q),t("change",q),(ne=(Q=l.value)==null?void 0:Q.onChange)==null||ne.call(Q)},P=q=>{var Q,ne;c.value="",t("update:modelValue",""),t("change",""),(ne=(Q=l.value)==null?void 0:Q.onChange)==null||ne.call(Q),t("clear",q)},M=(q,Q)=>{var ne,ae;const re=(ne=U.get(q))==null?void 0:ne.value;t("select",re),D(re),(ae=d.value)==null||ae.blur()},$=q=>{t("search",q),D(q)},I=q=>{t("dropdownScroll",q)},N=q=>{t("dropdownReachBottom",q)},{validOptions:j,optionInfoMap:U,validOptionInfos:z,handleKeyDown:G}=lH({options:m,inputValue:h,filterOption:T,popupVisible:k,valueKeys:p,component:x,dropdownRef:g,optionRefs:y,onSelect:M,onPopupVisibleChange:E}),X=q=>{if(xn(r.option)&&q.value){const Q=U.get(q.key),ne=r.option;return()=>ne({data:Q})}return()=>q.label},ie=q=>O(am,{ref:Q=>{Q?.$el&&(y.value[q.key]=Q.$el)},key:q.key,value:q.value,disabled:q.disabled,internal:!0},{default:X(q)}),ee=()=>O(aH,{ref:g,class:`${a}-dropdown`,virtualList:!!e.virtualListProps,onScroll:I,onReachBottom:N},{default:()=>[...j.value.map(q=>ie(q))],"virtual-list":()=>O(o3,zt(e.virtualListProps,{ref:C,data:j.value}),{item:({item:q})=>ie(q)}),footer:r.footer});return{inputRef:d,render:()=>O(ha,zt({trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",autoFitTransformOrigin:!0,popupVisible:k.value,clickToClose:!1,preventFocus:!0,popupOffset:4,disabled:s.value,autoFitPopupWidth:!0},e.triggerProps,{onPopupVisibleChange:E}),{default:()=>[O(R0,zt({ref:d},n,{allowClear:e.allowClear,modelValue:h.value,disabled:s.value,onInput:$,onClear:P,onKeydown:G}),r)],content:ee})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const gPe=Object.assign(NP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+NP.name,NP)}}),uH=({itemRef:e,selector:t,index:n,parentClassName:r})=>{const o=fe(-1),a=F(()=>{var d;return(d=n?.value)!=null?d:o.value}),s=fe(),l=()=>{var d,h,p;let m=(h=(d=e.value)==null?void 0:d.parentElement)!=null?h:void 0;if(r)for(;m&&!m.className.includes(r);)m=(p=m.parentElement)!=null?p:void 0;return m},c=()=>{if(wn(n?.value)&&s.value&&e.value){const d=Array.from(s.value.querySelectorAll(t)).indexOf(e.value);d!==o.value&&(o.value=d)}};return Pt(e,()=>{e.value&&!s.value&&(s.value=l())}),vn(()=>{e.value&&(s.value=l()),c()}),Qa(()=>c()),{computedIndex:a}},spe=Symbol("ArcoAvatarGroup"),yPe=ke({name:"IconImageClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-image-close`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bPe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Pe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',5)]),14,bPe)}var FP=je(yPe,[["render",_Pe]]);const P5=Object.assign(FP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FP.name,FP)}}),SPe=ke({name:"Avatar",components:{ResizeObserver:y0,IconImageClose:P5,IconLoading:Xa},props:{shape:{type:String,default:"circle"},imageUrl:String,size:Number,autoFixFontSize:{type:Boolean,default:!0},triggerType:{type:String,default:"button"},triggerIconStyle:{type:Object},objectFit:{type:String}},emits:{click:e=>!0,error:()=>!0,load:()=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{shape:o,size:a,autoFixFontSize:s,triggerType:l,triggerIconStyle:c}=nn(e),d=Le("avatar"),h=Pn(spe,void 0),p=fe(),m=fe(),g=F(()=>{var z;return(z=h?.shape)!=null?z:o.value}),y=F(()=>{var z;return(z=h?.size)!=null?z:a.value}),S=F(()=>{var z;return(z=h?.autoFixFontSize)!=null?z:s.value}),k=fe(!1),C=fe(!1),x=fe(!0),E=fe(!1),_=h?uH({itemRef:p,selector:`.${d}`}).computedIndex:fe(-1),T=F(()=>{var z;const G=Ze(y.value)?{width:`${y.value}px`,height:`${y.value}px`,fontSize:`${y.value/2}px`}:{};return h&&(G.zIndex=h.zIndexAscend?_.value+1:h.total-_.value,G.marginLeft=_.value!==0?`-${((z=y.value)!=null?z:40)/4}px`:"0"),G}),D=kPe({triggerIconStyle:c?.value,inlineStyle:r.style,triggerType:l.value}),P=()=>{!k.value&&!e.imageUrl&&_n(()=>{var z;if(!m.value||!p.value)return;const G=m.value.clientWidth,X=(z=y.value)!=null?z:p.value.offsetWidth,ie=X/(G+8);X&&ie<1&&(m.value.style.transform=`scale(${ie}) translateX(-50%)`),x.value=!0})};vn(()=>{var z;(z=m.value)!=null&&z.firstElementChild&&["IMG","PICTURE"].includes(m.value.firstElementChild.tagName)&&(k.value=!0),S.value&&P()}),Pt(a,()=>{S.value&&P()});const M=F(()=>[d,`${d}-${g.value}`]),$=F(()=>k.value||e.imageUrl?`${d}-image`:`${d}-text`);return{prefixCls:d,itemRef:p,cls:M,outerStyle:T,wrapperRef:m,wrapperCls:$,computedTriggerIconStyle:D,isImage:k,shouldLoad:x,isLoaded:E,hasError:C,onClick:z=>{n("click",z)},handleResize:()=>{S.value&&P()},handleImgLoad:()=>{E.value=!0,n("load")},handleImgError:()=>{C.value=!0,n("error")}}}}),kPe=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let r={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(r={color:t.backgroundColor}),{...n,...r}},xPe=["src"];function CPe(e,t,n,r,o,a){const s=Pe("IconImageClose"),l=Pe("IconLoading"),c=Pe("resize-observer");return H(),J("div",{ref:"itemRef",style:Ge(e.outerStyle),class:le([e.cls,{[`${e.prefixCls}-with-trigger-icon`]:!!e.$slots["trigger-icon"]}]),onClick:t[2]||(t[2]=(...d)=>e.onClick&&e.onClick(...d))},[O(c,{onResize:e.handleResize},{default:de(()=>[L("span",{ref:"wrapperRef",class:le(e.wrapperCls)},[e.imageUrl?(H(),J(Ft,{key:0},[e.hasError?dt(e.$slots,"error",{key:0},()=>[L("div",{class:le(`${e.prefixCls}-image-icon`)},[O(s)],2)]):Me("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?dt(e.$slots,"default",{key:1},()=>[L("div",{class:le(`${e.prefixCls}-image-icon`)},[O(l)],2)]):Me("v-if",!0),e.hasError||!e.shouldLoad?Me("v-if",!0):(H(),J("img",{key:2,src:e.imageUrl,style:Ge({width:e.size+"px",height:e.size+"px",objectFit:e.objectFit}),alt:"avatar",onLoad:t[0]||(t[0]=(...d)=>e.handleImgLoad&&e.handleImgLoad(...d)),onError:t[1]||(t[1]=(...d)=>e.handleImgError&&e.handleImgError(...d))},null,44,xPe))],64)):dt(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(H(),J("div",{key:0,class:le(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:Ge(e.computedTriggerIconStyle)},[dt(e.$slots,"trigger-icon")],6)):Me("v-if",!0)],6)}var ZC=je(SPe,[["render",CPe]]);const wPe=ke({name:"Popover",components:{Trigger:ha},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},title:String,content:String,trigger:{type:[String,Array],default:"hover"},position:{type:String,default:"top"},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Le("popover"),r=fe(e.defaultPopupVisible),o=F(()=>{var c;return(c=e.popupVisible)!=null?c:r.value}),a=c=>{r.value=c,t("update:popupVisible",c),t("popupVisibleChange",c)},s=F(()=>[`${n}-popup-content`,e.contentClass]),l=F(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,computedPopupVisible:o,contentCls:s,arrowCls:l,handlePopupVisibleChange:a}}});function EPe(e,t,n,r,o,a){const s=Pe("trigger");return H(),Je(s,{class:le(e.prefixCls),trigger:e.trigger,position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"show-arrow":"","popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[L("div",{class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2),L("div",{class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"content",{},()=>[We(Ve(e.content),1)])],2)]),default:de(()=>[dt(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var jP=je(wPe,[["render",EPe]]);const cH=Object.assign(jP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+jP.name,jP)}}),JC=ke({name:"AvatarGroup",props:{shape:{type:String,default:"circle"},size:Number,autoFixFontSize:{type:Boolean,default:!0},maxCount:{type:Number,default:0},zIndexAscend:{type:Boolean,default:!1},maxStyle:{type:Object},maxPopoverTriggerProps:{type:Object}},setup(e,{slots:t}){const{shape:n,size:r,autoFixFontSize:o,zIndexAscend:a}=nn(e),s=Le("avatar-group"),l=fe(0);return ti(spe,Yt({shape:n,size:r,autoFixFontSize:o,zIndexAscend:a,total:l})),()=>{var c,d;const h=yf((d=(c=t.default)==null?void 0:c.call(t))!=null?d:[]),p=e.maxCount>0?h.slice(0,e.maxCount):h,m=e.maxCount>0?h.slice(e.maxCount):[];return l.value!==h.length&&(l.value=h.length),O("div",{class:s},[p,m.length>0&&O(cH,e.maxPopoverTriggerProps,{default:()=>[O(ZC,{class:`${s}-max-count-avatar`,style:e.maxStyle},{default:()=>[We("+"),m.length]})],content:()=>O("div",null,[m])})])}}}),TPe=Object.assign(ZC,{Group:JC,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+ZC.name,ZC),e.component(n+JC.name,JC)}}),APe=ke({name:"IconToTop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-to-top`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IPe=["stroke-width","stroke-linecap","stroke-linejoin"];function LPe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43 7H5M24 20v23M24 13.96 30.453 21H17.546L24 13.96Zm.736-.804Z"},null,-1),L("path",{d:"m24 14-6 7h12l-6-7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,IPe)}var VP=je(APe,[["render",LPe]]);const ape=Object.assign(VP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VP.name,VP)}}),DPe=ke({name:"BackTop",components:{IconToTop:ape},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=Le("back-top"),n=fe(!1),r=fe(),o=!e.targetContainer,a=wm(()=>{if(r.value){const{visibleHeight:c}=e,{scrollTop:d}=r.value;n.value=d>=c}}),s=c=>cs(c)?document.querySelector(c):c;return vn(()=>{r.value=o?document?.documentElement:s(e.targetContainer),r.value&&(Di(o?window:r.value,"scroll",a),a())}),vi(()=>{a.cancel(),r.value&&to(o?window:r.value,"scroll",a)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(r.value){const{scrollTop:c}=r.value;new Km({from:{scrollTop:c},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:h=>{r.value&&(r.value.scrollTop=h.scrollTop)}}).start()}}}}});function PPe(e,t,n,r,o,a){const s=Pe("icon-to-top");return H(),Je(xs,{name:"fade-in"},{default:de(()=>[e.visible?(H(),J("div",{key:0,class:le(e.prefixCls),onClick:t[0]||(t[0]=(...l)=>e.scrollToTop&&e.scrollToTop(...l))},[dt(e.$slots,"default",{},()=>[L("button",{class:le(`${e.prefixCls}-btn`)},[O(s)],2)])],2)):Me("v-if",!0)]),_:3})}var zP=je(DPe,[["render",PPe]]);const RPe=Object.assign(zP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+zP.name,zP)}}),MPe=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],OPe=["normal","processing","success","warning","danger"];var UP=ke({name:"Badge",props:{text:{type:String},dot:{type:Boolean},dotStyle:{type:Object},maxCount:{type:Number,default:99},offset:{type:Array,default:()=>[]},color:{type:String},status:{type:String,validator:e=>OPe.includes(e)},count:{type:Number}},setup(e,{slots:t}){const{status:n,color:r,dotStyle:o,offset:a,text:s,dot:l,maxCount:c,count:d}=nn(e),h=Le("badge"),p=$Pe(h,n?.value,t?.default),m=F(()=>{const y={...o?.value||{}},[S,k]=a?.value||[];S&&(y.marginRight=`${-S}px`),k&&(y.marginTop=`${k}px`);const C=!r?.value||MPe.includes(r?.value)?{}:{backgroundColor:r.value};return{mergedStyle:{...C,...y},computedDotStyle:y,computedColorStyle:C}}),g=()=>{const y=s?.value,S=r?.value,k=n?.value,C=l?.value,x=Number(d?.value),E=d?.value!=null,{computedDotStyle:_,mergedStyle:T}=m.value;return t.content?O("span",{class:`${h}-custom-dot`,style:_},[t.content()]):y&&!S&&!k?O("span",{class:`${h}-text`,style:_},[y]):k||S&&!E?O("span",{class:`${h}-status-wrapper`},[O("span",{class:[`${h}-status-dot`,{[`${h}-status-${k}`]:k,[`${h}-color-${S}`]:S}],style:T},null),y&&O("span",{class:`${h}-status-text`},[y])]):(C||S)&&x>0?O("span",{class:[`${h}-dot`,{[`${h}-color-${S}`]:S}],style:T},null):x===0?null:O("span",{class:`${h}-number`,style:T},[O("span",null,[c.value&&x>c.value?`${c.value}+`:x])])};return()=>O("span",{class:p.value},[t.default&&t.default(),g()])}});const $Pe=(e,t,n)=>F(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),BPe=Object.assign(UP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+UP.name,UP)}}),lpe=Symbol("ArcoBreadcrumb"),NPe=ke({name:"IconMore",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-more`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FPe=["stroke-width","stroke-linecap","stroke-linejoin"];function jPe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z"},null,-1)]),14,FPe)}var HP=je(NPe,[["render",jPe]]);const M0=Object.assign(HP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HP.name,HP)}}),VPe=ke({name:"IconDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-down`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zPe=["stroke-width","stroke-linecap","stroke-linejoin"];function UPe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M39.6 17.443 24.043 33 8.487 17.443"},null,-1)]),14,zPe)}var WP=je(VPe,[["render",UPe]]);const Yh=Object.assign(WP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WP.name,WP)}}),HPe=ke({name:"IconObliqueLine",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-oblique-line`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WPe=["stroke-width","stroke-linecap","stroke-linejoin"];function GPe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M29.506 6.502 18.493 41.498"},null,-1)]),14,WPe)}var GP=je(HPe,[["render",GPe]]);const upe=Object.assign(GP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GP.name,GP)}}),dH=Symbol("ArcoDropdown"),KPe=ke({name:"DropdownPanel",components:{Scrollbar:Dd,Empty:qh},props:{loading:{type:Boolean,default:!1},isEmpty:{type:Boolean,default:!1},bottomOffset:{type:Number,default:0},onScroll:{type:[Function,Array]},onReachBottom:{type:[Function,Array]}},emits:["scroll","reachBottom"],setup(e,{emit:t,slots:n}){const r=Le("dropdown"),o=Pn(dH,{}),a=fe(),s=d=>{const{scrollTop:h,scrollHeight:p,offsetHeight:m}=d.target;p-(h+m)<=e.bottomOffset&&t("reachBottom",d),t("scroll",d)},l=F(()=>{if(Ze(o.popupMaxHeight))return{maxHeight:`${o.popupMaxHeight}px`};if(!o.popupMaxHeight)return{maxHeight:"none",overflowY:"hidden"}}),c=F(()=>[r,{[`${r}-has-footer`]:!!n.footer}]);return{prefixCls:r,cls:c,style:l,wrapperRef:a,handleScroll:s}}});function qPe(e,t,n,r,o,a){const s=Pe("empty"),l=Pe("Scrollbar");return H(),J("div",{class:le(e.cls)},[e.isEmpty?(H(),J("div",{key:0,class:le(`${e.prefixCls}-empty`)},[dt(e.$slots,"empty",{},()=>[O(s)])],2)):Me("v-if",!0),O(l,{ref:"wrapperRef",class:le(`${e.prefixCls}-list-wrapper`),style:Ge(e.style),onScroll:e.handleScroll},{default:de(()=>[L("ul",{class:le(`${e.prefixCls}-list`)},[dt(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(H(),J("div",{key:1,class:le(`${e.prefixCls}-footer`)},[dt(e.$slots,"footer")],2)):Me("v-if",!0)],2)}var cpe=je(KPe,[["render",qPe]]);const R5=({popupVisible:e,defaultPopupVisible:t,emit:n})=>{var r;const o=fe((r=t?.value)!=null?r:!1),a=F(()=>{var l;return(l=e?.value)!=null?l:o.value}),s=l=>{l!==a.value&&(o.value=l,n("update:popupVisible",l),n("popupVisibleChange",l))};return Pt(a,l=>{o.value!==l&&(o.value=l)}),{computedPopupVisible:a,handlePopupVisibleChange:s}},YPe=ke({name:"Dropdown",components:{Trigger:ha,DropdownPanel:cpe},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"bottom"},popupContainer:{type:[String,Object]},popupMaxHeight:{type:[Boolean,Number],default:!0},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r,popupMaxHeight:o}=nn(e),a=Le("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:l}=R5({defaultPopupVisible:n,popupVisible:r,emit:t});return ti(dH,Yt({popupMaxHeight:o,onOptionClick:(d,h)=>{t("select",d,h),e.hideOnSelect&&l(!1)}})),{prefixCls:a,computedPopupVisible:s,handlePopupVisibleChange:l}}});function XPe(e,t,n,r,o,a){const s=Pe("DropdownPanel"),l=Pe("Trigger");return H(),Je(l,{"popup-visible":e.computedPopupVisible,"animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"",trigger:e.trigger,position:e.position,"popup-offset":4,"popup-container":e.popupContainer,"opened-class":`${e.prefixCls}-open`,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[O(s,null,wo({default:de(()=>[dt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[dt(e.$slots,"footer")]),key:"0"}:void 0]),1024)]),default:de(()=>[dt(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var QC=je(YPe,[["render",XPe]]);const ZPe=ke({name:"Doption",props:{value:{type:[String,Number,Object]},disabled:{type:Boolean,default:!1},active:Boolean,uninjectContext:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("dropdown-option"),r=fe(),o=F(()=>{var c,d,h;return(h=(d=e.value)!=null?d:(c=r.value)==null?void 0:c.textContent)!=null?h:void 0}),a=e.uninjectContext?void 0:Pn(dH,void 0),s=c=>{e.disabled||(t("click",c),a?.onOptionClick(o.value,c))},l=F(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-active`]:e.active}]);return{prefixCls:n,cls:l,liRef:r,handleClick:s}}});function JPe(e,t,n,r,o,a){return H(),J("li",{ref:"liRef",class:le([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.$slots.icon?(H(),J("span",{key:0,class:le(`${e.prefixCls}-icon`)},[dt(e.$slots,"icon")],2)):Me("v-if",!0),L("span",{class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"default")],2),e.$slots.suffix?(H(),J("span",{key:1,class:le(`${e.prefixCls}-suffix`)},[dt(e.$slots,"suffix")],2)):Me("v-if",!0)],2)}var ty=je(ZPe,[["render",JPe]]);const QPe=ke({name:"Dgroup",props:{title:String},setup(){return{prefixCls:Le("dropdown-group")}}});function eRe(e,t,n,r,o,a){return H(),J(Ft,null,[L("li",{class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2),dt(e.$slots,"default")],64)}var ew=je(QPe,[["render",eRe]]);const tRe=ke({name:"IconRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nRe=["stroke-width","stroke-linecap","stroke-linejoin"];function rRe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m16 39.513 15.556-15.557L16 8.4"},null,-1)]),14,nRe)}var KP=je(tRe,[["render",rRe]]);const zi=Object.assign(KP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KP.name,KP)}}),iRe=ke({name:"Dsubmenu",components:{Trigger:ha,DropdownPanel:cpe,DropdownOption:ty,IconRight:zi},props:{value:{type:[String,Number]},disabled:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"rt"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},optionProps:{type:Object}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r}=nn(e),o=Le("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=R5({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handlePopupVisibleChange:s}}});function oRe(e,t,n,r,o,a){const s=Pe("IconRight"),l=Pe("dropdown-option"),c=Pe("dropdown-panel"),d=Pe("Trigger");return H(),Je(d,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,disabled:e.disabled,"popup-offset":4,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[O(c,{class:le(`${e.prefixCls}-submenu`)},wo({default:de(()=>[dt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[dt(e.$slots,"footer")]),key:"0"}:void 0]),1032,["class"])]),default:de(()=>[O(l,zt(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),wo({suffix:de(()=>[dt(e.$slots,"suffix",{},()=>[O(s)])]),default:de(()=>[dt(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:de(()=>[dt(e.$slots,"icon")]),key:"0"}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var tw=je(iRe,[["render",oRe]]);const sRe=ke({name:"DropdownButton",components:{IconMore:M0,Button:Xo,ButtonGroup:Z4,Dropdown:QC},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},trigger:{type:[String,Array],default:"click"},position:{type:String,default:"br"},popupContainer:{type:[String,Object]},disabled:{type:Boolean,default:!1},type:{type:String},size:{type:String},buttonProps:{type:Object},hideOnSelect:{type:Boolean,default:!0}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,click:e=>!0,select:(e,t)=>!0},setup(e,{emit:t}){const{defaultPopupVisible:n,popupVisible:r}=nn(e),o=Le("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=R5({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handleClick:d=>{t("click",d)},handleSelect:(d,h)=>{t("select",d,h)},handlePopupVisibleChange:s}}});function aRe(e,t,n,r,o,a){const s=Pe("Button"),l=Pe("IconMore"),c=Pe("Dropdown"),d=Pe("ButtonGroup");return H(),Je(d,null,{default:de(()=>[O(s,zt({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:de(()=>[dt(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),O(c,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,"popup-container":e.popupContainer,"hide-on-select":e.hideOnSelect,onSelect:e.handleSelect,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[dt(e.$slots,"content")]),default:de(()=>[O(s,{size:e.size,type:e.type,disabled:e.disabled},{icon:de(()=>[dt(e.$slots,"icon",{popupVisible:e.computedPopupVisible},()=>[O(l)])]),_:3},8,["size","type","disabled"])]),_:3},8,["popup-visible","trigger","position","popup-container","hide-on-select","onSelect","onPopupVisibleChange"])]),_:3})}var nw=je(sRe,[["render",aRe]]);const dpe=Object.assign(QC,{Option:ty,Group:ew,Submenu:tw,Button:nw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+QC.name,QC),e.component(n+ty.name,ty),e.component(n+ew.name,ew),e.component(n+tw.name,tw),e.component(n+nw.name,nw)}});var J4=ke({name:"BreadcrumbItem",inheritAttrs:!1,props:{separator:{type:[String,Number]},droplist:{type:Array},dropdownProps:{type:Object},index:{type:Number,default:0}},setup(e,{slots:t,attrs:n}){const r=Le("breadcrumb-item"),o=Pn(lpe,void 0),a=fe(!1),s=F(()=>!(o&&o.needHide&&e.index>1&&e.index<=o.total-o.maxCount)),l=F(()=>o&&o.needHide?e.index===1:!1),c=F(()=>o?e.index{a.value=y},h=()=>{var y,S,k,C,x,E,_;if(!c.value)return null;const T=(_=(E=(x=(S=(y=t.separator)==null?void 0:y.call(t))!=null?S:e.separator)!=null?x:(C=o==null?void 0:(k=o.slots).separator)==null?void 0:C.call(k))!=null?E:o?.separator)!=null?_:O(upe,null,null);return O("div",{"aria-hidden":"true",class:`${r}-separator`},[T])},p=()=>{var y,S,k,C;return O("div",zt({role:"listitem",class:[r,{[`${r}-with-dropdown`]:e.droplist||t.droplist}]},l.value?{"aria-label":"ellipses of breadcrumb items"}:void 0,n),[l.value?(k=(S=o==null?void 0:(y=o.slots)["more-icon"])==null?void 0:S.call(y))!=null?k:O(M0,null,null):(C=t.default)==null?void 0:C.call(t),(e.droplist||t.droplist)&&O("span",{"aria-hidden":!0,class:[`${r}-dropdown-icon`,{[`${r}-dropdown-icon-active`]:a.value}]},[O(Yh,null,null)])])},m=()=>{var y,S,k;return(k=(y=t.droplist)==null?void 0:y.call(t))!=null?k:(S=e.droplist)==null?void 0:S.map(C=>O(ty,{value:C.path},{default:()=>[C.label]}))},g=()=>O(dpe,zt({popupVisible:a.value,onPopupVisibleChange:d},e.dropdownProps),{default:()=>[p()],content:m});return()=>s.value?O(Ft,null,[t.droplist||e.droplist?g():p(),h()]):null}}),qP=ke({name:"Breadcrumb",props:{maxCount:{type:Number,default:0},routes:{type:Array},separator:{type:[String,Number]},customUrl:{type:Function}},setup(e,{slots:t}){const{maxCount:n,separator:r,routes:o}=nn(e),a=Le("breadcrumb"),s=fe(0),l=F(()=>n.value>0&&s.value>n.value+1);ti(lpe,Yt({total:s,maxCount:n,separator:r,needHide:l,slots:t}));const c=(p,m,g)=>{var y,S;if(m.indexOf(p)===m.length-1)return O("span",null,[p.label]);const k=(S=(y=e.customUrl)==null?void 0:y.call(e,g))!=null?S:`#/${g.join("/").replace(/^\//,"")}`;return O("a",{href:k},[p.label])},d=()=>{var p;if(!((p=o.value)!=null&&p.length))return null;s.value!==o.value.length&&(s.value=o.value.length);const m=[];return o.value.map((g,y,S)=>{m.push((g.path||"").replace(/^\//,""));const k=[...m];return O(J4,{key:g.path||g.label,index:y,droplist:g.children},{default:()=>{var C,x;return[(x=(C=t["item-render"])==null?void 0:C.call(t,{route:g,routes:S,paths:k}))!=null?x:c(g,S,k)]}})})},h=()=>{var p,m;const g=yf((m=(p=t.default)==null?void 0:p.call(t))!=null?m:[]);return s.value!==g.length&&(s.value=g.length),g.map((y,S)=>{var k;return y.props=zt((k=y.props)!=null?k:{},{index:S}),y})};return()=>O("div",{role:"list",class:a},[t.default?h():d()])}});const lRe=Object.assign(qP,{Item:J4,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+qP.name,qP),e.component(n+J4.name,J4)}});var rw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Jc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function G_(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if(typeof t=="function"){var n=function r(){var o=!1;try{o=this instanceof r}catch{}return o?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,o.get?o:{enumerable:!0,get:function(){return e[r]}})}),n}var iw={exports:{}},uRe=iw.exports,Yne;function fpe(){return Yne||(Yne=1,(function(e,t){(function(n,r){e.exports=r()})(uRe,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",d="day",h="week",p="month",m="quarter",g="year",y="date",S="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,C=/\[([^\]]+)]|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,x={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(z){var G=["th","st","nd","rd"],X=z%100;return"["+z+(G[(X-20)%10]||G[X]||G[0])+"]"}},E=function(z,G,X){var ie=String(z);return!ie||ie.length>=G?z:""+Array(G+1-ie.length).join(X)+z},_={s:E,z:function(z){var G=-z.utcOffset(),X=Math.abs(G),ie=Math.floor(X/60),ee=X%60;return(G<=0?"+":"-")+E(ie,2,"0")+":"+E(ee,2,"0")},m:function z(G,X){if(G.date()1)return z(q[0])}else{var Q=G.name;D[Q]=G,ee=Q}return!ie&&ee&&(T=ee),ee||!ie&&T},I=function(z,G){if(M(z))return z.clone();var X=typeof G=="object"?G:{};return X.date=z,X.args=arguments,new j(X)},N=_;N.l=$,N.i=M,N.w=function(z,G){return I(z,{locale:G.$L,utc:G.$u,x:G.$x,$offset:G.$offset})};var j=(function(){function z(X){this.$L=$(X.locale,null,!0),this.parse(X),this.$x=this.$x||X.x||{},this[P]=!0}var G=z.prototype;return G.parse=function(X){this.$d=(function(ie){var ee=ie.date,W=ie.utc;if(ee===null)return new Date(NaN);if(N.u(ee))return new Date;if(ee instanceof Date)return new Date(ee);if(typeof ee=="string"&&!/Z$/i.test(ee)){var q=ee.match(k);if(q){var Q=q[2]-1||0,ne=(q[7]||"0").substring(0,3);return W?new Date(Date.UTC(q[1],Q,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ne)):new Date(q[1],Q,q[3]||1,q[4]||0,q[5]||0,q[6]||0,ne)}}return new Date(ee)})(X),this.init()},G.init=function(){var X=this.$d;this.$y=X.getFullYear(),this.$M=X.getMonth(),this.$D=X.getDate(),this.$W=X.getDay(),this.$H=X.getHours(),this.$m=X.getMinutes(),this.$s=X.getSeconds(),this.$ms=X.getMilliseconds()},G.$utils=function(){return N},G.isValid=function(){return this.$d.toString()!==S},G.isSame=function(X,ie){var ee=I(X);return this.startOf(ie)<=ee&&ee<=this.endOf(ie)},G.isAfter=function(X,ie){return I(X)68?1900:2e3)},h=function(k){return function(C){this[k]=+C}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=(function(C){if(!C||C==="Z")return 0;var x=C.match(/([+-]|\d\d)/g),E=60*x[1]+(+x[2]||0);return E===0?0:x[0]==="+"?-E:E})(k)}],m=function(k){var C=c[k];return C&&(C.indexOf?C:C.s.concat(C.f))},g=function(k,C){var x,E=c.meridiem;if(E){for(var _=1;_<=24;_+=1)if(k.indexOf(E(_,0,C))>-1){x=_>12;break}}else x=k===(C?"pm":"PM");return x},y={A:[l,function(k){this.afternoon=g(k,!1)}],a:[l,function(k){this.afternoon=g(k,!0)}],Q:[o,function(k){this.month=3*(k-1)+1}],S:[o,function(k){this.milliseconds=100*+k}],SS:[a,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[s,h("seconds")],ss:[s,h("seconds")],m:[s,h("minutes")],mm:[s,h("minutes")],H:[s,h("hours")],h:[s,h("hours")],HH:[s,h("hours")],hh:[s,h("hours")],D:[s,h("day")],DD:[a,h("day")],Do:[l,function(k){var C=c.ordinal,x=k.match(/\d+/);if(this.day=x[0],C)for(var E=1;E<=31;E+=1)C(E).replace(/\[|\]/g,"")===k&&(this.day=E)}],w:[s,h("week")],ww:[a,h("week")],M:[s,h("month")],MM:[a,h("month")],MMM:[l,function(k){var C=m("months"),x=(m("monthsShort")||C.map((function(E){return E.slice(0,3)}))).indexOf(k)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[l,function(k){var C=m("months").indexOf(k)+1;if(C<1)throw new Error;this.month=C%12||C}],Y:[/[+-]?\d+/,h("year")],YY:[a,function(k){this.year=d(k)}],YYYY:[/\d{4}/,h("year")],Z:p,ZZ:p};function S(k){var C,x;C=k,x=c&&c.formats;for(var E=(k=C.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(I,N,j){var U=j&&j.toUpperCase();return N||x[j]||n[j]||x[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(z,G,X){return G||X.slice(1)}))}))).match(r),_=E.length,T=0;T<_;T+=1){var D=E[T],P=y[D],M=P&&P[0],$=P&&P[1];E[T]=$?{regex:M,parser:$}:D.replace(/^\[|\]$/g,"")}return function(I){for(var N={},j=0,U=0;j<_;j+=1){var z=E[j];if(typeof z=="string")U+=z.length;else{var G=z.regex,X=z.parser,ie=I.slice(U),ee=G.exec(ie)[0];X.call(N,ee),I=I.replace(ee,"")}}return(function(W){var q=W.afternoon;if(q!==void 0){var Q=W.hours;q?Q<12&&(W.hours+=12):Q===12&&(W.hours=0),delete W.afternoon}})(N),N}}return function(k,C,x){x.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(d=k.parseTwoDigitYear);var E=C.prototype,_=E.parse;E.parse=function(T){var D=T.date,P=T.utc,M=T.args;this.$u=P;var $=M[1];if(typeof $=="string"){var I=M[2]===!0,N=M[3]===!0,j=I||N,U=M[2];N&&(U=M[2]),c=this.$locale(),!I&&U&&(c=x.Ls[U]),this.$d=(function(ie,ee,W,q){try{if(["x","X"].indexOf(ee)>-1)return new Date((ee==="X"?1e3:1)*ie);var Q=S(ee)(ie),ne=Q.year,ae=Q.month,re=Q.day,Ce=Q.hours,we=Q.minutes,ve=Q.seconds,me=Q.milliseconds,xe=Q.zone,Be=Q.week,Ke=new Date,ze=re||(ne||ae?1:Ke.getDate()),be=ne||Ke.getFullYear(),_e=0;ne&&!ae||(_e=ae>0?ae-1:Ke.getMonth());var Ne,Se=Ce||0,$e=we||0,Xe=ve||0,rt=me||0;return xe?new Date(Date.UTC(be,_e,ze,Se,$e,Xe,rt+60*xe.offset*1e3)):W?new Date(Date.UTC(be,_e,ze,Se,$e,Xe,rt)):(Ne=new Date(be,_e,ze,Se,$e,Xe,rt),Be&&(Ne=q(Ne).week(Be).toDate()),Ne)}catch{return new Date("")}})(D,$,P,x),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),j&&D!=this.format($)&&(this.$d=new Date("")),c={}}else if($ instanceof Array)for(var z=$.length,G=1;G<=z;G+=1){M[1]=$[G-1];var X=x.apply(this,M);if(X.isValid()){this.$d=X.$d,this.$L=X.$L,this.init();break}G===z&&(this.$d=new Date(""))}else _.call(this,T)}}}))})(ow)),ow.exports}var hRe=fRe();const pRe=Jc(hRe);var sw={exports:{}},vRe=sw.exports,Zne;function mRe(){return Zne||(Zne=1,(function(e,t){(function(n,r){e.exports=r()})(vRe,(function(){return function(n,r,o){r.prototype.isBetween=function(a,s,l,c){var d=o(a),h=o(s),p=(c=c||"()")[0]==="(",m=c[1]===")";return(p?this.isAfter(d,l):!this.isBefore(d,l))&&(m?this.isBefore(h,l):!this.isAfter(h,l))||(p?this.isBefore(d,l):!this.isAfter(d,l))&&(m?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(sw)),sw.exports}var gRe=mRe();const yRe=Jc(gRe);var aw={exports:{}},bRe=aw.exports,Jne;function _Re(){return Jne||(Jne=1,(function(e,t){(function(n,r){e.exports=r()})(bRe,(function(){var n="week",r="year";return function(o,a,s){var l=a.prototype;l.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var h=s(this).startOf(r).add(1,r).date(d),p=s(this).endOf(n);if(h.isBefore(p))return 1}var m=s(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),g=this.diff(m,n,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},l.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}}))})(aw)),aw.exports}var SRe=_Re();const kRe=Jc(SRe);var lw={exports:{}},xRe=lw.exports,Qne;function CRe(){return Qne||(Qne=1,(function(e,t){(function(n,r){e.exports=r()})(xRe,(function(){return function(n,r){var o=r.prototype,a=o.format;o.format=function(s){var l=this,c=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),h=(s||"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(p){switch(p){case"Q":return Math.ceil((l.$M+1)/3);case"Do":return c.ordinal(l.$D);case"gggg":return l.weekYear();case"GGGG":return l.isoWeekYear();case"wo":return c.ordinal(l.week(),"W");case"w":case"ww":return d.s(l.week(),p==="w"?1:2,"0");case"W":case"WW":return d.s(l.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return d.s(String(l.$H===0?24:l.$H),p==="k"?1:2,"0");case"X":return Math.floor(l.$d.getTime()/1e3);case"x":return l.$d.getTime();case"z":return"["+l.offsetName()+"]";case"zzz":return"["+l.offsetName("long")+"]";default:return p}}));return a.bind(this)(h)}}}))})(lw)),lw.exports}var wRe=CRe();const ERe=Jc(wRe);var uw={exports:{}},TRe=uw.exports,ere;function ARe(){return ere||(ere=1,(function(e,t){(function(n,r){e.exports=r()})(TRe,(function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),a=this.week(),s=this.year();return a===1&&o===11?s+1:o===0&&a>=52?s-1:s}}}))})(uw)),uw.exports}var IRe=ARe();const LRe=Jc(IRe);var cw={exports:{}},DRe=cw.exports,tre;function PRe(){return tre||(tre=1,(function(e,t){(function(n,r){e.exports=r()})(DRe,(function(){var n="month",r="quarter";return function(o,a){var s=a.prototype;s.quarter=function(d){return this.$utils().u(d)?Math.ceil((this.month()+1)/3):this.month(this.month()%3+3*(d-1))};var l=s.add;s.add=function(d,h){return d=Number(d),this.$utils().p(h)===r?this.add(3*d,n):l.bind(this)(d,h)};var c=s.startOf;s.startOf=function(d,h){var p=this.$utils(),m=!!p.u(h)||h;if(p.p(d)===r){var g=this.quarter()-1;return m?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(d,h)}}}))})(cw)),cw.exports}var RRe=PRe();const MRe=Jc(RRe);var dw={exports:{}},ORe=dw.exports,nre;function $Re(){return nre||(nre=1,(function(e,t){(function(n,r){e.exports=r(fpe())})(ORe,(function(n){function r(s){return s&&typeof s=="object"&&"default"in s?s:{default:s}}var o=r(n),a={name:"zh-cn",weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),ordinal:function(s,l){return l==="W"?s+"周":s+"日"},weekStart:1,yearStart:4,formats:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},relativeTime:{future:"%s内",past:"%s前",s:"几秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},meridiem:function(s,l){var c=100*s+l;return c<600?"凌晨":c<900?"早上":c<1100?"上午":c<1300?"中午":c<1800?"下午":"晚上"}};return o.default.locale(a,null,!0),a}))})(dw)),dw.exports}$Re();const BRe=(e,t,n)=>{n=function(a,s){if(jc(a))return a.clone();const l=typeof s=="object"?s:{};return l.date=a,l.args=arguments,new t(l)};const r=t.prototype,o=r.$utils;r.$utils=()=>{const a=o();return a.i=jc,a},n.isDayjs=jc};vl.extend(BRe);vl.extend(pRe);vl.extend(yRe);vl.extend(kRe);vl.extend(ERe);vl.extend(LRe);vl.extend(MRe);const Rs=vl,Ys={add(e,t,n){return e.add(t,n)},subtract(e,t,n){return e.subtract(t,n)},startOf(e,t){return e.startOf(t)},startOfWeek(e,t){const n=e.day();let r=e.subtract(n-t,"day");return r.isAfter(e)&&(r=r.subtract(7,"day")),r},endOf(e,t){return e.endOf(t)},set(e,t,n){return e.set(t,n)},isSameWeek(e,t,n){const r=o=>{const a=o.day(),s=a-n+(at.valueOf()-n.valueOf())}function fH(e,t){const n=(r,o)=>r===void 0&&o===void 0?!1:r&&!o||!r&&o?!0:r?.valueOf()!==o?.valueOf();return t===void 0&&e===void 0?!1:tr(t)&&tr(e)?n(t[0],e[0])||n(t[1],e[1]):!tr(t)&&!tr(e)?n(t,e):!0}function uc(e,t){const n=o=>{const a=/(Q1)|(Q2)|(Q3)|(Q4)/,s={Q1:"01",Q2:"04",Q3:"07",Q4:"10"},[l]=a.exec(o);return o.replace(a,s[l])},r=o=>{if(o){if(typeof o=="string"){if(RLe(t))return Rs(n(o),t.replace(/\[Q]Q/,"MM"));if(Rs(o,t).isValid())return Rs(o,t)}return Rs(o)}};return tr(e)?e.map(r):r(e)}function ku(e){const t=n=>n?n.toDate():void 0;return tr(e)?e.map(t):t(e)}function hpe(e,t){Rs.locale({...Rs.Ls[e.toLocaleLowerCase()],weekStart:t})}function NRe(e){const t={};return e&&Object.keys(e).forEach(n=>{const r=String(n);r.indexOf("data-")===0&&(t[r]=e[r]),r.indexOf("aria-")===0&&(t[r]=e[r])}),t}function lm(e,t,n=" "){const r=String(e),o=r.lengthO("div",{class:a},[l.map(c=>O("div",{class:`${a}-item`,key:c},[s(`calendar.week.${r.value||o.value==="year"?"short":"long"}.${c}`)]))])}});function hx(e,t){if(e&&tr(e))return e[t]}function ppe({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:r,panel:o,isSameTime:a,innerMode:s}){return function(c,d){const h=hx(n,0),p=hx(n,1),m=hx(r,0),g=hx(r,1),y=!c.isPrev&&!c.isNext,S=y&&o,k=S,C=S;m&&h&&m.isBefore(h);const E=p&&g&&g.isAfter(p)&&C;let _=a(c.time,Ka());return s==="year"&&(_=Ka().isSame(c.time,"date")),[`${e}-cell`,{[`${e}-cell-in-view`]:y,[`${e}-cell-today`]:_,[`${e}-cell-selected`]:t&&a(c.time,t),[`${e}-cell-range-start`]:k,[`${e}-cell-range-end`]:C,[`${e}-cell-in-range`]:S,[`${e}-cell-in-range-near-hover`]:E,[`${e}-cell-hover-range-start`]:S,[`${e}-cell-hover-range-end`]:S,[`${e}-cell-hover-in-range`]:S,[`${e}-cell-disabled`]:d}]}}const rre=42,$8=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),jRe=e=>({start:$8(Ys.startOf(e,"month")),end:$8(Ys.endOf(e,"month")),days:e.daysInMonth()});function vpe(e,{dayStartOfWeek:t=0,isWeek:n}){const r=jRe(e),o=Array(rre).fill(null).map(()=>({})),a=t===0?r.start.day:(r.start.day||7)-1;o[a]={...r.start,isCurrent:!0};for(let l=0;l=r.days-1};const s=Array(6).fill(null).map(()=>[]);for(let l=0;l<6;l++)if(s[l]=o.slice(l*7,7*(l+1)),n){const c=s[l][0].time,d=[...s[l]];s[l].unshift({weekRows:d,weekOfYear:c.week()})}return s}var mpe=ke({name:"Month",props:{cell:{type:Boolean},pageData:{type:Array},current:{type:Number},value:{type:Object,required:!0},selectHandler:{type:Function,required:!0},mode:{type:String},pageShowDate:{type:Object,required:!0},panel:{type:Boolean},dayStartOfWeek:{type:Number,required:!0},isWeek:{type:Boolean,required:!0}},setup(e,{slots:t}){const{pageData:n}=nn(e),r=Le("calendar"),o=e.pageShowDate.year(),a=F(()=>ppe({prefixCls:r,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(c,d)=>c.isSame(d,"day")}));function s(c){return c.map((d,h)=>{var p;if(d.time){const m=()=>e.selectHandler(d.time,!1),g=e.isWeek?{onClick:m}:{},y=e.isWeek?{}:{onClick:m};return O("div",zt({key:h,class:a.value(d,!1)},g),[t.default?(p=t.default)==null?void 0:p.call(t,{year:d.year,month:d.month,date:d.date}):O("div",zt({class:`${r}-date`},y),[O("div",{class:`${r}-date-value`},[e.panel?d.date:O("div",{class:`${r}-date-circle`},[d.date])])])])}if("weekOfYear"in d){const m=e.value.year(),g=e.value.month()+1,y=e.value.week(),S=e.value&&d.weekRows.find(k=>k.year===m&&k.month===g)&&y===d.weekOfYear;return O("div",{key:h,class:[`${r}-cell`,`${r}-cell-week`,{[`${r}-cell-selected-week`]:S,[`${r}-cell-in-range`]:S}]},[O("div",{class:`${r}-date`},[O("div",{class:`${r}-date-value`},[d.weekOfYear])])])}return null})}let l=n.value;return typeof e.current=="number"&&(l=vpe(Rs(`${o}-${lm(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>O("div",{class:e.cell?`${r}-month-cell`:`${r}-month`},[O(FRe,{value:e.value,selectHandler:e.selectHandler,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,panel:e.panel,mode:e.mode,pageShowData:e.pageShowDate,pageData:e.pageData},null),O("div",{class:`${r}-month-cell-body`},[l?.map((c,d)=>O("div",{key:d,class:[`${r}-month-row`,{[`${r}-row-week`]:e.isWeek}]},[s(c)]))])])}});const gpe=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),ype=Array(3);for(let e=0;e<3;e++)ype[e]=gpe.slice(e*4,4*(e+1));const bpe=Array(4);for(let e=0;e<4;e++)bpe[e]=gpe.slice(e*3,3*(e+1));var VRe=ke({name:"Year",props:{mode:{type:String,required:!0},dayStartOfWeek:{type:Number,required:!0},value:{type:Object,required:!0},isWeek:{type:Boolean},panel:{type:Boolean,default:!1},pageShowData:{type:Object,required:!0},pageData:{type:Array},selectHandler:{type:Function,required:!0}},setup(e){const t=Le("calendar"),n=F(()=>ppe({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(s,l)=>s.isSame(l,"month")})),{t:r}=$o(),o=F(()=>e.pageShowData.year()),a=e.panel?bpe:ype;return()=>O("div",{class:`${t}-year`},[a.map((s,l)=>O("div",{class:`${t}-year-row`,key:l},[s.map(c=>{const d=Rs(`${o.value}-${lm(c.value+1,2,"0")}-01`),h=e.panel?{onClick:()=>e.selectHandler(d,!1)}:{};return O("div",{key:c.value,class:n.value({...c,time:d},!1)},[e.panel?O("div",zt({class:`${t}-date`},h),[O("div",{class:`${t}-date-value`},[r(`calendar.month.short.${c.name}`)])]):O("div",{class:`${t}-month-with-days`},[O("div",{class:`${t}-month-title`},[r(`calendar.month.long.${c.name}`)]),O(mpe,{pageShowDate:e.pageShowData,pageData:e.pageData,dayStartOfWeek:e.dayStartOfWeek,selectHandler:e.selectHandler,isWeek:e.isWeek,cell:!0,current:c.value,value:e.value,mode:e.mode},null)])])})]))])}});const zRe=({defaultValue:e,modelValue:t,emit:n,eventName:r="input",updateEventName:o="update:modelValue",eventHandlers:a})=>{var s;const l=fe(),c=fe((s=e?.value)!=null?s:""),d=fe(!1),h=fe(!1),p=fe("");let m;const g=F(()=>{var D;return(D=t?.value)!=null?D:c.value}),y=(D,P)=>{c.value=D,n(o,D),n(r,D,P)},S=D=>{const{value:P}=D.target;h.value||(y(P,D),_n(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)}))},k=D=>{r==="input"&&g.value!==m&&(m=g.value,n("change",g.value,D))},C=D=>{var P;const{value:M}=D.target;D.type==="compositionend"?(h.value=!1,p.value="",y(M,D),_n(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)})):(h.value=!0,p.value=g.value+((P=D.data)!=null?P:""))},x=D=>{var P,M;d.value=!0,m=g.value,n("focus",D),(M=(P=a?.value)==null?void 0:P.onFocus)==null||M.call(P,D)},E=D=>{var P,M;d.value=!1,n("blur",D),(M=(P=a?.value)==null?void 0:P.onBlur)==null||M.call(P,D),k(D)},_=D=>{const P=D.key||D.code;!h.value&&P===nH.key&&(n("pressEnter",D),k(D))},T=D=>{l.value&&D.target!==l.value&&(D.preventDefault(),l.value.focus())};return Pt(g,D=>{l.value&&D!==l.value.value&&(l.value.value=D)}),{inputRef:l,_value:c,_focused:d,isComposition:h,compositionValue:p,computedValue:g,handleInput:S,handleComposition:C,handleFocus:x,handleBlur:E,handleKeyDown:_,handleMousedown:T}};var URe=ke({name:"InputLabel",inheritAttrs:!1,props:{modelValue:Object,inputValue:{type:String,default:""},enabledInput:Boolean,formatLabel:Function,placeholder:String,retainInputValue:Boolean,disabled:Boolean,baseCls:String,size:String,error:Boolean,focused:Boolean,uninjectFormItemContext:Boolean},emits:["update:inputValue","inputValueChange","focus","blur"],setup(e,{attrs:t,emit:n,slots:r}){var o;const{size:a,disabled:s,error:l,inputValue:c,uninjectFormItemContext:d}=nn(e),h=(o=e.baseCls)!=null?o:Le("input-label"),{mergedSize:p,mergedDisabled:m,mergedError:g,eventHandlers:y}=Ao({size:a,disabled:s,error:l,uninject:d?.value}),{mergedSize:S}=wa(p),{inputRef:k,_focused:C,computedValue:x,handleInput:E,handleComposition:_,handleFocus:T,handleBlur:D,handleMousedown:P}=zRe({modelValue:c,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:y}),M=F(()=>{var ie;return(ie=e.focused)!=null?ie:C.value}),$=F(()=>e.enabledInput&&C.value||!e.modelValue),I=()=>{var ie,ee;return e.modelValue?(ee=(ie=e.formatLabel)==null?void 0:ie.call(e,e.modelValue))!=null?ee:e.modelValue.label:""},N=F(()=>e.enabledInput&&e.modelValue?I():e.placeholder),j=()=>{var ie,ee;return e.modelValue?(ee=(ie=r.default)==null?void 0:ie.call(r,{data:e.modelValue}))!=null?ee:I():null},U=F(()=>[h,`${h}-size-${S.value}`,{[`${h}-search`]:e.enabledInput,[`${h}-focus`]:M.value,[`${h}-disabled`]:m.value,[`${h}-error`]:g.value}]),z=F(()=>xa(t,m0)),G=F(()=>kf(t,m0));return{inputRef:k,render:()=>O("span",zt(z.value,{class:U.value,title:I(),onMousedown:P}),[r.prefix&&O("span",{class:`${h}-prefix`},[r.prefix()]),O("input",zt(G.value,{ref:k,class:[`${h}-input`,{[`${h}-input-hidden`]:!$.value}],value:x.value,readonly:!e.enabledInput,placeholder:N.value,disabled:m.value,onInput:E,onFocus:T,onBlur:D,onCompositionstart:_,onCompositionupdate:_,onCompositionend:_}),null),O("span",{class:[`${h}-value`,{[`${h}-value-hidden`]:$.value}]},[j()]),r.suffix&&O("span",{class:`${h}-suffix`},[r.suffix()])])}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const HRe=(e,t)=>{const n=[];for(const r of e)if(mr(r))n.push({raw:r,value:r[t.value],label:r[t.label],closable:r[t.closable],tagProps:r[t.tagProps]});else if(e||Ze(e)){const o={value:r,label:String(r),closable:!0};n.push({raw:o,...o})}return n},ire=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],WRe=ke({name:"Tag",components:{IconHover:To,IconClose:ds,IconLoading:Xa},props:{color:{type:String},size:{type:String},bordered:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},checkable:{type:Boolean,default:!1},checked:{type:Boolean,default:void 0},defaultChecked:{type:Boolean,default:!0},nowrap:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,"update:checked":e=>!0,close:e=>!0,check:(e,t)=>!0},setup(e,{emit:t}){const{size:n}=nn(e),r=Le("tag"),o=F(()=>e.color&&ire.includes(e.color)),a=F(()=>e.color&&!ire.includes(e.color)),s=fe(e.defaultVisible),l=fe(e.defaultChecked),c=F(()=>{var k;return(k=e.visible)!=null?k:s.value}),d=F(()=>{var k;return e.checkable?(k=e.checked)!=null?k:l.value:!0}),{mergedSize:h}=wa(n),p=F(()=>h.value==="mini"?"small":h.value),m=k=>{s.value=!1,t("update:visible",!1),t("close",k)},g=k=>{if(e.checkable){const C=!d.value;l.value=C,t("update:checked",C),t("check",C,k)}},y=F(()=>[r,`${r}-size-${p.value}`,{[`${r}-loading`]:e.loading,[`${r}-hide`]:!c.value,[`${r}-${e.color}`]:o.value,[`${r}-bordered`]:e.bordered,[`${r}-checkable`]:e.checkable,[`${r}-checked`]:d.value,[`${r}-custom-color`]:a.value}]),S=F(()=>{if(a.value)return{backgroundColor:e.color}});return{prefixCls:r,cls:y,style:S,computedVisible:c,computedChecked:d,handleClick:g,handleClose:m}}});function GRe(e,t,n,r,o,a){const s=Pe("icon-close"),l=Pe("icon-hover"),c=Pe("icon-loading");return e.computedVisible?(H(),J("span",{key:0,class:le(e.cls),style:Ge(e.style),onClick:t[0]||(t[0]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.$slots.icon?(H(),J("span",{key:0,class:le(`${e.prefixCls}-icon`)},[dt(e.$slots,"icon")],2)):Me("v-if",!0),e.nowrap?(H(),J("span",{key:1,class:le(`${e.prefixCls}-text`)},[dt(e.$slots,"default")],2)):dt(e.$slots,"default",{key:2}),e.closable?(H(),Je(l,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:le(`${e.prefixCls}-close-btn`),onClick:us(e.handleClose,["stop"])},{default:de(()=>[dt(e.$slots,"close-icon",{},()=>[O(s)])]),_:3},8,["prefix","class","onClick"])):Me("v-if",!0),e.loading?(H(),J("span",{key:4,class:le(`${e.prefixCls}-loading-icon`)},[O(c)],2)):Me("v-if",!0)],6)):Me("v-if",!0)}var YP=je(WRe,[["render",GRe]]);const hH=Object.assign(YP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+YP.name,YP)}}),KRe={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var XP=ke({name:"InputTag",inheritAttrs:!1,props:{modelValue:{type:Array},defaultValue:{type:Array,default:()=>[]},inputValue:String,defaultInputValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},size:{type:String},maxTagCount:{type:Number,default:0},retainInputValue:{type:[Boolean,Object],default:!1},formatTag:{type:Function},uniqueValue:{type:Boolean,default:!1},fieldNames:{type:Object},tagNowrap:{type:Boolean,default:!1},baseCls:String,focused:Boolean,disabledInput:Boolean,uninjectFormItemContext:Boolean},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,change:(e,t)=>!0,inputValueChange:(e,t)=>!0,pressEnter:(e,t)=>!0,remove:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n,attrs:r}){const{size:o,disabled:a,error:s,uninjectFormItemContext:l,modelValue:c}=nn(e),d=e.baseCls||Le("input-tag"),h=fe(),p=fe(),{mergedSize:m,mergedDisabled:g,mergedError:y,feedback:S,eventHandlers:k}=Ao({size:o,disabled:a,error:s,uninject:l?.value}),{mergedSize:C}=wa(m),x=F(()=>({...KRe,...e.fieldNames})),E=fe(!1),_=fe(e.defaultValue),T=fe(e.defaultInputValue),D=fe(!1),P=fe(""),M=F(()=>mr(e.retainInputValue)?{create:!1,blur:!1,...e.retainInputValue}:{create:e.retainInputValue,blur:e.retainInputValue}),$=Yt({width:"12px"}),I=F(()=>e.focused||E.value),N=(_e,Ne)=>{T.value=_e,t("update:inputValue",_e),t("inputValueChange",_e,Ne)},j=_e=>{var Ne;const{value:Se}=_e.target;_e.type==="compositionend"?(D.value=!1,P.value="",N(Se,_e),_n(()=>{h.value&&z.value!==h.value.value&&(h.value.value=z.value)})):(D.value=!0,P.value=z.value+((Ne=_e.data)!=null?Ne:""))},U=F(()=>{var _e;return(_e=e.modelValue)!=null?_e:_.value}),z=F(()=>{var _e;return(_e=e.inputValue)!=null?_e:T.value});Pt(c,_e=>{(wn(_e)||Tl(_e))&&(_.value=[])});const G=_e=>{h.value&&_e.target!==h.value&&(_e.preventDefault(),h.value.focus())},X=_e=>{const{value:Ne}=_e.target;D.value||(N(Ne,_e),_n(()=>{h.value&&z.value!==h.value.value&&(h.value.value=z.value)}))},ie=F(()=>HRe(U.value,x.value)),ee=F(()=>{if(e.maxTagCount>0){const _e=ie.value.length-e.maxTagCount;if(_e>0){const Ne=ie.value.slice(0,e.maxTagCount),Se={value:"__arco__more",label:`+${_e}...`,closable:!1};return Ne.push({raw:Se,...Se}),Ne}}return ie.value}),W=(_e,Ne)=>{var Se,$e;_.value=_e,t("update:modelValue",_e),t("change",_e,Ne),($e=(Se=k.value)==null?void 0:Se.onChange)==null||$e.call(Se,Ne)},q=(_e,Ne,Se)=>{var $e;const Xe=($e=U.value)==null?void 0:$e.filter((rt,nt)=>nt!==Ne);W(Xe,Se),t("remove",_e,Se)},Q=_e=>{W([],_e),t("clear",_e)},ne=F(()=>!g.value&&!e.readonly&&e.allowClear&&!!U.value.length),ae=_e=>{var Ne;if(z.value){if(_e.preventDefault(),e.uniqueValue&&((Ne=U.value)!=null&&Ne.includes(z.value))){t("pressEnter",z.value,_e);return}const Se=U.value.concat(z.value);W(Se,_e),t("pressEnter",z.value,_e),M.value.create||N("",_e)}},re=_e=>{var Ne,Se;E.value=!0,t("focus",_e),(Se=(Ne=k.value)==null?void 0:Ne.onFocus)==null||Se.call(Ne,_e)},Ce=_e=>{var Ne,Se;E.value=!1,!M.value.blur&&z.value&&N("",_e),t("blur",_e),(Se=(Ne=k.value)==null?void 0:Ne.onBlur)==null||Se.call(Ne,_e)},we=()=>{for(let _e=ie.value.length-1;_e>=0;_e--)if(ie.value[_e].closable)return _e;return-1},ve=_e=>{if(g.value||e.readonly)return;const Ne=_e.key||_e.code;if(!D.value&&z.value&&Ne===nH.key&&ae(_e),!D.value&&ee.value.length>0&&!z.value&&Ne===Jhe.key){const Se=we();Se>=0&&q(ie.value[Se].value,Se,_e)}},me=_e=>{_e>12?$.width=`${_e}px`:$.width="12px"};vn(()=>{p.value&&me(p.value.offsetWidth)});const xe=()=>{p.value&&me(p.value.offsetWidth)};Pt(z,_e=>{h.value&&!D.value&&_e!==h.value.value&&(h.value.value=_e)});const Be=F(()=>[d,`${d}-size-${C.value}`,{[`${d}-disabled`]:g.value,[`${d}-disabled-input`]:e.disabledInput,[`${d}-error`]:y.value,[`${d}-focus`]:I.value,[`${d}-readonly`]:e.readonly,[`${d}-has-tag`]:ee.value.length>0,[`${d}-has-prefix`]:!!n.prefix,[`${d}-has-suffix`]:!!n.suffix||ne.value||S.value,[`${d}-has-placeholder`]:!U.value.length}]),Ke=F(()=>xa(r,m0)),ze=F(()=>kf(r,m0));return{inputRef:h,render:()=>{var _e;return O("span",zt({class:Be.value,onMousedown:G},Ke.value),[O(Id,{onResize:xe},{default:()=>[O("span",{ref:p,class:`${d}-mirror`},[ee.value.length>0?P.value||z.value:P.value||z.value||e.placeholder])]}),n.prefix&&O("span",{class:`${d}-prefix`},[n.prefix()]),O(t3,{tag:"span",name:"input-tag-zoom",class:[`${d}-inner`,{[`${d}-nowrap`]:e.tagNowrap}]},{default:()=>[ee.value.map((Ne,Se)=>O(hH,zt({key:`tag-${Ne.value}`,class:`${d}-tag`,closable:!g.value&&!e.readonly&&Ne.closable,visible:!0,nowrap:e.tagNowrap},Ne.tagProps,{onClose:$e=>q(Ne.value,Se,$e)}),{default:()=>{var $e,Xe,rt,nt;return[(nt=(rt=($e=n.tag)==null?void 0:$e.call(n,{data:Ne.raw}))!=null?rt:(Xe=e.formatTag)==null?void 0:Xe.call(e,Ne.raw))!=null?nt:Ne.label]}})),O("input",zt(ze.value,{ref:h,key:"input-tag-input",class:`${d}-input`,style:$,placeholder:ee.value.length===0?e.placeholder:void 0,disabled:g.value,readonly:e.readonly||e.disabledInput,onInput:X,onKeydown:ve,onFocus:re,onBlur:Ce,onCompositionstart:j,onCompositionupdate:j,onCompositionend:j}),null)]}),ne.value&&O(To,{class:`${d}-clear-btn`,onClick:Q,onMousedown:Ne=>Ne.stopPropagation()},{default:()=>[O(ds,null,null)]}),(n.suffix||!!S.value)&&O("span",{class:`${d}-suffix`},[(_e=n.suffix)==null?void 0:_e.call(n),!!S.value&&O(W_,{type:S.value},null)])])}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const _pe=Object.assign(XP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+XP.name,XP)}});var B8=ke({name:"SelectView",props:{modelValue:{type:Array,required:!0},inputValue:String,placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},opened:{type:Boolean,default:!1},size:{type:String},bordered:{type:Boolean,default:!0},multiple:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowCreate:{type:Boolean,default:!1},allowSearch:{type:Boolean,default:e=>tr(e.modelValue)},maxTagCount:{type:Number,default:0},tagNowrap:{type:Boolean,default:!1},retainInputValue:{type:Boolean,default:!1}},emits:["remove","clear","focus","blur"],setup(e,{emit:t,slots:n}){const{size:r,disabled:o,error:a}=nn(e),s=Le("select-view"),{feedback:l,eventHandlers:c,mergedDisabled:d,mergedSize:h,mergedError:p}=Ao({size:r,disabled:o,error:a}),{mergedSize:m}=wa(h),{opened:g}=nn(e),y=fe(),S=F(()=>{var N;return(N=y.value)==null?void 0:N.inputRef}),k=F(()=>e.modelValue.length===0),C=F(()=>e.allowSearch||e.allowCreate),x=F(()=>e.allowClear&&!e.disabled&&!k.value),E=N=>{var j,U;t("focus",N),(U=(j=c.value)==null?void 0:j.onFocus)==null||U.call(j,N)},_=N=>{var j,U;t("blur",N),(U=(j=c.value)==null?void 0:j.onBlur)==null||U.call(j,N)},T=N=>{t("remove",N)},D=N=>{t("clear",N)},P=()=>{var N,j,U,z;return e.loading?(j=(N=n["loading-icon"])==null?void 0:N.call(n))!=null?j:O(Xa,null,null):e.allowSearch&&e.opened?(z=(U=n["search-icon"])==null?void 0:U.call(n))!=null?z:O(Em,null,null):n["arrow-icon"]?n["arrow-icon"]():O(Yh,{class:`${s}-arrow-icon`},null)},M=()=>O(Ft,null,[x.value&&O(To,{class:`${s}-clear-btn`,onClick:D,onMousedown:N=>N.stopPropagation()},{default:()=>[O(ds,null,null)]}),O("span",{class:`${s}-icon`},[P()]),!!l.value&&O(W_,{type:l.value},null)]);Pt(g,N=>{!N&&S.value&&S.value.isSameNode(document.activeElement)&&S.value.blur()});const $=F(()=>[`${s}-${e.multiple?"multiple":"single"}`,{[`${s}-opened`]:e.opened,[`${s}-borderless`]:!e.bordered}]);return{inputRef:S,handleFocus:E,handleBlur:_,render:()=>e.multiple?O(_pe,{ref:y,baseCls:s,class:$.value,modelValue:e.modelValue,inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:m.value,error:p.value,maxTagCount:e.maxTagCount,disabledInput:!e.allowSearch&&!e.allowCreate,tagNowrap:e.tagNowrap,retainInputValue:!0,uninjectFormItemContext:!0,onRemove:T,onFocus:E,onBlur:_},{prefix:n.prefix,suffix:M,tag:n.label}):O(URe,{ref:y,baseCls:s,class:$.value,modelValue:e.modelValue[0],inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:m.value,error:p.value,enabledInput:C.value,uninjectFormItemContext:!0,onFocus:E,onBlur:_},{default:n.label,prefix:n.prefix,suffix:M})}},methods:{focus(){this.inputRef&&this.inputRef.focus()},blur(){this.inputRef&&this.inputRef.blur()}},render(){return this.render()}});const qRe=ke({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:Le("select-group")}}});function YRe(e,t,n,r,o,a){return H(),J(Ft,null,[L("li",{class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"label",{},()=>[We(Ve(e.label),1)])],2),dt(e.$slots,"default")],64)}var Q4=je(qRe,[["render",YRe]]);const ore=typeof window>"u"?global:window;function Qb(e,t){let n=0;return(...r)=>{n&&ore.clearTimeout(n),n=ore.setTimeout(()=>{n=0,e(...r)},t)}}function XRe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}const ZRe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var ZP=ke({name:"Select",components:{Trigger:ha,SelectView:B8},inheritAttrs:!1,props:{multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Boolean,Object,Array],default:void 0},defaultValue:{type:[String,Number,Boolean,Object,Array],default:e=>wn(e.multiple)?"":[]},inputValue:{type:String},defaultInputValue:{type:String,default:""},size:{type:String},placeholder:String,loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowCreate:{type:Boolean,default:!1},maxTagCount:{type:Number,default:0},popupContainer:{type:[String,Object]},bordered:{type:Boolean,default:!0},defaultActiveFirstOption:{type:Boolean,default:!0},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},unmountOnClose:{type:Boolean,default:!1},filterOption:{type:[Boolean,Function],default:!0},options:{type:Array,default:()=>[]},virtualListProps:{type:Object},triggerProps:{type:Object},formatLabel:{type:Function},fallbackOption:{type:[Boolean,Function],default:!0},showExtraOptions:{type:Boolean,default:!0},valueKey:{type:String,default:"value"},searchDelay:{type:Number,default:500},limit:{type:Number,default:0},fieldNames:{type:Object},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:inputValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,popupVisibleChange:e=>!0,clear:e=>!0,remove:e=>!0,search:e=>!0,dropdownScroll:e=>!0,dropdownReachBottom:e=>!0,exceedLimit:(e,t)=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{size:o,disabled:a,error:s,options:l,filterOption:c,valueKey:d,multiple:h,popupVisible:p,defaultPopupVisible:m,showExtraOptions:g,modelValue:y,fieldNames:S,loading:k,defaultActiveFirstOption:C}=nn(e),x=Le("select"),{mergedSize:E,mergedDisabled:_,mergedError:T,eventHandlers:D}=Ao({size:o,disabled:a,error:s}),P=F(()=>e.virtualListProps?"div":"li"),M=F(()=>mr(e.allowSearch)&&!!e.allowSearch.retainInputValue);F(()=>{if(xn(e.formatLabel))return lt=>{const xt=Xe.get(lt.value);return e.formatLabel(xt)}});const $=fe(),I=fe({}),N=fe(),{computedPopupVisible:j,handlePopupVisibleChange:U}=R5({popupVisible:p,defaultPopupVisible:m,emit:n}),z=fe(e.defaultValue),G=F(()=>{var lt;const xt=(lt=e.modelValue)!=null?lt:z.value;return(tr(xt)?xt:xt||Ze(xt)||cs(xt)||wl(xt)?[xt]:[]).map(Ue=>({value:Ue,key:Tm(Ue,e.valueKey)}))});Pt(y,lt=>{(wn(lt)||Tl(lt))&&(z.value=h.value?[]:lt)});const X=F(()=>G.value.map(lt=>lt.key)),ie=F(()=>({...ZRe,...S?.value})),ee=fe(),W=lt=>{const xt={};return lt.forEach(Ye=>{xt[Ye]=Xe.get(Ye)}),xt},q=lt=>{ee.value=W(lt)},Q=lt=>xn(e.fallbackOption)?e.fallbackOption(lt):{[ie.value.value]:lt,[ie.value.label]:String(mr(lt)?lt[d?.value]:lt)},ne=()=>{const lt=[],xt=[];if(e.allowCreate||e.fallbackOption){for(const Ye of G.value)if(!xt.includes(Ye.key)&&Ye.value!==""){const Ue=Xe.get(Ye.key);(!Ue||Ue.origin==="extraOptions")&&(lt.push(Ye),xt.push(Ye.key))}}if(e.allowCreate&&we.value){const Ye=Tm(we.value);if(!xt.includes(Ye)){const Ue=Xe.get(Ye);(!Ue||Ue.origin==="extraOptions")&<.push({value:we.value,key:Ye})}}return lt},ae=fe([]),re=F(()=>ae.value.map(lt=>{var xt;let Ye=Q(lt.value);const Ue=(xt=ee.value)==null?void 0:xt[lt.key];return!wn(Ue)&&!PLe(Ue)&&(Ye={...Ye,...Ue}),Ye}));_n(()=>{Os(()=>{var lt;const xt=ne();if(xt.length!==ae.value.length)ae.value=xt;else if(xt.length>0){for(let Ye=0;Ye{var lt;return(lt=e.inputValue)!=null?lt:Ce.value});Pt(j,lt=>{!lt&&!M.value&&we.value&&xe("")});const ve=lt=>{var xt,Ye;return e.multiple?lt.map(Ue=>{var ut,St;return(St=(ut=Xe.get(Ue))==null?void 0:ut.value)!=null?St:""}):(Ye=(xt=Xe.get(lt[0]))==null?void 0:xt.value)!=null?Ye:oPe(Xe)?void 0:""},me=lt=>{var xt,Ye;const Ue=ve(lt);z.value=Ue,n("update:modelValue",Ue),n("change",Ue),(Ye=(xt=D.value)==null?void 0:xt.onChange)==null||Ye.call(xt),q(lt)},xe=lt=>{Ce.value=lt,n("update:inputValue",lt),n("inputValueChange",lt)},Be=(lt,xt)=>{if(e.multiple){if(X.value.includes(lt)){const Ye=X.value.filter(Ue=>Ue!==lt);me(Ye)}else if(nt.value.includes(lt))if(e.limit>0&&X.value.length>=e.limit){const Ye=Xe.get(lt);n("exceedLimit",Ye?.value,xt)}else{const Ye=X.value.concat(lt);me(Ye)}M.value||xe("")}else{if(lt!==X.value[0]&&me([lt]),M.value){const Ye=Xe.get(lt);Ye&&xe(Ye.label)}U(!1)}},Ke=Qb(lt=>{n("search",lt)},e.searchDelay),ze=lt=>{lt!==we.value&&(j.value||U(!0),xe(lt),e.allowSearch&&Ke(lt))},be=lt=>{const xt=Xe.get(lt),Ye=X.value.filter(Ue=>Ue!==lt);me(Ye),n("remove",xt?.value)},_e=lt=>{lt?.stopPropagation();const xt=X.value.filter(Ye=>{var Ue;return(Ue=Xe.get(Ye))==null?void 0:Ue.disabled});me(xt),xe(""),n("clear",lt)},Ne=lt=>{n("dropdownScroll",lt)},Se=lt=>{n("dropdownReachBottom",lt)},{validOptions:$e,optionInfoMap:Xe,validOptionInfos:rt,enabledOptionKeys:nt,handleKeyDown:gt}=lH({multiple:h,options:l,extraOptions:re,inputValue:we,filterOption:c,showExtraOptions:g,component:P,valueKey:d,fieldNames:S,loading:k,popupVisible:j,valueKeys:X,dropdownRef:$,optionRefs:I,virtualListRef:N,defaultActiveFirstOption:C,onSelect:Be,onPopupVisibleChange:U}),yt=F(()=>{var lt;const xt=[];for(const Ye of G.value){const Ue=Xe.get(Ye.key);Ue&&xt.push({...Ue,value:Ye.key,label:(lt=Ue?.label)!=null?lt:String(mr(Ye.value)?Ye.value[d?.value]:Ye.value),closable:!Ue?.disabled,tagProps:Ue?.tagProps})}return xt}),$t=lt=>{if(xn(t.option)){const xt=t.option;return()=>xt({data:lt.raw})}return xn(lt.render)?lt.render:()=>lt.label},Ct=lt=>{if(ope(lt)){let xt;return O(Q4,{key:lt.key,label:lt.label},XRe(xt=lt.options.map(Ye=>Ct(Ye)))?xt:{default:()=>[xt]})}return L5(lt,{inputValue:we.value,filterOption:c?.value})?O(am,{ref:xt=>{xt?.$el&&(I.value[lt.key]=xt.$el)},key:lt.key,value:lt.value,label:lt.label,disabled:lt.disabled,internal:!0},{default:$t(lt)}):null},Dt=()=>O(aH,{ref:$,loading:e.loading,empty:rt.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:Ne,onReachBottom:Se},{default:()=>{var lt,xt;return[...(xt=(lt=t.default)==null?void 0:lt.call(t))!=null?xt:[],...$e.value.map(Ct)]},"virtual-list":()=>O(o3,zt(e.virtualListProps,{ref:N,data:$e.value}),{item:({item:lt})=>Ct(lt)}),empty:t.empty,header:t.header,footer:t.footer}),on=({data:lt})=>{var xt,Ye,Ue,ut;if((t.label||xn(e.formatLabel))&<){const St=Xe.get(lt.value);if(St?.raw)return(Ue=(xt=t.label)==null?void 0:xt.call(t,{data:St.raw}))!=null?Ue:(Ye=e.formatLabel)==null?void 0:Ye.call(e,St.raw)}return(ut=lt?.label)!=null?ut:""};return()=>O(ha,zt({trigger:"click",position:"bl",popupOffset:4,animationName:"slide-dynamic-origin",hideEmpty:!0,preventFocus:!0,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:_.value,popupVisible:j.value,unmountOnClose:e.unmountOnClose,clickToClose:!(e.allowSearch||e.allowCreate),popupContainer:e.popupContainer,onPopupVisibleChange:U},e.triggerProps),{default:()=>{var lt,xt;return[(xt=(lt=t.trigger)==null?void 0:lt.call(t))!=null?xt:O(B8,zt({class:x,modelValue:yt.value,inputValue:we.value,multiple:e.multiple,disabled:_.value,error:T.value,loading:e.loading,allowClear:e.allowClear,allowCreate:e.allowCreate,allowSearch:!!e.allowSearch,opened:j.value,maxTagCount:e.maxTagCount,placeholder:e.placeholder,bordered:e.bordered,size:E.value,tagNowrap:e.tagNowrap,onInputValueChange:ze,onRemove:be,onClear:_e,onKeydown:gt},r),{label:on,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:Dt})}});const e_=Object.assign(ZP,{Option:am,OptGroup:Q4,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+ZP.name,ZP),e.component(n+am.name,am),e.component(n+Q4.name,Q4)}}),Spe=Symbol("RadioGroup");var fw=ke({name:"Radio",components:{IconHover:To},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},value:{type:[String,Number,Boolean],default:!0},type:{type:String,default:"radio"},disabled:{type:Boolean,default:!1},uninjectGroupContext:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Le("radio"),{modelValue:o}=nn(e),a=e.uninjectGroupContext?void 0:Pn(Spe,void 0),{mergedDisabled:s,eventHandlers:l}=Ao({disabled:Iu(e,"disabled")}),c=fe(null),d=fe(e.defaultChecked),h=F(()=>a?.name==="ArcoRadioGroup"),p=F(()=>{var _;return(_=a?.type)!=null?_:e.type}),m=F(()=>a?.disabled||s.value),g=F(()=>{var _,T;return h.value?a?.value===((_=e.value)!=null?_:!0):wn(e.modelValue)?d.value:e.modelValue===((T=e.value)!=null?T:!0)});Pt(o,_=>{(wn(_)||Tl(_))&&(d.value=!1)}),Pt(g,(_,T)=>{_!==T&&(d.value=_,c.value&&(c.value.checked=_))});const y=_=>{var T,D;(D=(T=l.value)==null?void 0:T.onFocus)==null||D.call(T,_)},S=_=>{var T,D;(D=(T=l.value)==null?void 0:T.onBlur)==null||D.call(T,_)},k=_=>{_.stopPropagation()},C=_=>{var T,D,P,M,$;d.value=!0,h.value?a?.handleChange((T=e.value)!=null?T:!0,_):(t("update:modelValue",(D=e.value)!=null?D:!0),t("change",(P=e.value)!=null?P:!0,_),($=(M=l.value)==null?void 0:M.onChange)==null||$.call(M,_)),_n(()=>{c.value&&c.value.checked!==g.value&&(c.value.checked=g.value)})},x=F(()=>[`${p.value==="button"?`${r}-button`:r}`,{[`${r}-checked`]:g.value,[`${r}-disabled`]:m.value}]),E=()=>O(Ft,null,[O(Pe("icon-hover"),{class:`${r}-icon-hover`,disabled:m.value||g.value},{default:()=>[O("span",{class:`${r}-icon`},null)]}),n.default&&O("span",{class:`${r}-label`},[n.default()])]);return()=>{var _,T,D,P;return O("label",{class:x.value},[O("input",{ref:c,type:"radio",checked:g.value,value:e.value,class:`${r}-target`,disabled:m.value,onClick:k,onChange:C,onFocus:y,onBlur:S},null),p.value==="radio"?(P=(D=(T=n.radio)!=null?T:(_=a?.slots)==null?void 0:_.radio)==null?void 0:D({checked:g.value,disabled:m.value}))!=null?P:E():O("span",{class:`${r}-button-content`},[n.default&&n.default()])])}}}),hw=ke({name:"RadioGroup",props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean],default:""},type:{type:String,default:"radio"},size:{type:String},options:{type:Array},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Le("radio-group"),{size:o,type:a,disabled:s,modelValue:l}=nn(e),{mergedDisabled:c,mergedSize:d,eventHandlers:h}=Ao({size:o,disabled:s}),{mergedSize:p}=wa(d),m=fe(e.defaultValue),g=F(()=>{var x;return(x=e.modelValue)!=null?x:m.value}),y=F(()=>{var x;return((x=e.options)!=null?x:[]).map(E=>cs(E)||Ze(E)?{label:E,value:E}:E)});ti(Spe,Yt({name:"ArcoRadioGroup",value:g,size:p,type:a,disabled:c,slots:n,handleChange:(x,E)=>{var _,T;m.value=x,t("update:modelValue",x),t("change",x,E),(T=(_=h.value)==null?void 0:_.onChange)==null||T.call(_,E)}})),Pt(g,x=>{m.value!==x&&(m.value=x)}),Pt(l,x=>{(wn(x)||Tl(x))&&(m.value="")});const k=F(()=>[`${r}${e.type==="button"?"-button":""}`,`${r}-size-${p.value}`,`${r}-direction-${e.direction}`,{[`${r}-disabled`]:c.value}]),C=()=>y.value.map(x=>O(fw,{key:x.value,value:x.value,disabled:x.disabled,modelValue:g.value===x.value},{default:()=>[n.label?n.label({data:x}):xn(x.label)?x.label():x.label]}));return()=>{var x;return O("span",{class:k.value},[y.value.length>0?C():(x=n.default)==null?void 0:x.call(n)])}}});const Ly=Object.assign(fw,{Group:hw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+fw.name,fw),e.component(n+hw.name,hw)}}),JRe=ke({name:"IconLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QRe=["stroke-width","stroke-linecap","stroke-linejoin"];function eMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32 8.4 16.444 23.956 32 39.513"},null,-1)]),14,QRe)}var JP=je(JRe,[["render",eMe]]);const Al=Object.assign(JP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JP.name,JP)}});function tMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}function sre(e){return e.parentElement}var nMe=ke({name:"Header",props:{mode:{type:String},dayStartOfWeek:{type:Number},isWeek:{type:Boolean},panel:{type:Boolean},modes:{type:Array},headerType:{type:String},pageShowData:{type:Object,required:!0},move:{type:Function,required:!0},onYearChange:{type:Function,required:!0},onMonthChange:{type:Function,required:!0},changePageShowDate:{type:Function,required:!0},onModeChange:{type:Function,required:!0},headerValueFormat:{type:String,required:!0}},emits:["yearChange","monthChange"],setup(e,{slots:t}){const n=Le("calendar"),{t:r}=$o(),o=tr(e.modes)?e.modes.map(h=>({label:r(`datePicker.view.${h}`),value:h})):[],a=e.headerType==="select",s=F(()=>e.pageShowData.year()),l=F(()=>e.pageShowData.month()+1),c=F(()=>{const h=[s.value];for(let p=1;p<=10;p++)h.unshift(s.value-p);for(let p=1;p<10;p++)h.push(s.value+p);return h}),d=[1,2,3,4,5,6,7,8,9,10,11,12];return()=>{let h;return O("div",{class:`${n}-header`},[O("div",{class:`${n}-header-left`},[a?O(Ft,null,[O(e_,{size:"small",class:`${n}-header-value-year`,value:s,options:c.value,onChange:e.onYearChange,getPopupContainer:sre},null),e.mode==="month"&&O(e_,{size:"small",class:`${n}-header-value-month`,value:l,options:d,onChange:e.onMonthChange,getPopupContainer:sre},null)]):O(Ft,null,[O("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[O(Al,null,null)]),O("div",{class:`${n}-header-value`},[t.default?t.default({year:s,month:l}):e.pageShowData.format(e.headerValueFormat)]),O("div",{role:"button",tabIndex:0,class:`${n}-header-icon`,onClick:()=>e.changePageShowDate("next",e.mode)},[O(zi,null,null)])]),O(Xo,{size:"small",onClick:()=>e.move(Ka())},tMe(h=r("datePicker.today"))?h:{default:()=>[h]})]),O("div",{class:`${n}-header-right`},[O(Ly.Group,{size:"small",type:"button",options:o,onChange:e.onModeChange,modelValue:e.mode},null)])])}}});function rMe(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var QP=ke({name:"Calendar",props:{modelValue:{type:Date,default:void 0},defaultValue:{type:Date},mode:{type:String},defaultMode:{type:String,default:"month"},modes:{type:Array,default:()=>["month","year"]},allowSelect:{type:Boolean,default:!0},panel:{type:Boolean,default:!1},panelWidth:{type:Number},panelTodayBtn:{type:Boolean,default:!1},dayStartOfWeek:{type:Number,default:0},isWeek:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,panelChange:e=>!0},setup(e,{emit:t,slots:n}){const{dayStartOfWeek:r,isWeek:o}=nn(e),a=Le("calendar"),s=fe(e.defaultMode),{t:l}=$o(),c=F(()=>e.mode?e.mode:s.value),d=rMe(c.value,e.panel),h=fe(uc(e.defaultValue||Date.now(),d)),p=F(()=>e.modelValue?uc(e.modelValue,d):h.value),m=fe(p.value||Ka()),g=F(()=>vpe(m.value,{dayStartOfWeek:r.value,isWeek:o.value}));function y(M){m.value=M,t("panelChange",M.toDate())}function S(M){h.value=M,t("change",M.toDate()),t("update:modelValue",M.toDate()),y(M)}function k(M,$=!1){$||S(M)}let C="";c.value==="month"?C=l("calendar.formatMonth"):c.value==="year"&&(C=l("calendar.formatYear"));function x(M,$){M==="prev"&&(m.value=Ys.subtract(m.value,1,$)),M==="next"&&(m.value=Ys.add(m.value,1,$)),t("panelChange",m.value.toDate())}function E(M){const $=Ys.set(m.value,"year",M);m.value=$,t("panelChange",$.toDate())}function _(M){const $=Ys.set(m.value,"month",M-1);m.value=$,t("panelChange",$.toDate())}function T(M){s.value=M}const D=F(()=>[a,c.value==="month"?`${a}-mode-month`:`${a}-mode-year`,{[`${a}-panel`]:e.panel&&(c.value==="month"||c.value==="year")}]),P=e.panel?{width:e.panelWidth}:{};return()=>O("div",zt({class:D.value,style:P},NRe(e)),[O(nMe,{move:S,headerValueFormat:C,modes:e.modes,mode:c.value,pageShowData:m.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:T,onYearChange:E,onMonthChange:_,changePageShowDate:x},{default:n.header}),c.value==="month"&&O("div",{class:`${a}-body`},[O(mpe,{key:m.value.month(),pageData:g.value,value:p.value,mode:c.value,selectHandler:k,isWeek:e.isWeek,dayStartOfWeek:e.dayStartOfWeek,pageShowDate:m.value},{default:n.default})]),c.value==="year"&&O("div",{class:`${a}-body`},[O(VRe,{key:m.value.year(),pageData:g.value,pageShowData:m.value,mode:c.value,isWeek:e.isWeek,value:p.value,dayStartOfWeek:e.dayStartOfWeek,selectHandler:k},null)]),e.panel&&e.panelTodayBtn&&O("div",{class:`${a}-footer-btn-wrapper`},[l("today")])])}});const kpe=Object.assign(QP,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+QP.name,QP)}}),pH=Symbol("ArcoCard");var eR=ke({name:"Card",components:{Spin:Ld},props:{bordered:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},size:{type:String},headerStyle:{type:Object,default:()=>({})},bodyStyle:{type:Object,default:()=>({})},title:{type:String},extra:{type:String}},setup(e,{slots:t}){const n=Le("card"),{size:r}=nn(e),{mergedSize:o}=wa(r),a=F(()=>o.value==="small"||o.value==="mini"?"small":"medium"),s=d=>{const h=yf(d);return O("div",{class:`${n}-actions`},[O("div",{class:`${n}-actions-right`},[h.map((p,m)=>O("span",{key:`action-${m}`,class:`${n}-actions-item`},[p]))])])},l=Yt({hasMeta:!1,hasGrid:!1,slots:t,renderActions:s});ti(pH,l);const c=F(()=>[n,`${n}-size-${a.value}`,{[`${n}-loading`]:e.loading,[`${n}-bordered`]:e.bordered,[`${n}-hoverable`]:e.hoverable,[`${n}-contain-grid`]:l.hasGrid}]);return()=>{var d,h,p,m,g,y,S;const k=!!((d=t.title)!=null?d:e.title),C=!!((h=t.extra)!=null?h:e.extra);return O("div",{class:c.value},[(k||C)&&O("div",{class:[`${n}-header`,{[`${n}-header-no-title`]:!k}],style:e.headerStyle},[k&&O("div",{class:`${n}-header-title`},[(m=(p=t.title)==null?void 0:p.call(t))!=null?m:e.title]),C&&O("div",{class:`${n}-header-extra`},[(y=(g=t.extra)==null?void 0:g.call(t))!=null?y:e.extra])]),t.cover&&O("div",{class:`${n}-cover`},[t.cover()]),O("div",{class:`${n}-body`,style:e.bodyStyle},[e.loading?O(Ld,null,null):(S=t.default)==null?void 0:S.call(t),t.actions&&!l.hasMeta&&s(t.actions())])])}}}),pw=ke({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=Le("card-meta"),r=Pn(pH);return vn(()=>{r&&(r.hasMeta=!0)}),()=>{var o,a,s,l,c,d;const h=!!((o=t.title)!=null?o:e.title),p=!!((a=t.description)!=null?a:e.description);return O("div",{class:n},[(h||p)&&O("div",{class:`${n}-content`},[h&&O("div",{class:`${n}-title`},[(l=(s=t.title)==null?void 0:s.call(t))!=null?l:e.title]),p&&O("div",{class:`${n}-description`},[(d=(c=t.description)==null?void 0:c.call(t))!=null?d:e.description])]),(t.avatar||r?.slots.actions)&&O("div",{class:[`${n}-footer `,{[`${n}-footer-only-actions`]:!t.avatar}]},[t.avatar&&O("div",{class:`${n}-avatar`},[t.avatar()]),r&&r.slots.actions&&r.renderActions(r.slots.actions())])])}}});const iMe=ke({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=Le("card-grid"),n=Pn(pH);return vn(()=>{n&&(n.hasGrid=!0)}),{cls:F(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function oMe(e,t,n,r,o,a){return H(),J("div",{class:le(e.cls)},[dt(e.$slots,"default")],2)}var vw=je(iMe,[["render",oMe]]);const sMe=Object.assign(eR,{Meta:pw,Grid:vw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+eR.name,eR),e.component(n+pw.name,pw),e.component(n+vw.name,vw)}}),aMe=ke({name:"Indicator",props:{count:{type:Number,default:2},activeIndex:{type:Number,default:0},type:{type:String,default:"line"},position:{type:String,default:"bottom"},trigger:{type:String,default:"click"}},emits:["select"],setup(e,{emit:t}){const n=Le("carousel-indicator"),r=l=>{var c;if(l.preventDefault(),e.type==="slider"){const d=l.offsetX,h=l.currentTarget.clientWidth;if(l.target===l.currentTarget){const p=Math.floor(d/h*e.count);p!==e.activeIndex&&t("select",p)}}else{const d=Number.parseInt((c=l.target.getAttribute("data-index"))!=null?c:"",10);!Number.isNaN(d)&&d!==e.activeIndex&&t("select",d)}},o=F(()=>e.trigger==="click"?{onClick:r}:{onMouseover:r}),a=F(()=>[`${n}`,`${n}-${e.type}`,`${n}-${e.position}`]),s=F(()=>{const l=100/e.count;return{width:`${l}%`,left:`${e.activeIndex*l}%`}});return{prefixCls:n,eventHandlers:o,cls:a,sliderStyle:s}}}),lMe=["data-index"];function uMe(e,t,n,r,o,a){return H(),J("div",zt({class:e.cls},e.eventHandlers),[e.type==="slider"?(H(),J("span",{key:0,style:Ge(e.sliderStyle),class:le([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(H(!0),J(Ft,{key:1},pn(Array(e.count),(s,l)=>(H(),J("span",{key:l,"data-index":l,class:le([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l===e.activeIndex}])},null,10,lMe))),128))],16)}var cMe=je(aMe,[["render",uMe]]);const dMe=ke({name:"IconUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-up`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fMe=["stroke-width","stroke-linecap","stroke-linejoin"];function hMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M39.6 30.557 24.043 15 8.487 30.557"},null,-1)]),14,fMe)}var tR=je(dMe,[["render",hMe]]);const K_=Object.assign(tR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tR.name,tR)}}),pMe=ke({name:"Arrow",components:{IconUp:K_,IconDown:Yh,IconLeft:Al,IconRight:zi},props:{direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"}},emits:["previousClick","nextClick"],setup(e,{emit:t}){const n=Le("carousel"),r=s=>{t("previousClick",s)},o=s=>{t("nextClick",s)},a=F(()=>[`${n}-arrow`,{[`${n}-arrow-hover`]:e.showArrow==="hover"}]);return{prefixCls:n,cls:a,onPreviousClick:r,onNextClick:o}}});function vMe(e,t,n,r,o,a){const s=Pe("IconLeft"),l=Pe("IconUp"),c=Pe("IconRight"),d=Pe("IconDown");return H(),J("div",{class:le(e.cls)},[L("div",{class:le(`${e.prefixCls}-arrow-${e.direction==="vertical"?"top":"left"}`),onClick:t[0]||(t[0]=(...h)=>e.onPreviousClick&&e.onPreviousClick(...h))},[e.direction==="horizontal"?(H(),Je(s,{key:0})):(H(),Je(l,{key:1}))],2),L("div",{class:le(`${e.prefixCls}-arrow-${e.direction==="vertical"?"bottom":"right"}`),onClick:t[1]||(t[1]=(...h)=>e.onNextClick&&e.onNextClick(...h))},[e.direction==="horizontal"?(H(),Je(c,{key:0})):(H(),Je(d,{key:1}))],2)],2)}var mMe=je(pMe,[["render",vMe]]);const xpe=Symbol("ArcoCarousel"),q_=e=>{const t={},n=fe([]),r=()=>{if(t.value){const o=Hhe(t.value,e);(o.length!==n.value.length||o.toString()!==n.value.toString())&&(n.value=o)}};return vn(()=>r()),Qa(()=>r()),{children:t,components:n}},are={interval:3e3,hoverToPause:!0};function nR(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var rR=ke({name:"Carousel",props:{current:{type:Number},defaultCurrent:{type:Number,default:1},autoPlay:{type:[Boolean,Object],default:!1},moveSpeed:{type:Number,default:500},animationName:{type:String,default:"slide"},trigger:{type:String,default:"click"},direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"},arrowClass:{type:String,default:""},indicatorType:{type:String,default:"dot"},indicatorPosition:{type:String,default:"bottom"},indicatorClass:{type:String,default:""},transitionTimingFunction:{type:String,default:"cubic-bezier(0.34, 0.69, 0.1, 1)"}},emits:{"update:current":e=>!0,change:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{current:r,animationName:o,moveSpeed:a,transitionTimingFunction:s}=nn(e),l=Le("carousel"),c=fe(!1),d=fe(),h=fe(),p=F(()=>mr(e.autoPlay)?{...are,...e.autoPlay}:e.autoPlay?are:{});let m=0,g=0;const{children:y,components:S}=q_("CarouselItem"),k=fe(e.defaultCurrent-1),C=F(()=>{const z=S.value.length,G=Ze(r.value)?nR(r.value-1,z):k.value,X=nR(G-1,z),ie=nR(G+1,z);return{mergedIndex:G,mergedPrevIndex:X,mergedNextIndex:ie}}),x=Yt({items:S,slideTo:_,mergedIndexes:C,previousIndex:d,animationName:o,slideDirection:h,transitionTimingFunction:s,moveSpeed:a});ti(xpe,x);const E=()=>{m&&window.clearInterval(m)};Os(()=>{var z;const{interval:G}=p.value||{},{mergedNextIndex:X}=C.value,ie=((z=S.value)==null?void 0:z.length)>1&&!c.value&&!!G;E(),ie&&(m=window.setInterval(()=>{_({targetIndex:X})},G))}),Oo(()=>{E()});function _({targetIndex:z,isNegative:G=!1,isManual:X=!1}){!g&&z!==C.value.mergedIndex&&(d.value=k.value,k.value=z,h.value=G?"negative":"positive",g=window.setTimeout(()=>{g=0},a.value),t("update:current",k.value+1),t("change",k.value+1,d.value+1,X))}const T=()=>_({targetIndex:C.value.mergedPrevIndex,isNegative:!0,isManual:!0}),D=()=>_({targetIndex:C.value.mergedNextIndex,isManual:!0}),P=z=>_({targetIndex:z,isNegative:zp.value.hoverToPause?{onMouseenter:()=>{c.value=!0},onMouseleave:()=>{c.value=!1}}:{}),$=F(()=>e.indicatorType!=="never"&&S.value.length>1),I=F(()=>e.showArrow!=="never"&&S.value.length>1),N=F(()=>[l,`${l}-indicator-position-${e.indicatorPosition}`]),j=F(()=>[`${l}-${e.animationName}`,`${l}-${e.direction}`,{[`${l}-negative`]:h.value==="negative"}]),U=F(()=>[`${l}-indicator-wrapper`,`${l}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var z;return y.value=(z=n.default)==null?void 0:z.call(n),O("div",zt({class:N.value},M.value),[O("div",{class:j.value},[y.value]),$.value&&O("div",{class:U.value},[O(cMe,{class:e.indicatorClass,type:e.indicatorType,count:S.value.length,activeIndex:C.value.mergedIndex,position:e.indicatorPosition,trigger:e.trigger,onSelect:P},null)]),I.value&&O(mMe,{class:e.arrowClass,direction:e.direction,showArrow:e.showArrow,onPreviousClick:T,onNextClick:D},null)])}}});const gMe=ke({name:"CarouselItem",setup(){const e=Le("carousel-item"),t=go(),n=Pn(xpe,{}),r=F(()=>{var l,c,d;return(d=(c=n.items)==null?void 0:c.indexOf((l=t?.uid)!=null?l:-1))!=null?d:-1}),o=F(()=>{var l;return((l=n.mergedIndexes)==null?void 0:l.mergedIndex)===r.value}),a=F(()=>{const{previousIndex:l,animationName:c,slideDirection:d,mergedIndexes:h}=n;return{[`${e}-prev`]:r.value===h?.mergedPrevIndex,[`${e}-next`]:r.value===h?.mergedNextIndex,[`${e}-current`]:o.value,[`${e}-slide-in`]:c==="slide"&&d&&o.value,[`${e}-slide-out`]:c==="slide"&&d&&r.value===l}}),s=F(()=>{const{transitionTimingFunction:l,moveSpeed:c}=n;return{transitionTimingFunction:l,transitionDuration:`${c}ms`,animationTimingFunction:l,animationDuration:`${c}ms`}});return{cls:a,animationStyle:s,isCurrent:o}}}),yMe=["aria-hidden"];function bMe(e,t,n,r,o,a){return H(),J("div",{"aria-hidden":!e.isCurrent,class:le(e.cls),style:Ge(e.animationStyle)},[dt(e.$slots,"default")],14,yMe)}var mw=je(gMe,[["render",bMe]]);const _Me=Object.assign(rR,{Item:mw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+rR.name,rR),e.component(n+mw.name,mw)}}),Cpe=(e,{optionMap:t,leafOptionMap:n,leafOptionSet:r,leafOptionValueMap:o,totalLevel:a,checkStrictly:s,enabledLazyLoad:l,lazyLoadOptions:c,valueKey:d,fieldNames:h})=>{let p=0;const m=(y,S,k)=>{var C;const x=(C=S?.path)!=null?C:[];return p=Math.max(p,k??1),y.map((E,_)=>{var T;const D=E[h.value],P={raw:E,value:D,label:(T=E[h.label])!=null?T:String(D),disabled:!!E[h.disabled],selectionDisabled:!1,render:E[h.render],tagProps:E[h.tagProps],isLeaf:E[h.isLeaf],level:x.length,index:_,key:"",valueKey:String(mr(D)?D[d.value]:D),parent:S,path:[],pathValue:[]},M=x.concat(P),$=[],I=M.map(N=>($.push(N.value),N.valueKey)).join("-");return P.path=M,P.pathValue=$,P.key=I,E[h.children]?(P.isLeaf=!1,P.children=m(E[h.children],P,(k??1)+1)):l&&!P.isLeaf?(P.isLeaf=!1,c[I]&&(P.children=m(c[I],P,(k??1)+1))):P.isLeaf=!0,P.children&&!P.disabled&&(P.totalLeafOptions=P.children.reduce((N,j)=>Ze(j.totalLeafOptions)?N+j.totalLeafOptions:j.disabled||j.selectionDisabled?N:N+(j.isLeaf?1:0),0),P.totalLeafOptions===0&&!s.value&&(P.selectionDisabled=!0)),t.set(P.key,P),(P.isLeaf||s.value)&&(r.add(P),n.set(P.key,P),o.has(P.valueKey)||o.set(P.valueKey,P.key)),P})},g=m(e);return a.value=p,g},vH=(e,t)=>{var n,r;let o=!1,a=!1;if(e.isLeaf)t?.has(e.key)&&(o=!0);else{const s=new RegExp(`^${e.key}(-|$)`),l=Array.from((n=t?.keys())!=null?n:[]).reduce((c,d)=>s.test(d)?c+1:c,0);l>0&&l>=((r=e.totalLeafOptions)!=null?r:1)?o=!0:l>0&&(a=!0)}return{checked:o,indeterminate:a}},mH=e=>{const t=[];if(e.isLeaf)t.push(e.key);else if(e.children)for(const n of e.children)t.push(...mH(n));return t},gH=e=>{const t=[];if(e.disabled||e.selectionDisabled)return t;if(e.isLeaf)t.push(e);else if(e.children)for(const n of e.children)t.push(...gH(n));return t},wpe=(e,{valueKey:t,leafOptionValueMap:n})=>{var r;if(tr(e))return e.map(a=>mr(a)?a[t]:a).join("-");const o=mr(e)?e[t]:e;return(r=n.get(String(o)))!=null?r:String(o)},Epe=(e,{multiple:t,pathMode:n})=>tr(e)?n&&!t&&e.length>0&&!tr(e[0])?[e]:e:wn(e)||Tl(e)||e===""?[]:[e],Tpe=e=>e.path.map(t=>t.label).join(" / "),yH=Symbol("ArcoCascader");var Xj=ke({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=Le("cascader-option"),n=Pn(yH,{}),r=fe(!1),o={},a=h=>{var p;if(xn(n.loadMore)&&!e.option.isLeaf){const{isLeaf:m,children:g,key:y}=e.option;!m&&!g&&(r.value=!0,new Promise(S=>{var k;(k=n.loadMore)==null||k.call(n,e.option.raw,S)}).then(S=>{var k;r.value=!1,S&&((k=n.addLazyLoadOptions)==null||k.call(n,S,y))}))}(p=n.setSelectedPath)==null||p.call(n,e.option.key)};e.option.disabled||(o.onMouseenter=[()=>{var h;return(h=n.setActiveKey)==null?void 0:h.call(n,e.option.key)}],o.onMouseleave=()=>{var h;return(h=n.setActiveKey)==null?void 0:h.call(n)},o.onClick=[],n.expandTrigger==="hover"?o.onMouseenter.push(h=>a()):o.onClick.push(h=>a()),e.option.isLeaf&&!e.multiple&&o.onClick.push(h=>{var p;a(),(p=n.onClickOption)==null||p.call(n,e.option)}));const s=F(()=>[t,{[`${t}-active`]:e.active,[`${t}-disabled`]:e.option.disabled}]),l=F(()=>{var h;return e.checkStrictly?{checked:(h=n.valueMap)==null?void 0:h.has(e.option.key),indeterminate:!1}:vH(e.option,n.valueMap)}),c=()=>{var h,p,m;return e.pathLabel?(p=(h=n?.formatLabel)==null?void 0:h.call(n,e.option.path.map(g=>g.raw)))!=null?p:Tpe(e.option):(m=n.slots)!=null&&m.option?n.slots.option({data:e.option}):xn(e.option.render)?e.option.render():e.option.label},d=()=>r.value?O(Xa,null,null):!e.searchOption&&!e.option.isLeaf?O(zi,null,null):null;return()=>{var h;return O("li",zt({tabindex:"0",role:"menuitem","aria-disabled":e.option.disabled,"aria-haspopup":!e.option.isLeaf,"aria-expanded":!e.option.isLeaf&&e.active,title:e.option.label,class:s.value},o),[e.multiple&&O(Td,{modelValue:l.value.checked,indeterminate:l.value.indeterminate,disabled:e.option.disabled||e.option.selectionDisabled,uninjectGroupContext:!0,onChange:(p,m)=>{var g;m.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!l.value.checked)},onClick:p=>p.stopPropagation()},null),e.checkStrictly&&!e.multiple&&O(Ly,{modelValue:(h=n.valueMap)==null?void 0:h.has(e.option.key),disabled:e.option.disabled,uninjectGroupContext:!0,onChange:(p,m)=>{var g;m.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!0)},onClick:p=>p.stopPropagation()},null),O("div",{class:`${t}-label`},[c(),d()])])}}}),SMe=ke({name:"CascaderColumn",props:{column:{type:Array,required:!0},level:{type:Number,default:0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Le("cascader"),r=Pn(Ya,void 0),o=fe(),a=fe(!!e.virtualListProps),s=()=>{var l,c,d,h,p;return(p=(h=(l=t.empty)==null?void 0:l.call(t))!=null?h:(d=r==null?void 0:(c=r.slots).empty)==null?void 0:d.call(c,{component:"cascader"}))!=null?p:O(qh,null,null)};return()=>{var l;return O("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?O(Dd,{class:`${n}-column-content`},{default:()=>[O("div",{class:`${n}-list-empty`},[s()])]}):a.value?O(o3,zt({key:(l=e.column)==null?void 0:l.length},e.virtualListProps,{ref:o,data:e.column}),{item:({item:c})=>O(Xj,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):O(Dd,{class:`${n}-column-content`},{default:()=>[O("ul",{role:"menu",class:[`${n}-list`,{[`${n}-list-multiple`]:!!e?.multiple,[`${n}-list-strictly`]:!!e?.checkStrictly}]},[e.column.map(c=>O(Xj,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function kMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var Ape=ke({name:"BaseCascaderPanel",props:{displayColumns:{type:Array,required:!0},selectedPath:{type:Array,required:!0},activeKey:String,totalLevel:{type:Number,required:!0},multiple:Boolean,checkStrictly:Boolean,loading:Boolean,dropdown:Boolean,virtualListProps:{type:Object}},setup(e,{slots:t}){const n=Le("cascader"),r=Pn(Ya,void 0),o=()=>{var s,l,c,d,h;return(h=(d=(s=t.empty)==null?void 0:s.call(t))!=null?d:(c=r==null?void 0:(l=r.slots).empty)==null?void 0:c.call(l,{component:"cascader"}))!=null?h:O(qh,null,null)},a=()=>e.loading?O("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[O(Ld,null,null)]):e.displayColumns.length===0?O("div",{key:"panel-column-empty",class:`${n}-panel-column`},[O("div",{class:`${n}-list-empty`},[o()])]):e.displayColumns.map((s,l)=>O(SMe,{key:`column-${l}`,column:s,level:l,selectedPath:e.selectedPath,activeKey:e.activeKey,totalLevel:e.totalLevel,multiple:e.multiple,checkStrictly:e.checkStrictly,virtualListProps:e.virtualListProps},{empty:t.empty}));return()=>{let s;return O(t3,{tag:"div",name:"cascader-slide",class:[`${n}-panel`,{[`${n}-dropdown-panel`]:e.dropdown}]},kMe(s=a())?s:{default:()=>[s]})}}});function xMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var CMe=ke({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=Le("cascader"),r=Pn(Ya,void 0),o=()=>{var a,s,l,c,d;return e.loading?O(Ld,null,null):e.options.length===0?O("div",{class:`${n}-list-empty`},[(d=(c=(a=t.empty)==null?void 0:a.call(t))!=null?c:(l=r==null?void 0:(s=r.slots).empty)==null?void 0:l.call(s,{component:"cascader"}))!=null?d:O(qh,null,null)]):O("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(h=>O(Xj,{key:h.key,class:`${n}-search-option`,option:h,active:h.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly,pathLabel:e.pathLabel,searchOption:!0},null))])};return()=>{let a;return O(Dd,{class:[`${n}-panel`,`${n}-search-panel`]},xMe(a=o())?a:{default:()=>[a]})}}});const Ipe=(e,{optionMap:t,filteredLeafOptions:n,showSearchPanel:r,expandChild:o})=>{const a=fe(),s=F(()=>{if(a.value)return t.get(a.value)}),l=fe([]),c=F(()=>{const y=[e.value];for(const S of l.value){const k=t.get(S);k?.children&&y.push(k.children)}return y}),d=y=>{var S;const k=m(y);l.value=(S=k?.path.map(C=>C.key))!=null?S:[]},h=y=>{a.value=y},p=F(()=>{var y;return r?.value?n.value.filter(S=>!S.disabled):s.value&&s.value.parent?(y=s.value.parent.children)==null?void 0:y.filter(S=>!S.disabled):e.value.filter(S=>!S.disabled)}),m=y=>{let S=y?t.get(y):void 0;if(o.value)for(;S&&S.children&&S.children.length>0;)S=S.children[0];return S};return{activeKey:a,activeOption:s,selectedPath:l,displayColumns:c,setActiveKey:h,setSelectedPath:d,getNextActiveNode:y=>{var S,k,C,x,E,_,T;const D=(k=(S=p.value)==null?void 0:S.length)!=null?k:0;if(a.value){const P=(x=(C=p.value)==null?void 0:C.findIndex(M=>M.key===a.value))!=null?x:0;return y==="next"?(E=p.value)==null?void 0:E[(D+P+1)%D]:(_=p.value)==null?void 0:_[(D+P-1)%D]}return(T=p.value)==null?void 0:T[0]}}},wMe=ke({name:"Cascader",components:{Trigger:ha,SelectView:B8,BaseCascaderPanel:Ape,CascaderSearchPanel:CMe},inheritAttrs:!1,props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Object,Array]},defaultValue:{type:[String,Number,Object,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},size:{type:String},allowSearch:{type:Boolean,default:e=>!!e.multiple},allowClear:{type:Boolean,default:!1},inputValue:{type:String,default:void 0},defaultInputValue:{type:String,default:""},popupVisible:{type:Boolean,default:void 0},expandTrigger:{type:String,default:"click"},defaultPopupVisible:{type:Boolean,default:!1},placeholder:String,filterOption:{type:Function},popupContainer:{type:[String,Object]},maxTagCount:{type:Number,default:0},formatLabel:{type:Function},triggerProps:{type:Object},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},loading:{type:Boolean,default:!1},searchOptionOnlyLabel:{type:Boolean,default:!1},searchDelay:{type:Number,default:500},fieldNames:{type:Object},valueKey:{type:String,default:"value"},fallback:{type:[Boolean,Function],default:!0},expandChild:{type:Boolean,default:!1},virtualListProps:{type:Object},tagNowrap:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,"update:popupVisible":e=>!0,change:e=>!0,inputValueChange:e=>!0,clear:()=>!0,search:e=>!0,popupVisibleChange:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,slots:n}){const{options:r,checkStrictly:o,loadMore:a,formatLabel:s,modelValue:l,disabled:c,valueKey:d,expandTrigger:h,expandChild:p,pathMode:m,multiple:g}=nn(e),y=fe(e.defaultValue),S=fe(e.defaultInputValue),k=fe(e.defaultPopupVisible),{mergedDisabled:C,eventHandlers:x}=Ao({disabled:c});Pt(l,rt=>{(wn(rt)||Tl(rt))&&(y.value=e.multiple?[]:void 0)});const E=fe([]),_=fe(1),T=Yt(new Map),D=Yt(new Map),P=Yt(new Map),M=Yt(new Set),$=Yt({}),I=(rt,nt)=>{$[nt]=rt},N={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},j=F(()=>({...N,...e.fieldNames}));Pt([r,$,j],([rt,nt,gt])=>{T.clear(),D.clear(),P.clear(),M.clear(),E.value=Cpe(rt??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:$,optionMap:T,leafOptionSet:M,leafOptionMap:D,leafOptionValueMap:P,totalLevel:_,checkStrictly:o,valueKey:d,fieldNames:gt})},{immediate:!0,deep:!0});const U=F(()=>{var rt;const nt=Epe((rt=e.modelValue)!=null?rt:y.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(nt.map(gt=>[wpe(gt,{valueKey:e.valueKey,leafOptionValueMap:P}),gt]))}),z=F(()=>{var rt;return(rt=e.inputValue)!=null?rt:S.value}),G=F(()=>{var rt;return(rt=e.popupVisible)!=null?rt:k.value}),X=rt=>{var nt;return rt?.toLocaleLowerCase().includes((nt=z.value)==null?void 0:nt.toLocaleLowerCase())},ie=F(()=>(e.checkStrictly?Array.from(T.values()):Array.from(M)).filter(nt=>{var gt;return xn(e.filterOption)?e.filterOption(z.value,nt.raw):e.checkStrictly?X(nt.label):(gt=nt.path)==null?void 0:gt.find(yt=>X(yt.label))})),ee=rt=>{var nt,gt,yt;const $t=e.multiple?rt:(nt=rt[0])!=null?nt:"";rt.length===0&&(Ne(),_e()),y.value=$t,t("update:modelValue",$t),t("change",$t),(yt=(gt=x.value)==null?void 0:gt.onChange)==null||yt.call(gt)};Pt([g,m],()=>{const rt=[];U.value.forEach((nt,gt)=>{const yt=D.get(gt);yt&&rt.push(m.value?yt.pathValue:yt.value)}),ee(rt)});const W=rt=>{G.value!==rt&&(k.value=rt,t("popupVisibleChange",rt))},q=rt=>{if(e.multiple){const nt=D.get(rt);if(nt)ne(nt,!1);else{const gt=[];U.value.forEach((yt,$t)=>{$t!==rt&>.push(yt)}),ee(gt)}}},Q=rt=>{ee([e.pathMode?rt.pathValue:rt.value]),W(!1)},ne=(rt,nt)=>{if(nt){const gt=e.checkStrictly?[rt]:gH(rt);ee([...U.value.values(),...gt.filter(yt=>!U.value.has(yt.key)).map(yt=>e.pathMode?yt.pathValue:yt.value)])}else{const gt=e.checkStrictly?[rt.key]:mH(rt),yt=[];U.value.forEach(($t,Ct)=>{gt.includes(Ct)||yt.push($t)}),ee(yt)}Ce("","optionChecked")},ae=(rt,nt)=>{e.multiple?ne(rt,nt??!0):Q(rt)},re=Qb(rt=>{t("search",rt)},e.searchDelay),Ce=(rt,nt)=>{rt!==z.value&&(nt==="manual"&&!G.value&&(k.value=!0,t("popupVisibleChange",!0)),S.value=rt,t("inputValueChange",rt),e.allowSearch&&re(rt))};Pt(G,rt=>{if(rt){if(U.value.size>0){const nt=Array.from(U.value.keys()),gt=nt[nt.length-1],yt=D.get(gt);yt&&yt.key!==Be.value&&(Ne(yt.key),_e(yt.key))}}else U.value.size===0&&(Ne(),_e()),Ce("","optionListHide")});const we=rt=>{if(rt.stopPropagation(),e.multiple){const nt=[];U.value.forEach((gt,yt)=>{const $t=D.get(yt);$t?.disabled&&nt.push(e.pathMode?$t.pathValue:$t.value)}),ee(nt)}else ee([]);Ce("","manual"),t("clear")},ve=F(()=>e.allowSearch&&z.value.length>0),me=rt=>{t("focus",rt)},xe=rt=>{t("blur",rt)},{activeKey:Be,activeOption:Ke,selectedPath:ze,displayColumns:be,setActiveKey:_e,setSelectedPath:Ne,getNextActiveNode:Se}=Ipe(E,{optionMap:T,filteredLeafOptions:ie,showSearchPanel:ve,expandChild:p});ti(yH,Yt({onClickOption:ae,setActiveKey:_e,setSelectedPath:Ne,loadMore:a,expandTrigger:h,addLazyLoadOptions:I,formatLabel:s,slots:n,valueMap:U}));const $e=D5(new Map([[zo.ENTER,rt=>{if(G.value){if(Ke.value){let nt;e.checkStrictly||Ke.value.isLeaf?nt=!U.value.has(Ke.value.key):nt=!vH(Ke.value,U.value).checked,Ne(Ke.value.key),ae(Ke.value,nt)}}else W(!0)}],[zo.ESC,rt=>{W(!1)}],[zo.ARROW_DOWN,rt=>{rt.preventDefault();const nt=Se("next");_e(nt?.key)}],[zo.ARROW_UP,rt=>{rt.preventDefault();const nt=Se("preview");_e(nt?.key)}],[zo.ARROW_RIGHT,rt=>{var nt,gt;ve.value||(rt.preventDefault(),(nt=Ke.value)!=null&&nt.children&&(Ne(Ke.value.key),_e((gt=Ke.value.children[0])==null?void 0:gt.key)))}],[zo.ARROW_LEFT,rt=>{var nt;ve.value||(rt.preventDefault(),(nt=Ke.value)!=null&&nt.parent&&(Ne(Ke.value.parent.key),_e(Ke.value.parent.key)))}]])),Xe=F(()=>{const rt=[];return U.value.forEach((nt,gt)=>{var yt,$t;const Ct=D.get(gt);if(Ct)rt.push({value:gt,label:($t=(yt=e.formatLabel)==null?void 0:yt.call(e,Ct.path.map(Dt=>Dt.raw)))!=null?$t:Tpe(Ct),closable:!Ct.disabled,tagProps:Ct.tagProps});else if(e.fallback){const Dt=xn(e.fallback)?e.fallback(nt):tr(nt)?nt.join(" / "):String(nt);rt.push({value:gt,label:Dt,closable:!0})}}),rt});return{optionInfos:E,filteredLeafOptions:ie,selectedPath:ze,activeKey:Be,displayColumns:be,computedInputValue:z,computedPopupVisible:G,handleClear:we,selectViewValue:Xe,handleInputValueChange:Ce,showSearchPanel:ve,handlePopupVisibleChange:W,handleFocus:me,handleBlur:xe,handleRemove:q,mergedDisabled:C,handleKeyDown:$e,totalLevel:_}}});function EMe(e,t,n,r,o,a){const s=Pe("select-view"),l=Pe("cascader-search-panel"),c=Pe("base-cascader-panel"),d=Pe("trigger");return H(),Je(d,zt(e.triggerProps,{trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","popup-visible":e.computedPopupVisible,position:"bl",disabled:e.mergedDisabled,"popup-offset":4,"auto-fit-popup-width":e.showSearchPanel,"popup-container":e.popupContainer,"prevent-focus":!0,"click-to-close":!e.allowSearch,onPopupVisibleChange:e.handlePopupVisibleChange}),{content:de(()=>[e.showSearchPanel?(H(),Je(l,{key:0,options:e.filteredLeafOptions,"active-key":e.activeKey,multiple:e.multiple,"check-strictly":e.checkStrictly,loading:e.loading,"path-label":!e.searchOptionOnlyLabel},wo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[dt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(H(),Je(c,{key:1,"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,loading:e.loading,"virtual-list-props":e.virtualListProps,dropdown:""},wo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[dt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","loading","virtual-list-props"]))]),default:de(()=>[O(s,zt({"model-value":e.selectViewValue,"input-value":e.computedInputValue,disabled:e.mergedDisabled,error:e.error,multiple:e.multiple,"allow-clear":e.allowClear,"allow-search":e.allowSearch,size:e.size,opened:e.computedPopupVisible,placeholder:e.placeholder,loading:e.loading,"max-tag-count":e.maxTagCount,"tag-nowrap":e.tagNowrap},e.$attrs,{onInputValueChange:e.handleInputValueChange,onClear:e.handleClear,onFocus:e.handleFocus,onBlur:e.handleBlur,onRemove:e.handleRemove,onKeydown:e.handleKeyDown}),wo({_:2},[e.$slots.label?{name:"label",fn:de(h=>[dt(e.$slots,"label",Ki(Sa(h)))]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[dt(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:de(()=>[dt(e.$slots,"arrow-icon")]),key:"2"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[dt(e.$slots,"loading-icon")]),key:"3"}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:de(()=>[dt(e.$slots,"search-icon")]),key:"4"}:void 0]),1040,["model-value","input-value","disabled","error","multiple","allow-clear","allow-search","size","opened","placeholder","loading","max-tag-count","tag-nowrap","onInputValueChange","onClear","onFocus","onBlur","onRemove","onKeydown"])]),_:3},16,["popup-visible","disabled","auto-fit-popup-width","popup-container","click-to-close","onPopupVisibleChange"])}var iR=je(wMe,[["render",EMe]]);const TMe=ke({name:"CascaderPanel",components:{BaseCascaderPanel:Ape},props:{pathMode:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},modelValue:{type:[String,Number,Array]},defaultValue:{type:[String,Number,Array],default:e=>e.multiple?[]:e.pathMode?void 0:""},options:{type:Array,default:()=>[]},expandTrigger:{type:String,default:"click"},checkStrictly:{type:Boolean,default:!1},loadMore:{type:Function},fieldNames:{type:Object},valueKey:{type:String,default:"value"},expandChild:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t,slots:n}){const{options:r,checkStrictly:o,loadMore:a,modelValue:s,valueKey:l,expandChild:c,expandTrigger:d}=nn(e),h=fe(e.defaultValue);Pt(s,W=>{(wn(W)||Tl(W))&&(h.value=e.multiple?[]:void 0)});const p=fe([]),m=fe(1),g=Yt(new Map),y=Yt(new Map),S=Yt(new Map),k=Yt(new Set),C=Yt({}),x=(W,q)=>{C[q]=W},E={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},_=F(()=>({...E,...e.fieldNames}));Pt([r,C,_],([W,q,Q])=>{g.clear(),y.clear(),S.clear(),k.clear(),p.value=Cpe(W??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:q,optionMap:g,leafOptionSet:k,leafOptionMap:y,leafOptionValueMap:S,totalLevel:m,checkStrictly:o,fieldNames:Q,valueKey:l})},{immediate:!0});const T=F(()=>{var W;const q=Epe((W=e.modelValue)!=null?W:h.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(q.map(Q=>[wpe(Q,{valueKey:e.valueKey,leafOptionValueMap:S}),Q]))}),D=F(()=>e.checkStrictly?Array.from(g.values()):Array.from(k)),P=W=>{var q;const Q=e.multiple?W:(q=W[0])!=null?q:"";W.length===0&&(X(),G()),h.value=Q,t("update:modelValue",Q),t("change",Q)},M=W=>{P([e.pathMode?W.pathValue:W.value])},$=(W,q)=>{if(q){const Q=e.checkStrictly?[W]:gH(W);P([...T.value.values(),...Q.filter(ne=>!T.value.has(ne.key)).map(ne=>e.pathMode?ne.pathValue:ne.value)])}else{const Q=e.checkStrictly?[W.key]:mH(W),ne=[];T.value.forEach((ae,re)=>{Q.includes(re)||ne.push(ae)}),P(ne)}},I=(W,q)=>{e.multiple?$(W,q??!0):M(W)},{activeKey:N,activeOption:j,selectedPath:U,displayColumns:z,setActiveKey:G,setSelectedPath:X,getNextActiveNode:ie}=Ipe(p,{optionMap:g,filteredLeafOptions:D,expandChild:c});ti(yH,Yt({onClickOption:I,setActiveKey:G,setSelectedPath:X,loadMore:a,addLazyLoadOptions:x,slots:n,valueMap:T,expandTrigger:d}));const ee=D5(new Map([[zo.ENTER,W=>{if(j.value){let q;e.checkStrictly||j.value.isLeaf?q=!T.value.has(j.value.key):q=!vH(j.value,T.value).checked,X(j.value.key),I(j.value,q)}}],[zo.ARROW_DOWN,W=>{W.preventDefault();const q=ie("next");G(q?.key)}],[zo.ARROW_UP,W=>{W.preventDefault();const q=ie("preview");G(q?.key)}],[zo.ARROW_RIGHT,W=>{var q,Q;W.preventDefault(),(q=j.value)!=null&&q.children&&(X(j.value.key),G((Q=j.value.children[0])==null?void 0:Q.key))}],[zo.ARROW_LEFT,W=>{var q;W.preventDefault(),(q=j.value)!=null&&q.parent&&(X(j.value.parent.key),G(j.value.parent.key))}]]));return{optionInfos:p,filteredLeafOptions:D,selectedPath:U,activeKey:N,displayColumns:z,handleKeyDown:ee,totalLevel:m}}});function AMe(e,t,n,r,o,a){const s=Pe("base-cascader-panel");return H(),Je(s,{"display-columns":e.displayColumns,"selected-path":e.selectedPath,"active-key":e.activeKey,multiple:e.multiple,"total-level":e.totalLevel,"check-strictly":e.checkStrictly,onKeydown:e.handleKeyDown},wo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[dt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var gw=je(TMe,[["render",AMe]]);const IMe=Object.assign(iR,{CascaderPanel:gw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+iR.name,iR),e.component(n+gw.name,gw)}}),Lpe=Symbol("collapseCtx"),LMe=ke({name:"Collapse",props:{activeKey:{type:Array,default:void 0},defaultActiveKey:{type:Array,default:()=>[]},accordion:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:void 0},expandIconPosition:{type:String,default:"left"},bordered:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},emits:{"update:activeKey":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{expandIconPosition:r,destroyOnHide:o,showExpandIcon:a}=nn(e),s=Le("collapse"),l=fe(e.defaultActiveKey),c=F(()=>{var p;const m=(p=e.activeKey)!=null?p:l.value;return tr(m)?m:[m]});ti(Lpe,Yt({activeKeys:c,slots:n,showExpandIcon:a,expandIconPosition:r,destroyOnHide:o,handleClick:(p,m)=>{let g=[];if(e.accordion)c.value.includes(p)||(g=[p]),l.value=g;else{g=[...c.value];const y=g.indexOf(p);y>-1?g.splice(y,1):e.accordion?g=[p]:g.push(p),l.value=g}t("update:activeKey",g),t("change",g,m)}}));const h=F(()=>[s,{[`${s}-borderless`]:!e.bordered}]);return{prefixCls:s,cls:h}}});function DMe(e,t,n,r,o,a){return H(),J("div",{class:le(e.cls)},[dt(e.$slots,"default")],2)}var oR=je(LMe,[["render",DMe]]);const PMe=ke({name:"IconCaretRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-caret-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RMe=["stroke-width","stroke-linecap","stroke-linejoin"];function MMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M34.829 23.063c.6.48.6 1.394 0 1.874L17.949 38.44c-.785.629-1.949.07-1.949-.937V10.497c0-1.007 1.164-1.566 1.95-.937l16.879 13.503Z",fill:"currentColor",stroke:"none"},null,-1)]),14,RMe)}var sR=je(PMe,[["render",MMe]]);const bH=Object.assign(sR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sR.name,sR)}}),OMe=ke({name:"IconCaretLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-caret-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Me=["stroke-width","stroke-linecap","stroke-linejoin"];function BMe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13.171 24.937a1.2 1.2 0 0 1 0-1.874L30.051 9.56c.785-.629 1.949-.07 1.949.937v27.006c0 1.006-1.164 1.566-1.95.937L13.171 24.937Z",fill:"currentColor",stroke:"none"},null,-1)]),14,$Me)}var aR=je(OMe,[["render",BMe]]);const _H=Object.assign(aR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aR.name,aR)}});var yw=ke({name:"CollapseItem",components:{IconHover:To,IconCaretRight:bH,IconCaretLeft:_H},props:{header:String,disabled:{type:Boolean,default:!1},showExpandIcon:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const r=go(),o=Le("collapse-item"),a=Pn(Lpe,{}),s=r&&Ze(r?.vnode.key)?r.vnode.key:String((n=r?.vnode.key)!=null?n:""),l=F(()=>{var _;return(_=a.activeKeys)==null?void 0:_.includes(s)}),c=F(()=>a.destroyOnHide||e.destroyOnHide),d=F(()=>{var _;return(_=a?.showExpandIcon)!=null?_:e.showExpandIcon}),h=fe(c.value?l.value:!0),p=F(()=>{var _;return(_=a?.expandIconPosition)!=null?_:"left"}),m=_=>{var T;e.disabled||(T=a.handleClick)==null||T.call(a,s,_)};Pt(l,_=>{_&&!h.value&&(h.value=!0)});const g={onEnter:_=>{_.style.height=`${_.scrollHeight}px`},onAfterEnter:_=>{_.style.height="auto"},onBeforeLeave:_=>{_.style.height=`${_.scrollHeight}px`},onLeave:_=>{_.style.height="0"},onAfterLeave:()=>{c.value&&(h.value=!1)}},y=F(()=>[o,{[`${o}-active`]:l.value}]),S=F(()=>[`${o}-header`,`${o}-header-${a?.expandIconPosition}`,{[`${o}-header-disabled`]:e.disabled}]),k=F(()=>[{[`${o}-icon-right`]:a?.expandIconPosition==="right"}]),C=F(()=>[`${o}-content`,{[`${o}-content-expend`]:l.value}]),x=()=>p.value==="right"?O(Pe("icon-caret-left"),{class:`${o}-expand-icon`},null):O(Pe("icon-caret-right"),{class:`${o}-expand-icon`},null),E=()=>d.value&&O(Pe("icon-hover"),{prefix:o,class:k.value,disabled:e.disabled},{default:()=>{var _,T,D,P;return[(P=(D=(T=t["expand-icon"])!=null?T:(_=a?.slots)==null?void 0:_["expand-icon"])==null?void 0:D({active:l.value,disabled:e.disabled,position:p.value}))!=null?P:x()]}});return()=>{var _,T,D;return O("div",{class:y.value},[O("div",{role:"button","aria-disabled":e.disabled,"aria-expanded":l.value,tabindex:"0",class:S.value,onClick:m},[E(),O("div",{class:`${o}-header-title`},[(T=(_=t.header)==null?void 0:_.call(t))!=null?T:e.header]),t.extra&&O("div",{class:`${o}-header-extra`},[(D=t.extra)==null?void 0:D.call(t)])]),O(xs,zt({name:"collapse-slider"},g),{default:()=>{var P;return[wi(O("div",{role:"region",class:C.value},[h.value&&O("div",{ref:"contentBoxRef",class:`${o}-content-box`},[(P=t.default)==null?void 0:P.call(t)])]),[[Qo,l.value]])]}})])}}});const NMe=Object.assign(oR,{Item:yw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+oR.name,oR),e.component(n+yw.name,yw)}}),FMe=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"],Dpe=(e,t,n)=>{const r=Math.floor(e*6),o=e*6-r,a=n*(1-t),s=n*(1-o*t),l=n*(1-(1-o)*t),c=r%6,d=[n,s,a,a,l,n][c],h=[l,n,n,s,a,a][c],p=[a,a,l,n,n,s][c];return{r:Math.round(d*255),g:Math.round(h*255),b:Math.round(p*255)}},M5=(e,t,n)=>{e/=255,t/=255,n/=255;const r=Math.max(e,t,n),o=Math.min(e,t,n);let a=0;const s=r,l=r-o,c=r===0?0:l/r;if(r===o)a=0;else{switch(r){case e:a=(t-n)/l+(tparseInt(e,16),lre=e=>sa(e)/255,HMe=e=>{let t=Kp.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=Kp.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=Kp.hex8.exec(e),t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3]),a:lre(t[4])}:(t=Kp.hex6.exec(e),t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3])}:(t=Kp.hex4.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3]),a:lre(t[4]+t[4])}:(t=Kp.hex3.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3])}:!1)))))},WMe=e=>{var t;const n=HMe(e);return n?{...M5(n.r,n.g,n.b),a:(t=n.a)!=null?t:1}:{h:0,s:1,v:1,a:1}},Ppe=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=Kp.hex6.exec(e);return t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3])}:(t=Kp.hex3.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3])}:!1)},ure=(e,t,n)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0")].join("").toUpperCase(),GMe=(e,t,n,r)=>[Math.round(e).toString(16).padStart(2,"0"),Math.round(t).toString(16).padStart(2,"0"),Math.round(n).toString(16).padStart(2,"0"),Math.round(r*255).toString(16).padStart(2,"0")].join("").toUpperCase(),Rpe=({value:e,onChange:t})=>{const n=fe(!1),r=fe(),o=fe(),a=(h,p)=>h<0?0:h>p?1:h/p,s=h=>{if(!r.value)return;const{clientX:p,clientY:m}=h,g=r.value.getBoundingClientRect(),y=[a(p-g.x,g.width),a(m-g.y,g.height)];(y[0]!==e[0]||y[1]!==e[1])&&t?.(y)},l=()=>{n.value=!1,window.removeEventListener("mousemove",d),window.removeEventListener("mouseup",l),window.removeEventListener("contextmenu",l)},c=h=>{n.value=!0,s(h),window.addEventListener("mousemove",d),window.addEventListener("mouseup",l),window.addEventListener("contextmenu",l)};function d(h){h.preventDefault(),h.buttons>0?s(h):l()}return{active:n,blockRef:r,handlerRef:o,onMouseDown:c}};var cre=ke({name:"ControlBar",props:{x:{type:Number,required:!0},color:{type:Object,required:!0},colorString:String,type:String,onChange:Function},setup(e){const t=Le("color-picker"),n=F(()=>e.color.rgb),{blockRef:r,handlerRef:o,onMouseDown:a}=Rpe({value:[e.x,0],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0])}}),s=()=>O("div",{ref:o,class:`${t}-handler`,style:{left:`${e.x*100}%`,color:e.colorString}},null);return()=>e.type==="alpha"?O("div",{class:`${t}-control-bar-bg`},[O("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-alpha`],style:{background:`linear-gradient(to right, rgba(0, 0, 0, 0), rgb(${n.value.r}, ${n.value.g}, ${n.value.b}))`},onMousedown:a},[s()])]):O("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-hue`],onMousedown:a},[s()])}}),KMe=ke({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=Le("color-picker"),n=F(()=>e.color.hsv),{blockRef:r,handlerRef:o,onMouseDown:a}=Rpe({value:[n.value.s,1-n.value.v],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0],1-l[1])}}),s=F(()=>{const l=Dpe(n.value.h,1,1);return`rgb(${l.r}, ${l.g}, ${l.b})`});return()=>O("div",{ref:r,class:`${t}-palette`,style:{backgroundColor:s.value},onMousedown:a},[O("div",{ref:o,class:`${t}-handler`,style:{top:`${(1-n.value.v)*100}%`,left:`${n.value.s*100}%`}},null)])}});function SH(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function xf(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function t_(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=xf(e);return t>0?SH(Number(e)*Math.pow(10,t)):Number(e)}function Zj(e){Ope&&(e>Number.MAX_SAFE_INTEGER||e["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-plus`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QMe=["stroke-width","stroke-linecap","stroke-linejoin"];function e9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 24h38M24 5v38"},null,-1)]),14,QMe)}var lR=je(JMe,[["render",e9e]]);const Cf=Object.assign(lR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lR.name,lR)}}),t9e=ke({name:"IconMinus",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-minus`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),n9e=["stroke-width","stroke-linecap","stroke-linejoin"];function r9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 24h38"},null,-1)]),14,n9e)}var uR=je(t9e,[["render",r9e]]);const Am=Object.assign(uR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uR.name,uR)}}),i9e=800,o9e=150;Yl.enableBoundaryChecking(!1);var cR=ke({name:"InputNumber",props:{modelValue:Number,defaultValue:Number,mode:{type:String,default:"embed"},precision:Number,step:{type:Number,default:1},disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},max:{type:Number,default:1/0},min:{type:Number,default:-1/0},formatter:{type:Function},parser:{type:Function},placeholder:String,hideButton:{type:Boolean,default:!1},size:{type:String},allowClear:{type:Boolean,default:!1},modelEvent:{type:String,default:"change"},readOnly:{type:Boolean,default:!1},inputAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0,clear:e=>!0,input:(e,t,n)=>!0,keydown:e=>!0},setup(e,{emit:t,slots:n}){var r;const{size:o,disabled:a}=nn(e),s=Le("input-number"),l=fe(),{mergedSize:c,mergedDisabled:d,eventHandlers:h}=Ao({size:o,disabled:a}),{mergedSize:p}=wa(c),m=F(()=>{if(Ze(e.precision)){const Q=`${e.step}`.split(".")[1],ne=Q&&Q.length||0;return Math.max(ne,e.precision)}}),g=Q=>{var ne,ae;if(!Ze(Q))return"";const re=m.value?Q.toFixed(m.value):String(Q);return(ae=(ne=e.formatter)==null?void 0:ne.call(e,re))!=null?ae:re},y=fe(g((r=e.modelValue)!=null?r:e.defaultValue)),S=F(()=>{var Q,ne;if(!y.value)return;const ae=Number((ne=(Q=e.parser)==null?void 0:Q.call(e,y.value))!=null?ne:y.value);return Number.isNaN(ae)?void 0:ae}),k=fe(Ze(S.value)&&S.value<=e.min),C=fe(Ze(S.value)&&S.value>=e.max);let x=0;const E=()=>{x&&(window.clearTimeout(x),x=0)},_=Q=>{if(!wn(Q))return Ze(e.min)&&Qe.max&&(Q=e.max),Ze(m.value)?Yl.round(Q,m.value):Q},T=Q=>{let ne=!1,ae=!1;Ze(Q)&&(Q<=e.min&&(ne=!0),Q>=e.max&&(ae=!0)),C.value!==ae&&(C.value=ae),k.value!==ne&&(k.value=ne)},D=()=>{const Q=_(S.value),ne=g(Q);(Q!==S.value||y.value!==ne)&&(y.value=ne),t("update:modelValue",Q)};Pt(()=>[e.max,e.min],()=>{D(),T(S.value)});const P=(Q,ne)=>{if(d.value||Q==="plus"&&C.value||Q==="minus"&&k.value)return;let ae;Ze(S.value)?ae=_(Yl[Q](S.value,e.step)):ae=e.min===-1/0?0:e.min,y.value=g(ae),T(ae),t("update:modelValue",ae),t("change",ae,ne)},M=(Q,ne,ae=!1)=>{var re;Q.preventDefault(),!e.readOnly&&((re=l.value)==null||re.focus(),P(ne,Q),ae&&(x=window.setTimeout(()=>Q.target.dispatchEvent(Q),x?o9e:i9e)))},$=(Q,ne)=>{var ae,re,Ce,we;Q=Q.trim().replace(/。/g,"."),Q=(re=(ae=e.parser)==null?void 0:ae.call(e,Q))!=null?re:Q,(Ze(Number(Q))||/^(\.|-)$/.test(Q))&&(y.value=(we=(Ce=e.formatter)==null?void 0:Ce.call(e,Q))!=null?we:Q,T(S.value),t("input",S.value,y.value,ne),e.modelEvent==="input"&&(t("update:modelValue",S.value),t("change",S.value,ne)))},I=Q=>{t("focus",Q)},N=(Q,ne)=>{ne instanceof MouseEvent&&!Q||(D(),t("change",S.value,ne))},j=Q=>{t("blur",Q)},U=Q=>{var ne,ae;y.value="",t("update:modelValue",void 0),t("change",void 0,Q),(ae=(ne=h.value)==null?void 0:ne.onChange)==null||ae.call(ne,Q),t("clear",Q)},z=D5(new Map([[zo.ARROW_UP,Q=>{Q.preventDefault(),!e.readOnly&&P("plus",Q)}],[zo.ARROW_DOWN,Q=>{Q.preventDefault(),!e.readOnly&&P("minus",Q)}]])),G=Q=>{t("keydown",Q),Q.defaultPrevented||z(Q)};Pt(()=>e.modelValue,Q=>{Q!==S.value&&(y.value=g(Q),T(Q))});const X=()=>{var Q,ne,ae;return e.readOnly?null:O(Ft,null,[n.suffix&&O("div",{class:`${s}-suffix`},[(Q=n.suffix)==null?void 0:Q.call(n)]),O("div",{class:`${s}-step`},[O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||C.value}],type:"button",tabindex:"-1",disabled:d.value||C.value,onMousedown:re=>M(re,"plus",!0),onMouseup:E,onMouseleave:E},[n.plus?(ne=n.plus)==null?void 0:ne.call(n):O(K_,null,null)]),O("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||k.value}],type:"button",tabindex:"-1",disabled:d.value||k.value,onMousedown:re=>M(re,"minus",!0),onMouseup:E,onMouseleave:E},[n.minus?(ae=n.minus)==null?void 0:ae.call(n):O(Yh,null,null)])])])},ie=F(()=>[s,`${s}-mode-${e.mode}`,`${s}-size-${p.value}`,{[`${s}-readonly`]:e.readOnly}]),ee=()=>O(Xo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||k.value,onMousedown:Q=>M(Q,"minus",!0),onMouseup:E,onMouseleave:E},{icon:()=>O(Am,null,null)}),W=()=>O(Xo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||C.value,onMousedown:Q=>M(Q,"plus",!0),onMouseup:E,onMouseleave:E},{icon:()=>O(Cf,null,null)});return{inputRef:l,render:()=>{const Q=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:X,append:n.append}:{prepend:e.hideButton?n.prepend:ee,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:W};return O(R0,{key:`__arco__${e.mode}`,ref:l,class:ie.value,type:"text",allowClear:e.allowClear,size:p.value,modelValue:y.value,placeholder:e.placeholder,disabled:d.value,readonly:e.readOnly,error:e.error,inputAttrs:{role:"spinbutton","aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":y.value,...e.inputAttrs},onInput:$,onFocus:I,onBlur:j,onClear:U,onChange:N,onKeydown:G},Q)}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const Y_=Object.assign(cR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+cR.name,cR)}});var $pe=ke({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=Le("color-picker");return()=>O(Y_,{class:`${t}-input-alpha`,size:"mini",min:0,max:100,disabled:e.disabled,modelValue:Math.round(e.value*100),onChange:(n=100)=>{var r;return(r=e.onChange)==null?void 0:r.call(e,n/100)}},{suffix:()=>"%"})}}),s9e=ke({name:"InputRgb",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Le("color-picker"),{color:n}=nn(e),r=o=>{var a;const s={...n.value.rgb,...o},l=M5(s.r,s.g,s.b);(a=e.onHsvChange)==null||a.call(e,l)};return()=>O(ey,{class:`${t}-input-group`},{default:()=>[["r","g","b"].map(o=>O(Y_,{key:o,size:"mini",min:0,max:255,disabled:e.disabled,modelValue:n.value.rgb[o],hideButton:!0,onChange:(a=0)=>r({[o]:a})},null)),!e.disabledAlpha&&O($pe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),a9e=ke({name:"InputHex",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},disabled:Boolean,disabledAlpha:Boolean,onHsvChange:Function,onAlphaChange:Function},setup(e){const t=Le("color-picker"),{color:n}=nn(e),[r,o]=Ga(n.value.hex),a=c=>{var d;const h=Ppe(c)||{r:255,g:0,b:0},p=M5(h.r,h.g,h.b);(d=e.onHsvChange)==null||d.call(e,p)},s=c=>{var d,h;const p=(h=(d=c.match(/[a-fA-F0-9]*/g))==null?void 0:d.join(""))!=null?h:"";p!==n.value.hex&&a(p.toUpperCase())},l=c=>{if(!c.clipboardData)return;let d=c.clipboardData.getData("Text");d.startsWith("#")&&(d=d.slice(1)),s(d),c.preventDefault()};return Pt(n,()=>{n.value.hex!==r.value&&o(n.value.hex)}),()=>O(ey,{class:`${t}-input-group`},{default:()=>[O(R0,{class:`${t}-input-hex`,size:"mini",maxLength:6,disabled:e.disabled,modelValue:r.value,onInput:o,onChange:s,onBlur:()=>a,onPressEnter:()=>a,onPaste:l},{prefix:()=>"#"}),!e.disabledAlpha&&O($pe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),l9e=ke({name:"Panel",props:{color:{type:Object,required:!0},alpha:{type:Number,required:!0},colorString:String,disabled:Boolean,disabledAlpha:Boolean,showHistory:Boolean,showPreset:Boolean,format:String,historyColors:Array,presetColors:Array,onAlphaChange:Function,onHsvChange:Function},setup(e){const{t}=$o(),n=Le("color-picker"),r=F(()=>e.color.hsv),[o,a]=Ga(e.format||"hex"),s=m=>{a(m)};fe(!1);const l=m=>{var g;const y=Ppe(m)||{r:255,g:0,b:0},S=M5(y.r,y.g,y.b);(g=e.onHsvChange)==null||g.call(e,S)},c=()=>{const m={color:e.color,alpha:e.alpha,disabled:e.disabled,disabledAlpha:e.disabledAlpha,onHsvChange:e.onHsvChange,onAlphaChange:e.onAlphaChange};return o.value==="rgb"?O(s9e,m,null):O(a9e,m,null)},d=m=>O("div",{key:m,class:`${n}-color-block`,style:{backgroundColor:m},onClick:()=>l(m)},[O("div",{class:`${n}-block`,style:{backgroundColor:m}},null)]),h=(m,g)=>O("div",{class:`${n}-colors-section`},[O("div",{class:`${n}-colors-text`},[m]),O("div",{class:`${n}-colors-wrapper`},[g?.length?O("div",{class:`${n}-colors-list`},[g.map(d)]):O("span",{class:`${n}-colors-empty`},[t("colorPicker.empty")])])]),p=()=>e.showHistory||e.showPreset?O("div",{class:`${n}-panel-colors`},[e.showHistory&&h(t("colorPicker.history"),e.historyColors),e.showPreset&&h(t("colorPicker.preset"),e.presetColors)]):null;return()=>O("div",{class:{[`${n}-panel`]:!0,[`${n}-panel-disabled`]:e.disabled}},[O(KMe,{color:e.color,onChange:(m,g)=>{var y;return(y=e.onHsvChange)==null?void 0:y.call(e,{h:r.value.h,s:m,v:g})}},null),O("div",{class:`${n}-panel-control`},[O("div",{class:`${n}-control-wrapper`},[O("div",null,[O(cre,{type:"hue",x:r.value.h,color:e.color,colorString:e.colorString,onChange:m=>{var g;return(g=e.onHsvChange)==null?void 0:g.call(e,{h:m,s:r.value.s,v:r.value.v})}},null),!e.disabledAlpha&&O(cre,{type:"alpha",x:e.alpha,color:e.color,colorString:e.colorString,onChange:e.onAlphaChange},null)]),O("div",{class:`${n}-preview`,style:{backgroundColor:e.colorString}},null)]),O("div",{class:`${n}-input-wrapper`},[O(e_,{class:`${n}-select`,size:"mini","trigger-props":{class:`${n}-select-popup`},options:[{value:"hex",label:"Hex"},{value:"rgb",label:"RGB"}],modelValue:o.value,onChange:s},null),O("div",{class:`${n}-group-wrapper`},[c()])])]),p()])}}),dR=ke({name:"ColorPicker",props:{modelValue:String,defaultValue:{type:String},format:{type:String},size:{type:String,default:"medium"},showText:{type:Boolean,default:!1},showHistory:{type:Boolean,default:!1},showPreset:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},disabledAlpha:{type:Boolean,default:!1},hideTrigger:{type:Boolean},triggerProps:{type:Object},historyColors:{type:Array},presetColors:{type:Array,default:()=>FMe}},emits:{"update:modelValue":e=>!0,change:e=>!0,"popup-visible-change":(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Le("color-picker"),o=F(()=>{var x;return(x=e.modelValue)!=null?x:e.defaultValue}),a=F(()=>WMe(o.value||"")),[s,l]=Ga(a.value.a),[c,d]=Ga({h:a.value.h,s:a.value.s,v:a.value.v});Pt(()=>a.value,x=>{o.value!==m.value&&(l(x.a),d({h:x.h,s:x.s,v:x.v}))});const h=F(()=>{const x=Dpe(c.value.h,c.value.s,c.value.v),E=ure(x.r,x.g,x.b);return{hsv:c.value,rgb:x,hex:E}}),p=F(()=>{const{r:x,g:E,b:_}=h.value.rgb;return`rgba(${x}, ${E}, ${_}, ${s.value.toFixed(2)})`}),m=F(()=>{const{r:x,g:E,b:_}=h.value.rgb;return e.format==="rgb"?s.value<1&&!e.disabledAlpha?`rgba(${x}, ${E}, ${_}, ${s.value.toFixed(2)})`:`rgb(${x}, ${E}, ${_})`:s.value<1&&!e.disabledAlpha?`#${GMe(x,E,_,s.value)}`:`#${ure(x,E,_)}`});Pt(m,x=>{t("update:modelValue",x),t("change",x)});const g=x=>{!e.disabled&&d(x)},y=x=>{!e.disabled&&l(x)},S=x=>{t("popup-visible-change",x,m.value)},k=()=>O("div",{class:{[r]:!0,[`${r}-size-${e.size}`]:e.size,[`${r}-disabled`]:e.disabled}},[O("div",{class:`${r}-preview`,style:{backgroundColor:m.value}},null),e.showText&&O("div",{class:`${r}-value`},[m.value]),O("input",{class:`${r}-input`,value:m.value,disabled:e.disabled},null)]),C=()=>O(l9e,{color:h.value,alpha:s.value,colorString:p.value,historyColors:e.historyColors,presetColors:e.presetColors,showHistory:e.showHistory,showPreset:e.showPreset,disabled:e.disabled,disabledAlpha:e.disabledAlpha,format:e.format,onHsvChange:g,onAlphaChange:y},null);return()=>e.hideTrigger?C():O(ha,zt({trigger:"click",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,disabled:e.disabled,onPopupVisibleChange:S},e.triggerProps),{default:()=>[n.default?n.default():k()],content:C})}});const u9e=Object.assign(dR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+dR.name,dR)}});function Bpe(e,t,n){return F(()=>!!(e[n]||t[n]))}const c9e=ke({name:"Comment",props:{author:{type:String},avatar:{type:String},content:{type:String},datetime:{type:String},align:{type:[String,Object],default:"left"}},setup(e,{slots:t}){const n=Le("comment"),[r,o,a,s]=["author","avatar","content","datetime"].map(c=>Bpe(e,t,c)),l=F(()=>{const{align:c}=e;return{...cs(c)?{datetime:c,actions:c}:c}});return{prefixCls:n,hasAuthor:r,hasAvatar:o,hasContent:a,hasDatetime:s,computedAlign:l}}}),d9e=["src"],f9e={key:0},h9e={key:0},p9e={key:0};function v9e(e,t,n,r,o,a){return H(),J("div",{class:le(e.prefixCls)},[e.hasAvatar?(H(),J("div",{key:0,class:le(`${e.prefixCls}-avatar`)},[e.avatar?(H(),J("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,d9e)):dt(e.$slots,"avatar",{key:1})],2)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-inner`)},[L("div",{class:le(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(H(),J("div",{key:0,class:le(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(H(),J("span",{key:0,class:le(`${e.prefixCls}-author`)},[e.author?(H(),J("span",f9e,Ve(e.author),1)):dt(e.$slots,"author",{key:1})],2)):Me("v-if",!0),e.hasDatetime?(H(),J("span",{key:1,class:le(`${e.prefixCls}-datetime`)},[e.datetime?(H(),J("span",h9e,Ve(e.datetime),1)):dt(e.$slots,"datetime",{key:1})],2)):Me("v-if",!0)],2)):Me("v-if",!0),e.hasContent?(H(),J("div",{key:1,class:le(`${e.prefixCls}-content`)},[e.content?(H(),J("span",p9e,Ve(e.content),1)):dt(e.$slots,"content",{key:1})],2)):Me("v-if",!0),e.$slots.actions?(H(),J("div",{key:2,class:le(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[dt(e.$slots,"actions")],2)):Me("v-if",!0)],2),e.$slots.default?(H(),J("div",{key:0,class:le(`${e.prefixCls}-inner-comment`)},[dt(e.$slots,"default")],2)):Me("v-if",!0)],2)],2)}var fR=je(c9e,[["render",v9e]]);const m9e=Object.assign(fR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+fR.name,fR)}}),g9e=ke({name:"ConfigProvider",props:{prefixCls:{type:String,default:"arco"},locale:{type:Object},size:{type:String},global:{type:Boolean,default:!1},updateAtScroll:{type:Boolean,default:!1},scrollToClose:{type:Boolean,default:!1},exchangeTime:{type:Boolean,default:!0}},setup(e,{slots:t}){const{prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l}=nn(e),c=Yt({slots:t,prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l});if(e.global){const d=go();d&&d.appContext.app.provide(Ya,c)}else ti(Ya,c)}});function y9e(e,t,n,r,o,a){return dt(e.$slots,"default")}var hR=je(g9e,[["render",y9e]]);const b9e=Object.assign(hR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+hR.name,hR)}});function _9e(e){const{modelValue:t,defaultValue:n,format:r}=nn(e),o=F(()=>uc(t.value,r.value)),a=F(()=>uc(n.value,r.value)),[s,l]=Ga(wn(o.value)?wn(a.value)?void 0:a.value:o.value);return Pt(o,()=>{wn(o.value)&&l(void 0)}),{value:F(()=>o.value||s.value),setValue:l}}const S9e=ke({name:"DateInput",components:{IconHover:To,IconClose:ds,FeedbackIcon:W_},props:{size:{type:String},focused:{type:Boolean},disabled:{type:Boolean},readonly:{type:Boolean},error:{type:Boolean},allowClear:{type:Boolean},placeholder:{type:String},inputValue:{type:String},value:{type:Object},format:{type:[String,Function],required:!0}},emits:["clear","press-enter","change","blur"],setup(e,{emit:t,slots:n}){const{error:r,focused:o,disabled:a,size:s,value:l,format:c,inputValue:d}=nn(e),{mergedSize:h,mergedDisabled:p,mergedError:m,feedback:g}=Ao({size:s,disabled:a,error:r}),{mergedSize:y}=wa(h),S=Le("picker"),k=F(()=>[S,`${S}-size-${y.value}`,{[`${S}-focused`]:o.value,[`${S}-disabled`]:p.value,[`${S}-error`]:m.value,[`${S}-has-prefix`]:n.prefix}]),C=F(()=>{if(d?.value)return d?.value;if(l?.value&&jc(l.value))return xn(c.value)?c.value(l.value):l.value.format(c.value)}),x=fe();return{feedback:g,prefixCls:S,classNames:k,displayValue:C,mergedDisabled:p,refInput:x,onPressEnter(){t("press-enter")},onChange(E){t("change",E)},onClear(E){t("clear",E)},onBlur(E){t("blur",E)}}},methods:{focus(){this.refInput&&this.refInput.focus&&this.refInput.focus()},blur(){this.refInput&&this.refInput.blur&&this.refInput.blur()}}}),k9e=["disabled","placeholder","value"];function x9e(e,t,n,r,o,a){const s=Pe("IconClose"),l=Pe("IconHover"),c=Pe("FeedbackIcon");return H(),J("div",{class:le(e.classNames)},[e.$slots.prefix?(H(),J("div",{key:0,class:le(`${e.prefixCls}-prefix`)},[dt(e.$slots,"prefix")],2)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-input`)},[L("input",zt({ref:"refInput",disabled:e.mergedDisabled,placeholder:e.placeholder,class:`${e.prefixCls}-start-time`,value:e.displayValue},e.readonly?{readonly:!0}:{},{onKeydown:t[0]||(t[0]=Ch((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),onInput:t[1]||(t[1]=(...d)=>e.onChange&&e.onChange(...d)),onBlur:t[2]||(t[2]=(...d)=>e.onBlur&&e.onBlur(...d))}),null,16,k9e)],2),L("div",{class:le(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(H(),Je(l,{key:0,prefix:e.prefixCls,class:le(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Me("v-if",!0),L("span",{class:le(`${e.prefixCls}-suffix-icon`)},[dt(e.$slots,"suffix-icon")],2),e.feedback?(H(),Je(c,{key:1,type:e.feedback},null,8,["type"])):Me("v-if",!0)],2)],2)}var Npe=je(S9e,[["render",x9e]]);function Jj(e){const t=["H","h","m","s","a","A"],n=[];let r=!1;return t.forEach(o=>{e.indexOf(o)!==-1&&(n.push(o),(o==="a"||o==="A")&&(r=!0))}),{list:n,use12Hours:r}}const dre=new Map;function C9e(e,t,n){const r=dre.get(e);wn(r)||cancelAnimationFrame(r),n<=0&&(e.scrollTop=t),dre.set(e,requestAnimationFrame(()=>{new Km({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:a=>{e.scrollTop=a.scrollTop}}).start()}))}function cf(e,t){const n=r=>{if(tr(r))return r.map(o=>n(o));if(!wn(r))return r.format(t)};return n(e)}function w4(e){return wn(e)?!0:tr(e)?e.length===0||e.length===2&&jc(e[0])&&jc(e[1]):!1}function N8(e,t){return e?typeof e=="string"&&Rs(e,t).format(t)===e:!1}function w9e(e,{disabledHours:t,disabledMinutes:n,disabledSeconds:r}){if(!e)return!1;const o=e.hour(),a=e.minute(),s=e.second(),l=t?.()||[],c=n?.(o)||[],d=r?.(o,a)||[],h=(p,m)=>!wn(p)&&m.includes(p);return h(o,l)||h(a,c)||h(s,d)}var Xh=ke({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const Fpe=Symbol("PickerInjectionKey");function X_(){const{datePickerT:e}=Pn(Fpe)||{};return e||((t,...n)=>t)}const E9e=ke({name:"PanelShortcuts",components:{Button:Xo,RenderFunction:Xh},props:{prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},showNowBtn:{type:Boolean}},emits:["item-click","item-mouse-enter","item-mouse-leave","now-click"],setup(e,{emit:t}){return{datePickerT:X_(),onItemClick:r=>{t("item-click",r)},onItemMouseEnter:r=>{t("item-mouse-enter",r)},onItemMouseLeave:r=>{t("item-mouse-leave",r)},onNowClick:()=>{t("now-click")},isFunction:xn}}});function T9e(e,t,n,r,o,a){const s=Pe("Button"),l=Pe("RenderFunction");return H(),J("div",{class:le(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(H(),Je(s,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:de(()=>[We(Ve(e.datePickerT("datePicker.now")),1)]),_:1})):Me("v-if",!0),(H(!0),J(Ft,null,pn(e.shortcuts,(c,d)=>(H(),Je(s,{key:d,size:"mini",onClick:()=>e.onItemClick(c),onMouseenter:()=>e.onItemMouseEnter(c),onMouseleave:()=>e.onItemMouseLeave(c)},{default:de(()=>[e.isFunction(c.label)?(H(),Je(l,{key:0,"render-func":c.label},null,8,["render-func"])):(H(),J(Ft,{key:1},[We(Ve(c.label),1)],64))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var jpe=je(E9e,[["render",T9e]]);function Dy(e){return[...Array(e)]}function Qj(e){if(!wn(e))return tr(e)?e:[e,void 0]}function Fp(e){return!!e&&jc(e[0])&&jc(e[1])}function A9e(e){return wn(e)||e.length===0||Fp(e)}function Vpe(e,t,n){const r=t||e;return(n||e).set("year",r.year()).set("month",r.month()).set("date",r.date())}const I9e=ke({name:"IconDoubleLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-double-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),L9e=["stroke-width","stroke-linecap","stroke-linejoin"];function D9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M36.857 9.9 22.715 24.042l14.142 14.142M25.544 9.9 11.402 24.042l14.142 14.142"},null,-1)]),14,L9e)}var pR=je(I9e,[["render",D9e]]);const zpe=Object.assign(pR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pR.name,pR)}}),P9e=ke({name:"IconDoubleRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-double-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),R9e=["stroke-width","stroke-linecap","stroke-linejoin"];function M9e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m11.143 38.1 14.142-14.142L11.143 9.816M22.456 38.1l14.142-14.142L22.456 9.816"},null,-1)]),14,R9e)}var vR=je(P9e,[["render",M9e]]);const Upe=Object.assign(vR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vR.name,vR)}}),O9e=ke({name:"PanelHeader",components:{IconLeft:Al,IconRight:zi,IconDoubleLeft:zpe,IconDoubleRight:Upe,RenderFunction:Xh},props:{prefixCls:{type:String,required:!0},title:{type:String,required:!0},mode:{type:String,default:"date"},value:{type:Object},icons:{type:Object},onPrev:{type:Function},onSuperPrev:{type:Function},onNext:{type:Function},onSuperNext:{type:Function},onLabelClick:{type:Function}},emits:["label-click"],setup(e){return{showPrev:F(()=>xn(e.onPrev)),showSuperPrev:F(()=>xn(e.onSuperPrev)),showNext:F(()=>xn(e.onNext)),showSuperNext:F(()=>xn(e.onSuperNext)),year:F(()=>["date","quarter","month","week"].includes(e.mode)&&e.value?e.value.format("YYYY"):""),month:F(()=>["date","week"].includes(e.mode)&&e.value?e.value.format("MM"):""),getIconClassName:t=>[`${e.prefixCls}-header-icon`,{[`${e.prefixCls}-header-icon-hidden`]:!t}]}}}),$9e={key:1};function B9e(e,t,n,r,o,a){const s=Pe("RenderFunction"),l=Pe("IconDoubleLeft"),c=Pe("IconLeft"),d=Pe("IconRight"),h=Pe("IconDoubleRight");return H(),J("div",{class:le(`${e.prefixCls}-header`)},[L("div",{class:le(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...p)=>e.onSuperPrev&&e.onSuperPrev(...p))},[e.showSuperPrev?(H(),J(Ft,{key:0},[e.icons&&e.icons.prevDouble?(H(),Je(s,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(H(),Je(l,{key:1}))],64)):Me("v-if",!0)],2),L("div",{class:le(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...p)=>e.onPrev&&e.onPrev(...p))},[e.showPrev?(H(),J(Ft,{key:0},[e.icons&&e.icons.prev?(H(),Je(s,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(H(),Je(c,{key:1}))],64)):Me("v-if",!0)],2),L("div",{class:le(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(H(),J(Ft,{key:0},[e.year?(H(),J("span",{key:0,class:le(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},Ve(e.year),3)):Me("v-if",!0),e.year&&e.month?(H(),J("span",$9e,"-")):Me("v-if",!0),e.month?(H(),J("span",{key:2,class:le(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},Ve(e.month),3)):Me("v-if",!0)],64)):(H(),J(Ft,{key:1},[We(Ve(e.title),1)],64))],2),L("div",{class:le(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...p)=>e.onNext&&e.onNext(...p))},[e.showNext?(H(),J(Ft,{key:0},[e.icons&&e.icons.next?(H(),Je(s,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(H(),Je(d,{key:1}))],64)):Me("v-if",!0)],2),L("div",{class:le(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...p)=>e.onSuperNext&&e.onSuperNext(...p))},[e.showSuperNext?(H(),J(Ft,{key:0},[e.icons&&e.icons.nextDouble?(H(),Je(s,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(H(),Je(h,{key:1}))],64)):Me("v-if",!0)],2)],2)}var $5=je(O9e,[["render",B9e]]);function N9e(e){const{rangeValues:t}=nn(e),n=F(()=>t?.value&&t.value.every(jc)?Jb(t.value):t?.value),r=F(()=>{var a;return(a=n.value)==null?void 0:a[0]}),o=F(()=>{var a;return(a=n.value)==null?void 0:a[1]});return{getCellClassName:(a,s)=>{const{value:l,isSameTime:c,mode:d,prefixCls:h}=e,p=!a.isPrev&&!a.isNext,m=l&&c(a.value,l);let g=c(a.value,Ka());d==="week"&&(g=Ka().isSame(a.value,"date"));const y=p&&r.value&&c(a.value,r.value),S=p&&o.value&&c(a.value,o.value),k=p&&r.value&&o.value&&(y||S||a.value.isBetween(r.value,o.value,null,"[]"));return[`${h}-cell`,{[`${h}-cell-in-view`]:p,[`${h}-cell-today`]:g,[`${h}-cell-selected`]:m,[`${h}-cell-range-start`]:y,[`${h}-cell-range-end`]:S,[`${h}-cell-in-range`]:k,[`${h}-cell-disabled`]:s},a.classNames]}}}const F9e=ke({name:"PanelBody",components:{RenderFunction:Xh},props:{prefixCls:{type:String,required:!0},rows:{type:Array,default:()=>[]},value:{type:Object},disabledDate:{type:Function},isSameTime:{type:Function,required:!0},mode:{type:String},rangeValues:{type:Array},dateRender:{type:Function}},emits:["cell-click","cell-mouse-enter"],setup(e,{emit:t}){const{prefixCls:n,value:r,disabledDate:o,isSameTime:a,mode:s,rangeValues:l}=nn(e),{getCellClassName:c}=N9e(Yt({prefixCls:n,value:r,isSameTime:a,mode:s,rangeValues:l})),d=h=>!!(xn(o?.value)&&o?.value(ku(h.value)));return{isWeek:F(()=>s?.value==="week"),getCellClassName:h=>{const p=d(h);return c(h,p)},onCellClick:h=>{d(h)||t("cell-click",h)},onCellMouseEnter:h=>{d(h)||t("cell-mouse-enter",h)},onCellMouseLeave:h=>{d(h)||t("cell-mouse-enter",h)},getDateValue:ku}}}),j9e=["onMouseenter","onMouseleave","onClick"];function V9e(e,t,n,r,o,a){const s=Pe("RenderFunction");return H(),J("div",{class:le(`${e.prefixCls}-body`)},[(H(!0),J(Ft,null,pn(e.rows,(l,c)=>(H(),J("div",{key:c,class:le([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(H(!0),J(Ft,null,pn(l,(d,h)=>(H(),J(Ft,null,[Me(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&h===0?(H(),J("div",{key:h,class:le([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[L("div",{class:le(`${e.prefixCls}-date`)},[L("div",{class:le(`${e.prefixCls}-date-value`)},Ve(d.label),3)],2)],2)):(H(),J("div",{key:h,class:le(e.getCellClassName(d)),onMouseenter:()=>{e.onCellMouseEnter(d)},onMouseleave:()=>{e.onCellMouseLeave(d)},onClick:()=>{e.onCellClick(d)}},[e.dateRender?(H(),Je(s,{key:0,"render-func":e.dateRender,date:e.getDateValue(d.value)},null,8,["render-func","date"])):(H(),J("div",{key:1,class:le(`${e.prefixCls}-date`)},[L("div",{class:le(`${e.prefixCls}-date-value`)},Ve(d.label),3)],2))],42,j9e))],64))),256))],2))),128))],2)}var B5=je(F9e,[["render",V9e]]);const z9e=ke({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=X_();return{labelList:F(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function U9e(e,t,n,r,o,a){return H(),J("div",{class:le(`${e.prefixCls}-week-list`)},[(H(!0),J(Ft,null,pn(e.weekList,s=>(H(),J("div",{key:s,class:le(`${e.prefixCls}-week-list-item`)},Ve(e.labelList[s]||""),3))),128))],2)}var H9e=je(z9e,[["render",U9e]]);const W9e=ke({name:"TimePickerColumn",props:{prefixCls:{type:String,required:!0},list:{type:Array,required:!0},value:{type:[Number,String]},visible:{type:Boolean}},emits:["select"],setup(e,{emit:t}){const{visible:n,value:r}=nn(e),o=fe(new Map),a=fe();function s(l=!1){if(!a.value||wn(r?.value)||!n?.value)return;const c=o.value.get(r.value);c&&C9e(a.value,c.offsetTop,l?100:0)}return Pt([r,n],(l,[,c])=>{n.value!==c?_n(()=>{s()}):s(!0)}),vn(()=>{s()}),{refWrapper:a,refMap:o,onItemRef(l,c){o.value.set(c.value,l)},onItemClick(l){l.disabled||t("select",l.value)}}}}),G9e=["onClick"];function K9e(e,t,n,r,o,a){return H(),J("div",{ref:"refWrapper",class:le(`${e.prefixCls}-column`)},[L("ul",null,[(H(!0),J(Ft,null,pn(e.list,s=>(H(),J("li",{key:s.value,ref_for:!0,ref:l=>{e.onItemRef(l,s)},class:le([`${e.prefixCls}-cell`,{[`${e.prefixCls}-cell-disabled`]:s.disabled,[`${e.prefixCls}-cell-selected`]:s.selected}]),onClick:()=>{e.onItemClick(s)}},[L("div",{class:le(`${e.prefixCls}-cell-inner`)},Ve(s.label),3)],10,G9e))),128))])],2)}var q9e=je(W9e,[["render",K9e]]);function Y9e(e){const{format:t,step:n,use12Hours:r,hideDisabledOptions:o,disabledHours:a,disabledMinutes:s,disabledSeconds:l,selectedHour:c,selectedMinute:d,selectedSecond:h,selectedAmpm:p,disabled:m}=nn(e),g=F(()=>{var x;const{hour:E=1}=n?.value||{},_=((x=a?.value)==null?void 0:x.call(a))||[];let T=[];for(let D=0;D<(r.value?12:24);D+=E)T.push(D);return r.value&&(T[0]=12),o.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:lm(D,2,"0"),value:D,selected:c.value===D,disabled:m?.value||_.includes(D)}))}),y=F(()=>{var x;const{minute:E=1}=n?.value||{},_=((x=s?.value)==null?void 0:x.call(s,c.value))||[];let T=[];for(let D=0;D<60;D+=E)T.push(D);return o.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:lm(D,2,"0"),value:D,selected:d.value===D,disabled:m?.value||_.includes(D)}))}),S=F(()=>{var x;const{second:E=1}=n?.value||{},_=((x=l?.value)==null?void 0:x.call(l,c.value,d.value))||[];let T=[];for(let D=0;D<60;D+=E)T.push(D);return o.value&&_.length&&(T=T.filter(D=>_.indexOf(D)<0)),T.map(D=>({label:lm(D,2,"0"),value:D,selected:h.value===D,disabled:m?.value||_.includes(D)}))}),k=["am","pm"],C=F(()=>{const x=Jj(t.value).list.includes("A");return k.map(E=>({label:x?E.toUpperCase():E,value:E,selected:p.value===E,disabled:m?.value}))});return{hours:g,minutes:y,seconds:S,ampmList:C}}function kH(e){const{format:t,use12Hours:n,defaultFormat:r}=nn(e),o=F(()=>{let d=t?.value||r?.value;return(!d||!Jj(d).list.length)&&(d=n?.value?"hh:mm:ss a":"HH:mm:ss"),d}),a=F(()=>Jj(o.value)),s=F(()=>a.value.list),l=F(()=>a.value.use12Hours),c=F(()=>!!(n?.value||l.value));return{columns:s,use12Hours:c,format:o}}function Hpe(e){const t=n=>w9e(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>tr(n)?n.some(r=>t(r)):t(n)}const X9e=ke({name:"TimePickerPanel",components:{TimeColumn:q9e,Button:Xo},props:{value:{type:Object},visible:{type:Boolean},format:{type:String,default:"HH:mm:ss"},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},hideFooter:{type:Boolean},isRange:{type:Boolean},disabled:{type:Boolean}},emits:{select:e=>jc(e),confirm:e=>jc(e)},setup(e,{emit:t}){const{value:n,visible:r,format:o,step:a,use12Hours:s,hideDisabledOptions:l,disabledHours:c,disabledMinutes:d,disabledSeconds:h,disabled:p}=nn(e),m=Le("timepicker"),{t:g}=$o(),{columns:y,use12Hours:S,format:k}=kH(Yt({format:o,use12Hours:s})),C=fe(n?.value),x=X=>{C.value=X};Pt([r,n],()=>{r.value&&x(n?.value)});const E=F(()=>{var X;const ie=(X=C.value)==null?void 0:X.hour();return wn(ie)||!S.value?ie:ie>12?ie-12:ie===0?12:ie}),_=F(()=>{var X;return(X=C.value)==null?void 0:X.minute()}),T=F(()=>{var X;return(X=C.value)==null?void 0:X.second()}),D=F(()=>{var X;const ie=(X=C.value)==null?void 0:X.hour();return!wn(ie)&&ie>=12?"pm":"am"}),{hours:P,minutes:M,seconds:$,ampmList:I}=Y9e(Yt({format:k,step:a,use12Hours:S,hideDisabledOptions:l,disabledHours:c,disabledMinutes:d,disabledSeconds:h,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,disabled:p})),N=Hpe(Yt({disabledHours:c,disabledMinutes:d,disabledSeconds:h})),j=F(()=>N(C.value));function U(X){wn(X)||t("confirm",X)}function z(X){x(X),t("select",X)}function G(X,ie="hour"){let ee;const W=E.value||"00",q=_.value||"00",Q=T.value||"00",ne=D.value||"am";switch(ie){case"hour":ee=`${X}:${q}:${Q}`;break;case"minute":ee=`${W}:${X}:${Q}`;break;case"second":ee=`${W}:${q}:${X}`;break;case"ampm":ee=`${W}:${q}:${Q} ${X}`;break;default:ee="00:00:00"}let ae="HH:mm:ss";S.value&&(ae="HH:mm:ss a",ie!=="ampm"&&(ee=`${ee} ${ne}`)),ee=Rs(ee,ae),z(ee)}return{prefixCls:m,t:g,hours:P,minutes:M,seconds:$,ampmList:I,selectedValue:C,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,computedUse12Hours:S,confirmBtnDisabled:j,columns:y,onSelect:G,onSelectNow(){const X=Rs(new Date);z(X)},onConfirm(){U(C.value)}}}});function Z9e(e,t,n,r,o,a){const s=Pe("TimeColumn"),l=Pe("Button");return H(),J(Ft,null,[L("div",{class:le(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(H(),Je(s,{key:0,value:e.selectedHour,list:e.hours,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[0]||(t[0]=c=>{e.onSelect(c,"hour")})},null,8,["value","list","prefix-cls","visible"])):Me("v-if",!0),e.columns.includes("m")?(H(),Je(s,{key:1,value:e.selectedMinute,list:e.minutes,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[1]||(t[1]=c=>{e.onSelect(c,"minute")})},null,8,["value","list","prefix-cls","visible"])):Me("v-if",!0),e.columns.includes("s")?(H(),Je(s,{key:2,value:e.selectedSecond,list:e.seconds,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[2]||(t[2]=c=>{e.onSelect(c,"second")})},null,8,["value","list","prefix-cls","visible"])):Me("v-if",!0),e.computedUse12Hours?(H(),Je(s,{key:3,value:e.selectedAmpm,list:e.ampmList,"prefix-cls":e.prefixCls,visible:e.visible,onSelect:t[3]||(t[3]=c=>{e.onSelect(c,"ampm")})},null,8,["value","list","prefix-cls","visible"])):Me("v-if",!0)],2),e.$slots["extra-footer"]?(H(),J("div",{key:0,class:le(`${e.prefixCls}-footer-extra-wrapper`)},[dt(e.$slots,"extra-footer")],2)):Me("v-if",!0),e.hideFooter?Me("v-if",!0):(H(),J("div",{key:1,class:le(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?Me("v-if",!0):(H(),Je(l,{key:0,size:"mini",onClick:e.onSelectNow},{default:de(()=>[We(Ve(e.t("datePicker.now")),1)]),_:1},8,["onClick"])),O(l,{type:"primary",size:"mini",disabled:e.confirmBtnDisabled||!e.selectedValue,onClick:e.onConfirm},{default:de(()=>[We(Ve(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var F8=je(X9e,[["render",Z9e]]);const J9e=ke({name:"IconCalendar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-calendar`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Q9e=["stroke-width","stroke-linecap","stroke-linejoin"];function eOe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 22h34M14 5v8m20-8v8M8 41h32a1 1 0 0 0 1-1V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1Z"},null,-1)]),14,Q9e)}var mR=je(J9e,[["render",eOe]]);const Z_=Object.assign(mR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mR.name,mR)}}),tOe=ke({name:"IconClockCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-clock-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nOe=["stroke-width","stroke-linecap","stroke-linejoin"];function rOe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 14v10h9.5m8.5 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,nOe)}var gR=je(tOe,[["render",rOe]]);const N5=Object.assign(gR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gR.name,gR)}}),Wpe=6,eV=7,iOe=Wpe*eV;function oOe(e){return{label:e.date(),value:e}}const sOe=ke({name:"DatePanel",components:{PanelHeader:$5,PanelBody:B5,PanelWeekList:H9e,TimePanel:F8,IconCalendar:Z_,IconClockCircle:N5},props:{isRange:{type:Boolean},value:{type:Object},rangeValues:{type:Array},headerValue:{type:Object,required:!0},footerValue:{type:Object},timePickerValue:{type:Object},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},isSameTime:{type:Function},mode:{type:String,default:"date"},showTime:{type:Boolean},timePickerProps:{type:Object},currentView:{type:String},dateRender:{type:Function},disabled:{type:Boolean},onHeaderLabelClick:{type:Function}},emits:["select","time-picker-select","cell-mouse-enter","current-view-change","update:currentView"],setup(e,{emit:t}){const{isRange:n,headerValue:r,footerValue:o,dayStartOfWeek:a,isSameTime:s,mode:l,showTime:c,currentView:d,disabledTime:h}=nn(e),p=X_(),m=F(()=>l?.value==="week"),g=F(()=>Le(m.value?"panel-week":"panel-date")),y=Le("picker"),[S,k]=fa("date",Yt({value:d})),C=F(()=>c.value&&n.value),x=F(()=>!c.value||!C.value||S.value==="date"),E=F(()=>c.value&&(!C.value||S.value==="time")),_=F(()=>[g.value,{[`${g.value}-with-view-tabs`]:C.value}]),T=F(()=>r.value.format("YYYY-MM")),D=F(()=>{var U;return c.value&&((U=h?.value)==null?void 0:U.call(h,ku(o?.value||Ka())))||{}}),P=F(()=>{const U=[0,1,2,3,4,5,6],z=Math.max(a.value%7,0);return[...U.slice(z),...U.slice(0,z)]}),M=F(()=>{const U=Ys.startOf(r.value,"month"),z=U.day(),G=U.daysInMonth(),X=P.value.indexOf(z),ie=Dy(iOe);for(let W=0;WX+G-1};return Dy(Wpe).map((W,q)=>{const Q=ie.slice(q*eV,(q+1)*eV);if(m.value){const ne=Q[0].value;Q.unshift({label:ne.week(),value:ne})}return Q})}),$=F(()=>s?.value||((U,z)=>U.isSame(z,"day")));function I(U){t("select",U.value)}function N(U){t("time-picker-select",U)}function j(U){t("cell-mouse-enter",U.value)}return{prefixCls:g,classNames:_,pickerPrefixCls:y,headerTitle:T,rows:M,weekList:F(()=>m.value?[-1,...P.value]:P.value),mergedIsSameTime:$,disabledTimeProps:D,onCellClick:I,onCellMouseEnter:j,onTimePanelSelect:N,showViewTabs:C,showDateView:x,showTimeView:E,changeViewTo:U=>{t("current-view-change",U),t("update:currentView",U),k(U)},datePickerT:p}}});function aOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelWeekList"),c=Pe("PanelBody"),d=Pe("TimePanel"),h=Pe("IconCalendar"),p=Pe("IconClockCircle");return H(),J("div",{class:le(e.classNames)},[e.showDateView?(H(),J("div",{key:0,class:le(`${e.prefixCls}-inner`)},[O(s,zt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:e.mode,value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","mode","value","on-label-click"]),O(l,{"prefix-cls":e.pickerPrefixCls,"week-list":e.weekList},null,8,["prefix-cls","week-list"]),O(c,{mode:e.mode,"prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.isRange?void 0:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.mergedIsSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["mode","prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)):Me("v-if",!0),e.showTimeView?(H(),J("div",{key:1,class:le(`${e.prefixCls}-timepicker`)},[L("header",{class:le(`${e.prefixCls}-timepicker-title`)},Ve(e.datePickerT("datePicker.selectTime")),3),O(d,zt({...e.timePickerProps,...e.disabledTimeProps},{"hide-footer":"",value:e.value||e.isRange?e.timePickerValue:void 0,disabled:e.disabled,onSelect:e.onTimePanelSelect}),null,16,["value","disabled","onSelect"])],2)):Me("v-if",!0),e.showViewTabs?(H(),J("div",{key:2,class:le(`${e.prefixCls}-footer`)},[L("div",{class:le(`${e.prefixCls}-view-tabs`)},[L("div",{class:le([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showDateView}]),onClick:t[0]||(t[0]=()=>e.changeViewTo("date"))},[O(h),L("span",{class:le(`${e.prefixCls}-view-tab-pane-text`)},Ve(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),L("div",{class:le([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showTimeView}]),onClick:t[1]||(t[1]=()=>e.changeViewTo("time"))},[O(p),L("span",{class:le(`${e.prefixCls}-view-tab-pane-text`)},Ve(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):Me("v-if",!0)],2)}var xH=je(sOe,[["render",aOe]]);const lOe=ke({name:"WeekPanel",components:{DatePanel:xH},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return $o(),{isSameTime:(r,o)=>Ys.isSameWeek(r,o,e.dayStartOfWeek),onSelect:r=>{const o=Ys.startOfWeek(r,e.dayStartOfWeek);t("select",o)},onCellMouseEnter:r=>{const o=Ys.startOfWeek(r,e.dayStartOfWeek);t("cell-mouse-enter",o)}}}});function uOe(e,t,n,r,o,a){const s=Pe("DatePanel");return H(),Je(s,zt(e.$attrs,{mode:"week","is-week":"","day-start-of-week":e.dayStartOfWeek,"is-same-time":e.isSameTime,onSelect:e.onSelect,onCellMouseEnter:e.onCellMouseEnter}),null,16,["day-start-of-week","is-same-time","onSelect","onCellMouseEnter"])}var Gpe=je(lOe,[["render",uOe]]);const cOe=["January","February","March","April","May","June","July","August","September","October","November","December"],dOe=12,fOe=4,fre=3,hOe=ke({name:"MonthPanel",components:{PanelHeader:$5,PanelBody:B5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function},onHeaderLabelClick:{type:Function},abbreviation:{type:Boolean,default:!0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const n=X_(),{headerValue:r}=nn(e),o=F(()=>Le("panel-month")),a=Le("picker"),s=F(()=>r.value.format("YYYY")),l=F(()=>{const p=r.value.year(),m=e.abbreviation?"short":"long",g=Dy(dOe).map((S,k)=>({label:n(`datePicker.month.${m}.${cOe[k]}`),value:Rs(`${p}-${k+1}`,"YYYY-M")}));return Dy(fOe).map((S,k)=>g.slice(k*fre,(k+1)*fre))}),c=(p,m)=>p.isSame(m,"month");function d(p){t("select",p.value)}function h(p){t("cell-mouse-enter",p.value)}return{prefixCls:o,pickerPrefixCls:a,headerTitle:s,rows:l,isSameTime:c,onCellClick:d,onCellMouseEnter:h}}});function pOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelBody");return H(),J("div",{class:le(e.prefixCls)},[L("div",{class:le(`${e.prefixCls}-inner`)},[O(s,zt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"month",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),O(l,{mode:"month","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var Kpe=je(hOe,[["render",pOe]]);const tV=4,bw=3,vOe=tV*bw,yR=10,mOe=ke({name:"YearPanel",components:{PanelHeader:$5,PanelBody:B5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const{headerValue:n}=nn(e),r=F(()=>Le("panel-year")),o=Le("picker"),a=F(()=>{const h=Math.floor(n.value.year()/yR)*yR-1,p=Dy(vOe).map((g,y)=>({label:h+y,value:Rs(`${h+y}`,"YYYY"),isPrev:y<1,isNext:y>yR}));return Dy(tV).map((g,y)=>p.slice(y*bw,(y+1)*bw))}),s=F(()=>`${a.value[0][1].label}-${a.value[tV-1][bw-1].label}`),l=(h,p)=>h.isSame(p,"year");function c(h){t("select",h.value)}function d(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:o,headerTitle:s,rows:a,isSameTime:l,onCellClick:c,onCellMouseEnter:d}}});function gOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelBody");return H(),J("div",{class:le(e.prefixCls)},[L("div",{class:le(`${e.prefixCls}-inner`)},[O(s,zt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle}),null,16,["prefix-cls","title"]),O(l,{mode:"year","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var qpe=je(mOe,[["render",gOe]]);const yOe=ke({name:"QuarterPanel",components:{PanelHeader:$5,PanelBody:B5},props:{headerValue:{type:Object,required:!0},headerOperations:{type:Object,default:()=>({})},headerIcons:{type:Object,default:()=>({})},value:{type:Object},disabledDate:{type:Function},rangeValues:{type:Array},dateRender:{type:Function},onHeaderLabelClick:{type:Function}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){const{headerValue:n}=nn(e),r=F(()=>Le("panel-quarter")),o=Le("picker"),a=F(()=>n.value.format("YYYY")),s=F(()=>{const h=n.value.year();return[[1,2,3,4].map(p=>({label:`Q${p}`,value:Rs(`${h}-${lm((p-1)*3+1,2,"0")}-01`)}))]}),l=(h,p)=>h.isSame(p,"month")||h.isSame(p,"year")&&Math.floor(h.month()/3)===Math.floor(p.month()/3);function c(h){t("select",h.value)}function d(h){t("cell-mouse-enter",h.value)}return{prefixCls:r,pickerPrefixCls:o,headerTitle:a,rows:s,isSameTime:l,onCellClick:c,onCellMouseEnter:d}}});function bOe(e,t,n,r,o,a){const s=Pe("PanelHeader"),l=Pe("PanelBody");return H(),J("div",{class:le(e.prefixCls)},[L("div",{class:le(`${e.prefixCls}-inner`)},[O(s,zt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle,mode:"quarter",value:e.headerValue,"on-label-click":e.onHeaderLabelClick}),null,16,["prefix-cls","title","value","on-label-click"]),O(l,{mode:"quarter","prefix-cls":e.pickerPrefixCls,rows:e.rows,value:e.value,"range-values":e.rangeValues,"disabled-date":e.disabledDate,"is-same-time":e.isSameTime,"date-render":e.dateRender,onCellClick:e.onCellClick,onCellMouseEnter:e.onCellMouseEnter},null,8,["prefix-cls","rows","value","range-values","disabled-date","is-same-time","date-render","onCellClick","onCellMouseEnter"])],2)],2)}var Ype=je(yOe,[["render",bOe]]);const _Oe=ke({name:"IconLink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-link`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SOe=["stroke-width","stroke-linecap","stroke-linejoin"];function kOe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m14.1 25.414-4.95 4.95a6 6 0 0 0 8.486 8.485l8.485-8.485a6 6 0 0 0 0-8.485m7.779.707 4.95-4.95a6 6 0 1 0-8.486-8.485l-8.485 8.485a6 6 0 0 0 0 8.485"},null,-1)]),14,SOe)}var bR=je(_Oe,[["render",kOe]]);const Dc=Object.assign(bR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bR.name,bR)}}),xOe=ke({name:"Link",components:{IconLink:Dc,IconLoading:Xa},props:{href:String,status:{type:String,default:"normal"},hoverable:{type:Boolean,default:!0},icon:Boolean,loading:Boolean,disabled:Boolean},emits:{click:e=>!0},setup(e,{slots:t,emit:n}){const r=Le("link"),o=Bpe(e,t,"icon"),a=l=>{if(e.disabled||e.loading){l.preventDefault();return}n("click",l)};return{cls:F(()=>[r,`${r}-status-${e.status}`,{[`${r}-disabled`]:e.disabled,[`${r}-loading`]:e.loading,[`${r}-hoverless`]:!e.hoverable,[`${r}-with-icon`]:e.loading||o.value}]),prefixCls:r,showIcon:o,handleClick:a}}}),COe=["href"];function wOe(e,t,n,r,o,a){const s=Pe("icon-loading"),l=Pe("icon-link");return H(),J("a",{href:e.disabled?void 0:e.href,class:le(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.loading||e.showIcon?(H(),J("span",{key:0,class:le(`${e.prefixCls}-icon`)},[e.loading?(H(),Je(s,{key:0})):dt(e.$slots,"icon",{key:1},()=>[O(l)])],2)):Me("v-if",!0),dt(e.$slots,"default")],10,COe)}var _R=je(xOe,[["render",wOe]]);const Xpe=Object.assign(_R,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+_R.name,_R)}}),EOe=ke({name:"PanelFooter",components:{Link:Xpe,Button:Xo},props:{prefixCls:{type:String,required:!0},showTodayBtn:{type:Boolean},showConfirmBtn:{type:Boolean},confirmBtnDisabled:{type:Boolean}},emits:["today-btn-click","confirm-btn-click"],setup(e,{emit:t}){return{datePickerT:X_(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function TOe(e,t,n,r,o,a){const s=Pe("Link"),l=Pe("Button");return H(),J("div",{class:le(`${e.prefixCls}-footer`)},[e.$slots.extra?(H(),J("div",{key:0,class:le(`${e.prefixCls}-footer-extra-wrapper`)},[dt(e.$slots,"extra")],2)):Me("v-if",!0),e.showTodayBtn?(H(),J("div",{key:1,class:le(`${e.prefixCls}-footer-now-wrapper`)},[O(s,{onClick:e.onTodayClick},{default:de(()=>[We(Ve(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):Me("v-if",!0),e.$slots.btn||e.showConfirmBtn?(H(),J("div",{key:2,class:le(`${e.prefixCls}-footer-btn-wrapper`)},[dt(e.$slots,"btn"),e.showConfirmBtn?(H(),Je(l,{key:0,class:le(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:de(()=>[We(Ve(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):Me("v-if",!0)],2)):Me("v-if",!0)],2)}var Zpe=je(EOe,[["render",TOe]]);function Jpe(e){const{mode:t}=nn(e),n=F(()=>({date:1,week:1,year:120,quarter:12,month:12})[t.value]),r=F(()=>["year"].includes(t.value)?120:12);return{span:n,superSpan:r}}function j8(e){const{mode:t,value:n,defaultValue:r,selectedValue:o,format:a,onChange:s}=nn(e),l=F(()=>t?.value||"date"),{span:c,superSpan:d}=Jpe(Yt({mode:l})),h=(T,D)=>{const P=l.value==="date"||l.value==="week"?"M":"y";return T.isSame(D,P)},p=F(()=>uc(n?.value,a.value)),m=F(()=>uc(r?.value,a.value)),g=fe(m.value||Ka()),y=F(()=>p.value||g.value),S=T=>{T&&(g.value=T)},k=(T,D=!0)=>{var P;T&&(D&&!h(y.value,T)&&((P=s?.value)==null||P.call(s,T)),S(T))};o?.value&&S(o.value),Pt(()=>o?.value,T=>{k(T)});function C(){return o?.value||m.value||Ka()}function x(T=!0){const D=C();T?k(D):S(D)}const E=F(()=>c.value!==d.value),_=F(()=>({onSuperPrev:()=>{k(Ys.subtract(y.value,d.value,"M"))},onPrev:E.value?()=>{k(Ys.subtract(y.value,c.value,"M"))}:void 0,onNext:E.value?()=>{k(Ys.add(y.value,c.value,"M"))}:void 0,onSuperNext:()=>{k(Ys.add(y.value,d.value,"M"))}}));return{headerValue:y,setHeaderValue:k,headerOperations:_,resetHeaderValue:x,getDefaultLocalValue:C}}const AOe=ke({name:"DatePikerPanel",components:{DatePanel:xH,PanelShortcuts:jpe,PanelFooter:Zpe,WeekPanel:Gpe,MonthPanel:Kpe,YearPanel:qpe,QuarterPanel:Ype,RenderFunction:Xh},props:{mode:{type:String},headerMode:{type:String},prefixCls:{type:String,required:!0},value:{type:Object},headerValue:{type:Object,required:!0},timePickerValue:{type:Object},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},confirmBtnDisabled:{type:Boolean},showNowBtn:{type:Boolean},headerIcons:{type:Object,default:()=>({})},headerOperations:{type:Object},abbreviation:{type:Boolean}},emits:["cell-click","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","today-btn-click","header-label-click","header-select","month-header-click"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:r,shortcutsPosition:o,format:a,value:s,disabledDate:l,hideTrigger:c,showNowBtn:d,dateRender:h,showConfirmBtn:p,headerValue:m,headerIcons:g,headerOperations:y,headerMode:S}=nn(e),k=F(()=>!!(r.value&&r.value.length)),C=F(()=>d.value&&p.value&&!k.value),x=F(()=>C.value||k.value),E=F(()=>x.value&&o.value==="left"),_=F(()=>x.value&&o.value==="right"),T=F(()=>x.value&&o.value==="bottom"),D=F(()=>[`${n.value}-container`,{[`${n.value}-container-panel-only`]:c.value,[`${n.value}-container-shortcuts-placement-left`]:E.value,[`${n.value}-container-shortcuts-placement-right`]:_.value}]),P=F(()=>s?.value||Ka()),{headerValue:M,setHeaderValue:$,headerOperations:I}=j8(Yt({mode:S,format:a}));Pt(m,re=>{$(re)});function N(re){const{value:Ce}=re;return uc(xn(Ce)?Ce():Ce,re.format||a.value)}function j(re){t("shortcut-click",N(re),re)}function U(re){t("shortcut-mouse-enter",N(re))}function z(re){t("shortcut-mouse-leave",N(re))}function G(re){t("cell-click",re)}function X(re){t("time-picker-select",re)}function ie(){t("today-btn-click",Ka())}function ee(){t("confirm")}function W(re){t("header-label-click",re)}function q(re){t("header-select",re)}function Q(){t("month-header-click")}const ne=Yt({prefixCls:n,shortcuts:r,showNowBtn:C,onItemClick:j,onItemMouseEnter:U,onItemMouseLeave:z,onNowClick:ie}),ae=Yt({value:s,headerValue:m,headerIcons:g,headerOperations:y,disabledDate:l,dateRender:h,onSelect:G,onHeaderLabelClick:W});return{classNames:D,showShortcutsInLeft:E,showShortcutsInRight:_,showShortcutsInBottom:T,shortcutsProps:ne,commonPanelProps:ae,footerValue:P,onTodayBtnClick:ie,onConfirmBtnClick:ee,onTimePickerSelect:X,onHeaderPanelSelect:q,headerPanelHeaderValue:M,headerPanelHeaderOperations:I,onMonthHeaderLabelClick:Q}}});function IOe(e,t,n,r,o,a){const s=Pe("PanelShortcuts"),l=Pe("YearPanel"),c=Pe("MonthPanel"),d=Pe("WeekPanel"),h=Pe("QuarterPanel"),p=Pe("DatePanel"),m=Pe("RenderFunction"),g=Pe("PanelFooter");return H(),J("div",{class:le(e.classNames)},[e.showShortcutsInLeft?(H(),Je(s,Ki(zt({key:0},e.shortcutsProps)),null,16)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(H(),J(Ft,{key:0},[e.headerMode==="year"?(H(),Je(l,{key:0,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,onSelect:e.onHeaderPanelSelect},null,8,["header-value","header-icons","header-operations","onSelect"])):e.headerMode==="month"?(H(),Je(c,{key:1,"header-value":e.headerPanelHeaderValue,"header-icons":e.headerIcons,"header-operations":e.headerPanelHeaderOperations,abbreviation:e.abbreviation,onSelect:e.onHeaderPanelSelect,onHeaderLabelClick:e.onMonthHeaderLabelClick},null,8,["header-value","header-icons","header-operations","abbreviation","onSelect","onHeaderLabelClick"])):Me("v-if",!0)],64)):(H(),J(Ft,{key:1},[e.mode==="week"?(H(),Je(d,zt({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(H(),Je(c,zt({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(H(),Je(l,Ki(zt({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(H(),Je(h,Ki(zt({key:3},e.commonPanelProps)),null,16)):(H(),Je(p,zt({key:4},e.commonPanelProps,{mode:"date","show-time":e.showTime,"time-picker-props":e.timePickerProps,"day-start-of-week":e.dayStartOfWeek,"footer-value":e.footerValue,"time-picker-value":e.timePickerValue,"disabled-time":e.disabledTime,onTimePickerSelect:e.onTimePickerSelect}),null,16,["show-time","time-picker-props","day-start-of-week","footer-value","time-picker-value","disabled-time","onTimePickerSelect"])),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":e.showNowBtn&&!(e.showConfirmBtn||e.showShortcutsInBottom),"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onTodayBtnClick:e.onTodayBtnClick,onConfirmBtnClick:e.onConfirmBtnClick},wo({_:2},[e.extra?{name:"extra",fn:de(()=>[e.extra?(H(),Je(m,{key:0,"render-func":e.extra},null,8,["render-func"])):Me("v-if",!0)]),key:"0"}:void 0,e.showShortcutsInBottom?{name:"btn",fn:de(()=>[O(s,Ki(Sa(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-today-btn","show-confirm-btn","confirm-btn-disabled","onTodayBtnClick","onConfirmBtnClick"])],64))],2),e.showShortcutsInRight?(H(),Je(s,Ki(zt({key:1},e.shortcutsProps)),null,16)):Me("v-if",!0)],2)}var LOe=je(AOe,[["render",IOe]]);function DOe(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"gggg-wo";case"quarter":return"YYYY-[Q]Q";default:return"YYYY-MM-DD"}}function POe(e="date",t=!1){switch(e){case"date":return t?"YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD";case"month":return"YYYY-MM";case"year":return"YYYY";case"week":return"YYYY-MM-DD";case"quarter":return"YYYY-MM";default:return"YYYY-MM-DD"}}function Qpe(e){const{format:t,mode:n,showTime:r,valueFormat:o}=nn(e),a=F(()=>!xn(t?.value)&&t?.value||DOe(n?.value,r?.value)),s=F(()=>o?.value||POe(n?.value,r?.value)),l=F(()=>["timestamp","Date"].includes(s.value)?a.value:s.value);return{format:a,valueFormat:s,parseValueFormat:l}}function e0e(e){const{mode:t,showTime:n,disabledDate:r,disabledTime:o,isRange:a}=nn(e),s=F(()=>t?.value==="date"&&n?.value),l=F(()=>(h,p)=>{if(!r?.value)return!1;const m=ku(h);return a?.value?r.value(m,p):r.value(m)}),c=(h,p)=>(p?.()||[]).includes(h),d=F(()=>(h,p)=>{if(!s.value||!o?.value)return!1;const m=ku(h),g=a?.value?o.value(m,p):o.value(m);return c(h.hour(),g.disabledHours)||c(h.minute(),g.disabledMinutes)||c(h.second(),g.disabledSeconds)});return function(p,m){return p&&(l.value(p,m||"start")||d.value(p,m||"start"))}}const um=(e,t)=>{if(!e||!t)return;t=t.replace(/\[(\w+)\]/g,".$1");const n=t.split(".");if(n.length===0)return;let r=e;for(let o=0;o{if(!e||!t)return;t=t.replace(/\[(\w+)\]/g,".$1");const o=t.split(".");if(o.length===0)return;let a=e;for(let s=0;s{const l=a.startsWith("datePicker.")?a.split(".").slice(1).join("."):a;return um(t?.value||{},l)||r(a,...s)};return ti(Fpe,{datePickerT:o}),o}function nV(e){const{timePickerProps:t,selectedValue:n}=nn(e),r=F(()=>{var p;return(p=t?.value)==null?void 0:p.format}),o=F(()=>{var p;return!!((p=t?.value)!=null&&p.use12Hours)}),{format:a}=kH(Yt({format:r,use12Hours:o})),s=F(()=>{var p;return uc((p=t?.value)==null?void 0:p.defaultValue,a.value)}),l=()=>n?.value||s.value||Ka(),c=fe(l());function d(p){p&&(c.value=p)}function h(){c.value=l()}return Pt(n,p=>{d(p)}),[c,d,h]}function n0e(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function ROe(e){const{format:t}=nn(e);return n=>n0e(n,t.value)}function SR(e,t){return e.map(n=>n?n0e(n,t):void 0)}const MOe=ke({name:"Picker",components:{DateInput:Npe,Trigger:ha,PickerPanel:LOe,IconCalendar:Z_},inheritAttrs:!1,props:{locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean},placeholder:{type:String},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},pickerValue:{type:[Object,String,Number]},defaultPickerValue:{type:[Object,String,Number]},popupContainer:{type:[String,Object]},mode:{type:String,default:"date"},format:{type:[String,Function]},valueFormat:{type:String},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},showTime:{type:Boolean},timePickerProps:{type:Object},showNowBtn:{type:Boolean,default:!0},dayStartOfWeek:{type:Number,default:0},modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:r,modelValue:o,defaultValue:a,format:s,valueFormat:l,placeholder:c,popupVisible:d,defaultPopupVisible:h,disabled:p,showTime:m,timePickerProps:g,disabledDate:y,disabledTime:S,readonly:k,locale:C,pickerValue:x,defaultPickerValue:E,dayStartOfWeek:_,previewShortcut:T,showConfirmBtn:D}=nn(e),{locale:P}=$o();Os(()=>{hpe(P.value,_.value)});const{mergedDisabled:M,eventHandlers:$}=Ao({disabled:p}),I=t0e(Yt({locale:C})),N=Le("picker"),j=fe(),U=F(()=>c?.value||{date:I("datePicker.placeholder.date"),month:I("datePicker.placeholder.month"),year:I("datePicker.placeholder.year"),week:I("datePicker.placeholder.week"),quarter:I("datePicker.placeholder.quarter")}[r.value]||I("datePicker.placeholder.date")),{format:z,valueFormat:G,parseValueFormat:X}=Qpe(Yt({format:s,mode:r,showTime:m,valueFormat:l})),ie=F(()=>s&&xn(s.value)?jt=>{var rn;return(rn=s.value)==null?void 0:rn.call(s,ku(jt))}:z.value),ee=ROe(Yt({format:G})),W=e0e(Yt({mode:r,disabledDate:y,disabledTime:S,showTime:m})),q=F(()=>m.value||D.value),Q=F(()=>q.value&&(!xe.value||W(xe.value))),ne=F(()=>r.value==="date"&&m.value),{value:ae,setValue:re}=_9e(Yt({modelValue:o,defaultValue:a,format:X})),[Ce,we]=Ga(),[ve,me]=Ga(),xe=F(()=>{var jt;return(jt=Ce.value)!=null?jt:ae.value}),Be=F(()=>{var jt,rn;return(rn=(jt=ve.value)!=null?jt:Ce.value)!=null?rn:ae.value}),[Ke,ze]=Ga(),[be,_e]=fa(h.value,Yt({value:d})),Ne=jt=>{be.value!==jt&&(_e(jt),t("popup-visible-change",jt),t("update:popupVisible",jt))},{headerValue:Se,setHeaderValue:$e,headerOperations:Xe,resetHeaderValue:rt}=j8(Yt({mode:r,value:x,defaultValue:E,selectedValue:Be,format:X,onChange:jt=>{const rn=ee(jt),en=cf(jt,X.value),dn=ku(jt);t("picker-value-change",rn,dn,en),t("update:pickerValue",rn)}})),[nt,,gt]=nV(Yt({timePickerProps:g,selectedValue:Be})),yt=F(()=>!k.value&&!xn(ie.value)),$t=fe();Pt(be,jt=>{we(void 0),me(void 0),$t.value=void 0,jt&&(rt(),gt()),jt||ze(void 0)});function Ct(jt,rn){var en,dn;const Sn=jt?ee(jt):void 0,qn=cf(jt,X.value),Dr=ku(jt);fH(jt,ae.value)&&(t("update:modelValue",Sn),t("change",Sn,Dr,qn),(dn=(en=$.value)==null?void 0:en.onChange)==null||dn.call(en)),rn&&t("ok",Sn,Dr,qn)}function Dt(jt,rn,en){W(jt)||(Ct(jt,en),re(jt),we(void 0),me(void 0),ze(void 0),$t.value=void 0,wl(rn)&&Ne(rn))}function on(jt,rn){if(we(jt),me(void 0),ze(void 0),$t.value=void 0,rn){const en=jt?ee(jt):void 0,dn=cf(jt,X.value),Sn=ku(jt);t("select",en,Sn,dn)}}function lt(jt){j.value&&j.value.focus&&j.value.focus(jt)}function xt(jt,rn){return!ne.value&&!g.value?jt:Vpe(Ka(),jt,rn)}function Ye(jt){M.value||Ne(jt)}function Ue(jt){jt.stopPropagation(),Dt(void 0),t("clear")}function ut(){var jt,rn;(rn=(jt=$.value)==null?void 0:jt.onBlur)==null||rn.call(jt)}function St(jt){Ne(!0);const rn=jt.target.value;if(ze(rn),!N8(rn,z.value))return;const en=Rs(rn,z.value);W(en)||(q.value?on(en):Dt(en,!0))}function Ht(){Dt(Be.value,!1)}function bt(jt){q.value?on(jt,!0):Dt(jt,!1)}function Fe(jt){const rn=xt(jt,nt.value);bt(rn)}function At(jt){const rn=xt(Be.value||Ka(),jt);bt(rn)}function tn(){Dt(Be.value,!1,!0)}function sn(){e.disabledInput&<()}let Gt;vi(()=>{clearTimeout(Gt)});function Zt(jt){clearTimeout(Gt),me(jt),ze(void 0)}function nr(){clearTimeout(Gt),Gt=setTimeout(()=>{me(void 0)},100)}function Ar(jt,rn){t("select-shortcut",rn),Dt(jt,!1)}function ji(jt){$t.value=jt}function Ho(){$t.value="year"}function Mt(jt){let rn=Se.value;if(rn=rn.set("year",jt.year()),$t.value==="month"&&(rn=rn.set("month",jt.month())),$e(rn),r.value==="quarter"||r.value==="month"){$t.value=void 0;return}$t.value=$t.value==="year"?"month":void 0}const vt=F(()=>({format:z.value,...xa(g?.value||{},["defaultValue"]),visible:be.value})),Bt=F(()=>({...kf(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"]),showNowBtn:e.showNowBtn&&r.value==="date",prefixCls:N,format:X.value,value:Be.value,visible:be.value,showConfirmBtn:q.value,confirmBtnDisabled:Q.value,timePickerProps:vt.value,extra:n.extra,dateRender:n.cell,headerValue:Se.value,headerIcons:{prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]},headerOperations:Xe.value,timePickerValue:nt.value,headerMode:$t.value,onCellClick:Fe,onTimePickerSelect:At,onConfirm:tn,onShortcutClick:Ar,onShortcutMouseEnter:T.value?Zt:void 0,onShortcutMouseLeave:T.value?nr:void 0,onTodayBtnClick:bt,onHeaderLabelClick:ji,onHeaderSelect:Mt,onMonthHeaderClick:Ho}));return{prefixCls:N,refInput:j,panelProps:Bt,panelValue:Be,inputValue:Ke,selectedValue:ae,inputFormat:ie,computedPlaceholder:U,panelVisible:be,inputEditable:yt,needConfirm:q,mergedDisabled:M,onPanelVisibleChange:Ye,onInputClear:Ue,onInputChange:St,onInputPressEnter:Ht,onInputBlur:ut,onPanelClick:sn}}});function OOe(e,t,n,r,o,a){const s=Pe("IconCalendar"),l=Pe("DateInput"),c=Pe("PickerPanel"),d=Pe("Trigger");return e.hideTrigger?(H(),Je(c,Ki(zt({key:1},{...e.$attrs,...e.panelProps})),null,16)):(H(),Je(d,zt({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{position:e.position,disabled:e.mergedDisabled||e.readonly,"prevent-focus":!0,"popup-visible":e.panelVisible,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:de(()=>[O(c,zt(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:de(()=>[dt(e.$slots,"default",{},()=>[O(l,zt(e.$attrs,{ref:"refInput",size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.mergedDisabled,readonly:!e.inputEditable||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.needConfirm?e.panelValue:e.selectedValue,format:e.inputFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter,onBlur:e.onInputBlur}),wo({"suffix-icon":de(()=>[dt(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[dt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["size","focused","visible","error","disabled","readonly","allow-clear","placeholder","input-value","value","format","onClear","onChange","onPressEnter","onBlur"])])]),_:3},16,["position","disabled","popup-visible","unmount-on-close","popup-container","onPopupVisibleChange"]))}var J_=je(MOe,[["render",OOe]]),kR=ke({name:"DatePicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:[String,Function]},dayStartOfWeek:{type:Number,default:0},showTime:{type:Boolean},timePickerProps:{type:Object},disabled:{type:Boolean},disabledDate:{type:Function},disabledTime:{type:Function},showNowBtn:{type:Boolean,default:!0}},setup(e,{attrs:t,slots:n}){return()=>O(J_,zt(e,t,{mode:"date"}),n)}}),_w=ke({name:"WeekPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"gggg-wo"},valueFormat:{type:String,default:"YYYY-MM-DD"},dayStartOfWeek:{type:Number,default:0}},setup(e,{attrs:t,slots:n}){return()=>O(J_,zt(e,t,{mode:"week"}),n)}}),Sw=ke({name:"MonthPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>O(J_,zt(e,t,{mode:"month"}),n)}}),kw=ke({name:"YearPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY"}},setup(e,{attrs:t,slots:n}){return()=>O(J_,zt(e,t,{mode:"year"}),n)}}),xw=ke({name:"QuarterPicker",props:{modelValue:{type:[Object,String,Number]},defaultValue:{type:[Object,String,Number]},format:{type:String,default:"YYYY-[Q]Q"},valueFormat:{type:String,default:"YYYY-MM"}},setup(e,{attrs:t,slots:n}){return()=>O(J_,zt(e,t,{mode:"quarter"}),n)}});function $Oe(e){const{modelValue:t,defaultValue:n,format:r}=nn(e),o=F(()=>uc(Qj(t.value),r.value)),a=F(()=>uc(Qj(n.value),r.value)),[s,l]=Ga(wn(o.value)?wn(a.value)?[]:a.value:o.value);return Pt(o,()=>{wn(o.value)&&l([])}),{value:F(()=>o.value||s.value),setValue:l}}function BOe(e){const{startHeaderMode:t,endHeaderMode:n,mode:r,value:o,defaultValue:a,selectedValue:s,format:l,onChange:c}=nn(e),d=F(()=>["date","week"].includes(r.value)),h=F(()=>d.value?"M":"y"),p=(Ce,we)=>Ce.isSame(we,h.value),{span:m,superSpan:g}=Jpe(Yt({mode:r})),y=F(()=>t?.value||r.value),S=F(()=>n?.value||r.value),k=F(()=>{var Ce;return(Ce=o.value)==null?void 0:Ce[0]}),C=F(()=>{var Ce;return(Ce=o.value)==null?void 0:Ce[1]}),x=F(()=>{var Ce;return(Ce=a.value)==null?void 0:Ce[0]}),E=F(()=>{var Ce;return(Ce=a.value)==null?void 0:Ce[1]}),_=Ce=>{c?.value&&c.value(Ce)},{headerValue:T,setHeaderValue:D,headerOperations:P,getDefaultLocalValue:M}=j8(Yt({mode:y,value:k,defaultValue:x,selectedValue:void 0,format:l,onChange:Ce=>{_([Ce,$.value])}})),{headerValue:$,setHeaderValue:I,headerOperations:N,getDefaultLocalValue:j}=j8(Yt({mode:S,value:C,defaultValue:E,selectedValue:void 0,format:l,onChange:Ce=>{_([T.value,Ce])}})),U=Ce=>{const we=p(T.value,Ce[0]),ve=p($.value,Ce[1]);D(Ce[0],!1),I(Ce[1],!1),(!we||!ve)&&c?.value&&c?.value(Ce)};function z(Ce){let[we,ve]=Jb(Ce);const me=Ys.add(we,m.value,"M");return ve.isBefore(me,h.value)&&(ve=me),[we,ve]}function G(){var Ce,we;let ve=(Ce=s.value)==null?void 0:Ce[0],me=(we=s.value)==null?void 0:we[1];return ve&&me&&([ve,me]=Jb([ve,me])),[ve,me]}const[X,ie]=G(),[ee,W]=z([X||T.value,ie||$.value]);D(ee,!1),I(W,!1);const q=()=>{const Ce=M(),we=j();_n(()=>{const[ve,me]=G(),[xe,Be]=z([ve||Ce,me||we]);U([xe,Be])})},Q=F(()=>Ys.add(T.value,m.value,"M").isBefore($.value,h.value)),ne=F(()=>Ys.add(T.value,g.value,"M").isBefore($.value,h.value)),ae=F(()=>{const Ce=["onSuperPrev"];return d.value&&Ce.push("onPrev"),Q.value&&d&&Ce.push("onNext"),ne.value&&Ce.push("onSuperNext"),kf(P.value,Ce)}),re=F(()=>{const Ce=["onSuperNext"];return d.value&&Ce.push("onNext"),Q.value&&d.value&&Ce.push("onPrev"),ne.value&&Ce.push("onSuperPrev"),kf(N.value,Ce)});return{startHeaderValue:T,endHeaderValue:$,startHeaderOperations:ae,endHeaderOperations:re,setHeaderValue:U,resetHeaderValue:q}}const NOe=ke({name:"DateInputRange",components:{IconHover:To,IconClose:ds,FeedbackIcon:W_},props:{size:{type:String},focused:{type:Boolean},focusedIndex:{type:Number},error:{type:Boolean},disabled:{type:[Boolean,Array],default:!1},readonly:{type:Boolean},allowClear:{type:Boolean},placeholder:{type:Array,default:()=>[]},inputValue:{type:Array},value:{type:Array,default:()=>[]},format:{type:[String,Function],required:!0}},emits:["focused-index-change","update:focusedIndex","change","clear","press-enter"],setup(e,{emit:t,slots:n}){const{error:r,focused:o,disabled:a,size:s,value:l,format:c,focusedIndex:d,inputValue:h}=nn(e),{mergedSize:p,mergedDisabled:m,mergedError:g,feedback:y}=Ao({size:s,error:r}),{mergedSize:S}=wa(p),k=fe(),C=fe(),x=X=>m.value?m.value:tr(a.value)?a.value[X]:a.value,E=F(()=>x(0)),_=F(()=>x(1)),T=Le("picker"),D=F(()=>[T,`${T}-range`,`${T}-size-${S.value}`,{[`${T}-focused`]:o.value,[`${T}-disabled`]:E.value&&_.value,[`${T}-error`]:g.value,[`${T}-has-prefix`]:n.prefix}]);function P(X){return[`${T}-input`,{[`${T}-input-active`]:X===d?.value}]}function M(X){var ie,ee;if(h?.value)return(ie=h?.value)==null?void 0:ie[X];const W=(ee=l?.value)==null?void 0:ee[X];if(W&&jc(W))return xn(c.value)?c.value(W):W.format(c.value)}const $=F(()=>M(0)),I=F(()=>M(1));function N(X){t("focused-index-change",X),t("update:focusedIndex",X)}function j(X){X.stopPropagation(),t("change",X)}function U(){t("press-enter")}function z(X){X.preventDefault()}function G(X){t("clear",X)}return{prefixCls:T,classNames:D,refInput0:k,refInput1:C,disabled0:E,disabled1:_,mergedDisabled:m,getDisabled:x,getInputWrapClassName:P,displayValue0:$,displayValue1:I,changeFocusedInput:N,onChange:j,onPressEnter:U,onPressTab:z,onClear:G,feedback:y}},methods:{focus(e){const t=Ze(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!wn(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),FOe=["disabled","placeholder","value"],jOe=["disabled","placeholder","value"];function VOe(e,t,n,r,o,a){const s=Pe("IconClose"),l=Pe("IconHover"),c=Pe("FeedbackIcon");return H(),J("div",{class:le(e.classNames)},[e.$slots.prefix?(H(),J("div",{key:0,class:le(`${e.prefixCls}-prefix`)},[dt(e.$slots,"prefix")],2)):Me("v-if",!0),L("div",{class:le(e.getInputWrapClassName(0))},[L("input",zt({ref:"refInput0",disabled:e.disabled0,placeholder:e.placeholder[0],value:e.displayValue0},e.readonly?{readonly:!0}:{},{onInput:t[0]||(t[0]=(...d)=>e.onChange&&e.onChange(...d)),onKeydown:[t[1]||(t[1]=Ch((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),t[2]||(t[2]=Ch((...d)=>e.onPressTab&&e.onPressTab(...d),["tab"]))],onClick:t[3]||(t[3]=()=>e.changeFocusedInput(0))}),null,16,FOe)],2),L("span",{class:le(`${e.prefixCls}-separator`)},[dt(e.$slots,"separator",{},()=>[t[8]||(t[8]=We(" - "))])],2),L("div",{class:le(e.getInputWrapClassName(1))},[L("input",zt({ref:"refInput1",disabled:e.disabled1,placeholder:e.placeholder[1],value:e.displayValue1},e.readonly?{readonly:!0}:{},{onInput:t[4]||(t[4]=(...d)=>e.onChange&&e.onChange(...d)),onKeydown:[t[5]||(t[5]=Ch((...d)=>e.onPressEnter&&e.onPressEnter(...d),["enter"])),t[6]||(t[6]=Ch((...d)=>e.onPressTab&&e.onPressTab(...d),["tab"]))],onClick:t[7]||(t[7]=()=>e.changeFocusedInput(1))}),null,16,jOe)],2),L("div",{class:le(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(H(),Je(l,{key:0,prefix:e.prefixCls,class:le(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[O(s)]),_:1},8,["prefix","class","onClick"])):Me("v-if",!0),L("span",{class:le(`${e.prefixCls}-suffix-icon`)},[dt(e.$slots,"suffix-icon")],2),e.feedback?(H(),Je(c,{key:1,type:e.feedback},null,8,["type"])):Me("v-if",!0)],2)],2)}var r0e=je(NOe,[["render",VOe]]);const zOe=ke({name:"DateRangePikerPanel",components:{PanelShortcuts:jpe,PanelFooter:Zpe,RenderFunction:Xh,DatePanel:xH,WeekPanel:Gpe,MonthPanel:Kpe,YearPanel:qpe,QuarterPanel:Ype},props:{mode:{type:String,default:"date"},value:{type:Array,default:()=>[]},footerValue:{type:Array},timePickerValue:{type:Array},showTime:{type:Boolean},showConfirmBtn:{type:Boolean},prefixCls:{type:String,required:!0},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},format:{type:String,required:!0},dayStartOfWeek:{type:Number,default:0},disabledDate:{type:Function},disabledTime:{type:Function},timePickerProps:{type:Object},extra:{type:Function},dateRender:{type:Function},hideTrigger:{type:Boolean},startHeaderProps:{type:Object,default:()=>({})},endHeaderProps:{type:Object,default:()=>({})},confirmBtnDisabled:{type:Boolean},disabled:{type:Array,default:()=>[!1,!1]},visible:{type:Boolean},startHeaderMode:{type:String},endHeaderMode:{type:String},abbreviation:{type:Boolean}},emits:["cell-click","cell-mouse-enter","time-picker-select","shortcut-click","shortcut-mouse-enter","shortcut-mouse-leave","confirm","start-header-label-click","end-header-label-click","start-header-select","end-header-select"],setup(e,{emit:t}){const{prefixCls:n,shortcuts:r,shortcutsPosition:o,format:a,hideTrigger:s,value:l,disabledDate:c,disabledTime:d,startHeaderProps:h,endHeaderProps:p,dateRender:m,visible:g,startHeaderMode:y,endHeaderMode:S}=nn(e),k=F(()=>tr(r.value)&&r.value.length),C=F(()=>[`${n.value}-range-container`,{[`${n.value}-range-container-panel-only`]:s.value,[`${n.value}-range-container-shortcuts-placement-left`]:k.value&&o.value==="left",[`${n.value}-range-container-shortcuts-placement-right`]:k.value&&o.value==="right"}]),x=fe("date");Pt(g,(ne,ae)=>{ne&&!ae&&(x.value="date")});function E(ne){return uc(Qj(xn(ne.value)?ne.value():ne.value),ne.format||a.value)}function _(ne){t("shortcut-click",E(ne),ne)}function T(ne){t("shortcut-mouse-enter",E(ne))}function D(ne){t("shortcut-mouse-leave",E(ne))}function P(ne){t("cell-click",ne)}function M(ne){t("cell-mouse-enter",ne)}function $(){t("confirm")}function I(ne){t("time-picker-select",ne,"start")}function N(ne){t("time-picker-select",ne,"end")}function j(ne){t("start-header-label-click",ne)}function U(ne){t("end-header-label-click",ne)}function z(ne){t("start-header-select",ne)}function G(ne){t("end-header-select",ne)}function X(ne){return xn(c?.value)?ae=>{var re;return((re=c?.value)==null?void 0:re.call(c,ae,ne===0?"start":"end"))||!1}:void 0}function ie(ne){return xn(d?.value)?ae=>{var re;return((re=d?.value)==null?void 0:re.call(d,ae,ne===0?"start":"end"))||!1}:void 0}function ee(ne){return xn(m?.value)?ae=>{var re;const Ce={...ae,type:ne===0?"start":"end"};return(re=m?.value)==null?void 0:re.call(m,Ce)}:void 0}const W=Yt({prefixCls:n,shortcuts:r,onItemClick:_,onItemMouseEnter:T,onItemMouseLeave:D}),q=F(()=>({...h.value,rangeValues:l.value,disabledDate:X(0),dateRender:ee(0),onSelect:y.value?z:P,onCellMouseEnter:M,onHeaderLabelClick:j})),Q=F(()=>({...p.value,rangeValues:l.value,disabledDate:X(1),dateRender:ee(1),onSelect:S.value?G:P,onCellMouseEnter:M,onHeaderLabelClick:U}));return{pick:kf,classNames:C,showShortcuts:k,shortcutsProps:W,startPanelProps:q,endPanelProps:Q,getDisabledTimeFunc:ie,onConfirmBtnClick:$,currentDateView:x,onStartTimePickerSelect:I,onEndTimePickerSelect:N,onStartHeaderPanelSelect:z,onEndHeaderPanelSelect:G}}});function UOe(e,t,n,r,o,a){const s=Pe("PanelShortcuts"),l=Pe("YearPanel"),c=Pe("MonthPanel"),d=Pe("WeekPanel"),h=Pe("QuarterPanel"),p=Pe("DatePanel"),m=Pe("RenderFunction"),g=Pe("PanelFooter");return H(),J("div",{class:le(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(H(),Je(s,Ki(zt({key:0},e.shortcutsProps)),null,16)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-range-panel-wrapper`)},[Me(" panel "),L("div",{class:le(`${e.prefixCls}-range`)},[L("div",{class:le(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(H(),J(Ft,{key:0},[e.startHeaderMode==="year"?(H(),Je(l,Ki(zt({key:0},e.startPanelProps)),null,16)):Me("v-if",!0),e.endHeaderMode==="year"?(H(),Je(l,Ki(zt({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(H(),Je(c,zt({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(H(),Je(c,zt({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):Me("v-if",!0)],64)):(H(),J(Ft,{key:1},[Me(" week "),e.mode==="week"?(H(),J(Ft,{key:0},[O(d,zt(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),O(d,zt(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(H(),J(Ft,{key:1},[Me(" month "),O(c,zt(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),O(c,zt(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(H(),J(Ft,{key:2},[Me(" year "),O(l,Ki(Sa(e.startPanelProps)),null,16),O(l,Ki(Sa(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(H(),J(Ft,{key:3},[Me(" quarter "),O(h,Ki(Sa(e.startPanelProps)),null,16),O(h,Ki(Sa(e.endPanelProps)),null,16)],64)):(H(),J(Ft,{key:4},[Me(" date "),O(p,zt({currentView:e.currentDateView,"onUpdate:currentView":t[0]||(t[0]=y=>e.currentDateView=y)},e.startPanelProps,{"is-range":"",value:e.value&&e.value[0],"footer-value":e.footerValue&&e.footerValue[0],"time-picker-value":e.timePickerValue&&e.timePickerValue[0],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(0),disabled:e.disabled[0],onTimePickerSelect:e.onStartTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"]),O(p,zt({currentView:e.currentDateView,"onUpdate:currentView":t[1]||(t[1]=y=>e.currentDateView=y)},e.endPanelProps,{"is-range":"",value:e.value&&e.value[1],"footer-value":e.footerValue&&e.footerValue[1],"time-picker-value":e.timePickerValue&&e.timePickerValue[1],"day-start-of-week":e.dayStartOfWeek,"show-time":e.showTime,"time-picker-props":e.timePickerProps,"disabled-time":e.getDisabledTimeFunc(1),disabled:e.disabled[1],onTimePickerSelect:e.onEndTimePickerSelect}),null,16,["currentView","value","footer-value","time-picker-value","day-start-of-week","show-time","time-picker-props","disabled-time","disabled","onTimePickerSelect"])],64))],64))],2)],2),Me(" footer "),O(g,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},wo({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:de(()=>[e.$slots.extra?dt(e.$slots,"extra",{key:0}):(H(),Je(m,{key:1,"render-func":e.extra},null,8,["render-func"]))]),key:"0"}:void 0,e.showShortcuts&&e.shortcutsPosition==="bottom"?{name:"btn",fn:de(()=>[O(s,Ki(Sa(e.shortcutsProps)),null,16)]),key:"1"}:void 0]),1032,["prefix-cls","show-confirm-btn","confirm-btn-disabled","onConfirmBtnClick"])],2),e.showShortcuts&&e.shortcutsPosition==="right"?(H(),Je(s,Ki(zt({key:1},e.shortcutsProps)),null,16)):Me("v-if",!0)],2)}var HOe=je(zOe,[["render",UOe]]);function WOe(e){const{timePickerProps:t,selectedValue:n}=nn(e),r=F(()=>{var C;return(C=n?.value)==null?void 0:C[0]}),o=F(()=>{var C;return(C=n?.value)==null?void 0:C[1]}),a=F(()=>{var C;return(C=t?.value)==null?void 0:C.defaultValue}),s=F(()=>tr(a.value)?{...t?.value,defaultValue:a.value[0]}:t?.value),l=F(()=>tr(a.value)?{...t?.value,defaultValue:a.value[1]}:t?.value),[c,d,h]=nV(Yt({timePickerProps:s,selectedValue:r})),[p,m,g]=nV(Yt({timePickerProps:l,selectedValue:o})),y=F(()=>[c.value,p.value]);function S(C){C&&(d(C[0]),m(C[1]))}function k(){h(),g()}return[y,S,k]}const GOe=ke({name:"RangePicker",components:{RangePickerPanel:HOe,DateRangeInput:r0e,Trigger:ha,IconCalendar:Z_},inheritAttrs:!1,props:{mode:{type:String,default:"date"},modelValue:{type:Array},defaultValue:{type:Array},pickerValue:{type:Array},defaultPickerValue:{type:Array},disabled:{type:[Boolean,Array],default:!1},dayStartOfWeek:{type:Number,default:0},format:{type:String},valueFormat:{type:String},showTime:{type:Boolean},timePickerProps:{type:Object},placeholder:{type:Array},disabledDate:{type:Function},disabledTime:{type:Function},separator:{type:String},exchangeTime:{type:Boolean,default:!0},popupContainer:{type:[String,Object]},locale:{type:Object},hideTrigger:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},size:{type:String},shortcuts:{type:Array,default:()=>[]},shortcutsPosition:{type:String,default:"bottom"},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},triggerProps:{type:Object},unmountOnClose:{type:Boolean},previewShortcut:{type:Boolean,default:!0},showConfirmBtn:{type:Boolean},disabledInput:{type:Boolean,default:!1},abbreviation:{type:Boolean,default:!0}},emits:{change:(e,t,n)=>!0,"update:modelValue":e=>!0,select:(e,t,n)=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,ok:(e,t,n)=>!0,clear:()=>!0,"select-shortcut":e=>!0,"picker-value-change":(e,t,n)=>!0,"update:pickerValue":e=>!0},setup(e,{emit:t,slots:n}){const{mode:r,showTime:o,format:a,modelValue:s,defaultValue:l,popupVisible:c,defaultPopupVisible:d,placeholder:h,timePickerProps:p,disabled:m,disabledDate:g,disabledTime:y,locale:S,pickerValue:k,defaultPickerValue:C,valueFormat:x,size:E,error:_,dayStartOfWeek:T,exchangeTime:D,previewShortcut:P,showConfirmBtn:M}=nn(e),{locale:$}=$o(),I=Pn(Ya,void 0);Os(()=>{hpe($.value,T.value)});const N=F(()=>{var tt;return!(!D.value||!((tt=I?.exchangeTime)==null||tt))}),{mergedSize:j,mergedDisabled:U,mergedError:z,eventHandlers:G}=Ao({size:E,error:_}),X=t0e(Yt({locale:S})),ie=Le("picker"),ee=F(()=>h?.value||{date:X("datePicker.rangePlaceholder.date"),month:X("datePicker.rangePlaceholder.month"),year:X("datePicker.rangePlaceholder.year"),week:X("datePicker.rangePlaceholder.week"),quarter:X("datePicker.rangePlaceholder.quarter")}[r.value]||X("datePicker.rangePlaceholder.date")),{format:W,valueFormat:q,parseValueFormat:Q}=Qpe(Yt({mode:r,format:a,showTime:o,valueFormat:x})),ne=F(()=>{const tt=m.value===!0||U.value||tr(m.value)&&m.value[0]===!0,st=m.value===!0||U.value||tr(m.value)&&m.value[1]===!0;return[tt,st]}),ae=F(()=>ne.value[0]&&ne.value[1]);function re(tt=0){return ne.value[tt]?tt^1:tt}const Ce=fe(),we=fe(re()),ve=F(()=>{const tt=we.value,st=tt^1;return ne.value[st]?tt:st}),me=F(()=>ne.value[we.value^1]),{value:xe,setValue:Be}=$Oe(Yt({modelValue:s,defaultValue:l,format:Q})),[Ke,ze]=Ga(),[be,_e]=Ga(),Ne=F(()=>{var tt;return(tt=Ke.value)!=null?tt:xe.value}),Se=F(()=>{var tt,st;return(st=(tt=be.value)!=null?tt:Ke.value)!=null?st:xe.value}),[$e,Xe]=Ga(),rt=fe(),nt=fe(),[gt,yt]=fa(d.value,Yt({value:c})),$t=tt=>{gt.value!==tt&&(yt(tt),t("popup-visible-change",tt),t("update:popupVisible",tt))},{startHeaderValue:Ct,endHeaderValue:Dt,startHeaderOperations:on,endHeaderOperations:lt,resetHeaderValue:xt,setHeaderValue:Ye}=BOe(Yt({mode:r,startHeaderMode:rt,endHeaderMode:nt,value:k,defaultValue:C,selectedValue:Se,format:Q,onChange:tt=>{const st=SR(tt,q.value),Rt=cf(tt,Q.value),Jt=ku(tt);t("picker-value-change",st,Jt,Rt),t("update:pickerValue",st)}}));function Ue(tt){rt.value=tt}function ut(tt){nt.value=tt}function St(tt){let st=Ct.value;st=st.set("year",tt.year()),rt.value==="month"&&(st=st.set("month",tt.month())),Ye([st,Dt.value]),rt.value=void 0}function Ht(tt){let st=Dt.value;st=st.set("year",tt.year()),nt.value==="month"&&(st=st.set("month",tt.month())),Ye([Ct.value,st]),nt.value=void 0}const bt=fe([Se.value[0]||Ka(),Se.value[1]||Ka()]);Pt(Se,()=>{const[tt,st]=Se.value;bt.value[0]=tt||bt.value[0],bt.value[1]=st||bt.value[1]});const[Fe,At,tn]=WOe(Yt({timePickerProps:p,selectedValue:Se})),sn=F(()=>r.value==="date"&&o.value),Gt=F(()=>sn.value||p.value),Zt=e0e(Yt({mode:r,isRange:!0,showTime:o,disabledDate:g,disabledTime:y})),nr=F(()=>sn.value||M.value),Ar=F(()=>nr.value&&(!Fp(Ne.value)||Zt(Ne.value[0],"start")||Zt(Ne.value[1],"end")));Pt(gt,tt=>{rt.value=void 0,nt.value=void 0,ze(void 0),_e(void 0),tt&&(xt(),tn(),we.value=re(we.value),_n(()=>rn(we.value))),tt||Xe(void 0)}),Pt(we,()=>{e.disabledInput&&(rn(we.value),Xe(void 0))});function ji(tt,st){var Rt,Jt;const Kt=tt?SR(tt,q.value):void 0,hn=cf(tt,Q.value),gn=ku(tt);fH(tt,xe.value)&&(t("update:modelValue",Kt),t("change",Kt,gn,hn),(Jt=(Rt=G.value)==null?void 0:Rt.onChange)==null||Jt.call(Rt)),st&&t("ok",Kt,gn,hn)}function Ho(tt){let st=Jb(tt);return Gt.value&&!N.value&&(st=[en(st[0],tt[0]),en(st[1],tt[1])]),st}function Mt(tt,st,Rt){if(Zt(tt?.[0],"start")||Zt(tt?.[1],"end"))return;let Jt=tt?[...tt]:void 0;Fp(Jt)&&(Jt=Ho(Jt)),ji(Jt,Rt),Be(Jt||[]),ze(void 0),_e(void 0),Xe(void 0),rt.value=void 0,nt.value=void 0,wl(st)&&$t(st)}function vt(tt){const st=SR(tt,q.value),Rt=cf(tt,Q.value),Jt=ku(tt);t("select",st,Jt,Rt)}function Bt(tt,st){const{emitSelect:Rt=!1,updateHeader:Jt=!1}=st||{};let Kt=[...tt];Fp(Kt)&&(Kt=Ho(Kt)),ze(Kt),_e(void 0),Xe(void 0),rt.value=void 0,nt.value=void 0,Rt&&vt(Kt),Jt&&xt()}function jt(tt,st){const{updateHeader:Rt=!1}=st||{};_e(tt),Xe(void 0),Rt&&xt()}function rn(tt){Ce.value&&Ce.value.focus&&Ce.value.focus(tt)}function en(tt,st){return Gt.value?Vpe(Ka(),tt,st):tt}function dn(tt){$t(tt)}function Sn(tt){if(Ke.value&&Se.value[ve.value]&&(!nr.value||!Fp(Ke.value))){const st=[...Se.value],Rt=en(tt,Fe.value[we.value]);st[we.value]=Rt,jt(st)}}function qn(tt=!1){return me.value?[...xe.value]:Ke.value?tt||!Fp(Ke.value)?[...Ke.value]:[]:tt?[...xe.value]:[]}function Dr(tt){const st=qn(),Rt=en(tt,Fe.value[we.value]);st[we.value]=Rt,vt(st),!nr.value&&Fp(st)?Mt(st,!1):(Bt(st),Fp(st)?we.value=0:we.value=ve.value)}function ur(tt,st){const Rt=st==="start"?0:1,Jt=en(Fe.value[Rt],tt),Kt=[...Fe.value];Kt[Rt]=Jt,At(Kt);const hn=qn(!0);hn[Rt]&&(hn[Rt]=Jt,Bt(hn,{emitSelect:!0}))}let Wo;vi(()=>{clearTimeout(Wo)});function ce(tt){clearTimeout(Wo),jt(tt,{updateHeader:!0})}function se(){clearTimeout(Wo),Wo=setTimeout(()=>{_e(void 0),Xe(void 0),xt()},100)}function te(tt,st){t("select-shortcut",st),Mt(tt,!1)}function Z(){Mt(Se.value,!1,!0)}function pe(tt){tt.stopPropagation(),Mt(void 0),t("clear")}function Te(tt){$t(!0);const st=tt.target.value;if(!st){Xe(void 0);return}const Rt=cf(Se.value,W.value),Jt=tr($e.value)?[...$e.value]:Rt||[];if(Jt[we.value]=st,Xe(Jt),!N8(st,W.value))return;const Kt=Rs(st,W.value);if(Zt(Kt,we.value===0?"start":"end"))return;const hn=tr(Se.value)?[...Se.value]:[];hn[we.value]=Kt,Bt(hn,{updateHeader:!0})}function Ee(){A9e(Se.value)?Mt(Se.value,!1):we.value=ve.value}const Re=F(()=>({format:W.value,...xa(p?.value||{},["defaultValue"]),visible:gt.value})),at=F(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),it=Yt({headerValue:Ct,headerOperations:on,headerIcons:at}),ht=Yt({headerValue:Dt,headerOperations:lt,headerIcons:at}),Ae=F(()=>({...kf(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"]),prefixCls:ie,format:Q.value,value:Se.value,showConfirmBtn:nr.value,confirmBtnDisabled:Ar.value,timePickerValue:Fe.value,timePickerProps:Re.value,extra:n.extra,dateRender:n.cell,startHeaderProps:it,endHeaderProps:ht,footerValue:bt.value,disabled:ne.value,visible:gt.value,onCellClick:Dr,onCellMouseEnter:Sn,onShortcutClick:te,onShortcutMouseEnter:P.value?ce:void 0,onShortcutMouseLeave:P.value?se:void 0,onConfirm:Z,onTimePickerSelect:ur,startHeaderMode:rt.value,endHeaderMode:nt.value,onStartHeaderLabelClick:Ue,onEndHeaderLabelClick:ut,onStartHeaderSelect:St,onEndHeaderSelect:Ht}));return{prefixCls:ie,refInput:Ce,computedFormat:W,computedPlaceholder:ee,panelVisible:gt,panelValue:Se,inputValue:$e,focusedIndex:we,triggerDisabled:ae,mergedSize:j,mergedError:z,onPanelVisibleChange:dn,onInputClear:pe,onInputChange:Te,onInputPressEnter:Ee,rangePanelProps:Ae}}});function KOe(e,t,n,r,o,a){const s=Pe("IconCalendar"),l=Pe("DateRangeInput"),c=Pe("RangePickerPanel"),d=Pe("Trigger");return e.hideTrigger?(H(),Je(c,Ki(zt({key:1},{...e.$attrs,...e.rangePanelProps})),null,16)):(H(),Je(d,zt({key:0,trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,"popup-offset":4},e.triggerProps,{"unmount-on-close":e.unmountOnClose,position:e.position,disabled:e.triggerDisabled||e.readonly,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,onPopupVisibleChange:e.onPanelVisibleChange}),{content:de(()=>[O(c,Ki(Sa(e.rangePanelProps)),null,16)]),default:de(()=>[dt(e.$slots,"default",{},()=>[O(l,zt({ref:"refInput"},e.$attrs,{focusedIndex:e.focusedIndex,"onUpdate:focusedIndex":t[0]||(t[0]=h=>e.focusedIndex=h),size:e.size,focused:e.panelVisible,visible:e.panelVisible,error:e.error,disabled:e.disabled,readonly:e.readonly||e.disabledInput,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,"input-value":e.inputValue,value:e.panelValue,format:e.computedFormat,onClear:e.onInputClear,onChange:e.onInputChange,onPressEnter:e.onInputPressEnter}),wo({"suffix-icon":de(()=>[dt(e.$slots,"suffix-icon",{},()=>[O(s)])]),separator:de(()=>[dt(e.$slots,"separator",{},()=>[We(Ve(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[dt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["focusedIndex","size","focused","visible","error","disabled","readonly","allow-clear","placeholder","input-value","value","format","onClear","onChange","onPressEnter"])])]),_:3},16,["unmount-on-close","position","disabled","popup-visible","popup-container","onPopupVisibleChange"]))}var Cw=je(GOe,[["render",KOe]]);const qOe=Object.assign(kR,{WeekPicker:_w,MonthPicker:Sw,YearPicker:kw,QuarterPicker:xw,RangePicker:Cw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+kR.name,kR),e.component(n+kw.name,kw),e.component(n+xw.name,xw),e.component(n+Sw.name,Sw),e.component(n+_w.name,_w),e.component(n+Cw.name,Cw)}}),z8=["xxl","xl","lg","md","sm","xs"],px={xs:"(max-width: 575px)",sm:"(min-width: 576px)",md:"(min-width: 768px)",lg:"(min-width: 992px)",xl:"(min-width: 1200px)",xxl:"(min-width: 1600px)"};let dv=[],YOe=-1,vx={};const U8={matchHandlers:{},dispatch(e,t){return vx=e,dv.length<1?!1:(dv.forEach(n=>{n.func(vx,t)}),!0)},subscribe(e){dv.length===0&&this.register();const t=(++YOe).toString();return dv.push({token:t,func:e}),e(vx,null),t},unsubscribe(e){dv=dv.filter(t=>t.token!==e),dv.length===0&&this.unregister()},unregister(){Object.keys(px).forEach(e=>{const t=px[e];if(!t)return;const n=this.matchHandlers[t];n&&n.mql&&n.listener&&(n.mql.removeEventListener?n.mql.removeEventListener("change",n.listener):n.mql.removeListener(n.listener))})},register(){Object.keys(px).forEach(e=>{const t=px[e];if(!t)return;const n=({matches:o})=>{this.dispatch({...vx,[e]:o},e)},r=window.matchMedia(t);r.addEventListener?r.addEventListener("change",n):r.addListener(n),this.matchHandlers[t]={mql:r,listener:n},n(r)})}};function hre(e){return mr(e)}function Ih(e,t,n=!1){const r=fe({xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0}),o=F(()=>{let s=t;if(hre(e.value))for(let l=0;l{a=U8.subscribe(s=>{hre(e.value)&&(r.value=s)})}),vi(()=>{a&&U8.unsubscribe(a)}),o}var xR=ke({name:"Descriptions",props:{data:{type:Array,default:()=>[]},column:{type:[Number,Object],default:3},title:String,layout:{type:String,default:"horizontal"},align:{type:[String,Object],default:"left"},size:{type:String},bordered:{type:Boolean,default:!1},labelStyle:{type:Object},valueStyle:{type:Object},tableLayout:{type:String,default:"auto"}},setup(e,{slots:t}){const{column:n,size:r}=nn(e),o=Le("descriptions"),{mergedSize:a}=wa(r),s=Ih(n,3,!0),l=F(()=>{var T;return(T=mr(e.align)?e.align.label:e.align)!=null?T:"left"}),c=F(()=>{var T;return(T=mr(e.align)?e.align.value:e.align)!=null?T:"left"}),d=F(()=>({textAlign:l.value,...e.labelStyle})),h=F(()=>({textAlign:c.value,...e.valueStyle})),p=T=>{const D=[];let P=[],M=0;const $=()=>{if(P.length){const I=s.value-M;P[P.length-1].span+=I,D.push(P)}};return T.forEach(I=>{var N,j;const U=Math.min((j=Ui(I)?(N=I.props)==null?void 0:N.span:I.span)!=null?j:1,s.value);M+U>s.value&&($(),P=[],M=0),P.push({data:I,span:U}),M+=U}),$(),D},m=F(()=>{var T;return p((T=e.data)!=null?T:[])}),g=(T,D)=>{var P,M,$,I,N;return Ui(T)?w5(T,T.children)&&((M=(P=T.children).label)==null?void 0:M.call(P))||(($=T.props)==null?void 0:$.label):(N=(I=t.label)==null?void 0:I.call(t,{label:T.label,index:D,data:T}))!=null?N:xn(T.label)?T.label():T.label},y=(T,D)=>{var P,M;return Ui(T)?T:(M=(P=t.value)==null?void 0:P.call(t,{value:T.value,index:D,data:T}))!=null?M:xn(T.value)?T.value():T.value},S=T=>O(Ft,null,[O("tr",{class:`${o}-row`},[T.map((D,P)=>O("td",{key:`label-${P}`,class:[`${o}-item-label`,`${o}-item-label-block`],style:d.value,colspan:D.span},[g(D.data,P)]))]),O("tr",{class:`${o}-row`},[T.map((D,P)=>O("td",{key:`value-${P}`,class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:D.span},[y(D.data,P)]))])]),k=(T,D)=>O("tr",{class:`${o}-row`,key:`tr-${D}`},[T.map(P=>O(Ft,null,[O("td",{class:[`${o}-item-label`,`${o}-item-label-block`],style:d.value},[g(P.data,D)]),O("td",{class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:P.span*2-1},[y(P.data,D)])]))]),C=(T,D)=>O("tr",{class:`${o}-row`,key:`inline-${D}`},[T.map((P,M)=>O("td",{key:`item-${M}`,class:`${o}-item`,colspan:P.span},[O("div",{class:[`${o}-item-label`,`${o}-item-label-inline`],style:d.value},[g(P.data,M)]),O("div",{class:[`${o}-item-value`,`${o}-item-value-inline`],style:h.value},[y(P.data,M)])]))]),x=(T,D)=>["inline-horizontal","inline-vertical"].includes(e.layout)?C(T,D):e.layout==="vertical"?S(T):k(T,D),E=F(()=>[o,`${o}-layout-${e.layout}`,`${o}-size-${a.value}`,{[`${o}-border`]:e.bordered},{[`${o}-table-layout-fixed`]:e.tableLayout==="fixed"}]),_=()=>{var T,D;const P=(D=(T=t.title)==null?void 0:T.call(t))!=null?D:e.title;return P?O("div",{class:`${o}-title`},[P]):null};return()=>{const T=t.default?p(yf(t.default())):m.value;return O("div",{class:E.value},[_(),O("div",{class:`${o}-body`},[O("table",{class:`${o}-table`},[O("tbody",null,[T.map((D,P)=>x(D,P))])])])])}}});const XOe=ke({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(){return{prefixCls:Le("descriptions")}}});function ZOe(e,t,n,r,o,a){return dt(e.$slots,"default")}var ww=je(XOe,[["render",ZOe]]);const JOe=Object.assign(xR,{DescriptionsItem:ww,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+xR.name,xR),e.component(n+ww.name,ww)}});var CR=ke({name:"Divider",props:{direction:{type:String,default:"horizontal"},orientation:{type:String,default:"center"},type:{type:String},size:{type:Number},margin:{type:[Number,String]}},setup(e,{slots:t}){const n=Le("divider"),r=F(()=>e.direction==="horizontal"),o=F(()=>{const a={};if(e.size&&(a[r.value?"border-bottom-width":"border-left-width"]=Ze(e.size)?`${e.size}px`:e.size),e.type&&(a[r.value?"border-bottom-style":"border-left-style"]=e.type),!wn(e.margin)){const s=Ze(e.margin)?`${e.margin}px`:e.margin;a.margin=r.value?`${s} 0`:`0 ${s}`}return a});return()=>{var a;const s=(a=t.default)==null?void 0:a.call(t),l=[n,`${n}-${e.direction}`,{[`${n}-with-text`]:s}];return O("div",{role:"separator",class:l,style:o.value},[s&&e.direction==="horizontal"&&O("span",{class:[`${n}-text`,`${n}-text-${e.orientation}`]},[s])])}}});const QOe=Object.assign(CR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+CR.name,CR)}}),i0e=e=>{const t=fe(!1),n={overflow:"",width:"",boxSizing:""};return{setOverflowHidden:()=>{if(e.value){const a=e.value;if(!t.value&&a.style.overflow!=="hidden"){const s=u7e(a);(s>0||l7e(a))&&(n.overflow=a.style.overflow,n.width=a.style.width,n.boxSizing=a.style.boxSizing,a.style.overflow="hidden",a.style.width=`${a.offsetWidth-s}px`,a.style.boxSizing="border-box",t.value=!0)}}},resetOverflow:()=>{if(e.value&&t.value){const a=e.value;a.style.overflow=n.overflow,a.style.width=n.width,a.style.boxSizing=n.boxSizing,t.value=!1}}}},e$e=["top","right","bottom","left"],t$e=ke({name:"Drawer",components:{ClientOnly:iH,ArcoButton:Xo,IconHover:To,IconClose:ds},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>e$e.includes(e)},title:String,mask:{type:Boolean,default:!0},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},unmountOnClose:Boolean,width:{type:[Number,String],default:250},height:{type:[Number,String],default:250},popupContainer:{type:[String,Object],default:"body"},drawerStyle:{type:Object},bodyClass:{type:[String,Array]},bodyStyle:{type:[String,Object,Array]},onBeforeOk:{type:Function},onBeforeCancel:{type:Function},escToClose:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},header:{type:Boolean,default:!0},footer:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,ok:e=>!0,cancel:e=>!0,open:()=>!0,close:()=>!0,beforeOpen:()=>!0,beforeClose:()=>!0},setup(e,{emit:t}){const{popupContainer:n}=nn(e),r=Le("drawer"),{t:o}=$o(),a=fe(e.defaultVisible),s=F(()=>{var U;return(U=e.visible)!=null?U:a.value}),l=fe(!1),c=F(()=>e.okLoading||l.value),{teleportContainer:d,containerRef:h}=oH({popupContainer:n,visible:s}),p=fe(s.value);let m=!1;const g=U=>{e.escToClose&&U.key===zo.ESC&&C()&&D(U)},y=()=>{e.escToClose&&!m&&(m=!0,Di(document.documentElement,"keydown",g))},S=()=>{m&&(m=!1,to(document.documentElement,"keydown",g))},{zIndex:k,isLastDialog:C}=r3("dialog",{visible:s}),x=F(()=>h?.value===document.body);let E=0;const _=()=>{E++,l.value&&(l.value=!1),a.value=!1,t("update:visible",!1)},T=async U=>{const z=E,G=await new Promise(async X=>{var ie;if(xn(e.onBeforeOk)){let ee=e.onBeforeOk((W=!0)=>X(W));if((Cm(ee)||!wl(ee))&&(l.value=!0),Cm(ee))try{ee=(ie=await ee)!=null?ie:!0}catch(W){throw ee=!1,W}wl(ee)&&X(ee)}else X(!0)});z===E&&(G?(t("ok",U),_()):l.value&&(l.value=!1))},D=U=>{var z;let G=!0;xn(e.onBeforeCancel)&&(G=(z=e.onBeforeCancel())!=null?z:!1),G&&(t("cancel",U),_())},P=U=>{e.maskClosable&&D(U)},M=()=>{s.value&&t("open")},$=()=>{s.value||(p.value=!1,N(),t("close"))},{setOverflowHidden:I,resetOverflow:N}=i0e(h);vn(()=>{s.value&&(p.value=!0,I(),y())}),Oo(()=>{N(),S()}),Pt(s,U=>{a.value!==U&&(a.value=U),U?(t("beforeOpen"),p.value=!0,I(),y()):(t("beforeClose"),S())});const j=F(()=>{var U;const z={[e.placement]:0,...(U=e.drawerStyle)!=null?U:{}};return["right","left"].includes(e.placement)?z.width=Ze(e.width)?`${e.width}px`:e.width:z.height=Ze(e.height)?`${e.height}px`:e.height,z});return{prefixCls:r,style:j,t:o,mounted:p,computedVisible:s,mergedOkLoading:c,zIndex:k,handleOk:T,handleCancel:D,handleOpen:M,handleClose:$,handleMask:P,isFixed:x,teleportContainer:d}}});function n$e(e,t,n,r,o,a){const s=Pe("icon-close"),l=Pe("icon-hover"),c=Pe("arco-button"),d=Pe("client-only");return H(),Je(d,null,{default:de(()=>[(H(),Je(Um,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?wi((H(),J("div",zt({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[O(xs,{name:"fade-drawer",appear:""},{default:de(()=>[e.mask?wi((H(),J("div",{key:0,class:le(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...h)=>e.handleMask&&e.handleMask(...h))},null,2)),[[Qo,e.computedVisible]]):Me("v-if",!0)]),_:1}),O(xs,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[wi(L("div",{class:le(e.prefixCls),style:Ge(e.style)},[e.header?(H(),J("div",{key:0,class:le(`${e.prefixCls}-header`)},[dt(e.$slots,"header",{},()=>[e.$slots.title||e.title?(H(),J("div",{key:0,class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2)):Me("v-if",!0),e.closable?(H(),J("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:le(`${e.prefixCls}-close-btn`),onClick:t[1]||(t[1]=(...h)=>e.handleCancel&&e.handleCancel(...h))},[O(l,null,{default:de(()=>[O(s)]),_:1})],2)):Me("v-if",!0)])],2)):Me("v-if",!0),L("div",{class:le([`${e.prefixCls}-body`,e.bodyClass]),style:Ge(e.bodyStyle)},[dt(e.$slots,"default")],6),e.footer?(H(),J("div",{key:1,class:le(`${e.prefixCls}-footer`)},[dt(e.$slots,"footer",{},()=>[e.hideCancel?Me("v-if",!0):(H(),Je(c,zt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(Ve(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),O(c,zt({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:de(()=>[We(Ve(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):Me("v-if",!0)],6),[[Qo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[Qo,e.computedVisible||e.mounted]]):Me("v-if",!0)],8,["to","disabled"]))]),_:3})}var Ew=je(t$e,[["render",n$e]]);const pre=(e,t)=>{let n=E5("drawer");const r=()=>{d.component&&(d.component.props.visible=!1),xn(e.onOk)&&e.onOk()},o=()=>{d.component&&(d.component.props.visible=!1),xn(e.onCancel)&&e.onCancel()},a=async()=>{await _n(),n&&(Kc(null,n),document.body.removeChild(n)),n=null,xn(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,m])=>{d.component.props[p]=m})},d=O(Ew,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...xa(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),header:typeof e.header=="boolean"?e.header:void 0,footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Hl(e.content),header:typeof e.header!="boolean"?Hl(e.header):void 0,title:Hl(e.title),footer:typeof e.footer!="boolean"?Hl(e.footer):void 0});return(t??rV._context)&&(d.appContext=t??rV._context),Kc(d,n),document.body.appendChild(n),{close:s,update:l}},rV=Object.assign(Ew,{open:pre,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+Ew.name,Ew);const r={open:(o,a=e._context)=>pre(o,a)};e.config.globalProperties.$drawer=r},_context:null});function o0e(e){return e===Object(e)&&Object.keys(e).length!==0}function r$e(e,t){t===void 0&&(t="auto");var n="scrollBehavior"in document.body.style;e.forEach(function(r){var o=r.el,a=r.top,s=r.left;o.scroll&&n?o.scroll({top:a,left:s,behavior:t}):(o.scrollTop=a,o.scrollLeft=s)})}function i$e(e){return e===!1?{block:"end",inline:"nearest"}:o0e(e)?e:{block:"start",inline:"nearest"}}function s0e(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(o0e(t)&&typeof t.behavior=="function")return t.behavior(n?Kj(e,t):[]);if(n){var r=i$e(t);return r$e(Kj(e,r),r.behavior)}}const vre=["success","warning","error","validating"],o$e=e=>{let t="";for(const n of Object.keys(e)){const r=e[n];r&&(!t||vre.indexOf(r)>vre.indexOf(t))&&(t=e[n])}return t},s$e=e=>{const t=[];for(const n of Object.keys(e)){const r=e[n];r&&t.push(r)}return t},a0e=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`},a$e=ke({name:"Form",props:{model:{type:Object,required:!0},layout:{type:String,default:"horizontal"},size:{type:String},labelColProps:{type:Object,default:()=>({span:5,offset:0})},wrapperColProps:{type:Object,default:()=>({span:19,offset:0})},labelColStyle:Object,wrapperColStyle:Object,labelAlign:{type:String,default:"right"},disabled:{type:Boolean,default:void 0},rules:{type:Object},autoLabelWidth:{type:Boolean,default:!1},id:{type:String},scrollToFirstError:{type:Boolean,default:!1}},emits:{submit:(e,t)=>!0,submitSuccess:(e,t)=>!0,submitFailed:(e,t)=>!0},setup(e,{emit:t}){const n=Le("form"),r=fe(),{id:o,model:a,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,size:g,rules:y}=nn(e),{mergedSize:S}=wa(g),k=F(()=>e.layout==="horizontal"&&e.autoLabelWidth),C=[],x=[],E=Yt({}),_=F(()=>Math.max(...Object.values(E))),T=ee=>{ee&&ee.field&&C.push(ee)},D=ee=>{ee&&ee.field&&C.splice(C.indexOf(ee),1)},P=ee=>{C.forEach(W=>{ee[W.field]&&W.setField(ee[W.field])})},M=(ee,W)=>{W&&E[W]!==ee&&(E[W]=ee)},$=ee=>{ee&&delete E[ee]},I=ee=>{const W=ee?[].concat(ee):[];C.forEach(q=>{(W.length===0||W.includes(q.field))&&q.resetField()})},N=ee=>{const W=ee?[].concat(ee):[];C.forEach(q=>{(W.length===0||W.includes(q.field))&&q.clearValidate()})},j=(ee,W)=>{const Q=(r.value||document.body).querySelector(`#${a0e(e.id,ee)}`);Q&&s0e(Q,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",...W})},U=ee=>{const W=wl(e.scrollToFirstError)?void 0:e.scrollToFirstError;j(ee,W)},z=ee=>{const W=[];return C.forEach(q=>{W.push(q.validate())}),Promise.all(W).then(q=>{const Q={};let ne=!1;return q.forEach(ae=>{ae&&(ne=!0,Q[ae.field]=ae)}),ne&&e.scrollToFirstError&&U(Object.keys(Q)[0]),xn(ee)&&ee(ne?Q:void 0),ne?Q:void 0})},G=(ee,W)=>{const q=[];for(const Q of C)(tr(ee)&&ee.includes(Q.field)||ee===Q.field)&&q.push(Q.validate());return Promise.all(q).then(Q=>{const ne={};let ae=!1;return Q.forEach(re=>{re&&(ae=!0,ne[re.field]=re)}),ae&&e.scrollToFirstError&&U(Object.keys(ne)[0]),xn(W)&&W(ae?ne:void 0),ae?ne:void 0})},X=ee=>{const W=[];C.forEach(q=>{W.push(q.validate())}),Promise.all(W).then(q=>{const Q={};let ne=!1;q.forEach(ae=>{ae&&(ne=!0,Q[ae.field]=ae)}),ne?(e.scrollToFirstError&&U(Object.keys(Q)[0]),t("submitFailed",{values:a.value,errors:Q},ee)):t("submitSuccess",a.value,ee),t("submit",{values:a.value,errors:ne?Q:void 0},ee)})};return ti(rH,Yt({id:o,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:m,model:a,size:S,rules:y,fields:C,touchedFields:x,addField:T,removeField:D,validateField:G,setLabelWidth:M,removeLabelWidth:$,maxLabelWidth:_,autoLabelWidth:k})),{cls:F(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${S.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:r,handleSubmit:X,innerValidate:z,innerValidateField:G,innerResetFields:I,innerClearValidate:N,innerSetFields:P,innerScrollToField:j}},methods:{validate(e){return this.innerValidate(e)},validateField(e,t){return this.innerValidateField(e,t)},resetFields(e){return this.innerResetFields(e)},clearValidate(e){return this.innerClearValidate(e)},setFields(e){return this.innerSetFields(e)},scrollToField(e){return this.innerScrollToField(e)}}}),l$e=["id"];function u$e(e,t,n,r,o,a){return H(),J("form",{id:e.id,ref:"formRef",class:le(e.cls),onSubmit:t[0]||(t[0]=us((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[dt(e.$slots,"default")],42,l$e)}var wR=je(a$e,[["render",u$e]]),s3=Object.prototype.toString;function F5(e){return s3.call(e)==="[object Array]"}function Lh(e){return s3.call(e)==="[object Object]"}function iV(e){return s3.call(e)==="[object String]"}function c$e(e){return s3.call(e)==="[object Number]"&&e===e}function d$e(e){return s3.call(e)==="[object Boolean]"}function oV(e){return s3.call(e)==="[object Function]"}function f$e(e){return Lh(e)&&Object.keys(e).length===0}function Nv(e){return e==null||e===""}function l0e(e){return F5(e)&&!e.length}var CH=function(e,t){if(typeof e!="object"||typeof t!="object")return e===t;if(oV(e)&&oV(t))return e===t||e.toString()===t.toString();if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e){var r=CH(e[n],t[n]);if(!r)return!1}return!0},wH=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach(function(r){var o=n[r],a=t?.[r];n[r]=Lh(o)?Object.assign(Object.assign({},o),a):a||o}),n},h$e=function(e,t){for(var n=t.split("."),r=e,o=0;o=o,this.getValidateMsg("string.minLength",{minLength:o})):this},t.prototype.length=function(o){return this.obj?this.validate(this.obj.length===o,this.getValidateMsg("string.length",{length:o})):this},t.prototype.match=function(o){var a=o instanceof RegExp;return a&&(o.lastIndex=0),this.validate(this.obj===void 0||a&&o.test(this.obj),this.getValidateMsg("string.match",{pattern:o}))},n.uppercase.get=function(){return this.obj?this.validate(this.obj.toUpperCase()===this.obj,this.getValidateMsg("string.uppercase")):this},n.lowercase.get=function(){return this.obj?this.validate(this.obj.toLowerCase()===this.obj,this.getValidateMsg("string.lowercase")):this},Object.defineProperties(t.prototype,n),t})(Md),m$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"number"})),this.validate(o&&o.strict?c$e(this.obj):!0,this.getValidateMsg("type.number"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={positive:{configurable:!0},negative:{configurable:!0}};return t.prototype.min=function(o){return Nv(this.obj)?this:this.validate(this.obj>=o,this.getValidateMsg("number.min",{min:o}))},t.prototype.max=function(o){return Nv(this.obj)?this:this.validate(this.obj<=o,this.getValidateMsg("number.max",{max:o}))},t.prototype.equal=function(o){return Nv(this.obj)?this:this.validate(this.obj===o,this.getValidateMsg("number.equal",{equal:o}))},t.prototype.range=function(o,a){return Nv(this.obj)?this:this.validate(this.obj>=o&&this.obj<=a,this.getValidateMsg("number.range",{min:o,max:a}))},n.positive.get=function(){return Nv(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return Nv(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t})(Md),g$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"array"})),this.validate(o&&o.strict?F5(this.obj):!0,this.getValidateMsg("type.array",{value:this.obj,type:this.type}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.length=function(o){return this.obj?this.validate(this.obj.length===o,this.getValidateMsg("array.length",{value:this.obj,length:o})):this},t.prototype.minLength=function(o){return this.obj?this.validate(this.obj.length>=o,this.getValidateMsg("array.minLength",{value:this.obj,minLength:o})):this},t.prototype.maxLength=function(o){return this.obj?this.validate(this.obj.length<=o,this.getValidateMsg("array.maxLength",{value:this.obj,maxLength:o})):this},t.prototype.includes=function(o){var a=this;return this.obj?this.validate(o.every(function(s){return a.obj.indexOf(s)!==-1}),this.getValidateMsg("array.includes",{value:this.obj,includes:o})):this},t.prototype.deepEqual=function(o){return this.obj?this.validate(CH(this.obj,o),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:o})):this},n.empty.get=function(){return this.validate(l0e(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t})(Md),y$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"object"})),this.validate(o&&o.strict?Lh(this.obj):!0,this.getValidateMsg("type.object"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={empty:{configurable:!0}};return t.prototype.deepEqual=function(o){return this.obj?this.validate(CH(this.obj,o),this.getValidateMsg("object.deepEqual",{deepEqual:o})):this},t.prototype.hasKeys=function(o){var a=this;return this.obj?this.validate(o.every(function(s){return a.obj[s]}),this.getValidateMsg("object.hasKeys",{keys:o})):this},n.empty.get=function(){return this.validate(f$e(this.obj),this.getValidateMsg("object.empty"))},Object.defineProperties(t.prototype,n),t})(Md),b$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"boolean"})),this.validate(o&&o.strict?d$e(this.obj):!0,this.getValidateMsg("type.boolean"))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={true:{configurable:!0},false:{configurable:!0}};return n.true.get=function(){return this.validate(this.obj===!0,this.getValidateMsg("boolean.true"))},n.false.get=function(){return this.validate(this.obj===!1,this.getValidateMsg("boolean.false"))},Object.defineProperties(t.prototype,n),t})(Md),_$e=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,S$e=new RegExp("^(?!mailto:)(?:(?:http|https|ftp)://)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?::\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$","i"),k$e=/^(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})(\.(2(5[0-5]{1}|[0-4]\d{1})|[0-1]?\d{1,2})){3}$/,x$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"type"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={email:{configurable:!0},url:{configurable:!0},ip:{configurable:!0}};return n.email.get=function(){return this.type="email",this.validate(this.obj===void 0||_$e.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||S$e.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||k$e.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t})(Md),C$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"custom"}))}e&&(t.__proto__=e),t.prototype=Object.create(e&&e.prototype),t.prototype.constructor=t;var n={validate:{configurable:!0}};return n.validate.get=function(){var r=this;return function(o,a){var s;if(o)return s=o(r.obj,r.addError.bind(r)),s&&s.then?(a&&s.then(function(){a&&a(r.error)},function(l){console.error(l)}),[s,r]):(a&&a(r.error),r.error)}},Object.defineProperties(t.prototype,n),t})(Md),H8=function(e,t){return new u0e(e,Object.assign({field:"value"},t))};H8.globalConfig={};H8.setGlobalConfig=function(e){H8.globalConfig=e||{}};var u0e=function(t,n){var r=H8.globalConfig,o=Object.assign(Object.assign(Object.assign({},r),n),{validateMessages:wH(r.validateMessages,n.validateMessages)});this.string=new v$e(t,o),this.number=new m$e(t,o),this.array=new g$e(t,o),this.object=new y$e(t,o),this.boolean=new b$e(t,o),this.type=new x$e(t,o),this.custom=new C$e(t,o)},EH=function(t,n){n===void 0&&(n={}),this.schema=t,this.options=n};EH.prototype.messages=function(t){this.options=Object.assign(Object.assign({},this.options),{validateMessages:wH(this.options.validateMessages,t)})};EH.prototype.validate=function(t,n){var r=this;if(!Lh(t))return;var o=[],a=null;function s(l,c){a||(a={}),(!a[l]||c.requiredError)&&(a[l]=c)}this.schema&&Object.keys(this.schema).forEach(function(l){if(F5(r.schema[l]))for(var c=function(p){var m=r.schema[l][p],g=m.type,y=m.message;if(!g&&!m.validator)throw"You must specify a type to field "+l+"!";var S=Object.assign(Object.assign({},r.options),{message:y,field:l});"ignoreEmptyString"in m&&(S.ignoreEmptyString=m.ignoreEmptyString),"strict"in m&&(S.strict=m.strict);var k=new u0e(t[l],S),C=k.type[g]||null;if(!C)if(m.validator){C=k.custom.validate(m.validator),Object.prototype.toString.call(C)==="[object Array]"&&C[0].then?o.push({function:C[0],_this:C[1],key:l}):C&&s(l,C);return}else C=k[g];if(Object.keys(m).forEach(function(x){m.required&&(C=C.isRequired),x!=="message"&&C[x]&&m[x]&&typeof C[x]=="object"&&(C=C[x]),C[x]&&m[x]!==void 0&&typeof C[x]=="function"&&(C=C[x](m[x]))}),C.collect(function(x){x&&s(l,x)}),a)return"break"},d=0;d0?Promise.all(o.map(function(l){return l.function})).then(function(){o.forEach(function(l){l._this.error&&s(l.key,l._this.error)}),n&&n(a)}):n&&n(a)};const c0e=Symbol("RowContextInjectionKey"),d0e=Symbol("GridContextInjectionKey"),f0e=Symbol("GridDataCollectorInjectionKey"),w$e=ke({name:"Row",props:{gutter:{type:[Number,Object,Array],default:0},justify:{type:String,default:"start"},align:{type:String,default:"start"},div:{type:Boolean},wrap:{type:Boolean,default:!0}},setup(e){const{gutter:t,align:n,justify:r,div:o,wrap:a}=nn(e),s=Le("row"),l=F(()=>({[`${s}`]:!o.value,[`${s}-nowrap`]:!a.value,[`${s}-align-${n.value}`]:n.value,[`${s}-justify-${r.value}`]:r.value})),c=F(()=>Array.isArray(t.value)?t.value[0]:t.value),d=F(()=>Array.isArray(t.value)?t.value[1]:0),h=Ih(c,0),p=Ih(d,0),m=F(()=>{const y={};if((h.value||p.value)&&!o.value){const S=-h.value/2,k=-p.value/2;S&&(y.marginLeft=`${S}px`,y.marginRight=`${S}px`),k&&(y.marginTop=`${k}px`,y.marginBottom=`${k}px`)}return y}),g=F(()=>[h.value,p.value]);return ti(c0e,Yt({gutter:g,div:o})),{classNames:l,styles:m}}});function E$e(e,t,n,r,o,a){return H(),J("div",{class:le(e.classNames),style:Ge(e.styles)},[dt(e.$slots,"default")],6)}var eb=je(w$e,[["render",E$e]]);function T$e(e){return F(()=>{const{val:n,key:r,xs:o,sm:a,md:s,lg:l,xl:c,xxl:d}=e.value;if(!o&&!a&&!s&&!l&&!c&&!d)return n;const h={};return z8.forEach(p=>{const m=e.value[p];Ze(m)?h[p]=m:mr(m)&&Ze(m[r])&&(h[p]=m[r])}),h})}function A$e(e){if(cs(e)&&(["initial","auto","none"].includes(e)||/^\d+$/.test(e))||Ze(e))return e;if(cs(e)&&/^\d+(px|em|rem|%)$/.test(e))return`0 0 ${e}`}const I$e=ke({name:"Col",props:{span:{type:Number,default:24},offset:{type:Number},order:{type:Number},xs:{type:[Number,Object]},sm:{type:[Number,Object]},md:{type:[Number,Object]},lg:{type:[Number,Object]},xl:{type:[Number,Object]},xxl:{type:[Number,Object]},flex:{type:[Number,String]}},setup(e){const t=Le("col"),n=Pn(c0e,{}),r=F(()=>A$e(e.flex)),o=F(()=>{const{div:p}=n,{span:m,offset:g,order:y,xs:S,sm:k,md:C,lg:x,xl:E,xxl:_}=e,T={[`${t}`]:!p,[`${t}-order-${y}`]:y,[`${t}-${m}`]:!p&&!S&&!k&&!C&&!x&&!E&&!_,[`${t}-offset-${g}`]:g&&g>0},D={xs:S,sm:k,md:C,lg:x,xl:E,xxl:_};return Object.keys(D).forEach(P=>{const M=D[P];M&&Ze(M)?T[`${t}-${P}-${M}`]=!0:M&&mr(M)&&(T[`${t}-${P}-${M.span}`]=M.span,T[`${t}-${P}-offset-${M.offset}`]=M.offset,T[`${t}-${P}-order-${M.order}`]=M.order)}),T}),a=F(()=>r.value?t:o.value),s=F(()=>{const{gutter:p,div:m}=n,g={};if(Array.isArray(p)&&!m){const y=p[0]&&p[0]/2||0,S=p[1]&&p[1]/2||0;y&&(g.paddingLeft=`${y}px`,g.paddingRight=`${y}px`),S&&(g.paddingTop=`${S}px`,g.paddingBottom=`${S}px`)}return g}),l=F(()=>r.value?{flex:r.value}:{}),c=F(()=>kf(e,z8)),d=T$e(F(()=>({val:e.span,key:"span",...c.value}))),h=Ih(d,24,!0);return{visible:F(()=>!!h.value),classNames:a,styles:F(()=>({...s.value,...l.value}))}}});function L$e(e,t,n,r,o,a){return e.visible?(H(),J("div",{key:0,class:le(e.classNames),style:Ge(e.styles)},[dt(e.$slots,"default")],6)):Me("v-if",!0)}var tb=je(I$e,[["render",L$e]]);function D$e(e,t){var n,r;const o=(n=t.span)!=null?n:1,a=(r=t.offset)!=null?r:0,s=Math.min(a,e);return{span:Math.min(s>0?o+a:o,e),offset:s,suffix:"suffix"in t?t.suffix!==!1:!1}}function P$e({cols:e,collapsed:t,collapsedRows:n,itemDataList:r}){let o=!1,a=[];function s(l){return Math.ceil(l/e)>n}if(t){let l=0;for(let c=0;c!c.suffix&&!a.includes(d))}else a=r.map((l,c)=>c);return{overflow:o,displayIndexList:a}}const R$e=ke({name:"Grid",props:{cols:{type:[Number,Object],default:24},rowGap:{type:[Number,Object],default:0},colGap:{type:[Number,Object],default:0},collapsed:{type:Boolean,default:!1},collapsedRows:{type:Number,default:1}},setup(e){const{cols:t,rowGap:n,colGap:r,collapsedRows:o,collapsed:a}=nn(e),s=Ih(t,24),l=Ih(r,0),c=Ih(n,0),d=Le("grid"),h=F(()=>[d]),p=F(()=>[{gap:`${c.value}px ${l.value}px`,"grid-template-columns":`repeat(${s.value}, minmax(0px, 1fr))`}]),m=Yt(new Map),g=F(()=>{const S=[];for(const[k,C]of m.entries())S[k]=C;return S}),y=Yt({overflow:!1,displayIndexList:[],cols:s.value,colGap:l.value});return Os(()=>{y.cols=s.value,y.colGap=l.value}),Os(()=>{const S=P$e({cols:s.value,collapsed:a.value,collapsedRows:o.value,itemDataList:g.value});y.overflow=S.overflow,y.displayIndexList=S.displayIndexList}),ti(d0e,y),ti(f0e,{collectItemData(S,k){m.set(S,k)},removeItemData(S){m.delete(S)}}),{classNames:h,style:p}}});function M$e(e,t,n,r,o,a){return H(),J("div",{class:le(e.classNames),style:Ge(e.style)},[dt(e.$slots,"default")],6)}var ER=je(R$e,[["render",M$e]]);const O$e=ke({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=Le("grid-item"),n=fe(),{computedIndex:r}=uH({itemRef:n,selector:`.${t}`}),o=Pn(d0e,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),a=Pn(f0e),s=F(()=>{var k;return(k=o?.displayIndexList)==null?void 0:k.includes(r.value)}),{span:l,offset:c}=nn(e),d=Ih(l,1),h=Ih(c,0),p=F(()=>D$e(o.cols,{...e,span:d.value,offset:h.value})),m=F(()=>[t]),g=F(()=>{const{offset:k,span:C}=p.value,{colGap:x}=o;return k>0?{"margin-left":`calc((${`(100% - ${x*(C-1)}px) / ${C}`} * ${k}) + ${x*k}px)`}:{}}),y=F(()=>{const{suffix:k,span:C}=p.value,{cols:x}=o;return k?`${x-C+1}`:`span ${C}`}),S=F(()=>{const{span:k}=p.value;return n.value?[{"grid-column":`${y.value} / span ${k}`},g.value,!s.value||k===0?{display:"none"}:{}]:[]});return Os(()=>{r.value!==-1&&a?.collectItemData(r.value,p.value)}),vi(()=>{r.value!==-1&&a?.removeItemData(r.value)}),{classNames:m,style:S,domRef:n,overflow:F(()=>o.overflow)}}});function $$e(e,t,n,r,o,a){return H(),J("div",{ref:"domRef",class:le(e.classNames),style:Ge(e.style)},[dt(e.$slots,"default",{overflow:e.overflow})],6)}var Tw=je(O$e,[["render",$$e]]);const E4=Object.assign(ER,{Row:eb,Col:tb,Item:Tw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+eb.name,eb),e.component(n+tb.name,tb),e.component(n+ER.name,ER),e.component(n+Tw.name,Tw)}}),B$e=ke({name:"Tooltip",components:{Trigger:ha},props:{popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},content:String,position:{type:String,default:"top"},mini:{type:Boolean,default:!1},backgroundColor:{type:String},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0},setup(e,{emit:t}){const n=Le("tooltip"),r=fe(e.defaultPopupVisible),o=F(()=>{var h;return(h=e.popupVisible)!=null?h:r.value}),a=h=>{r.value=h,t("update:popupVisible",h),t("popupVisibleChange",h)},s=F(()=>[`${n}-content`,e.contentClass,{[`${n}-mini`]:e.mini}]),l=F(()=>{if(e.backgroundColor||e.contentStyle)return{backgroundColor:e.backgroundColor,...e.contentStyle}}),c=F(()=>[`${n}-popup-arrow`,e.arrowClass]),d=F(()=>{if(e.backgroundColor||e.arrowStyle)return{backgroundColor:e.backgroundColor,...e.arrowStyle}});return{prefixCls:n,computedPopupVisible:o,contentCls:s,computedContentStyle:l,arrowCls:c,computedArrowStyle:d,handlePopupVisibleChange:a}}});function N$e(e,t,n,r,o,a){const s=Pe("Trigger");return H(),Je(s,{class:le(e.prefixCls),trigger:"hover",position:e.position,"popup-visible":e.computedPopupVisible,"popup-offset":10,"show-arrow":"","content-class":e.contentCls,"content-style":e.computedContentStyle,"arrow-class":e.arrowCls,"arrow-style":e.computedArrowStyle,"popup-container":e.popupContainer,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",role:"tooltip",onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[dt(e.$slots,"content",{},()=>[We(Ve(e.content),1)])]),default:de(()=>[dt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var TR=je(B$e,[["render",N$e]]);const qc=Object.assign(TR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+TR.name,TR)}}),F$e=ke({name:"IconQuestionCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-question-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),j$e=["stroke-width","stroke-linecap","stroke-linejoin"];function V$e(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),L("path",{d:"M24.006 31v4.008m0-6.008L24 28c0-3 3-4 4.78-6.402C30.558 19.195 28.288 15 23.987 15c-4.014 0-5.382 2.548-5.388 4.514v.465"},null,-1)]),14,j$e)}var AR=je(F$e,[["render",V$e]]);const TH=Object.assign(AR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AR.name,AR)}}),z$e=ke({name:"FormItemLabel",components:{ResizeObserver:y0,Tooltip:qc,IconQuestionCircle:TH},props:{required:{type:Boolean,default:!1},showColon:{type:Boolean,default:!1},component:{type:String,default:"label"},asteriskPosition:{type:String,default:"start"},tooltip:{type:String},attrs:Object},setup(){const e=Le("form-item-label"),t=Pn(rH,void 0),n=go(),r=fe(),o=()=>{r.value&&Ze(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)};return vn(()=>{r.value&&Ze(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)}),Oo(()=>{t?.removeLabelWidth(n?.uid)}),{prefixCls:e,labelRef:r,handleResize:o}}});function U$e(e,t,n,r,o,a){const s=Pe("icon-question-circle"),l=Pe("Tooltip"),c=Pe("ResizeObserver");return H(),Je(c,{onResize:e.handleResize},{default:de(()=>[(H(),Je(Wa(e.component),zt({ref:"labelRef",class:e.prefixCls},e.attrs),{default:de(()=>[e.required&&e.asteriskPosition==="start"?(H(),J("strong",{key:0,class:le(`${e.prefixCls}-required-symbol`)},t[0]||(t[0]=[L("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[L("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Me("v-if",!0),dt(e.$slots,"default"),e.tooltip?(H(),Je(l,{key:1,content:e.tooltip},{default:de(()=>[O(s,{class:le(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):Me("v-if",!0),e.required&&e.asteriskPosition==="end"?(H(),J("strong",{key:2,class:le(`${e.prefixCls}-required-symbol`)},t[1]||(t[1]=[L("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[L("path",{d:"M583.338667 17.066667c18.773333 0 34.133333 15.36 34.133333 34.133333v349.013333l313.344-101.888a34.133333 34.133333 0 0 1 43.008 22.016l42.154667 129.706667a34.133333 34.133333 0 0 1-21.845334 43.178667l-315.733333 102.4 208.896 287.744a34.133333 34.133333 0 0 1-7.509333 47.786666l-110.421334 80.213334a34.133333 34.133333 0 0 1-47.786666-7.509334L505.685333 706.218667 288.426667 1005.226667a34.133333 34.133333 0 0 1-47.786667 7.509333l-110.421333-80.213333a34.133333 34.133333 0 0 1-7.509334-47.786667l214.186667-295.253333L29.013333 489.813333a34.133333 34.133333 0 0 1-22.016-43.008l42.154667-129.877333a34.133333 34.133333 0 0 1 43.008-22.016l320.512 104.106667L412.672 51.2c0-18.773333 15.36-34.133333 34.133333-34.133333h136.533334z"})],-1)]),2)):Me("v-if",!0),We(" "+Ve(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var H$e=je(z$e,[["render",U$e]]);const W$e=ke({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:Le("form-item-message")}}});function G$e(e,t,n,r,o,a){return e.error.length>0?(H(!0),J(Ft,{key:0},pn(e.error,s=>(H(),Je(xs,{key:s,name:"form-blink",appear:""},{default:de(()=>[L("div",{role:"alert",class:le([e.prefixCls])},Ve(s),3)]),_:2},1024))),128)):e.help||e.$slots.help?(H(),Je(xs,{key:1,name:"form-blink",appear:""},{default:de(()=>[L("div",{class:le([e.prefixCls,`${e.prefixCls}-help`])},[dt(e.$slots,"help",{},()=>[We(Ve(e.help),1)])],2)]),_:3})):Me("v-if",!0)}var K$e=je(W$e,[["render",G$e]]);const q$e=ke({name:"FormItem",components:{ArcoRow:eb,ArcoCol:tb,FormItemLabel:H$e,FormItemMessage:K$e},props:{field:{type:String,default:""},label:String,tooltip:{type:String},showColon:{type:Boolean,default:!1},noStyle:{type:Boolean,default:!1},disabled:{type:Boolean,default:void 0},help:String,extra:String,required:{type:Boolean,default:!1},asteriskPosition:{type:String,default:"start"},rules:{type:[Object,Array]},validateStatus:{type:String},validateTrigger:{type:[String,Array],default:"change"},labelColProps:Object,wrapperColProps:Object,hideLabel:{type:Boolean,default:!1},hideAsterisk:{type:Boolean,default:!1},labelColStyle:Object,wrapperColStyle:Object,rowProps:Object,rowClass:[String,Array,Object],contentClass:[String,Array,Object],contentFlex:{type:Boolean,default:!0},mergeProps:{type:[Boolean,Function],default:!0},labelColFlex:{type:[Number,String]},feedback:{type:Boolean,default:!1},labelComponent:{type:String,default:"label"},labelAttrs:Object},setup(e){const t=Le("form-item"),{field:n}=nn(e),r=Pn(rH,{}),{autoLabelWidth:o,layout:a}=nn(r),{i18nMessage:s}=$o(),l=F(()=>{var q;const Q={...(q=e.labelColProps)!=null?q:r.labelColProps};return e.labelColFlex?Q.flex=e.labelColFlex:r.autoLabelWidth&&(Q.flex=`${r.maxLabelWidth}px`),Q}),c=F(()=>{var q;const Q={...(q=e.wrapperColProps)!=null?q:r.wrapperColProps};return n.value&&(Q.id=a0e(r.id,n.value)),(e.labelColFlex||r.autoLabelWidth)&&(Q.flex="auto"),Q}),d=F(()=>{var q;return(q=e.labelColStyle)!=null?q:r.labelColStyle}),h=F(()=>{var q;return(q=e.wrapperColStyle)!=null?q:r.wrapperColStyle}),p=um(r.model,e.field),m=Yt({}),g=Yt({}),y=F(()=>o$e(m)),S=F(()=>s$e(g)),k=fe(!1),C=F(()=>um(r.model,e.field)),x=F(()=>{var q;return!!((q=e.disabled)!=null?q:r?.disabled)}),E=F(()=>{var q;return(q=e.validateStatus)!=null?q:y.value}),_=F(()=>E.value==="error"),T=F(()=>{var q,Q,ne;const ae=[].concat((ne=(Q=e.rules)!=null?Q:(q=r?.rules)==null?void 0:q[e.field])!=null?ne:[]),re=ae.some(Ce=>Ce.required);return e.required&&!re?[{required:!0}].concat(ae):ae}),D=F(()=>T.value.some(q=>q.required)),P=e.noStyle?Pn(qj,void 0):void 0,M=(q,{status:Q,message:ne})=>{m[q]=Q,g[q]=ne,e.noStyle&&P?.updateValidateState(q,{status:Q,message:ne})},$=F(()=>e.feedback&&E.value?E.value:void 0),I=()=>{var q;if(k.value)return Promise.resolve();const Q=T.value;if(!n.value||Q.length===0)return y.value&&U(),Promise.resolve();const ne=n.value,ae=C.value;M(ne,{status:"",message:""});const re=new EH({[ne]:Q.map(({...Ce})=>(!Ce.type&&!Ce.validator&&(Ce.type="string"),Ce))},{ignoreEmptyString:!0,validateMessages:(q=s.value.form)==null?void 0:q.validateMessages});return new Promise(Ce=>{re.validate({[ne]:ae},we=>{var ve;const me=!!we?.[ne];M(ne,{status:me?"error":"",message:(ve=we?.[ne].message)!=null?ve:""});const xe=me?{label:e.label,field:n.value,value:we[ne].value,type:we[ne].type,isRequiredError:!!we[ne].requiredError,message:we[ne].message}:void 0;Ce(xe)})})},N=F(()=>[].concat(e.validateTrigger)),j=F(()=>N.value.reduce((q,Q)=>{switch(Q){case"change":return q.onChange=()=>{I()},q;case"input":return q.onInput=()=>{_n(()=>{I()})},q;case"focus":return q.onFocus=()=>{I()},q;case"blur":return q.onBlur=()=>{I()},q;default:return q}},{}));ti(qj,Yt({eventHandlers:j,size:r&&Iu(r,"size"),disabled:x,error:_,feedback:$,updateValidateState:M}));const U=()=>{n.value&&M(n.value,{status:"",message:""})},X=Yt({field:n,disabled:x,error:_,validate:I,clearValidate:U,resetField:()=>{U(),k.value=!0,r?.model&&n.value&&V8(r.model,n.value,p),_n(()=>{k.value=!1})},setField:q=>{var Q,ne;n.value&&(k.value=!0,"value"in q&&r?.model&&n.value&&V8(r.model,n.value,q.value),(q.status||q.message)&&M(n.value,{status:(Q=q.status)!=null?Q:"",message:(ne=q.message)!=null?ne:""}),_n(()=>{k.value=!1}))}});vn(()=>{var q;X.field&&((q=r.addField)==null||q.call(r,X))}),Oo(()=>{var q;X.field&&((q=r.removeField)==null||q.call(r,X))});const ie=F(()=>[t,`${t}-layout-${r.layout}`,{[`${t}-error`]:_.value,[`${t}-status-${E.value}`]:!!E.value},e.rowClass]),ee=F(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:r.labelAlign==="left",[`${t}-label-col-flex`]:r.autoLabelWidth||e.labelColFlex}]),W=F(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!c.value}]);return{prefixCls:t,cls:ie,isRequired:D,isError:_,finalMessage:S,mergedLabelCol:l,mergedWrapperCol:c,labelColCls:ee,autoLabelWidth:o,layout:a,mergedLabelStyle:d,wrapperColCls:W,mergedWrapperStyle:h}}});function Y$e(e,t,n,r,o,a){var s;const l=Pe("FormItemLabel"),c=Pe("ArcoCol"),d=Pe("FormItemMessage"),h=Pe("ArcoRow");return e.noStyle?dt(e.$slots,"default",{key:0}):(H(),Je(h,zt({key:1,class:[e.cls,{[`${e.prefixCls}-has-help`]:!!((s=e.$slots.help)!=null?s:e.help)}],wrap:!(e.labelColFlex||e.autoLabelWidth),div:e.layout!=="horizontal"||e.hideLabel},e.rowProps),{default:de(()=>[e.hideLabel?Me("v-if",!0):(H(),Je(c,zt({key:0,class:e.labelColCls,style:e.mergedLabelStyle},e.mergedLabelCol),{default:de(()=>[O(l,{required:e.hideAsterisk?!1:e.isRequired,"show-colon":e.showColon,"asterisk-position":e.asteriskPosition,component:e.labelComponent,attrs:e.labelAttrs,tooltip:e.tooltip},{default:de(()=>[e.$slots.label||e.label?dt(e.$slots,"label",{key:0},()=>[We(Ve(e.label),1)]):Me("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),O(c,zt({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:de(()=>[L("div",{class:le(`${e.prefixCls}-content-wrapper`)},[L("div",{class:le([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[dt(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(H(),Je(d,{key:0,error:e.finalMessage,help:e.help},wo({_:2},[e.$slots.help?{name:"help",fn:de(()=>[dt(e.$slots,"help")]),key:"0"}:void 0]),1032,["error","help"])):Me("v-if",!0),e.$slots.extra||e.extra?(H(),J("div",{key:1,class:le(`${e.prefixCls}-extra`)},[dt(e.$slots,"extra",{},()=>[We(Ve(e.extra),1)])],2)):Me("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var Aw=je(q$e,[["render",Y$e]]);const X$e=Object.assign(wR,{Item:Aw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+wR.name,wR),e.component(n+Aw.name,Aw)}}),Z$e=ke({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=Le("icon"),n=F(()=>{const o={};return e.size&&(o.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(o.transform=`rotate(${e.rotate}deg)`),o});return{cls:F(()=>[t,{[`${t}-loading`]:e.spin},e.type]),innerStyle:n}}});function J$e(e,t,n,r,o,a){return H(),J("svg",{class:le(e.cls),style:Ge(e.innerStyle),fill:"currentColor"},[dt(e.$slots,"default")],6)}var Iw=je(Z$e,[["render",J$e]]);function Q$e(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}const mre=[],eBe=e=>{const{src:t,extraProps:n={}}=e;if(!z_&&t?.length&&!mre.includes(t)){const r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),mre.push(t),document.body.appendChild(r)}return ke({name:"IconFont",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(r,{slots:o}){return()=>{var a;const s=r.type?O("use",{"xlink:href":`#${r.type}`},null):(a=o.default)==null?void 0:a.call(o);return O(Iw,zt(r,n),Q$e(s)?s:{default:()=>[s]})}}})},tBe=Object.assign(Iw,{addFromIconFontCn:eBe,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+Iw.name,Iw)}}),nBe=ke({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:Le("image-footer")}}}),rBe=["title"],iBe=["title"];function oBe(e,t,n,r,o,a){return H(),J("div",{class:le(e.prefixCls)},[e.title||e.description?(H(),J("div",{key:0,class:le(`${e.prefixCls}-caption`)},[e.title?(H(),J("div",{key:0,class:le(`${e.prefixCls}-caption-title`),title:e.title},Ve(e.title),11,rBe)):Me("v-if",!0),e.description?(H(),J("div",{key:1,class:le(`${e.prefixCls}-caption-description`),title:e.description},Ve(e.description),11,iBe)):Me("v-if",!0)],2)):Me("v-if",!0),e.$slots.extra?(H(),J("div",{key:1,class:le(`${e.prefixCls}-extra`)},[dt(e.$slots,"extra")],2)):Me("v-if",!0)],2)}var sBe=je(nBe,[["render",oBe]]);const aBe=ke({name:"ImagePreviewArrow",components:{IconLeft:Al,IconRight:zi},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:Le("image-preview-arrow")}}});function lBe(e,t,n,r,o,a){const s=Pe("icon-left"),l=Pe("icon-right");return H(),J("div",{class:le(e.prefixCls)},[L("div",{class:le([`${e.prefixCls}-left`,{[`${e.prefixCls}-disabled`]:!e.onPrev}]),onClick:t[0]||(t[0]=c=>{c.preventDefault(),e.onPrev&&e.onPrev()})},[O(s)],2),L("div",{class:le([`${e.prefixCls}-right`,{[`${e.prefixCls}-disabled`]:!e.onNext}]),onClick:t[1]||(t[1]=c=>{c.preventDefault(),e.onNext&&e.onNext()})},[O(l)],2)],2)}var uBe=je(aBe,[["render",lBe]]);function cBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var W8=ke({name:"ImagePreviewAction",components:{Tooltip:qc},inheritAttrs:!1,props:{name:{type:String},disabled:{type:Boolean}},setup(e,{slots:t,attrs:n}){const r=Le("image-preview-toolbar-action");return()=>{var o;const{name:a,disabled:s}=e,l=(o=t.default)==null?void 0:o.call(t);if(!l||!l.length)return null;const c=O("div",zt({class:[`${r}`,{[`${r}-disabled`]:s}],onMousedown:d=>{d.preventDefault()}},n),[O("span",{class:`${r}-content`},[l])]);return a?O(qc,{class:`${r}-tooltip`,content:a},cBe(c)?c:{default:()=>[c]}):c}}}),dBe=ke({name:"ImagePreviewToolbar",components:{RenderFunction:Xh,PreviewAction:W8},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=nn(e),r=Le("image-preview-toolbar"),o=F(()=>{const a=new Set(n.value),s=c=>a.has(c.key);return t.value.filter(s).sort((c,d)=>{const h=n.value.indexOf(c.key),p=n.value.indexOf(d.key);return h>p?1:-1})});return{prefixCls:r,resultActions:o}}});function fBe(e,t,n,r,o,a){const s=Pe("RenderFunction"),l=Pe("PreviewAction");return H(),J("div",{class:le(e.prefixCls)},[(H(!0),J(Ft,null,pn(e.resultActions,c=>(H(),Je(l,{key:c.key,name:c.name,disabled:c.disabled,onClick:c.onClick},{default:de(()=>[O(s,{"render-func":c.content},null,8,["render-func"])]),_:2},1032,["name","disabled","onClick"]))),128)),dt(e.$slots,"default")],2)}var hBe=je(dBe,[["render",fBe]]);function h0e(e){const t=fe("beforeLoad"),n=F(()=>t.value==="beforeLoad"),r=F(()=>t.value==="loading"),o=F(()=>t.value==="error"),a=F(()=>t.value==="loaded");return{status:t,isBeforeLoad:n,isLoading:r,isError:o,isLoaded:a,setLoadStatus:s=>{t.value=s}}}function pBe(e,t,n,r,o){let a=n,s=r;return n&&(e.width>t.width?a=0:(t.left>e.left&&(a-=Math.abs(e.left-t.left)/o),t.rightt.height?s=0:(t.top>e.top&&(s-=Math.abs(e.top-t.top)/o),t.bottom{if(!t.value||!n.value)return;const y=t.value.getBoundingClientRect(),S=n.value.getBoundingClientRect(),[k,C]=pBe(y,S,o.value[0],o.value[1],r.value);(k!==o.value[0]||C!==o.value[1])&&(o.value=[k,C])},h=y=>{y.preventDefault&&y.preventDefault();const S=c[0]+(y.pageX-s)/r.value,k=c[1]+(y.pageY-l)/r.value;o.value=[S,k]},p=y=>{y.preventDefault&&y.preventDefault(),a.value=!1,d(),g()},m=y=>{y.target===y.currentTarget&&(y.preventDefault&&y.preventDefault(),a.value=!0,s=y.pageX,l=y.pageY,c=[...o.value],Di(window,"mousemove",h,!1),Di(window,"mouseup",p,!1))};function g(){to(window,"mousemove",h,!1),to(window,"mouseup",p,!1)}return Os(y=>{n.value&&Di(n.value,"mousedown",m),y(()=>{n.value&&to(n.value,"mousedown",m),g()})}),Pt([r],()=>{_n(()=>d())}),{translate:o,moving:a,resetTranslate(){o.value=[0,0]}}}const mBe=ke({name:"IconZoomOut",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-zoom-out`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gBe=["stroke-width","stroke-linecap","stroke-linejoin"];function yBe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15"},null,-1)]),14,gBe)}var IR=je(mBe,[["render",yBe]]);const p0e=Object.assign(IR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IR.name,IR)}}),bBe=ke({name:"IconZoomIn",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-zoom-in`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Be=["stroke-width","stroke-linecap","stroke-linejoin"];function SBe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32.607 32.607A14.953 14.953 0 0 0 37 22c0-8.284-6.716-15-15-15-8.284 0-15 6.716-15 15 0 8.284 6.716 15 15 15 4.142 0 7.892-1.679 10.607-4.393Zm0 0L41.5 41.5M29 22H15m7 7V15"},null,-1)]),14,_Be)}var LR=je(bBe,[["render",SBe]]);const v0e=Object.assign(LR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LR.name,LR)}}),kBe=ke({name:"IconFullscreen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-fullscreen`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xBe=["stroke-width","stroke-linecap","stroke-linejoin"];function CBe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 17V9a1 1 0 0 0-1-1h-8M6 17V9a1 1 0 0 1 1-1h8m27 23v8a1 1 0 0 1-1 1h-8M6 31v8a1 1 0 0 0 1 1h8"},null,-1)]),14,xBe)}var DR=je(kBe,[["render",CBe]]);const V5=Object.assign(DR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DR.name,DR)}}),wBe=ke({name:"IconRotateLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-rotate-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),EBe=["stroke-width","stroke-linecap","stroke-linejoin"];function TBe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M10 22a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v16a1 1 0 0 1-1 1H11a1 1 0 0 1-1-1V22ZM23 11h11a6 6 0 0 1 6 6v6M22.5 12.893 19.587 11 22.5 9.107v3.786Z"},null,-1)]),14,EBe)}var PR=je(wBe,[["render",TBe]]);const m0e=Object.assign(PR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PR.name,PR)}}),ABe=ke({name:"IconRotateRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-rotate-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IBe=["stroke-width","stroke-linecap","stroke-linejoin"];function LBe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38 22a1 1 0 0 0-1-1H17a1 1 0 0 0-1 1v16a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1V22ZM25 11H14a6 6 0 0 0-6 6v6M25.5 12.893 28.413 11 25.5 9.107v3.786Z"},null,-1)]),14,IBe)}var RR=je(ABe,[["render",LBe]]);const g0e=Object.assign(RR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RR.name,RR)}}),DBe=ke({name:"IconOriginalSize",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-original-size`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PBe=["stroke-width","stroke-linecap","stroke-linejoin"];function RBe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"},null,-1),L("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"},null,-1)]),14,PBe)}var MR=je(DBe,[["render",RBe]]);const y0e=Object.assign(MR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MR.name,MR)}});function MBe(e){const{container:t,hidden:n}=nn(e);let r=!1,o={};const a=c=>c.tagName==="BODY"?window.innerWidth-(document.body.clientWidth||document.documentElement.clientWidth):c.offsetWidth-c.clientWidth,s=()=>{if(t.value&&t.value.style.overflow!=="hidden"){const c=t.value.style;r=!0;const d=a(t.value);d&&(o.width=c.width,t.value.style.width=`calc(${t.value.style.width||"100%"} - ${d}px)`),o.overflow=c.overflow,t.value.style.overflow="hidden"}},l=()=>{if(t.value&&r){const c=o;Object.keys(c).forEach(d=>{t.value.style[d]=c[d]})}r=!1,o={}};return Os(c=>{n.value?s():l(),c(()=>{l()})}),[l,s]}function OBe(e,t){const{popupContainer:n}=nn(t);return F(()=>(cs(n.value)?qhe(n.value):n.value)||e)}const kd=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),b0e=kd[0],_0e=kd[kd.length-1];function $Be(e=1,t="zoomIn"){let n=kd.indexOf(e);return n===-1&&(n=NBe(e)),t==="zoomIn"?n===kd.length-1?e:kd[n+1]:n===0?e:kd[n-1]}function BBe(e,t=1.1,n="zoomIn"){const r=n==="zoomIn"?t:1/t,o=Number.parseFloat((e*r).toFixed(3));return Math.min(_0e,Math.max(b0e,o))}function NBe(e){let t=kd.length-1;for(let n=0;n["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[Object,String]},inGroup:{type:Boolean,default:!1},groupArrowProps:{type:Object,default:()=>({})},escToClose:{type:Boolean,default:!0},wheelZoom:{type:Boolean,default:!0},keyboard:{type:Boolean,default:!0},defaultScale:{type:Number,default:1},zoomRate:{type:Number,default:1.1}},emits:["close","update:visible"],setup(e,{emit:t}){const{t:n}=$o(),{src:r,popupContainer:o,visible:a,defaultVisible:s,maskClosable:l,actionsLayout:c,defaultScale:d,zoomRate:h}=nn(e),p=fe(),m=fe(),g=Le("image-preview"),[y,S]=fa(s.value,Yt({value:a})),k=F(()=>[g,{[`${g}-hide`]:!y.value}]),C=OBe(document.body,Yt({popupContainer:o})),x=F(()=>C.value===document.body),{zIndex:E}=r3("dialog",{visible:y}),_=F(()=>({...x.value?{zIndex:E.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"}})),{isLoading:T,isLoaded:D,setLoadStatus:P}=h0e(),M=fe(0),$=fe(d.value),{translate:I,moving:N,resetTranslate:j}=vBe(Yt({wrapperEl:p,imageEl:m,visible:y,scale:$})),U=fe(!1);let z=null;const G=()=>{!U.value&&(U.value=!0),z&&clearTimeout(z),z=setTimeout(()=>{U.value=!1},1e3)};MBe(Yt({container:C,hidden:y}));function X(){M.value=0,$.value=d.value,j()}const ie=xe=>c.value.includes(xe),ee=xe=>{switch(xe.stopPropagation(),xe.preventDefault(),xe.key){case zo.ESC:e.escToClose&&ae();break;case zo.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case zo.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case zo.ARROW_UP:ie("zoomIn")&&me("zoomIn");break;case zo.ARROW_DOWN:ie("zoomOut")&&me("zoomOut");break;case zo.SPACE:ie("originalSize")&&Ce(1);break}},W=wm(xe=>{if(xe.preventDefault(),xe.stopPropagation(),!e.wheelZoom)return;const Ke=(xe.deltaY||xe.deltaX)>0?"zoomOut":"zoomIn",ze=BBe($.value,h.value,Ke);Ce(ze)});let q=!1;const Q=()=>{_n(()=>{var xe;(xe=p?.value)==null||xe.focus()}),e.keyboard&&!q&&(q=!0,Di(C.value,"keydown",ee))},ne=()=>{q&&(q=!1,to(C.value,"keydown",ee))};Pt([r,y],()=>{y.value?(X(),P("loading"),Q()):ne()});function ae(){y.value&&(t("close"),t("update:visible",!1),S(!1))}function re(xe){var Be;(Be=p?.value)==null||Be.focus(),l.value&&xe.target===xe.currentTarget&&ae()}function Ce(xe){$.value!==xe&&($.value=xe,G())}function we(){const xe=p.value.getBoundingClientRect(),Be=m.value.getBoundingClientRect(),Ke=xe.height/(Be.height/$.value),ze=xe.width/(Be.width/$.value),be=Math.max(Ke,ze);Ce(be)}function ve(xe){const Ke=xe==="clockwise"?(M.value+OR)%360:M.value===0?360-OR:M.value-OR;M.value=Ke}function me(xe){const Be=$Be($.value,xe);Ce(Be)}return Oo(()=>{ne()}),{prefixCls:g,classNames:k,container:C,wrapperStyles:_,scale:$,translate:I,rotate:M,moving:N,mergedVisible:y,isLoading:T,isLoaded:D,scaleValueVisible:U,refWrapper:p,refImage:m,onWheel:W,onMaskClick:re,onCloseClick:ae,onImgLoad(){P("loaded")},onImgError(){P("error")},actions:F(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>da(V5),onClick:()=>we()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>da(g0e),onClick:()=>ve("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>da(m0e),onClick:()=>ve("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>da(v0e),onClick:()=>me("zoomIn"),disabled:$.value===_0e},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>da(p0e),onClick:()=>me("zoomOut"),disabled:$.value===b0e},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>da(y0e),onClick:()=>Ce(1)}])}}});const jBe=["src"];function VBe(e,t,n,r,o,a){const s=Pe("IconLoading"),l=Pe("PreviewToolbar"),c=Pe("IconClose"),d=Pe("PreviewArrow");return H(),Je(Um,{to:e.container,disabled:!e.renderToBody},[L("div",{class:le(e.classNames),style:Ge(e.wrapperStyles)},[O(xs,{name:"image-fade",onBeforeEnter:t[0]||(t[0]=h=>h.parentElement&&(h.parentElement.style.display="block")),onAfterLeave:t[1]||(t[1]=h=>h.parentElement&&(h.parentElement.style.display="")),persisted:""},{default:de(()=>[wi(L("div",{class:le(`${e.prefixCls}-mask`)},null,2),[[Qo,e.mergedVisible]])]),_:1}),e.mergedVisible?(H(),J("div",{key:0,ref:"refWrapper",tabindex:"0",class:le(`${e.prefixCls}-wrapper`),onClick:t[6]||(t[6]=(...h)=>e.onMaskClick&&e.onMaskClick(...h)),onWheel:t[7]||(t[7]=us((...h)=>e.onWheel&&e.onWheel(...h),["prevent","stop"]))},[Me(" img "),L("div",{class:le(`${e.prefixCls}-img-container`),style:Ge({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...h)=>e.onMaskClick&&e.onMaskClick(...h))},[(H(),J("img",{ref:"refImage",key:e.src,src:e.src,class:le([`${e.prefixCls}-img`,{[`${e.prefixCls}-img-moving`]:e.moving}]),style:Ge({transform:`translate(${e.translate[0]}px, ${e.translate[1]}px) rotate(${e.rotate}deg)`}),onLoad:t[2]||(t[2]=(...h)=>e.onImgLoad&&e.onImgLoad(...h)),onError:t[3]||(t[3]=(...h)=>e.onImgError&&e.onImgError(...h))},null,46,jBe))],6),Me(" loading "),e.isLoading?(H(),J("div",{key:0,class:le(`${e.prefixCls}-loading`)},[O(s)],2)):Me("v-if",!0),Me(" scale value "),O(xs,{name:"image-fade"},{default:de(()=>[e.scaleValueVisible?(H(),J("div",{key:0,class:le(`${e.prefixCls}-scale-value`)},Ve((e.scale*100).toFixed(0))+"% ",3)):Me("v-if",!0)]),_:1}),Me(" toolbar "),e.isLoaded&&e.actionsLayout.length?(H(),Je(l,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:de(()=>[dt(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):Me("v-if",!0),Me(" close btn "),e.closable?(H(),J("div",{key:2,class:le(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...h)=>e.onCloseClick&&e.onCloseClick(...h))},[O(c)],2)):Me("v-if",!0),Me(" group arrow "),e.inGroup?(H(),Je(d,Ki(zt({key:3},e.groupArrowProps)),null,16)):Me("v-if",!0)],34)):Me("v-if",!0)],6)],8,["to","disabled"])}var ny=je(FBe,[["render",VBe]]);function gre(e){if(wn(e))return;if(!Ze(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return Ze(t)?`${t}px`:void 0}const S0e=Symbol("PreviewGroupInjectionKey");let zBe=0;const UBe=ke({name:"Image",components:{IconImageClose:P5,IconLoading:Xa,ImageFooter:sBe,ImagePreview:ny},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},src:{type:String},width:{type:[String,Number]},height:{type:[String,Number]},title:{type:String},description:{type:String},fit:{type:String},alt:{type:String},hideFooter:{type:[Boolean,String],default:!1},footerPosition:{type:String,default:"inner"},showLoader:{type:Boolean,default:!1},preview:{type:Boolean,default:!0},previewVisible:{type:Boolean,default:void 0},defaultPreviewVisible:{type:Boolean,default:!1},previewProps:{type:Object},footerClass:{type:[String,Array,Object]}},emits:["preview-visible-change","update:previewVisible"],setup(e,{attrs:t,slots:n,emit:r}){const{t:o}=$o(),{height:a,width:s,hideFooter:l,title:c,description:d,src:h,footerPosition:p,defaultPreviewVisible:m,previewVisible:g,preview:y,previewProps:S}=nn(e),k=Pn(S0e,void 0),C=Le("image"),x=fe(),{isLoaded:E,isError:_,isLoading:T,setLoadStatus:D}=h0e(),P=F(()=>({width:gre(s?.value),height:gre(a?.value)})),M=F(()=>e.fit?{objectFit:e.fit}:{}),$=F(()=>[`${C}`,{[`${C}-loading`]:T.value,[`${C}-loading-error`]:_.value,[`${C}-with-footer-inner`]:E&&N&&p.value==="inner",[`${C}-with-footer-outer`]:E&&N&&p.value==="outer"},t.class]),I=F(()=>[P.value,t.style]),N=F(()=>c?.value||d?.value||n.extra?wl(l.value)?!l.value&&E.value:l.value==="never":!1),j=F(()=>xa(t,["class","style"])),[U,z]=fa(m.value,Yt({value:g})),G=F(()=>!k?.preview&&y.value);Os(()=>{z_||!x.value||(x.value.src=h?.value,D("loading"))});const X=zBe++;Os(Q=>{var ne,ae,re;const Ce=(re=k?.registerImageUrl)==null?void 0:re.call(k,X,((ae=(ne=S?.value)==null?void 0:ne.src)!=null?ae:h?.value)||"",y.value);Q(()=>{Ce?.()})});function ie(){D("loaded")}function ee(){D("error")}function W(){y.value&&(k?.preview?k.preview(X):(r("preview-visible-change",!0),z(!0)))}function q(){r("preview-visible-change",!1),z(!1)}return{t:o,refImg:x,prefixCls:C,wrapperClassNames:$,wrapperStyles:I,showFooter:N,imgProps:j,imgStyle:P,isLoaded:E,isError:_,isLoading:T,mergedPreviewVisible:U,mergePreview:G,onImgLoaded:ie,onImgLoadError:ee,onImgClick:W,onPreviewClose:q,fitStyle:M}}}),HBe=["title","alt"];function WBe(e,t,n,r,o,a){const s=Pe("IconImageClose"),l=Pe("IconLoading"),c=Pe("ImageFooter"),d=Pe("ImagePreview");return H(),J("div",{class:le(e.wrapperClassNames),style:Ge(e.wrapperStyles)},[L("img",zt({ref:"refImg",class:`${e.prefixCls}-img`},e.imgProps,{style:{...e.imgStyle,...e.fitStyle},title:e.title,alt:e.alt,onLoad:t[0]||(t[0]=(...h)=>e.onImgLoaded&&e.onImgLoaded(...h)),onError:t[1]||(t[1]=(...h)=>e.onImgLoadError&&e.onImgLoadError(...h)),onClick:t[2]||(t[2]=(...h)=>e.onImgClick&&e.onImgClick(...h))}),null,16,HBe),e.isLoaded?Me("v-if",!0):(H(),J("div",{key:0,class:le(`${e.prefixCls}-overlay`)},[e.isError?dt(e.$slots,"error",{key:0},()=>[L("div",{class:le(`${e.prefixCls}-error`)},[L("div",{class:le(`${e.prefixCls}-error-icon`)},[dt(e.$slots,"error-icon",{},()=>[O(s)])],2),e.alt||e.description?(H(),J("div",{key:0,class:le(`${e.prefixCls}-error-alt`)},Ve(e.alt||e.description),3)):Me("v-if",!0)],2)]):Me("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?dt(e.$slots,"loader",{key:1},()=>[L("div",{class:le([`${e.prefixCls}-loader`])},[L("div",{class:le(`${e.prefixCls}-loader-spin`)},[O(l),L("div",{class:le(`${e.prefixCls}-loader-spin-text`)},Ve(e.t("image.loading")),3)],2)],2)]):Me("v-if",!0)],2)),e.showFooter?(H(),Je(c,{key:1,class:le(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},wo({_:2},[e.$slots.extra?{name:"extra",fn:de(()=>[dt(e.$slots,"extra")]),key:"0"}:void 0]),1032,["class","prefix-cls","title","description"])):Me("v-if",!0),e.isLoaded&&e.mergePreview?(H(),Je(d,zt({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:de(()=>[dt(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):Me("v-if",!0)],6)}var $R=je(UBe,[["render",WBe]]),GBe=ke({name:"ImagePreviewGroup",components:{ImagePreview:ny},inheritAttrs:!1,props:{renderToBody:{type:Boolean,default:!0},srcList:{type:Array},current:{type:Number},defaultCurrent:{type:Number,default:0},infinite:{type:Boolean,default:!1},visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},maskClosable:{type:Boolean,default:!0},closable:{type:Boolean,default:!0},actionsLayout:{type:Array,default:()=>["fullScreen","rotateRight","rotateLeft","zoomIn","zoomOut","originalSize"]},popupContainer:{type:[String,Object]}},emits:["change","update:current","visible-change","update:visible"],setup(e,{emit:t}){const{srcList:n,visible:r,defaultVisible:o,current:a,defaultCurrent:s,infinite:l}=nn(e),[c,d]=fa(o.value,Yt({value:r})),h=I=>{I!==c.value&&(t("visible-change",I),t("update:visible",I),d(I))},p=F(()=>new Map(tr(n?.value)?n?.value.map((I,N)=>[N,{url:I,canPreview:!0}]):[])),m=fe(new Map(p.value||[])),g=F(()=>Array.from(m.value.keys())),y=F(()=>g.value.length);function S(I,N,j){return p.value.has(I)||m.value.set(I,{url:N,canPreview:j}),function(){p.value.has(I)||m.value.delete(I)}}Pt(p,()=>{m.value=new Map(p.value||[])});const[k,C]=fa(s.value,Yt({value:a})),x=I=>{I!==k.value&&(t("change",I),t("update:current",I),C(I))},E=F(()=>g.value[k.value]),_=I=>{const N=g.value.indexOf(I);N!==k.value&&x(N)},T=F(()=>{var I;return(I=m.value.get(E.value))==null?void 0:I.url});ti(S0e,Yt({registerImageUrl:S,preview:I=>{h(!0),_(I)}}));const D=F(()=>{const I=(j,U)=>{var z;for(let G=j;G<=U;G++){const X=g.value[G];if((z=m.value.get(X))!=null&&z.canPreview)return G}},N=I(k.value+1,y.value-1);return wn(N)&&l.value?I(0,k.value-1):N}),P=F(()=>{const I=(j,U)=>{var z;for(let G=j;G>=U;G--){const X=g.value[G];if((z=m.value.get(X))!=null&&z.canPreview)return G}},N=I(k.value-1,0);return wn(N)&&l.value?I(y.value-1,k.value+1):N}),M=F(()=>wn(P.value)?void 0:()=>{!wn(P.value)&&x(P.value)}),$=F(()=>wn(D.value)?void 0:()=>{!wn(D.value)&&x(D.value)});return{mergedVisible:c,currentUrl:T,prevIndex:P,nextIndex:D,onClose(){h(!1)},groupArrowProps:Yt({onPrev:M,onNext:$})}}});function KBe(e,t,n,r,o,a){const s=Pe("ImagePreview");return H(),J(Ft,null,[dt(e.$slots,"default"),O(s,zt({...e.$attrs,groupArrowProps:e.groupArrowProps},{"in-group":"",src:e.currentUrl,visible:e.mergedVisible,"mask-closable":e.maskClosable,closable:e.closable,"actions-layout":e.actionsLayout,"popup-container":e.popupContainer,"render-to-body":e.renderToBody,onClose:e.onClose}),wo({_:2},[e.$slots.actions?{name:"actions",fn:de(()=>[dt(e.$slots,"actions",{url:e.currentUrl})]),key:"0"}:void 0]),1040,["src","visible","mask-closable","closable","actions-layout","popup-container","render-to-body","onClose"])],64)}var nb=je(GBe,[["render",KBe]]);const qBe=Object.assign($R,{Preview:ny,PreviewGroup:nb,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+$R.name,$R),e.component(n+ny.name,ny),e.component(n+nb.name,nb),e.component(n+W8.name,W8)}}),k0e=Symbol("LayoutSiderInjectionKey"),x0e=Symbol("SiderInjectionKey");var YBe=ke({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=fe([]),n=Le("layout"),r=F(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return ti(k0e,{onSiderMount:o=>t.value.push(o),onSiderUnMount:o=>{t.value=t.value.filter(a=>a!==o)}}),{classNames:r}}});function XBe(e,t,n,r,o,a){return H(),J("section",{class:le(e.classNames)},[dt(e.$slots,"default")],2)}var BR=je(YBe,[["render",XBe]]);const ZBe=ke({name:"LayoutHeader",setup(){return{classNames:[Le("layout-header")]}}});function JBe(e,t,n,r,o,a){return H(),J("header",{class:le(e.classNames)},[dt(e.$slots,"default")],2)}var Lw=je(ZBe,[["render",JBe]]);const QBe=ke({name:"LayoutContent",setup(){return{classNames:[Le("layout-content")]}}});function eNe(e,t,n,r,o,a){return H(),J("main",{class:le(e.classNames)},[dt(e.$slots,"default")],2)}var Dw=je(QBe,[["render",eNe]]);const tNe=ke({name:"LayoutFooter",setup(){return{classNames:[Le("layout-footer")]}}});function nNe(e,t,n,r,o,a){return H(),J("footer",{class:le(e.classNames)},[dt(e.$slots,"default")],2)}var Pw=je(tNe,[["render",nNe]]);const rNe=ke({name:"IconDragDot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-drag-dot`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iNe=["stroke-width","stroke-linecap","stroke-linejoin"];function oNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"},null,-1)]),14,iNe)}var NR=je(rNe,[["render",oNe]]);const C0e=Object.assign(NR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NR.name,NR)}}),sNe=ke({name:"IconDragDotVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-drag-dot-vertical`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aNe=["stroke-width","stroke-linecap","stroke-linejoin"];function lNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"},null,-1)]),14,aNe)}var FR=je(sNe,[["render",lNe]]);const z5=Object.assign(FR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FR.name,FR)}});var uNe=ke({name:"ResizeTrigger",components:{ResizeObserver:Id,IconDragDot:C0e,IconDragDotVertical:z5},props:{prefixCls:{type:String,required:!0},direction:{type:String,default:"horizontal"}},emits:["resize"],setup(e,{emit:t}){const{direction:n,prefixCls:r}=nn(e),o=F(()=>n?.value==="horizontal");return{classNames:F(()=>[r.value,{[`${r.value}-horizontal`]:o.value,[`${r.value}-vertical`]:!o.value}]),onResize:l=>{t("resize",l)},isHorizontal:o}}});function cNe(e,t,n,r,o,a){const s=Pe("IconDragDot"),l=Pe("IconDragDotVertical"),c=Pe("ResizeObserver");return H(),Je(c,{onResize:e.onResize},{default:de(()=>[L("div",{class:le(e.classNames)},[Me(" @slot 自定义内容 "),dt(e.$slots,"default",{},()=>[L("div",{class:le(`${e.prefixCls}-icon-wrapper`)},[Me(" @slot 自定义 icon "),dt(e.$slots,"icon",{},()=>[e.isHorizontal?(H(),Je(s,{key:0,class:le(`${e.prefixCls}-icon`)},null,8,["class"])):(H(),Je(l,{key:1,class:le(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var w0e=je(uNe,[["render",cNe]]);const E0e="left",T0e="right",AH="top",IH="bottom",dNe=[E0e,T0e,AH,IH];function yre(e,t){if(e===0)return 0;const n=e-t;return n<=0?0:n}function jR(e){return[AH,IH].indexOf(e)>-1}const fNe=ke({name:"ResizeBox",components:{ResizeTrigger:w0e},inheritAttrs:!1,props:{width:{type:Number},height:{type:Number},component:{type:String,default:"div"},directions:{type:Array,default:()=>["right"]}},emits:{"update:width":e=>!0,"update:height":e=>!0,movingStart:e=>!0,moving:(e,t)=>!0,movingEnd:e=>!0},setup(e,{emit:t}){const{height:n,width:r,directions:o}=nn(e),[a,s]=fa(null,Yt({value:r})),[l,c]=fa(null,Yt({value:n})),d=fe(),h=Yt({}),p=Le("resizebox"),m=F(()=>[p]),g=F(()=>({...Ze(a.value)?{width:`${a.value}px`}:{},...Ze(l.value)?{height:`${l.value}px`}:{},...h})),y=F(()=>o.value.filter(_=>dNe.includes(_))),S={direction:"",startPageX:0,startPageY:0,startWidth:0,startHeight:0,moving:!1,padding:{left:0,right:0,top:0,bottom:0}};function k(_){if(!S.moving)return;const{startPageX:T,startPageY:D,startWidth:P,startHeight:M,direction:$}=S;let I=P,N=M;const j=_.pageX-T,U=_.pageY-D;switch($){case E0e:I=P-j,s(I),t("update:width",I);break;case T0e:I=P+j,s(I),t("update:width",I);break;case AH:N=M-U,c(N),t("update:height",N);break;case IH:N=M+U,c(N),t("update:height",N);break}t("moving",{width:I,height:N},_)}function C(_){S.moving=!1,to(window,"mousemove",k),to(window,"mouseup",C),to(window,"contextmenu",C),document.body.style.cursor="default",t("movingEnd",_)}function x(_,T){var D,P;t("movingStart",T),S.moving=!0,S.startPageX=T.pageX,S.startPageY=T.pageY,S.direction=_;const{top:M,left:$,right:I,bottom:N}=S.padding;S.startWidth=yre(((D=d.value)==null?void 0:D.clientWidth)||0,$+I),S.startHeight=yre(((P=d.value)==null?void 0:P.clientHeight)||0,M+N),Di(window,"mousemove",k),Di(window,"mouseup",C),Di(window,"contextmenu",C),document.body.style.cursor=jR(_)?"row-resize":"col-resize"}function E(_,T){const{width:D,height:P}=T.contentRect,M=jR(_)?P:D;S.padding[_]=M,h[`padding-${_}`]=`${M}px`}return{prefixCls:p,classNames:m,styles:g,wrapperRef:d,onMoveStart:x,isHorizontal:jR,allowDirections:y,onTiggerResize:E}}});function hNe(e,t,n,r,o,a){const s=Pe("ResizeTrigger");return H(),Je(Wa(e.component),zt({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:de(()=>[dt(e.$slots,"default"),(H(!0),J(Ft,null,pn(e.allowDirections,l=>(H(),Je(s,{key:l,"prefix-cls":`${e.prefixCls}-trigger`,class:le(`${e.prefixCls}-direction-${l}`),direction:e.isHorizontal(l)?"horizontal":"vertical",onMousedown:c=>{e.onMoveStart(l,c)},onResize:c=>{e.onTiggerResize(l,c)}},wo({default:de(()=>[e.$slots["resize-trigger"]?dt(e.$slots,"resize-trigger",{key:0,direction:l}):Me("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:de(()=>[dt(e.$slots,"resize-trigger-icon",{direction:l})]),key:"0"}:void 0]),1032,["prefix-cls","class","direction","onMousedown","onResize"]))),128))]),_:3},16,["class","style"])}var VR=je(fNe,[["render",hNe]]);const A0e=Object.assign(VR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+VR.name,VR)}});function I0e(e,t){const n=F(()=>Mo(e)?e.value:e);let r="";vn(()=>{r=U8.subscribe((o,a)=>{n.value&&(!a||a===n.value)&&t(!!o[n.value])})}),vi(()=>{r&&U8.unsubscribe(r)})}const pNe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var vNe=ke({name:"LayoutSider",components:{IconLeft:Al,IconRight:zi,ResizeBox:A0e},props:{theme:{type:String,default:"light"},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsible:{type:Boolean},width:{type:Number,default:200},collapsedWidth:{type:Number,default:48},reverseArrow:{type:Boolean},breakpoint:{type:String},resizeDirections:{type:Array,default:void 0},hideTrigger:{type:Boolean}},emits:["collapse","update:collapsed","breakpoint"],setup(e,{emit:t}){const{theme:n,collapsed:r,defaultCollapsed:o,collapsible:a,hideTrigger:s,breakpoint:l,collapsedWidth:c,resizeDirections:d}=nn(e),[h,p]=fa(o.value,Yt({value:r})),m=F(()=>d.value?"ResizeBox":"div"),g=F(()=>a.value&&!s.value),y=Le("layout-sider"),S=F(()=>[y,{[`${y}-light`]:n.value==="light",[`${y}-has-trigger`]:g.value,[`${y}-collapsed`]:r.value}]),k=F(()=>{const{width:T,collapsedWidth:D}=e,P=h.value?D:T;return Ze(P)?`${P}px`:String(P)}),C=F(()=>[`${y}-trigger`,{[`${y}-trigger-light`]:n.value==="light"}]),x=()=>{const T=!h.value;p(T),t("update:collapsed",T),t("collapse",T,"clickTrigger")};I0e(l,T=>{const D=!T;D!==h.value&&(p(D),t("update:collapsed",D),t("collapse",D,"responsive"),t("breakpoint",D))});const E=pNe("__arco_layout_sider"),_=Pn(k0e,void 0);return vn(()=>{var T;(T=_?.onSiderMount)==null||T.call(_,E)}),vi(()=>{var T;(T=_?.onSiderUnMount)==null||T.call(_,E)}),ti(x0e,Yt({theme:n,collapsed:h,collapsedWidth:c})),{componentTag:m,prefixCls:y,classNames:S,triggerClassNames:C,localCollapsed:h,siderWidth:k,showTrigger:g,toggleTrigger:x}}});const mNe={key:0},gNe={key:1};function yNe(e,t,n,r,o,a){const s=Pe("IconLeft"),l=Pe("IconRight");return H(),Je(Wa(e.componentTag),zt({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:de(()=>[L("div",{class:le(`${e.prefixCls}-children`)},[dt(e.$slots,"default")],2),e.showTrigger?(H(),J("div",{key:0,class:le(e.triggerClassNames),style:Ge({width:e.siderWidth}),onClick:t[0]||(t[0]=(...c)=>e.toggleTrigger&&e.toggleTrigger(...c))},[dt(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(H(),J("div",gNe,[e.localCollapsed?(H(),Je(s,{key:0})):(H(),Je(l,{key:1}))])):(H(),J("div",mNe,[e.localCollapsed?(H(),Je(l,{key:1})):(H(),Je(s,{key:0}))]))])],6)):Me("v-if",!0)]),_:3},16,["class","style"])}var Rw=je(vNe,[["render",yNe]]);const bNe=Object.assign(BR,{Header:Lw,Content:Dw,Footer:Pw,Sider:Rw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+BR.name,BR),e.component(n+Lw.name,Lw),e.component(n+Dw.name,Dw),e.component(n+Pw.name,Pw),e.component(n+Rw.name,Rw)}}),_Ne=ke({name:"Pager",props:{pageNumber:{type:Number},current:{type:Number},disabled:{type:Boolean,default:!1},style:{type:Object},activeStyle:{type:Object}},emits:["click"],setup(e,{emit:t}){const n=Le("pagination-item"),r=F(()=>e.current===e.pageNumber),o=l=>{e.disabled||t("click",e.pageNumber,l)},a=F(()=>[n,{[`${n}-active`]:r.value}]),s=F(()=>r.value?e.activeStyle:e.style);return{prefixCls:n,cls:a,mergedStyle:s,handleClick:o}}});function SNe(e,t,n,r,o,a){return H(),J("li",{class:le(e.cls),style:Ge(e.mergedStyle),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[dt(e.$slots,"default",{page:e.pageNumber},()=>[We(Ve(e.pageNumber),1)])],6)}var kNe=je(_Ne,[["render",SNe]]);const L0e=(e,{min:t,max:n})=>en?n:e,xNe=ke({name:"StepPager",components:{IconLeft:Al,IconRight:zi},props:{pages:{type:Number,required:!0},current:{type:Number,required:!0},type:{type:String,required:!0},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const n=Le("pagination-item"),r=e.type==="next",o=F(()=>e.disabled?e.disabled:!e.pages||r&&e.current===e.pages?!0:!r&&e.current<=1),a=F(()=>L0e(e.current+(r?1:-1),{min:1,max:e.pages})),s=c=>{o.value||t("click",a.value)},l=F(()=>[n,`${n}-${e.type}`,{[`${n}-disabled`]:o.value}]);return{prefixCls:n,cls:l,isNext:r,handleClick:s}}});function CNe(e,t,n,r,o,a){const s=Pe("icon-right"),l=Pe("icon-left");return H(),Je(Wa(e.simple?"span":"li"),{class:le(e.cls),onClick:e.handleClick},{default:de(()=>[dt(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(H(),Je(s,{key:0})):(H(),Je(l,{key:1}))])]),_:3},8,["class","onClick"])}var bre=je(xNe,[["render",CNe]]);const wNe=ke({name:"EllipsisPager",components:{IconMore:M0},props:{current:{type:Number,required:!0},step:{type:Number,default:5},pages:{type:Number,required:!0}},emits:["click"],setup(e,{emit:t}){const n=Le("pagination-item"),r=F(()=>L0e(e.current+e.step,{min:1,max:e.pages})),o=s=>{t("click",r.value)},a=F(()=>[n,`${n}-ellipsis`]);return{prefixCls:n,cls:a,handleClick:o}}});function ENe(e,t,n,r,o,a){const s=Pe("icon-more");return H(),J("li",{class:le(e.cls),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[dt(e.$slots,"default",{},()=>[O(s)])],2)}var TNe=je(wNe,[["render",ENe]]);const ANe=ke({name:"PageJumper",components:{InputNumber:Y_},props:{current:{type:Number,required:!0},simple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},pages:{type:Number,required:!0},size:{type:String},onChange:{type:Function}},emits:["change"],setup(e,{emit:t}){const n=Le("pagination-jumper"),{t:r}=$o(),o=fe(e.simple?e.current:void 0),a=c=>{const d=parseInt(c.toString(),10);return Number.isNaN(d)?void 0:String(d)},s=c=>{t("change",o.value),_n(()=>{e.simple||(o.value=void 0)})};Pt(()=>e.current,c=>{e.simple&&c!==o.value&&(o.value=c)});const l=F(()=>[n,{[`${n}-simple`]:e.simple}]);return{prefixCls:n,cls:l,t:r,inputValue:o,handleChange:s,handleFormatter:a}}});function INe(e,t,n,r,o,a){const s=Pe("input-number");return H(),J("span",{class:le(e.cls)},[e.simple?Me("v-if",!0):(H(),J("span",{key:0,class:le([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[dt(e.$slots,"jumper-prepend",{},()=>[We(Ve(e.t("pagination.goto")),1)])],2)),O(s,{modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:le(`${e.prefixCls}-input`),min:1,max:e.pages,size:e.size,disabled:e.disabled,"hide-button":"",formatter:e.handleFormatter,onChange:e.handleChange},null,8,["modelValue","class","max","size","disabled","formatter","onChange"]),e.$slots["jumper-append"]?(H(),J("span",{key:1,class:le(`${e.prefixCls}-append`)},[dt(e.$slots,"jumper-append")],2)):Me("v-if",!0),e.simple?(H(),J(Ft,{key:2},[L("span",{class:le(`${e.prefixCls}-separator`)},"/",2),L("span",{class:le(`${e.prefixCls}-total-page`)},Ve(e.pages),3)],64)):Me("v-if",!0)],2)}var _re=je(ANe,[["render",INe]]);const LNe=ke({name:"PageOptions",components:{ArcoSelect:e_},props:{sizeOptions:{type:Array,required:!0},pageSize:Number,disabled:Boolean,size:{type:String},onChange:{type:Function},selectProps:{type:Object}},emits:["change"],setup(e,{emit:t}){const n=Le("pagination-options"),{t:r}=$o(),o=F(()=>e.sizeOptions.map(s=>({value:s,label:`${s} ${r("pagination.countPerPage")}`})));return{prefixCls:n,options:o,handleChange:s=>{t("change",s)}}}});function DNe(e,t,n,r,o,a){const s=Pe("arco-select");return H(),J("span",{class:le(e.prefixCls)},[O(s,zt({"model-value":e.pageSize,options:e.options,size:e.size,disabled:e.disabled},e.selectProps,{onChange:e.handleChange}),null,16,["model-value","options","size","disabled","onChange"])],2)}var PNe=je(LNe,[["render",DNe]]),zR=ke({name:"Pagination",props:{total:{type:Number,required:!0},current:Number,defaultCurrent:{type:Number,default:1},pageSize:Number,defaultPageSize:{type:Number,default:10},disabled:{type:Boolean,default:!1},hideOnSinglePage:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},showTotal:{type:Boolean,default:!1},showMore:{type:Boolean,default:!1},showJumper:{type:Boolean,default:!1},showPageSize:{type:Boolean,default:!1},pageSizeOptions:{type:Array,default:()=>[10,20,30,40,50]},pageSizeProps:{type:Object},size:{type:String},pageItemStyle:{type:Object},activePageItemStyle:{type:Object},baseSize:{type:Number,default:6},bufferSize:{type:Number,default:2},autoAdjust:{type:Boolean,default:!0}},emits:{"update:current":e=>!0,"update:pageSize":e=>!0,change:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const r=Le("pagination"),{t:o}=$o(),{disabled:a,pageItemStyle:s,activePageItemStyle:l,size:c}=nn(e),{mergedSize:d}=wa(c),h=fe(e.defaultCurrent),p=fe(e.defaultPageSize),m=F(()=>{var D;return(D=e.current)!=null?D:h.value}),g=F(()=>{var D;return(D=e.pageSize)!=null?D:p.value}),y=F(()=>Math.ceil(e.total/g.value)),S=D=>{D!==m.value&&Ze(D)&&!e.disabled&&(h.value=D,t("update:current",D),t("change",D))},k=D=>{p.value=D,t("update:pageSize",D),t("pageSizeChange",D)},C=Yt({current:m,pages:y,disabled:a,style:s,activeStyle:l,onClick:S}),x=(D,P={})=>D==="more"?O(TNe,zt(P,C),{default:n["page-item-ellipsis"]}):D==="previous"?O(bre,zt({type:"previous"},P,C),{default:n["page-item-step"]}):D==="next"?O(bre,zt({type:"next"},P,C),{default:n["page-item-step"]}):O(kNe,zt(P,C),{default:n["page-item"]}),E=F(()=>{const D=[];if(y.value2+e.bufferSize&&($=!0,P=Math.min(m.value-e.bufferSize,y.value-2*e.bufferSize)),m.valuee.simple?O("span",{class:`${r}-simple`},[x("previous",{simple:!0}),O(_re,{disabled:e.disabled,current:m.value,size:d.value,pages:y.value,simple:!0,onChange:S},null),x("next",{simple:!0})]):O("ul",{class:`${r}-list`},[x("previous",{simple:!0}),E.value,e.showMore&&x("more",{key:"more",step:e.bufferSize*2+1}),x("next",{simple:!0})]);Pt(g,(D,P)=>{if(e.autoAdjust&&D!==P&&m.value>1){const M=P*(m.value-1)+1,$=Math.ceil(M/D);$!==m.value&&(h.value=$,t("update:current",$),t("change",$))}}),Pt(y,(D,P)=>{if(e.autoAdjust&&D!==P&&m.value>1&&m.value>D){const M=Math.max(D,1);h.value=M,t("update:current",M),t("change",M)}});const T=F(()=>[r,`${r}-size-${d.value}`,{[`${r}-simple`]:e.simple,[`${r}-disabled`]:e.disabled}]);return()=>{var D,P;return e.hideOnSinglePage&&y.value<=1?null:O("div",{class:T.value},[e.showTotal&&O("span",{class:`${r}-total`},[(P=(D=n.total)==null?void 0:D.call(n,{total:e.total}))!=null?P:o("pagination.total",e.total)]),_(),e.showPageSize&&O(PNe,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:g.value,size:d.value,onChange:k,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&O(_re,{disabled:e.disabled,current:m.value,pages:y.value,size:d.value,onChange:S},{"jumper-prepend":n["jumper-prepend"],"jumper-append":n["jumper-append"]})])}}});const LH=Object.assign(zR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+zR.name,zR)}}),RNe=(e,{emit:t})=>{var n,r;const o=fe(mr(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),a=fe(mr(e.paginationProps)&&(r=e.paginationProps.defaultPageSize)!=null?r:10),s=F(()=>{var h;return mr(e.paginationProps)&&(h=e.paginationProps.current)!=null?h:o.value}),l=F(()=>{var h;return mr(e.paginationProps)&&(h=e.paginationProps.pageSize)!=null?h:a.value});return{current:s,pageSize:l,handlePageChange:h=>{o.value=h,t("pageChange",h)},handlePageSizeChange:h=>{a.value=h,t("pageSizeChange",h)}}};function Sre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var UR=ke({name:"List",props:{data:{type:Array},size:{type:String,default:"medium"},bordered:{type:Boolean,default:!0},split:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},hoverable:{type:Boolean,default:!1},paginationProps:{type:Object},gridProps:{type:Object},maxHeight:{type:[String,Number],default:0},bottomOffset:{type:Number,default:0},virtualListProps:{type:Object},scrollbar:{type:[Object,Boolean],default:!0}},emits:{scroll:()=>!0,reachBottom:()=>!0,pageChange:e=>!0,pageSizeChange:e=>!0},setup(e,{emit:t,slots:n}){const{scrollbar:r}=nn(e),o=Le("list"),a=Pn(Ya,void 0),{componentRef:s,elementRef:l}=N1("containerRef"),c=F(()=>e.virtualListProps),{displayScrollbar:d,scrollbarProps:h}=I5(r);let p=0;const m=z=>{const{scrollTop:G,scrollHeight:X,offsetHeight:ie}=z.target,ee=Math.floor(X-(G+ie));G>p&&ee<=e.bottomOffset&&t("reachBottom"),t("scroll"),p=G};vn(()=>{if(l.value){const{scrollTop:z,scrollHeight:G,offsetHeight:X}=l.value;G<=z+X&&t("reachBottom")}});const{current:g,pageSize:y,handlePageChange:S,handlePageSizeChange:k}=RNe(e,{emit:t}),C=z=>{if(!e.paginationProps)return z;if(e.paginationProps&&z.length>y.value){const G=(g.value-1)*y.value;return z.slice(G,G+y.value)}return z},x=z=>{let G;if(!e.gridProps)return null;const X=C(z);if(e.gridProps.span){const ie=[],ee=24/e.gridProps.span;for(let W=0;W{var Ce;return O(E4.Col,{key:`${ne}-${re}`,class:`${o}-col`,span:(Ce=e.gridProps)==null?void 0:Ce.span},{default:()=>{var we;return[Ui(ae)?ae:(we=n.item)==null?void 0:we.call(n,{item:ae,index:re})]}})}))?q:{default:()=>[q]}))}return ie}return O(E4.Row,{class:`${o}-row`,gutter:e.gridProps.gutter},Sre(G=X.map((ie,ee)=>O(E4.Col,zt({key:ee,class:`${o}-col`},xa(e.gridProps,["gutter"])),{default:()=>{var W;return[Ui(ie)?ie:(W=n.item)==null?void 0:W.call(n,{item:ie,index:ee})]}})))?G:{default:()=>[G]})},E=z=>C(z).map((X,ie)=>{var ee;return Ui(X)?X:(ee=n.item)==null?void 0:ee.call(n,{item:X,index:ie})}),_=()=>{const z=n.default?yf(n.default()):e.data;return z&&z.length>0?e.gridProps?x(z):E(z):j()},T=()=>{if(!e.paginationProps)return null;const z=xa(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return O(LH,zt({class:`${o}-pagination`},z,{current:g.value,pageSize:y.value,onChange:S,onPageSizeChange:k}),null)},D=F(()=>[o,`${o}-${e.size}`,{[`${o}-bordered`]:e.bordered,[`${o}-split`]:e.split,[`${o}-hover`]:e.hoverable}]),P=F(()=>{if(e.maxHeight)return{maxHeight:Ze(e.maxHeight)?`${e.maxHeight}px`:e.maxHeight,overflowY:"auto"}}),M=F(()=>[`${o}-content`,{[`${o}-virtual`]:c.value}]),$=fe(),I=()=>{var z;const G=C((z=e.data)!=null?z:[]);return G.length?O(o3,zt({ref:$,class:M.value,data:G},e.virtualListProps,{onScroll:m}),{item:({item:X,index:ie})=>{var ee;return(ee=n.item)==null?void 0:ee.call(n,{item:X,index:ie})}}):j()},N=()=>n["scroll-loading"]?O("div",{class:[`${o}-item`,`${o}-scroll-loading`]},[n["scroll-loading"]()]):null,j=()=>{var z,G,X,ie,ee;return n["scroll-loading"]?null:(ee=(ie=(z=n.empty)==null?void 0:z.call(n))!=null?ie:(X=a==null?void 0:(G=a.slots).empty)==null?void 0:X.call(G,{component:"list"}))!=null?ee:O(qh,null,null)};return{virtualListRef:$,render:()=>{const z=d.value?Dd:"div";return O("div",{class:`${o}-wrapper`},[O(Ld,{class:`${o}-spin`,loading:e.loading},{default:()=>[O(z,zt({ref:s,class:D.value,style:P.value},h.value,{onScroll:m}),{default:()=>[O("div",{class:`${o}-content-wrapper`},[n.header&&O("div",{class:`${o}-header`},[n.header()]),c.value&&!e.gridProps?O(Ft,null,[I(),N()]):O("div",{role:"list",class:M.value},[_(),N()]),n.footer&&O("div",{class:`${o}-footer`},[n.footer()])])]}),T()]})])}}},methods:{scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)}},render(){return this.render()}}),Mw=ke({name:"ListItem",props:{actionLayout:{type:String,default:"horizontal"}},setup(e,{slots:t}){const n=Le("list-item"),r=()=>{var o;const a=(o=t.actions)==null?void 0:o.call(t);return!a||!a.length?null:O("ul",{class:`${n}-action`},[a.map((s,l)=>O("li",{key:`${n}-action-${l}`},[s]))])};return()=>{var o,a;return O("div",{role:"listitem",class:n},[O("div",{class:`${n}-main`},[(o=t.meta)==null?void 0:o.call(t),O("div",{class:`${n}-content`},[(a=t.default)==null?void 0:a.call(t)]),e.actionLayout==="vertical"&&r()]),e.actionLayout==="horizontal"&&r(),t.extra&&O("div",{class:`${n}-extra`},[t.extra()])])}}});const MNe=ke({name:"ListItemMeta",props:{title:String,description:String},setup(e,{slots:t}){const n=Le("list-item-meta"),r=!!(e.title||e.description||t.title||t.description);return{prefixCls:n,hasContent:r}}});function ONe(e,t,n,r,o,a){return H(),J("div",{class:le(e.prefixCls)},[e.$slots.avatar?(H(),J("div",{key:0,class:le(`${e.prefixCls}-avatar`)},[dt(e.$slots,"avatar")],2)):Me("v-if",!0),e.hasContent?(H(),J("div",{key:1,class:le(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(H(),J("div",{key:0,class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2)):Me("v-if",!0),e.$slots.description||e.description?(H(),J("div",{key:1,class:le(`${e.prefixCls}-description`)},[dt(e.$slots,"description",{},()=>[We(Ve(e.description),1)])],2)):Me("v-if",!0)],2)):Me("v-if",!0)],2)}var Ow=je(MNe,[["render",ONe]]);const D0e=Object.assign(UR,{Item:Object.assign(Mw,{Meta:Ow}),install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+UR.name,UR),e.component(n+Mw.name,Mw),e.component(n+Ow.name,Ow)}}),$Ne=["border-width","box-sizing","font-family","font-weight","font-size","font-variant","letter-spacing","line-height","padding-top","padding-bottom","padding-left","padding-right","text-indent","text-rendering","text-transform","white-space","overflow-wrap","width"],sV=e=>{const t={};return $Ne.forEach(n=>{t[n]=e.getPropertyValue(n)}),t},BNe=ke({name:"Textarea",components:{ResizeObserver:Id,IconHover:To,IconClose:ds},inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},placeholder:String,disabled:{type:Boolean,default:!1},error:{type:Boolean,default:!1},maxLength:{type:[Number,Object],default:0},showWordLimit:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},autoSize:{type:[Boolean,Object],default:!1},wordLength:{type:Function},wordSlice:{type:Function},textareaAttrs:{type:Object}},emits:{"update:modelValue":e=>!0,input:(e,t)=>!0,change:(e,t)=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n}){const{disabled:r,error:o,modelValue:a}=nn(e),s=Le("textarea"),{mergedDisabled:l,mergedError:c,eventHandlers:d}=Ao({disabled:r,error:o}),h=fe(),p=fe(),m=fe(),g=fe(),y=fe(e.defaultValue),S=F(()=>{var Ne;return(Ne=a.value)!=null?Ne:y.value}),[k,C]=Qhe(h);Pt(a,Ne=>{(wn(Ne)||Tl(Ne))&&(y.value="")});const x=F(()=>mr(e.maxLength)&&!!e.maxLength.errorOnly),E=F(()=>mr(e.maxLength)?e.maxLength.length:e.maxLength),_=Ne=>{var Se;return xn(e.wordLength)?e.wordLength(Ne):(Se=Ne.length)!=null?Se:0},T=F(()=>_(S.value)),D=F(()=>c.value||!!(E.value&&x.value&&T.value>E.value)),P=fe(!1),M=fe(!1),$=F(()=>e.allowClear&&!l.value&&S.value),I=fe(!1),N=fe(""),j=()=>{k(),_n(()=>{h.value&&S.value!==h.value.value&&(h.value.value=S.value,C())})},U=(Ne,Se=!0)=>{var $e,Xe;E.value&&!x.value&&_(Ne)>E.value&&(Ne=(Xe=($e=e.wordSlice)==null?void 0:$e.call(e,Ne,E.value))!=null?Xe:Ne.slice(0,E.value)),y.value=Ne,Se&&t("update:modelValue",Ne),j()};let z=S.value;const G=(Ne,Se)=>{var $e,Xe;Ne!==z&&(z=Ne,t("change",Ne,Se),(Xe=($e=d.value)==null?void 0:$e.onChange)==null||Xe.call($e,Se))},X=Ne=>{var Se,$e;M.value=!0,z=S.value,t("focus",Ne),($e=(Se=d.value)==null?void 0:Se.onFocus)==null||$e.call(Se,Ne)},ie=Ne=>{var Se,$e;M.value=!1,t("blur",Ne),($e=(Se=d.value)==null?void 0:Se.onBlur)==null||$e.call(Se,Ne),G(S.value,Ne)},ee=Ne=>{var Se,$e;const{value:Xe}=Ne.target;if(Ne.type==="compositionend"){if(I.value=!1,N.value="",E.value&&!x.value&&S.value.length>=E.value&&_(Xe)>E.value){j();return}t("input",Xe,Ne),U(Xe),($e=(Se=d.value)==null?void 0:Se.onInput)==null||$e.call(Se,Ne)}else I.value=!0},W=Ne=>{var Se,$e;const{value:Xe}=Ne.target;if(I.value)N.value=Xe;else{if(E.value&&!x.value&&S.value.length>=E.value&&_(Xe)>E.value&&Ne.inputType==="insertText"){j();return}t("input",Xe,Ne),U(Xe),($e=(Se=d.value)==null?void 0:Se.onInput)==null||$e.call(Se,Ne)}},q=Ne=>{U(""),G("",Ne),t("clear",Ne)};Pt(a,Ne=>{Ne!==S.value&&U(Ne??"",!1)});const Q=Ne=>xa(n,m0),ne=Ne=>kf(n,m0),ae=ne(),re=F(()=>{const Ne={...ae,...e.textareaAttrs};return D.value&&(Ne["aria-invalid"]=!0),Ne}),Ce=F(()=>[`${s}-wrapper`,{[`${s}-focus`]:M.value,[`${s}-disabled`]:l.value,[`${s}-error`]:D.value,[`${s}-scroll`]:P.value}]);let we;const ve=fe(0),me=fe(0),xe=F(()=>!mr(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*ve.value+me.value),Be=F(()=>!mr(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*ve.value+me.value),Ke=()=>{const Ne=sV(we);ve.value=Number.parseInt(Ne["line-height"]||0,10),me.value=Number.parseInt(Ne["border-width"]||0,10)*2+Number.parseInt(Ne["padding-top"]||0,10)+Number.parseInt(Ne["padding-bottom"]||0,10),g.value=Ne,_n(()=>{var Se;const $e=(Se=m.value)==null?void 0:Se.offsetHeight;let Xe=$e??0,rt="hidden";xe.value&&XeBe.value&&(Xe=Be.value,rt="auto"),p.value={height:`${Xe}px`,resize:"none",overflow:rt}})};vn(()=>{h.value&&(we=window.getComputedStyle(h.value),e.autoSize&&Ke()),_e()});const ze=()=>{e.autoSize&&m.value&&Ke(),_e()},be=Ne=>{h.value&&Ne.target!==h.value&&(Ne.preventDefault(),h.value.focus())},_e=()=>{h.value&&(h.value.scrollHeight>h.value.offsetHeight?P.value||(P.value=!0):P.value&&(P.value=!1))};return Pt(S,()=>{e.autoSize&&m.value&&Ke(),_e()}),{prefixCls:s,wrapperCls:Ce,textareaRef:h,textareaStyle:p,mirrorRef:m,mirrorStyle:g,computedValue:S,showClearBtn:$,valueLength:T,computedMaxLength:E,mergedDisabled:l,mergeTextareaAttrs:re,getWrapperAttrs:Q,getTextareaAttrs:ne,handleInput:W,handleFocus:X,handleBlur:ie,handleComposition:ee,handleClear:q,handleResize:ze,handleMousedown:be}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),NNe=["disabled","value","placeholder"];function FNe(e,t,n,r,o,a){const s=Pe("resize-observer"),l=Pe("icon-close"),c=Pe("icon-hover");return H(),J("div",zt(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...d)=>e.handleMousedown&&e.handleMousedown(...d))}),[e.autoSize?(H(),J("div",{key:0,ref:"mirrorRef",class:le(`${e.prefixCls}-mirror`),style:Ge(e.mirrorStyle)},Ve(`${e.computedValue} `),7)):Me("v-if",!0),O(s,{onResize:e.handleResize},{default:de(()=>[L("textarea",zt({ref:"textareaRef"},e.mergeTextareaAttrs,{disabled:e.mergedDisabled,class:e.prefixCls,style:e.textareaStyle,value:e.computedValue,placeholder:e.placeholder,onInput:t[0]||(t[0]=(...d)=>e.handleInput&&e.handleInput(...d)),onFocus:t[1]||(t[1]=(...d)=>e.handleFocus&&e.handleFocus(...d)),onBlur:t[2]||(t[2]=(...d)=>e.handleBlur&&e.handleBlur(...d)),onCompositionstart:t[3]||(t[3]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionupdate:t[4]||(t[4]=(...d)=>e.handleComposition&&e.handleComposition(...d)),onCompositionend:t[5]||(t[5]=(...d)=>e.handleComposition&&e.handleComposition(...d))}),null,16,NNe)]),_:1},8,["onResize"]),dt(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(H(),J("div",{key:1,class:le(`${e.prefixCls}-word-limit`)},Ve(e.valueLength)+"/"+Ve(e.computedMaxLength),3)):Me("v-if",!0),e.showClearBtn?(H(),J("div",{key:2,class:le(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...d)=>e.handleClear&&e.handleClear(...d))},[O(c,null,{default:de(()=>[O(l)]),_:1})],2)):Me("v-if",!0)],16)}var HR=je(BNe,[["render",FNe]]);const P0e=Object.assign(HR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+HR.name,HR)}}),jNe=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},VNe=(e,t)=>[].concat(t).reduce((r,o)=>{const a=e.lastIndexOf(o);return a>r.location?{location:a,prefix:o}:r},{location:-1,prefix:""}),zNe=(e,t)=>!t||!e.includes(t);function UNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var WR=ke({name:"Mention",inheritAttrs:!1,props:{modelValue:String,defaultValue:{type:String,default:""},data:{type:Array,default:()=>[]},prefix:{type:[String,Array],default:"@"},split:{type:String,default:" "},type:{type:String,default:"input"},disabled:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1}},emits:{"update:modelValue":e=>!0,change:e=>!0,search:(e,t)=>!0,select:e=>!0,clear:e=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t,attrs:n,slots:r}){const o=Le("mention");let a;const{mergedDisabled:s,eventHandlers:l}=Ao({disabled:Iu(e,"disabled")}),{data:c,modelValue:d}=nn(e),h=fe(),p=fe({}),m=fe(e.defaultValue),g=F(()=>{var ae;return(ae=e.modelValue)!=null?ae:m.value});Pt(d,ae=>{(wn(ae)||Tl(ae))&&(m.value="")});const y=F(()=>g.value?[Tm(g.value)]:[]),S=fe({measuring:!1,location:-1,prefix:"",text:""}),k=()=>{S.value={measuring:!1,location:-1,prefix:"",text:""}},C=fe(),x=F(()=>S.value.text),E=fe(!0),_=(ae,re)=>{var Ce,we;const ve=jNe(re.target),me=VNe(ve,e.prefix);if(me.location>-1){const xe=ve.slice(me.location+me.prefix.length);zNe(xe,e.split)?(D.value=!0,S.value={measuring:!0,text:xe,...me},t("search",xe,me.prefix)):S.value.location>-1&&k()}else S.value.location>-1&&k();m.value=ae,t("update:modelValue",ae),t("change",ae),(we=(Ce=l.value)==null?void 0:Ce.onChange)==null||we.call(Ce)},T=ae=>{var re,Ce;m.value="",t("update:modelValue",""),t("change",""),(Ce=(re=l.value)==null?void 0:re.onChange)==null||Ce.call(re),t("clear",ae)},D=fe(!1),P=F(()=>D.value&&S.value.measuring&&U.value.length>0),M=()=>{G.value=sV(a)},$=ae=>{D.value=ae},I=(ae,re)=>{var Ce,we,ve;const{value:me}=(Ce=j.get(ae))!=null?Ce:{},xe=S.value.location,Be=S.value.location+S.value.text.length;let Ke=m.value.slice(0,xe),ze=m.value.slice(Be+1);Ke+=!Ke||Ke.endsWith(e.split)||Ke.endsWith(` `)?"":e.split,ze=(!ze||ze.startsWith(e.split)||ze.startsWith(` `)?"":e.split)+ze;const be=`${S.value.prefix}${me}`,_e=`${Ke}${be}${ze}`;m.value=_e,t("select",me),t("update:modelValue",_e),t("change",_e),k(),(ve=(we=l.value)==null?void 0:we.onChange)==null||ve.call(we)},{validOptions:N,optionInfoMap:j,validOptionInfos:U,handleKeyDown:z}=lH({options:c,inputValue:x,filterOption:E,popupVisible:P,valueKeys:y,dropdownRef:h,optionRefs:p,onSelect:I,onPopupVisibleChange:$,enterToOpen:!1}),G=fe();vn(()=>{var ae;e.type==="textarea"&&((ae=C.value)!=null&&ae.textareaRef)&&(a=window.getComputedStyle(C.value.textareaRef),G.value=sV(a))});const X=ae=>{if(xn(r.option)&&ae.value){const re=j.get(ae.key),Ce=r.option;return()=>Ce({data:re})}return()=>ae.label},ie=ae=>O(am,{ref:re=>{re?.$el&&(p.value[ae.key]=re.$el)},key:ae.key,value:ae.value,disabled:ae.disabled,internal:!0},{default:X(ae)}),ee=()=>{let ae;return O(aH,{ref:h},UNe(ae=N.value.map(re=>ie(re)))?ae:{default:()=>[ae]})},W=fe();Pt(P,ae=>{e.type==="textarea"&&ae&&_n(()=>{var re,Ce;(re=C.value)!=null&&re.textareaRef&&C.value.textareaRef.scrollTop>0&&((Ce=W.value)==null||Ce.scrollTo(0,C.value.textareaRef.scrollTop))})});const q=ae=>{t("focus",ae)},Q=ae=>{t("blur",ae)};return{inputRef:C,render:()=>{var ae;return e.type==="textarea"?O("div",{class:o},[O(Id,{onResize:M},{default:()=>[O(P0e,zt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:q,onBlur:Q,onKeydown:z}),null)]}),S.value.measuring&&U.value.length>0&&O("div",{ref:W,style:G.value,class:`${o}-measure`},[(ae=g.value)==null?void 0:ae.slice(0,S.value.location),O(ha,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,onPopupVisibleChange:$},{default:()=>[O("span",null,[We("@")])],content:ee})])]):O(ha,{trigger:"focus",position:"bl",animationName:"slide-dynamic-origin",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,autoFitPopupWidth:!0,autoFitTransformOrigin:!0,disabled:s.value,onPopupVisibleChange:$},{default:()=>[O(R0,zt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:q,onBlur:Q,onKeydown:z}),r)],content:ee})}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const HNe=Object.assign(WR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+WR.name,WR)}}),DH=Symbol("MenuInjectionKey"),PH=Symbol("LevelInjectionKey"),R0e=Symbol("DataCollectorInjectionKey"),WNe=ke({name:"IconMenuFold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-menu-fold`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GNe=["stroke-width","stroke-linecap","stroke-linejoin"];function KNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 11H6M42 24H22M42 37H6M13.66 26.912l-4.82-3.118 4.82-3.118v6.236Z"},null,-1)]),14,GNe)}var GR=je(WNe,[["render",KNe]]);const M0e=Object.assign(GR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GR.name,GR)}}),qNe=ke({name:"IconMenuUnfold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-menu-unfold`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YNe=["stroke-width","stroke-linecap","stroke-linejoin"];function XNe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118v-6.236Z"},null,-1)]),14,YNe)}var KR=je(qNe,[["render",XNe]]);const O0e=Object.assign(KR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KR.name,KR)}});function RH(e){const t=F(()=>Mo(e)?e.value:e);ti(PH,Yt({level:t}))}function Q_(e){const{provideNextLevel:t}=e||{},n=Pn(PH),r=F(()=>n?.level||1);if(t){const o=F(()=>r.value+1);RH(o)}return{level:r}}function kre(e,t){const n=[],r=o=>{o.forEach(a=>{t(a)&&n.push(a.key),a.children&&r(a.children)})};return r(e),n}function $0e(e=!1){return e?void 0:Pn(R0e)}function B0e(e){const{key:t,type:n}=e,r=fe([]),o=$0e(n==="menu");return ti(R0e,{collectSubMenu(s,l,c=!1){const d={key:s,children:l};if(c){const h=r.value.find(p=>p.key===s);h?h.children=l:r.value.push(d)}else r.value=[...r.value,d];c&&(n==="popupMenu"?o?.reportMenuData(r.value):n==="subMenu"&&!wn(s)&&o?.collectSubMenu(s,r.value,!0))},removeSubMenu(s){r.value=r.value.filter(l=>l.key!==s)},collectMenuItem(s){r.value.push({key:s})},removeMenuItem(s){r.value=r.value.filter(l=>l.key!==s)},reportMenuData(s){r.value=s,n==="subMenu"&&!wn(t)&&o?.collectSubMenu(t,r.value,!0)}}),n==="subMenu"&&!wn(t)?(vn(()=>{o?.collectSubMenu(t,r.value)}),vi(()=>{o?.removeSubMenu(t)})):n==="popupMenu"&&vn(()=>{o?.reportMenuData(r.value)}),{menuData:r,subMenuKeys:F(()=>kre(r.value,s=>!!s.children)),menuItemKeys:F(()=>kre(r.value,s=>!s.children))}}function ZNe(e,t){const n=[],r=o=>{for(let a=0;a{d.value=y};Pt(t,()=>{wn(t.value)&&h([])});let p=[];vn(()=>{p=[...a.value];let y=[];if(r.value&&(y=c.value?a.value.slice(0,1):[...a.value]),o.value){const S=s.value.map(k=>ZNe(l.value,k));S.length&&(!r.value||c.value)&&(y=c.value?S[0]:[...new Set([].concat(...S))])}y.length&&h(y)});let m=!1;Pt(a,(y,S=[])=>{if(m||!JNe(y,p)){const k=g.value.filter(C=>y.includes(C));if(r.value){const C=y.filter(x=>!S.includes(x));k.push(...C)}h(c.value?k.slice(0,1):k)}m=!0});const g=F(()=>t.value||d.value);return{openKeys:g,localOpenKeys:d,setOpenKeys:h,open(y,S){let k=[];return g.value.indexOf(y)>-1?c.value&&S===1?k=[]:k=g.value.filter(C=>C!==y):c.value&&S===1?k=[y]:k=g.value.concat([y]),h(k),k}}}const eFe=ke({name:"BaseMenu",components:{IconMenuFold:M0e,IconMenuUnfold:O0e},inheritAttrs:!1,props:{style:{type:Object},theme:{type:String,default:"light"},mode:{type:String,default:"vertical"},levelIndent:{type:Number},autoOpen:{type:Boolean},collapsed:{type:Boolean,default:void 0},defaultCollapsed:{type:Boolean},collapsedWidth:{type:Number},accordion:{type:Boolean},autoScrollIntoView:{type:Boolean},showCollapseButton:{type:Boolean},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array,default:()=>[]},openKeys:{type:Array},defaultOpenKeys:{type:Array,default:()=>[]},scrollConfig:{type:Object},triggerProps:{type:Object},tooltipProps:{type:Object},autoOpenSelected:{type:Boolean},breakpoint:{type:String},popupMaxHeight:{type:[Boolean,Number],default:!0},prefixCls:{type:String},inTrigger:{type:Boolean},siderCollapsed:{type:Boolean},isRoot:{type:Boolean}},emits:["update:collapsed","update:selectedKeys","update:openKeys","collapse","menu-item-click","sub-menu-click"],setup(e,{emit:t,slots:n}){const{style:r,mode:o,theme:a,levelIndent:s,accordion:l,showCollapseButton:c,scrollConfig:d,autoScrollIntoView:h,collapsedWidth:p,autoOpen:m,collapsed:g,defaultCollapsed:y,selectedKeys:S,defaultSelectedKeys:k,openKeys:C,defaultOpenKeys:x,triggerProps:E,tooltipProps:_,autoOpenSelected:T,breakpoint:D,popupMaxHeight:P,prefixCls:M,inTrigger:$,siderCollapsed:I,isRoot:N}=nn(e),{subMenuKeys:j,menuData:U}=B0e({type:N.value?"menu":"popupMenu"}),[z,G]=fa(k.value,Yt({value:S})),{openKeys:X,setOpenKeys:ie,open:ee}=QNe(Yt({modelValue:C,defaultValue:x,autoOpen:m,autoOpenSelected:T,selectedKeys:z,subMenuKeys:j,menuData:U,accordion:l})),[W,q]=fa(y.value,Yt({value:g})),Q=F(()=>I.value||W.value||o.value==="popButton"),ne=F(()=>["horizontal","popButton"].indexOf(o.value)<0&&!$.value&&c.value),ae=(Ke,ze)=>{Ke!==W.value&&(q(Ke),t("update:collapsed",Ke),t("collapse",Ke,ze))},re=()=>{ae(!W.value,"clickTrigger")};I0e(D,Ke=>{ae(!Ke,"responsive")});const Ce=F(()=>M?.value||Le("menu")),we=F(()=>[Ce.value,`${Ce.value}-${a?.value}`,{[`${Ce.value}-horizontal`]:o.value==="horizontal",[`${Ce.value}-vertical`]:o.value!=="horizontal",[`${Ce.value}-collapsed`]:Q.value,[`${Ce.value}-pop`]:o.value==="pop"||Q.value,[`${Ce.value}-pop-button`]:o.value==="popButton"}]),ve=F(()=>{const Ke=Ze(p.value)?`${p.value}px`:void 0,ze=mr(r.value)?r.value:void 0,be=Q.value?Ke:ze?.width;return[ze?xa(ze,["width"]):r.value,{width:be}]}),me=_d(n,"expand-icon-down"),xe=_d(n,"expand-icon-right"),Be=Yt({theme:a,mode:o,levelIndent:s,autoScrollIntoView:h,selectedKeys:z,openKeys:X,prefixCls:Ce,scrollConfig:d,inTrigger:$,collapsed:Q,triggerProps:E,tooltipProps:_,popupMaxHeight:P,expandIconDown:me,expandIconRight:xe,onMenuItemClick:Ke=>{G([Ke]),t("update:selectedKeys",[Ke]),t("menu-item-click",Ke)},onSubMenuClick:(Ke,ze)=>{const be=ee(Ke,ze);ie(be),t("update:openKeys",be),t("sub-menu-click",Ke,be)}});return ti(DH,Be),RH(1),{computedPrefixCls:Ce,classNames:we,computedStyle:ve,computedCollapsed:Q,computedHasCollapseButton:ne,onCollapseBtnClick:re}}});function tFe(e,t,n,r,o,a){const s=Pe("IconMenuUnfold"),l=Pe("IconMenuFold");return H(),J("div",zt({class:e.classNames},e.$attrs,{style:e.computedStyle}),[L("div",{class:le(`${e.computedPrefixCls}-inner`)},[dt(e.$slots,"default")],2),e.computedHasCollapseButton?(H(),J("div",{key:0,class:le(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...c)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...c))},[dt(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(H(),Je(s,{key:0})):(H(),Je(l,{key:1}))])],2)):Me("v-if",!0)],16)}var aV=je(eFe,[["render",tFe]]);function xre(e,t){if(!e||!t)return null;let n=t;n==="float"&&(n="cssFloat");try{if(document.defaultView){const r=document.defaultView.getComputedStyle(e,"");return e.style[n]||r?r[n]:""}}catch{return e.style[n]}return null}function qm(){return Pn(DH)||{}}const nFe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function U5(){const e=go();return{key:F(()=>e?.vnode.key||nFe("__arco_menu"))}}const rFe=ke({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=Le("menu"),t=qm();return{prefixCls:e,levelIndent:Iu(t,"levelIndent")}}});function iFe(e,t,n,r,o,a){return e.level>1?(H(),J("span",{key:0,class:le(`${e.prefixCls}-indent-list`)},[(H(!0),J(Ft,null,pn(e.level-1,s=>(H(),J("span",{key:s,class:le(`${e.prefixCls}-indent`),style:Ge(`width: ${e.levelIndent}px`)},null,6))),128))],2)):Me("v-if",!0)}var H5=je(rFe,[["render",iFe]]);const oFe=ke({name:"ExpandTransition",setup(){return{onBeforeEnter(e){e.style.height="0"},onEnter(e){e.style.height=`${e.scrollHeight}px`},onAfterEnter(e){e.style.height=""},onBeforeLeave(e){e.style.height=`${e.scrollHeight}px`},onLeave(e){e.style.height="0"},onAfterLeave(e){e.style.height=""}}}});function sFe(e,t,n,r,o,a){return H(),Je(xs,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:de(()=>[dt(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var aFe=je(oFe,[["render",sFe]]);const lFe=ke({name:"SubMenuInline",components:{MenuIndent:H5,ExpandTransition:aFe},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=U5(),{level:n}=Q_({provideNextLevel:!0}),r=qm(),o=F(()=>r.prefixCls),a=F(()=>`${o.value}-inline`),s=F(()=>[a.value]),l=F(()=>e.isChildrenSelected),c=F(()=>(r.openKeys||[]).indexOf(t.value)>-1);return{prefixCls:a,menuPrefixCls:o,classNames:s,level:n,isSelected:l,isOpen:c,onHeaderClick:()=>{r.onSubMenuClick&&r.onSubMenuClick(t.value,n.value)}}}});function uFe(e,t,n,r,o,a){const s=Pe("MenuIndent"),l=Pe("ExpandTransition");return H(),J("div",{class:le(e.classNames)},[L("div",{class:le([`${e.prefixCls}-header`,{[`${e.menuPrefixCls}-selected`]:e.isSelected,[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}]),onClick:t[0]||(t[0]=(...c)=>e.onHeaderClick&&e.onHeaderClick(...c))},[O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(H(),J(Ft,{key:0},[L("span",{class:le(`${e.menuPrefixCls}-icon`)},[dt(e.$slots,"icon")],2),L("span",{class:le(`${e.menuPrefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2)],64)):dt(e.$slots,"title",{key:1},()=>[We(Ve(e.title),1)]),L("span",{class:le([`${e.menuPrefixCls}-icon-suffix`,{"is-open":e.isOpen}])},[dt(e.$slots,"expand-icon-down")],2)],2),O(l,null,{default:de(()=>[wi(L("div",{class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"default")],2),[[Qo,e.isOpen]])]),_:3})],2)}var cFe=je(lFe,[["render",uFe]]);const dFe=ke({name:"SubMenuPop",components:{Menu:aV,Trigger:ha,MenuIndent:H5,RenderFunction:Xh},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=U5(),{level:n}=Q_(),{selectable:r,isChildrenSelected:o,popupMaxHeight:a}=nn(e),s=qm(),{onSubMenuClick:l,onMenuItemClick:c}=s,d=F(()=>s.prefixCls),h=F(()=>s.mode),p=F(()=>s.selectedKeys||[]),m=F(()=>`${d.value}-pop`),g=F(()=>r.value&&p.value.includes(t.value)||o.value),y=F(()=>[`${m.value}`,`${m.value}-header`,{[`${d.value}-selected`]:g.value}]),S=F(()=>h.value==="horizontal"&&!s.inTrigger),k=fe(!1),C=T=>{k.value=T},x=Le("trigger"),E=F(()=>{var T;return[`${m.value}-trigger`,{[`${m.value}-trigger-dark`]:s.theme==="dark"},(T=s.triggerProps)==null?void 0:T.class]}),_=F(()=>xa(s.triggerProps||{},["class"]));return{menuPrefixCls:d,mode:h,level:n,classNames:y,isSelected:g,selectedKeys:p,needPopOnBottom:S,popVisible:k,triggerPrefixCls:x,triggerClassNames:E,triggerProps:_,menuContext:s,popupMenuStyles:F(()=>{var T;const D=(T=a.value)!=null?T:s.popupMaxHeight;return Ze(D)?{maxHeight:`${D}px`}:D?{}:{maxHeight:"unset"}}),onClick:()=>{l&&l(t.value,n.value),r.value&&c&&c(t.value)},onMenuItemClick:T=>{c&&c(T),C(!1)},onVisibleChange:T=>{C(T)}}}});function fFe(e,t,n,r,o,a){const s=Pe("MenuIndent"),l=Pe("RenderFunction"),c=Pe("Menu"),d=Pe("Trigger");return H(),Je(d,zt({trigger:"hover",class:e.triggerClassNames,position:e.needPopOnBottom?"bl":"rt","show-arrow":"","animation-class":"fade-in","mouse-enter-delay":50,"mouse-leave-delay":50,"popup-offset":4,"auto-fit-popup-min-width":!0,duration:100},e.triggerProps,{"unmount-on-close":!1,"popup-visible":e.popVisible,onPopupVisibleChange:e.onVisibleChange}),{content:de(()=>[O(c,{"in-trigger":"","prefix-cls":`${e.triggerPrefixCls}-menu`,"selected-keys":e.selectedKeys,theme:e.menuContext.theme,"trigger-props":e.menuContext.triggerProps,style:Ge(e.popupMenuStyles),onMenuItemClick:e.onMenuItemClick},wo({default:de(()=>[dt(e.$slots,"default")]),_:2},[e.menuContext.expandIconDown?{name:"expand-icon-down",fn:de(()=>[O(l,{"render-func":e.menuContext.expandIconDown},null,8,["render-func"])]),key:"0"}:void 0,e.menuContext.expandIconRight?{name:"expand-icon-right",fn:de(()=>[O(l,{"render-func":e.menuContext.expandIconRight},null,8,["render-func"])]),key:"1"}:void 0]),1032,["prefix-cls","selected-keys","theme","trigger-props","style","onMenuItemClick"])]),default:de(()=>[L("div",zt({class:[e.classNames,{[`${e.menuPrefixCls}-has-icon`]:e.$slots.icon}],"aria-haspopup":"true"},e.$attrs,{onClick:t[0]||(t[0]=(...h)=>e.onClick&&e.onClick(...h))}),[Me(" header "),O(s,{level:e.level},null,8,["level"]),e.$slots.icon?(H(),J(Ft,{key:0},[L("span",{class:le(`${e.menuPrefixCls}-icon`)},[dt(e.$slots,"icon")],2),L("span",{class:le(`${e.menuPrefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2)],64)):dt(e.$slots,"title",{key:1},()=>[We(Ve(e.title),1)]),Me(" suffix "),L("span",{class:le(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?dt(e.$slots,"expand-icon-down",{key:0}):dt(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(H(),J("div",{key:2,class:le(`${e.menuPrefixCls}-selected-label`)},null,2)):Me("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var hFe=je(dFe,[["render",fFe]]),rb=ke({name:"SubMenu",props:{title:{type:String},selectable:{type:Boolean},popup:{type:[Boolean,Function],default:!1},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e,{attrs:t}){const{key:n}=U5(),{level:r}=Q_(),{popup:o}=nn(e),a=qm(),s=F(()=>{const{mode:h,collapsed:p,inTrigger:m}=a;return!!(typeof o.value=="function"?o.value(r.value):o.value)||p||m||h!=="vertical"}),{subMenuKeys:l,menuItemKeys:c}=B0e({key:n.value,type:"subMenu"}),d=F(()=>{const h=a.selectedKeys||[],p=m=>{for(let g=0;g[O(Yh,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||a||(()=>[O(zi,null,null)])};return r?O(hFe,zt({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:s,popupMaxHeight:e.popupMaxHeight},t),l):O(cFe,zt({key:n,title:e.title,isChildrenSelected:s},t),l)}});const pFe=10;function Cre(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function wre(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var vFe=ke({name:"MenuOverflowWrap",setup(e,{slots:t}){const r=`${qm().prefixCls}-overflow`,o=`${r}-sub-menu`,a=`${r}-hidden-menu-item`,s=`${r}-sub-menu-mirror`,l=fe(),c=fe(null),d=fe();function h(){const p=l.value,m=Cre(p),g=[].slice.call(p.children);let y=0,S=0,k=0;for(let C=0;C-1,T=E.indexOf(s)>-1;if(_)continue;const D=Cre(x)+wre(xre(x,"marginLeft"))+wre(xre(x,"marginRight"));if(T){k=D;continue}if(S+=D,S+k+pFe>m){c.value=y-1;return}y++}c.value=null}return vn(()=>{h(),d.value=new k5(p=>{p.forEach(h)}),l.value&&d.value.observe(l.value)}),vi(()=>{d.value&&d.value.disconnect()}),()=>{const p=(g,y)=>{const{isMirror:S=!1,props:k={}}=y||{};return O(rb,zt({key:`__arco-menu-overflow-sub-menu${S?"-mirror":""}`,class:S?s:o},k),{title:()=>O("span",null,[We("...")]),default:()=>g})},m=()=>{var g;const y=((g=t.default)==null?void 0:g.call(t))||[],S=o7e(y);let k=null;const C=p(null,{isMirror:!0}),x=S.map((E,_)=>{const T=Cl(E,c.value!==null&&_>c.value?{class:a}:{class:""});if(c.value!==null&&_===c.value+1){const D=S.slice(_).map(P=>Cl(P));k=p(D)}return T});return[C,...x,k]};return O("div",{class:`${r}-wrap`,ref:l},[m()])}}}),qR=ke({name:"Menu",components:{BaseMenu:aV},inheritAttrs:!1,props:{theme:{type:String},mode:{type:String,default:"vertical"}},setup(e,{attrs:t,slots:n}){const{theme:r,mode:o}=nn(e),a=Pn(x0e,void 0),s=F(()=>a?.collapsed||!1),l=F(()=>r?.value||a?.theme||"light");return ti(DH,void 0),ti(PH,void 0),()=>O(aV,zt(e,t,{theme:l.value,inTrigger:!1,siderCollapsed:s.value,isRoot:!0}),{...n,default:o.value==="horizontal"&&n.default?()=>O(vFe,null,{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}}):n.default})}}),$w=ke({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=U5(),{level:r}=Q_(),o=qm(),a=fe(),s=F(()=>(o.selectedKeys||[]).indexOf(n.value)>-1),l=$0e();vn(()=>{l?.collectMenuItem(n.value)}),vi(()=>{l?.removeMenuItem(n.value)});function c(){o.autoScrollIntoView&&a.value&&s.value&&s0e(a.value,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement,...o.scrollConfig||{}})}let d;return vn(()=>{d=setTimeout(()=>{c()},500)}),vi(()=>{clearTimeout(d)}),Pt([s],()=>{c()}),{menuContext:o,level:r,isSelected:s,refItemElement:a,onClick(h){e.disabled||(o.onMenuItemClick&&o.onMenuItemClick(n.value),t("click",h))}}},render(){var e,t;const{level:n,menuContext:r,disabled:o,isSelected:a,onClick:s}=this,{prefixCls:l,collapsed:c,inTrigger:d,mode:h,tooltipProps:p}=r,m=c&&!d&&n===1,g=h==="vertical"&&n>1,y=((t=(e=this.$slots).default)==null?void 0:t.call(e))||[],S=g&&!d&&!c,k=this.$slots.icon&&this.$slots.icon(),C=[S&&O(H5,{level:n},null),k&&O("span",{class:`${l}-icon`},[k]),S||k?O("span",{class:[`${l}-item-inner`,{[`${l}-title`]:k}]},[y]):y].filter(Boolean),x=O("div",zt({ref:"refItemElement",class:[`${l}-item`,{[`${l}-disabled`]:o,[`${l}-selected`]:a,[`${l}-has-icon`]:k}]},this.$attrs,{onClick:s}),[C,a&&h==="horizontal"&&O("div",{class:`${l}-selected-label`},null)]);if(m){const E=[`${l}-item-tooltip`,p?.class];return O(qc,zt({trigger:"hover",position:"right",class:E},xa(p||{},["class"])),{default:()=>x,content:()=>y})}return x}});const mFe=ke({name:"MenuItemGroup",components:{MenuIndent:H5},props:{title:{type:String}},setup(){const{level:e}=Q_(),t=F(()=>e.value===1?e.value+1:e.value);RH(t);const n=qm(),r=F(()=>n.prefixCls),o=F(()=>[`${r.value}-group`]);return{prefixCls:r,classNames:o,level:e}}});function gFe(e,t,n,r,o,a){const s=Pe("MenuIndent");return H(),J("div",{class:le(e.classNames)},[L("div",{class:le(`${e.prefixCls}-group-title`)},[O(s,{level:e.level},null,8,["level"]),dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2),dt(e.$slots,"default")],2)}var Bw=je(mFe,[["render",gFe]]);const yFe=Object.assign(qR,{Item:$w,ItemGroup:Bw,SubMenu:rb,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+qR.name,qR),e.component(n+$w.name,$w),e.component(n+Bw.name,Bw),e.component(n+rb.name,rb)}}),bFe=ke({name:"Message",components:{AIconHover:To,IconInfoCircleFill:n3,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Gm,IconClose:ds,IconLoading:Xa},props:{type:{type:String,default:"info"},closable:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1},resetOnHover:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:t}){const n=Le("message");let r=0;const o=()=>{t("close")},a=()=>{e.duration>0&&(r=window.setTimeout(o,e.duration))},s=()=>{r&&(window.clearTimeout(r),r=0)};return vn(()=>{a()}),Qa(()=>{e.resetOnUpdate&&(s(),a())}),vi(()=>{s()}),{handleMouseEnter:()=>{e.resetOnHover&&s()},handleMouseLeave:()=>{e.resetOnHover&&a()},prefixCls:n,handleClose:o}}});function _Fe(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),d=Pe("icon-close-circle-fill"),h=Pe("icon-loading"),p=Pe("icon-close"),m=Pe("a-icon-hover");return H(),J("li",{role:"alert",class:le([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}]),onMouseenter:t[1]||(t[1]=(...g)=>e.handleMouseEnter&&e.handleMouseEnter(...g)),onMouseleave:t[2]||(t[2]=(...g)=>e.handleMouseLeave&&e.handleMouseLeave(...g))},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(H(),J("span",{key:0,class:le(`${e.prefixCls}-icon`)},[dt(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Je(s,{key:0})):e.type==="success"?(H(),Je(l,{key:1})):e.type==="warning"?(H(),Je(c,{key:2})):e.type==="error"?(H(),Je(d,{key:3})):e.type==="loading"?(H(),Je(h,{key:4})):Me("v-if",!0)])],2)):Me("v-if",!0),L("span",{class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"default")],2),e.closable?(H(),J("span",{key:1,class:le(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[O(m,null,{default:de(()=>[O(p)]),_:1})],2)):Me("v-if",!0)],34)}var SFe=je(bFe,[["render",_Fe]]);function kFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var xFe=ke({name:"MessageList",props:{messages:{type:Array,default:()=>[]},position:{type:String,default:"top"}},emits:["close","afterClose"],setup(e,t){const n=Le("message-list"),{zIndex:r}=r3("message",{runOnMounted:!0});return()=>{let o;return O(t3,{class:[n,`${n}-${e.position}`],name:"fade-message",tag:"ul",style:{zIndex:r.value},onAfterLeave:()=>t.emit("afterClose")},kFe(o=e.messages.map(a=>{const s={default:Hl(a.content),icon:Hl(a.icon)};return O(SFe,{key:a.id,type:a.type,duration:a.duration,closable:a.closable,resetOnUpdate:a.resetOnUpdate,resetOnHover:a.resetOnHover,onClose:()=>t.emit("close",a.id)},s)}))?o:{default:()=>[o]})}}});class CFe{constructor(t,n){this.messageCount=0,this.add=a=>{var s;this.messageCount++;const l=(s=a.id)!=null?s:`__arco_message_${this.messageCount}`;if(this.messageIds.has(l))return this.update(l,a);const c=Yt({id:l,...a});return this.messages.value.push(c),this.messageIds.add(l),{close:()=>this.remove(l)}},this.update=(a,s)=>{for(let l=0;lthis.remove(a)}},this.remove=a=>{for(let s=0;s{this.messages.value.splice(0)},this.destroy=()=>{this.messages.value.length===0&&this.container&&(Kc(null,this.container),document.body.removeChild(this.container),this.container=null,ry[this.position]=void 0)};const{position:r="top"}=t;this.container=E5("message"),this.messageIds=new Set,this.messages=fe([]),this.position=r;const o=O(xFe,{messages:this.messages.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??wt._context)&&(o.appContext=n??wt._context),Kc(o,this.container),document.body.appendChild(this.container)}}const ry={},N0e=[...A5,"loading","normal"],Nw=N0e.reduce((e,t)=>(e[t]=(n,r)=>{cs(n)&&(n={content:n});const o={type:t,...n},{position:a="top"}=o;return ry[a]||(ry[a]=new CFe(o,r)),ry[a].add(o)},e),{});Nw.clear=e=>{var t;e?(t=ry[e])==null||t.clear():Object.values(ry).forEach(n=>n?.clear())};const wt={...Nw,install:e=>{const t={clear:Nw.clear};for(const n of N0e)t[n]=(r,o=e._context)=>Nw[n](r,o);e.config.globalProperties.$message=t},_context:null},wFe=({modalRef:e,wrapperRef:t,draggable:n,alignCenter:r})=>{const o=fe(!1),a=fe([0,0]),s=fe([0,0]),l=fe(),c=fe([0,0]),d=fe([0,0]),h=()=>{var y,S,k;if(t.value&&e.value){const{top:C,left:x}=t.value.getBoundingClientRect(),{clientWidth:E,clientHeight:_}=t.value,{top:T,left:D,width:P,height:M}=e.value.getBoundingClientRect(),$=r.value?0:(y=e.value)==null?void 0:y.offsetTop,I=D-x,N=T-C-$;(I!==((S=s.value)==null?void 0:S[0])||N!==((k=s.value)==null?void 0:k[1]))&&(s.value=[I,N]);const j=E>P?E-P:0,U=_>M?_-M-$:0;(j!==d.value[0]||U!==d.value[1])&&(d.value=[j,U]),$&&(c.value=[0,0-$])}},p=y=>{n.value&&(y.preventDefault(),o.value=!0,h(),a.value=[y.x,y.y],Di(window,"mousemove",m),Di(window,"mouseup",g),Di(window,"contextmenu",g))},m=y=>{if(o.value){const S=y.x-a.value[0],k=y.y-a.value[1];let C=s.value[0]+S,x=s.value[1]+k;Cd.value[0]&&(C=d.value[0]),xd.value[1]&&(x=d.value[1]),l.value=[C,x]}},g=()=>{o.value=!1,to(window,"mousemove",m),to(window,"mouseup",g)};return{position:l,handleMoveDown:p}};var EFe=ke({name:"Modal",components:{ClientOnly:iH,ArcoButton:Xo,IconHover:To,IconClose:ds,IconInfoCircleFill:n3,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Gm},inheritAttrs:!1,props:{visible:{type:Boolean,default:void 0},defaultVisible:{type:Boolean,default:!1},width:{type:[Number,String]},top:{type:[Number,String]},mask:{type:Boolean,default:!0},title:{type:String},titleAlign:{type:String,default:"center"},alignCenter:{type:Boolean,default:!0},unmountOnClose:Boolean,maskClosable:{type:Boolean,default:!0},hideCancel:{type:Boolean,default:!1},simple:{type:Boolean,default:e=>e.notice},closable:{type:Boolean,default:!0},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},footer:{type:Boolean,default:!0},renderToBody:{type:Boolean,default:!0},popupContainer:{type:[String,Object],default:"body"},maskStyle:{type:Object},modalClass:{type:[String,Array]},modalStyle:{type:Object},onBeforeOk:{type:Function},onBeforeCancel:{type:Function},escToClose:{type:Boolean,default:!0},draggable:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maskAnimationName:{type:String,default:e=>e.fullscreen?"fade-in-standard":"fade-modal"},modalAnimationName:{type:String,default:e=>e.fullscreen?"zoom-in":"zoom-modal"},bodyClass:{type:[String,Array]},bodyStyle:{type:[String,Object,Array]},messageType:{type:String},hideTitle:{type:Boolean,default:!1}},emits:{"update:visible":e=>!0,ok:e=>!0,cancel:e=>!0,open:()=>!0,close:()=>!0,beforeOpen:()=>!0,beforeClose:()=>!0},setup(e,{emit:t}){const{fullscreen:n,popupContainer:r,alignCenter:o}=nn(e),a=Le("modal"),{t:s}=$o(),l=fe(),c=fe(),d=fe(e.defaultVisible),h=F(()=>{var Ce;return(Ce=e.visible)!=null?Ce:d.value}),p=fe(!1),m=F(()=>e.okLoading||p.value),g=F(()=>e.draggable&&!e.fullscreen),{teleportContainer:y,containerRef:S}=oH({popupContainer:r,visible:h}),k=fe(h.value),C=F(()=>e.okText||s("modal.okText")),x=F(()=>e.cancelText||s("modal.cancelText")),{zIndex:E,isLastDialog:_}=r3("dialog",{visible:h});let T=!1;const D=Ce=>{e.escToClose&&Ce.key===zo.ESC&&_()&&z(Ce)},P=()=>{e.escToClose&&!T&&(T=!0,Di(document.documentElement,"keydown",D))},M=()=>{T=!1,to(document.documentElement,"keydown",D)};let $=0;const{position:I,handleMoveDown:N}=wFe({wrapperRef:l,modalRef:c,draggable:g,alignCenter:o}),j=()=>{$++,p.value&&(p.value=!1),d.value=!1,t("update:visible",!1)},U=async Ce=>{const we=$,ve=await new Promise(async me=>{var xe;if(xn(e.onBeforeOk)){let Be=e.onBeforeOk((Ke=!0)=>me(Ke));if((Cm(Be)||!wl(Be))&&(p.value=!0),Cm(Be))try{Be=(xe=await Be)!=null?xe:!0}catch(Ke){throw Be=!1,Ke}wl(Be)&&me(Be)}else me(!0)});we===$&&(ve?(t("ok",Ce),j()):p.value&&(p.value=!1))},z=Ce=>{var we;let ve=!0;xn(e.onBeforeCancel)&&(ve=(we=e.onBeforeCancel())!=null?we:!1),ve&&(t("cancel",Ce),j())},G=fe(!1),X=Ce=>{Ce.target===l.value&&(G.value=!0)},ie=Ce=>{e.mask&&e.maskClosable&&G.value&&z(Ce)},ee=()=>{h.value&&(!s7e(l.value,document.activeElement)&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),t("open"))},W=()=>{h.value||(g.value&&(I.value=void 0),k.value=!1,Q(),t("close"))},{setOverflowHidden:q,resetOverflow:Q}=i0e(S);vn(()=>{S.value=sf(e.popupContainer),h.value&&(q(),e.escToClose&&P())}),Oo(()=>{Q(),M()}),Pt(h,Ce=>{d.value!==Ce&&(d.value=Ce),Ce?(t("beforeOpen"),k.value=!0,G.value=!1,q(),P()):(t("beforeClose"),M())}),Pt(n,()=>{I.value&&(I.value=void 0)});const ne=F(()=>[`${a}-wrapper`,{[`${a}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${a}-wrapper-moved`]:!!I.value}]),ae=F(()=>[`${a}`,e.modalClass,{[`${a}-simple`]:e.simple,[`${a}-draggable`]:g.value,[`${a}-fullscreen`]:e.fullscreen}]),re=F(()=>{var Ce;const we={...(Ce=e.modalStyle)!=null?Ce:{}};return e.width&&!e.fullscreen&&(we.width=Ze(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&(we.top=Ze(e.top)?`${e.top}px`:e.top),I.value&&(we.transform=`translate(${I.value[0]}px, ${I.value[1]}px)`),we});return{prefixCls:a,mounted:k,computedVisible:h,containerRef:S,wrapperRef:l,mergedModalStyle:re,okDisplayText:C,cancelDisplayText:x,zIndex:E,handleOk:U,handleCancel:z,handleMaskClick:ie,handleMaskMouseDown:X,handleOpen:ee,handleClose:W,mergedOkLoading:m,modalRef:c,wrapperCls:ne,modalCls:ae,teleportContainer:y,handleMoveDown:N}}});function TFe(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),d=Pe("icon-close-circle-fill"),h=Pe("icon-close"),p=Pe("icon-hover"),m=Pe("arco-button"),g=Pe("client-only");return H(),Je(g,null,{default:de(()=>[(H(),Je(Um,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?wi((H(),J("div",zt({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[O(xs,{name:e.maskAnimationName,appear:""},{default:de(()=>[e.mask?wi((H(),J("div",{key:0,ref:"maskRef",class:le(`${e.prefixCls}-mask`),style:Ge(e.maskStyle)},null,6)),[[Qo,e.computedVisible]]):Me("v-if",!0)]),_:1},8,["name"]),L("div",{ref:"wrapperRef",class:le(e.wrapperCls),onClick:t[2]||(t[2]=us((...y)=>e.handleMaskClick&&e.handleMaskClick(...y),["self"])),onMousedown:t[3]||(t[3]=us((...y)=>e.handleMaskMouseDown&&e.handleMaskMouseDown(...y),["self"]))},[O(xs,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[wi(L("div",{ref:"modalRef",class:le(e.modalCls),style:Ge(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(H(),J("div",{key:0,class:le(`${e.prefixCls}-header`),onMousedown:t[1]||(t[1]=(...y)=>e.handleMoveDown&&e.handleMoveDown(...y))},[e.$slots.title||e.title?(H(),J("div",{key:0,class:le([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(H(),J("div",{key:0,class:le(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(H(),Je(s,{key:0})):Me("v-if",!0),e.messageType==="success"?(H(),Je(l,{key:1})):Me("v-if",!0),e.messageType==="warning"?(H(),Je(c,{key:2})):Me("v-if",!0),e.messageType==="error"?(H(),Je(d,{key:3})):Me("v-if",!0)],2)):Me("v-if",!0),dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2)):Me("v-if",!0),!e.simple&&e.closable?(H(),J("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:le(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...y)=>e.handleCancel&&e.handleCancel(...y))},[O(p,null,{default:de(()=>[O(h)]),_:1})],2)):Me("v-if",!0)],34)):Me("v-if",!0),L("div",{class:le([`${e.prefixCls}-body`,e.bodyClass]),style:Ge(e.bodyStyle)},[dt(e.$slots,"default")],6),e.footer?(H(),J("div",{key:1,class:le(`${e.prefixCls}-footer`)},[dt(e.$slots,"footer",{},()=>[e.hideCancel?Me("v-if",!0):(H(),Je(m,zt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(Ve(e.cancelDisplayText),1)]),_:1},16,["onClick"])),O(m,zt({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[We(Ve(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):Me("v-if",!0)],6),[[Qo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[Qo,e.computedVisible||e.mounted]]):Me("v-if",!0)],8,["to","disabled"]))]),_:3})}var Fw=je(EFe,[["render",TFe]]);const YR=(e,t)=>{let n=E5("modal");const r=()=>{d.component&&(d.component.props.visible=!1),xn(e.onOk)&&e.onOk()},o=()=>{d.component&&(d.component.props.visible=!1),xn(e.onCancel)&&e.onCancel()},a=async()=>{await _n(),n&&(Kc(null,n),document.body.removeChild(n)),n=null,xn(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,m])=>{d.component.props[p]=m})},d=O(Fw,{...{visible:!0,renderToBody:!1,unmountOnClose:!0,onOk:r,onCancel:o,onClose:a},...xa(e,["content","title","footer","visible","unmountOnClose","onOk","onCancel","onClose"]),footer:typeof e.footer=="boolean"?e.footer:void 0},{default:Hl(e.content),title:Hl(e.title),footer:typeof e.footer!="boolean"?Hl(e.footer):void 0});return(t??Lu._context)&&(d.appContext=t??Lu._context),Kc(d,n),document.body.appendChild(n),{close:s,update:l}},XR={open:YR,confirm:(e,t)=>{const n={simple:!0,messageType:"warning",...e};return YR(n,t)},...A5.reduce((e,t)=>(e[t]=(n,r)=>{const o={simple:!0,hideCancel:!0,messageType:t,...n};return YR(o,r)},e),{})},Lu=Object.assign(Fw,{...XR,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+Fw.name,Fw);const r={};for(const o of Object.keys(XR))r[o]=(a,s=e._context)=>XR[o](a,s);e.config.globalProperties.$modal=r},_context:null}),AFe=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),IFe=ke({name:"Notification",components:{AIconHover:To,IconInfoCircleFill:n3,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Gm,IconClose:ds},props:{type:{type:String,default:"info"},showIcon:{type:Boolean,default:!0},closable:{type:Boolean,default:!1},duration:{type:Number,default:3e3},resetOnUpdate:{type:Boolean,default:!1}},emits:["close"],setup(e,t){const n=Le("notification");let r=0;const o=()=>{t.emit("close")};return vn(()=>{e.duration>0&&(r=window.setTimeout(o,e.duration))}),Qa(()=>{e.resetOnUpdate&&(r&&(window.clearTimeout(r),r=0),e.duration>0&&(r=window.setTimeout(o,e.duration)))}),vi(()=>{r&&window.clearTimeout(r)}),{prefixCls:n,handleClose:o}}});function LFe(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),d=Pe("icon-close-circle-fill"),h=Pe("icon-close"),p=Pe("a-icon-hover");return H(),J("li",{role:"alert",class:le([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(H(),J("div",{key:0,class:le(`${e.prefixCls}-left`)},[L("div",{class:le(`${e.prefixCls}-icon`)},[dt(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Je(s,{key:0})):e.type==="success"?(H(),Je(l,{key:1})):e.type==="warning"?(H(),Je(c,{key:2})):e.type==="error"?(H(),Je(d,{key:3})):Me("v-if",!0)])],2)],2)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-right`)},[e.$slots.default?(H(),J("div",{key:0,class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"default")],2)):Me("v-if",!0),e.$slots.content?(H(),J("div",{key:1,class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"content")],2)):Me("v-if",!0),e.$slots.footer?(H(),J("div",{key:2,class:le(`${e.prefixCls}-footer`)},[dt(e.$slots,"footer")],2)):Me("v-if",!0)],2),e.closable?(H(),J("div",{key:1,class:le(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...m)=>e.handleClose&&e.handleClose(...m))},[dt(e.$slots,"closeIconElement",{},()=>[O(p,null,{default:de(()=>[dt(e.$slots,"closeIcon",{},()=>[O(h)])]),_:3})])],2)):Me("v-if",!0)],2)}var DFe=je(IFe,[["render",LFe]]);const PFe=["topLeft","topRight","bottomLeft","bottomRight"];function RFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var MFe=ke({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>PFe.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=Le("notification-list"),r=AFe(e.position),{zIndex:o}=r3("message",{runOnMounted:!0}),a=e.position.includes("Right");return()=>{let s;return O(t3,{class:[n,`${n}-${r}`],style:{zIndex:o.value},name:`slide-${a?"right":"left"}-notification`,onAfterLeave:()=>t.emit("afterClose"),tag:"ul"},RFe(s=e.notifications.map(l=>{const c={default:Hl(l.title),content:Hl(l.content),icon:Hl(l.icon),footer:Hl(l.footer),closeIcon:Hl(l.closeIcon),closeIconElement:Hl(l.closeIconElement)};return O(DFe,{key:l.id,type:l.type,style:l.style,class:l.class,duration:l.duration,closable:l.closable,showIcon:l.showIcon,resetOnUpdate:l.resetOnUpdate,onClose:()=>t.emit("close",l.id)},c)}))?s:{default:()=>[s]})}}});class OFe{constructor(t,n){this.notificationCount=0,this.add=a=>{var s;this.notificationCount++;const l=(s=a.id)!=null?s:`__arco_notification_${this.notificationCount}`;if(this.notificationIds.has(l))return this.update(l,a);const c=Yt({id:l,...a});return this.notifications.value.push(c),this.notificationIds.add(l),{close:()=>this.remove(l)}},this.update=(a,s)=>{for(let l=0;lthis.remove(a)}},this.remove=a=>{for(let s=0;s{this.notifications.value.splice(0)},this.destroy=()=>{this.notifications.value.length===0&&this.container&&(Kc(null,this.container),document.body.removeChild(this.container),this.container=null,cm[this.position]=void 0)};const{position:r="topRight"}=t;this.container=E5("notification"),this.notificationIds=new Set,this.notifications=fe([]),this.position=r;const o=O(MFe,{notifications:this.notifications.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??lV._context)&&(o.appContext=n??lV._context),Kc(o,this.container),document.body.appendChild(this.container)}}const cm={},ib=A5.reduce((e,t)=>(e[t]=(n,r)=>{cs(n)&&(n={content:n});const o={type:t,...n},{position:a="topRight"}=o;return cm[a]||(cm[a]=new OFe(o,r)),cm[a].add(o)},e),{});ib.remove=e=>{e&&Object.values(cm).forEach(t=>t?.remove(e))};ib.clear=e=>{var t;e?(t=cm[e])==null||t.clear():Object.values(cm).forEach(n=>n?.clear())};const lV={...ib,install:e=>{const t={clear:ib.clear};for(const n of A5)t[n]=(r,o=e._context)=>ib[n](r,o);e.config.globalProperties.$notification=t},_context:null},$Fe=ke({name:"PageHeader",components:{AIconHover:To,IconLeft:Al},props:{title:String,subtitle:String,showBack:{type:Boolean,default:!0}},emits:["back"],setup(e,{emit:t,slots:n}){const r=Le("page-header"),o=s=>{t("back",s)},a=F(()=>[r,{[`${r}-with-breadcrumb`]:!!n.breadcrumb,[`${r}-with-content`]:!!n.default}]);return{prefixCls:r,cls:a,handleBack:o}}});function BFe(e,t,n,r,o,a){const s=Pe("icon-left"),l=Pe("a-icon-hover");return H(),J("div",{class:le(e.cls)},[L("div",{class:le(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(H(),J("div",{key:0,class:le(`${e.prefixCls}-breadcrumb`)},[dt(e.$slots,"breadcrumb")],2)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-header`)},[L("span",{class:le(`${e.prefixCls}-main`)},[e.showBack?(H(),Je(l,{key:0,class:le(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:de(()=>[dt(e.$slots,"back-icon",{},()=>[O(s)])]),_:3},8,["class","prefix","onClick"])):Me("v-if",!0),L("span",{class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(H(),J("span",{key:1,class:le(`${e.prefixCls}-divider`)},null,2)):Me("v-if",!0),e.$slots.subtitle||e.subtitle?(H(),J("span",{key:2,class:le(`${e.prefixCls}-subtitle`)},[dt(e.$slots,"subtitle",{},()=>[We(Ve(e.subtitle),1)])],2)):Me("v-if",!0)],2),e.$slots.extra?(H(),J("span",{key:0,class:le(`${e.prefixCls}-extra`)},[dt(e.$slots,"extra")],2)):Me("v-if",!0)],2)],2),e.$slots.default?(H(),J("div",{key:0,class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"default")],2)):Me("v-if",!0)],2)}var ZR=je($Fe,[["render",BFe]]);const NFe=Object.assign(ZR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+ZR.name,ZR)}}),FFe=ke({name:"Popconfirm",components:{ArcoButton:Xo,Trigger:ha,IconInfoCircleFill:n3,IconCheckCircleFill:Kh,IconExclamationCircleFill:If,IconCloseCircleFill:Gm},props:{content:String,position:{type:String,default:"top"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},type:{type:String,default:"info"},okText:String,cancelText:String,okLoading:{type:Boolean,default:!1},okButtonProps:{type:Object},cancelButtonProps:{type:Object},contentClass:{type:[String,Array,Object]},contentStyle:{type:Object},arrowClass:{type:[String,Array,Object]},arrowStyle:{type:Object},popupContainer:{type:[String,Object]},onBeforeOk:{type:Function},onBeforeCancel:{type:Function}},emits:{"update:popupVisible":e=>!0,popupVisibleChange:e=>!0,ok:()=>!0,cancel:()=>!0},setup(e,{emit:t}){const n=Le("popconfirm"),{t:r}=$o(),o=fe(e.defaultPopupVisible),a=F(()=>{var S;return(S=e.popupVisible)!=null?S:o.value}),s=fe(!1),l=F(()=>e.okLoading||s.value);let c=0;const d=()=>{c++,s.value&&(s.value=!1),o.value=!1,t("update:popupVisible",!1),t("popupVisibleChange",!1)},h=S=>{S?(o.value=S,t("update:popupVisible",S),t("popupVisibleChange",S)):d()},p=async()=>{const S=c,k=await new Promise(async C=>{var x;if(xn(e.onBeforeOk)){let E=e.onBeforeOk((_=!0)=>C(_));if((Cm(E)||!wl(E))&&(s.value=!0),Cm(E))try{E=(x=await E)!=null?x:!0}catch(_){throw E=!1,_}wl(E)&&C(E)}else C(!0)});S===c&&(k?(t("ok"),d()):s.value&&(s.value=!1))},m=()=>{var S;let k=!0;xn(e.onBeforeCancel)&&(k=(S=e.onBeforeCancel())!=null?S:!1),k&&(t("cancel"),d())},g=F(()=>[`${n}-popup-content`,e.contentClass]),y=F(()=>[`${n}-popup-arrow`,e.arrowClass]);return{prefixCls:n,contentCls:g,arrowCls:y,computedPopupVisible:a,mergedOkLoading:l,handlePopupVisibleChange:h,handleOk:p,handleCancel:m,t:r}}});function jFe(e,t,n,r,o,a){const s=Pe("icon-info-circle-fill"),l=Pe("icon-check-circle-fill"),c=Pe("icon-exclamation-circle-fill"),d=Pe("icon-close-circle-fill"),h=Pe("arco-button"),p=Pe("trigger");return H(),Je(p,{class:le(e.prefixCls),trigger:"click",position:e.position,"show-arrow":"","popup-visible":e.computedPopupVisible,"popup-offset":10,"popup-container":e.popupContainer,"content-class":e.contentCls,"content-style":e.contentStyle,"arrow-class":e.arrowCls,"arrow-style":e.arrowStyle,"animation-name":"zoom-in-fade-out","auto-fit-transform-origin":"",onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[L("div",{class:le(`${e.prefixCls}-body`)},[L("span",{class:le(`${e.prefixCls}-icon`)},[dt(e.$slots,"icon",{},()=>[e.type==="info"?(H(),Je(s,{key:0})):e.type==="success"?(H(),Je(l,{key:1})):e.type==="warning"?(H(),Je(c,{key:2})):e.type==="error"?(H(),Je(d,{key:3})):Me("v-if",!0)])],2),L("span",{class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"content",{},()=>[We(Ve(e.content),1)])],2)],2),L("div",{class:le(`${e.prefixCls}-footer`)},[O(h,zt({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[We(Ve(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),O(h,zt({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[We(Ve(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:de(()=>[dt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var JR=je(FFe,[["render",jFe]]);const VFe=Object.assign(JR,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+JR.name,JR)}}),zFe={small:3,medium:4,large:8},UFe=e=>{if(e)return mr(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},HFe=ke({name:"ProgressLine",components:{IconExclamationCircleFill:If},props:{percent:{type:Number,default:0},animation:{type:Boolean,default:!1},size:{type:String,default:"medium"},strokeWidth:{type:Number,default:4},width:{type:[Number,String],default:"100%"},color:{type:[String,Object],default:void 0},trackColor:String,formatText:{type:Function,default:void 0},status:{type:String},showText:Boolean},setup(e){const t=Le("progress-line"),n=F(()=>e.strokeWidth!==4?e.strokeWidth:zFe[e.size]),r=F(()=>`${Yl.times(e.percent,100)}%`),o=F(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),a=F(()=>({width:`${e.percent*100}%`,...UFe(e.color)}));return{prefixCls:t,style:o,barStyle:a,text:r}}}),WFe=["aria-valuenow"];function GFe(e,t,n,r,o,a){const s=Pe("icon-exclamation-circle-fill");return H(),J("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:le(`${e.prefixCls}-wrapper`)},[L("div",{class:le(e.prefixCls),style:Ge(e.style)},[L("div",{class:le(`${e.prefixCls}-bar-buffer`)},null,2),L("div",{class:le([`${e.prefixCls}-bar`]),style:Ge(e.barStyle)},null,6)],6),e.showText?(H(),J("div",{key:0,class:le(`${e.prefixCls}-text`)},[dt(e.$slots,"text",{percent:e.percent},()=>[We(Ve(e.text)+" ",1),e.status==="danger"?(H(),Je(s,{key:0})):Me("v-if",!0)])],2)):Me("v-if",!0)],10,WFe)}var KFe=je(HFe,[["render",GFe]]);const qFe=ke({name:"IconExclamation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-exclamation`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YFe=["stroke-width","stroke-linecap","stroke-linejoin"];function XFe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M23 9h2v21h-2z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M23 9h2v21h-2z"},null,-1),L("path",{d:"M23 37h2v2h-2z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M23 37h2v2h-2z"},null,-1)]),14,YFe)}var QR=je(qFe,[["render",XFe]]);const MH=Object.assign(QR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QR.name,QR)}}),ZFe=ke({name:"IconCheck",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-check`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JFe=["stroke-width","stroke-linecap","stroke-linejoin"];function QFe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41.678 11.05 19.05 33.678 6.322 20.95"},null,-1)]),14,JFe)}var eM=je(ZFe,[["render",QFe]]);const Ym=Object.assign(eM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eM.name,eM)}});let Ere=0;const eje={mini:16,small:48,medium:64,large:80},tje={mini:4,small:3,medium:4,large:4},nje=ke({name:"ProgressCircle",components:{IconExclamation:MH,IconCheck:Ym},props:{percent:{type:Number,default:0},type:{type:String},size:{type:String,default:"medium"},strokeWidth:{type:Number},width:{type:Number,default:void 0},color:{type:[String,Object],default:void 0},trackColor:String,status:{type:String,default:void 0},showText:{type:Boolean,default:!0},pathStrokeWidth:{type:Number}},setup(e){const t=Le("progress-circle"),n=mr(e.color),r=F(()=>{var p;return(p=e.width)!=null?p:eje[e.size]}),o=F(()=>{var p;return(p=e.strokeWidth)!=null?p:e.size==="mini"?r.value/2:tje[e.size]}),a=F(()=>{var p;return(p=e.pathStrokeWidth)!=null?p:e.size==="mini"?o.value:Math.max(2,o.value-2)}),s=F(()=>(r.value-o.value)/2),l=F(()=>Math.PI*2*s.value),c=F(()=>r.value/2),d=F(()=>(Ere+=1,`${t}-linear-gradient-${Ere}`)),h=F(()=>`${Yl.times(e.percent,100)}%`);return{prefixCls:t,isLinearGradient:n,radius:s,text:h,perimeter:l,center:c,mergedWidth:r,mergedStrokeWidth:o,mergedPathStrokeWidth:a,linearGradientId:d}}}),rje=["aria-valuenow"],ije=["viewBox"],oje={key:0},sje=["id"],aje=["offset","stop-color"],lje=["cx","cy","r","stroke-width"],uje=["cx","cy","r","stroke-width"];function cje(e,t,n,r,o,a){const s=Pe("icon-check"),l=Pe("icon-exclamation");return H(),J("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:le(`${e.prefixCls}-wrapper`),style:Ge({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(H(),Je(s,{key:0,style:Ge({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(H(),J("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:le(`${e.prefixCls}-svg`)},[e.isLinearGradient?(H(),J("defs",oje,[L("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(H(!0),J(Ft,null,pn(Object.keys(e.color),c=>(H(),J("stop",{key:c,offset:c,"stop-color":e.color[c]},null,8,aje))),128))],8,sje)])):Me("v-if",!0),L("circle",{class:le(`${e.prefixCls}-bg`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedPathStrokeWidth,style:Ge({stroke:e.trackColor})},null,14,lje),L("circle",{class:le(`${e.prefixCls}-bar`),fill:"none",cx:e.center,cy:e.center,r:e.radius,"stroke-width":e.mergedStrokeWidth,style:Ge({stroke:e.isLinearGradient?`url(#${e.linearGradientId})`:e.color,strokeDasharray:e.perimeter,strokeDashoffset:(e.percent>=1?0:1-e.percent)*e.perimeter})},null,14,uje)],10,ije)),e.showText&&e.size!=="mini"?(H(),J("div",{key:2,class:le(`${e.prefixCls}-text`)},[dt(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(H(),Je(l,{key:0})):e.status==="success"?(H(),Je(s,{key:1})):(H(),J(Ft,{key:2},[We(Ve(e.text),1)],64))])],2)):Me("v-if",!0)],14,rje)}var dje=je(nje,[["render",cje]]);const fje=ke({name:"ProgressSteps",components:{IconExclamationCircleFill:If},props:{steps:{type:Number,default:0},percent:{type:Number,default:0},size:{type:String},color:{type:[String,Object],default:void 0},trackColor:String,strokeWidth:{type:Number},status:{type:String,default:void 0},showText:{type:Boolean,default:!0}},setup(e){const t=Le("progress-steps"),n=F(()=>{var a;return((a=e.strokeWidth)!=null?a:e.size==="small")?8:4}),r=F(()=>[...Array(e.steps)].map((a,s)=>e.percent>0&&e.percent>1/e.steps*s)),o=F(()=>`${Yl.times(e.percent,100)}%`);return{prefixCls:t,stepList:r,mergedStrokeWidth:n,text:o}}}),hje=["aria-valuenow"];function pje(e,t,n,r,o,a){const s=Pe("icon-exclamation-circle-fill");return H(),J("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:le(`${e.prefixCls}-wrapper`)},[L("div",{class:le(e.prefixCls),style:Ge({height:`${e.mergedStrokeWidth}px`})},[(H(!0),J(Ft,null,pn(e.stepList,(l,c)=>(H(),J("div",{key:c,class:le([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l}]),style:Ge({backgroundColor:l?e.color:e.trackColor})},null,6))),128))],6),e.showText?(H(),J("div",{key:0,class:le(`${e.prefixCls}-text`)},[dt(e.$slots,"text",{percent:e.percent},()=>[We(Ve(e.text)+" ",1),e.status==="danger"?(H(),Je(s,{key:0})):Me("v-if",!0)])],2)):Me("v-if",!0)],10,hje)}var vje=je(fje,[["render",pje]]);const mje=ke({name:"Progress",components:{ProgressLine:KFe,ProgressCircle:dje,ProgressSteps:vje},props:{type:{type:String,default:"line"},size:{type:String},percent:{type:Number,default:0},steps:{type:Number,default:0},animation:{type:Boolean,default:!1},strokeWidth:{type:Number},width:{type:[Number,String]},color:{type:[String,Object]},trackColor:String,bufferColor:{type:[String,Object]},showText:{type:Boolean,default:!0},status:{type:String}},setup(e){const t=Le("progress"),{size:n}=nn(e),r=F(()=>e.steps>0?"steps":e.type),o=F(()=>e.status||(e.percent>=1?"success":"normal")),{mergedSize:a}=wa(n);return{cls:F(()=>[t,`${t}-type-${r.value}`,`${t}-size-${a.value}`,`${t}-status-${o.value}`]),computedStatus:o,mergedSize:a}}});function gje(e,t,n,r,o,a){const s=Pe("progress-steps"),l=Pe("progress-line"),c=Pe("progress-circle");return H(),J("div",{class:le(e.cls)},[e.steps>0?(H(),Je(s,{key:0,"stroke-width":e.strokeWidth,percent:e.percent,color:e.color,"track-color":e.trackColor,width:e.width,steps:e.steps,size:e.mergedSize,"show-text":e.showText},wo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[dt(e.$slots,"text",Ki(Sa(d)))]),key:"0"}:void 0]),1032,["stroke-width","percent","color","track-color","width","steps","size","show-text"])):e.type==="line"&&e.mergedSize!=="mini"?(H(),Je(l,{key:1,"stroke-width":e.strokeWidth,animation:e.animation,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"buffer-color":e.bufferColor,width:e.width,"show-text":e.showText,status:e.computedStatus},wo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[dt(e.$slots,"text",Ki(Sa(d)))]),key:"0"}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(H(),Je(c,{key:2,type:e.type,"stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,"path-stroke-width":e.type==="line"?e.strokeWidth||4:e.strokeWidth,width:e.width,percent:e.percent,color:e.color,"track-color":e.trackColor,size:e.mergedSize,"show-text":e.showText,status:e.computedStatus},wo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[dt(e.$slots,"text",Ki(Sa(d)))]),key:"0"}:void 0]),1032,["type","stroke-width","path-stroke-width","width","percent","color","track-color","size","show-text","status"]))],2)}var tM=je(mje,[["render",gje]]);const F0e=Object.assign(tM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+tM.name,tM)}}),yje=ke({name:"IconStarFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-star-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bje=["stroke-width","stroke-linecap","stroke-linejoin"];function _je(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M22.683 5.415c.568-1.043 2.065-1.043 2.634 0l5.507 10.098a1.5 1.5 0 0 0 1.04.756l11.306 2.117c1.168.219 1.63 1.642.814 2.505l-7.902 8.359a1.5 1.5 0 0 0-.397 1.223l1.48 11.407c.153 1.177-1.058 2.057-2.131 1.548l-10.391-4.933a1.5 1.5 0 0 0-1.287 0l-10.39 4.933c-1.073.51-2.284-.37-2.131-1.548l1.48-11.407a1.5 1.5 0 0 0-.398-1.223L4.015 20.89c-.816-.863-.353-2.286.814-2.505l11.306-2.117a1.5 1.5 0 0 0 1.04-.756l5.508-10.098Z",fill:"currentColor",stroke:"none"},null,-1)]),14,bje)}var nM=je(yje,[["render",_je]]);const OH=Object.assign(nM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nM.name,nM)}}),Sje=ke({name:"IconFaceMehFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-face-meh-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kje=["stroke-width","stroke-linecap","stroke-linejoin"];function xje(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM15.999 30a2 2 0 0 1 2-2h12a2 2 0 1 1 0 4H18a2 2 0 0 1-2-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,kje)}var rM=je(Sje,[["render",xje]]);const uV=Object.assign(rM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rM.name,rM)}}),Cje=ke({name:"IconFaceSmileFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-face-smile-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wje=["stroke-width","stroke-linecap","stroke-linejoin"];function Eje(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.321-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-.355 9.953a1.91 1.91 0 0 1 2.694.177 6.66 6.66 0 0 0 5.026 2.279c1.918 0 3.7-.81 4.961-2.206a1.91 1.91 0 0 1 2.834 2.558 10.476 10.476 0 0 1-7.795 3.466 10.477 10.477 0 0 1-7.897-3.58 1.91 1.91 0 0 1 .177-2.694Z",fill:"currentColor",stroke:"none"},null,-1)]),14,wje)}var iM=je(Cje,[["render",Eje]]);const j0e=Object.assign(iM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iM.name,iM)}}),Tje=ke({name:"IconFaceFrownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-face-frown-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Aje=["stroke-width","stroke-linecap","stroke-linejoin"];function Ije(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm7.322-26.873a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25Zm-14.646 0a2.625 2.625 0 1 1 0 5.25 2.625 2.625 0 0 1 0-5.25ZM31.68 32.88a1.91 1.91 0 0 1-2.694-.176 6.66 6.66 0 0 0-5.026-2.28c-1.918 0-3.701.81-4.962 2.207a1.91 1.91 0 0 1-2.834-2.559 10.476 10.476 0 0 1 7.796-3.465c3.063 0 5.916 1.321 7.896 3.58a1.909 1.909 0 0 1-.176 2.693Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Aje)}var oM=je(Tje,[["render",Ije]]);const V0e=Object.assign(oM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oM.name,oM)}});var sM=ke({name:"Rate",props:{count:{type:Number,default:5},modelValue:{type:Number,default:void 0},defaultValue:{type:Number,default:0},allowHalf:{type:Boolean,default:!1},allowClear:{type:Boolean,default:!1},grading:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},color:{type:[String,Object]}},emits:{"update:modelValue":e=>!0,change:e=>!0,hoverChange:e=>!0},setup(e,{emit:t,slots:n}){const{modelValue:r}=nn(e),o=Le("rate"),{mergedDisabled:a,eventHandlers:s}=Ao({disabled:Iu(e,"disabled")}),l=fe(e.defaultValue),c=fe(!1);Pt(r,M=>{(wn(M)||Tl(M))&&(l.value=0)});const d=fe(0),h=F(()=>{var M;return(M=e.modelValue)!=null?M:l.value}),p=F(()=>{const M=e.allowHalf?Yl.times(Yl.round(Yl.divide(h.value,.5),0),.5):Math.round(h.value);return d.value||M}),m=F(()=>a.value||e.readonly),g=F(()=>[...Array(e.grading?5:e.count)]),y=F(()=>{var M;if(cs(e.color))return g.value.map(()=>e.color);if(mr(e.color)){const $=Object.keys(e.color).map(N=>Number(N)).sort((N,j)=>j-N);let I=(M=$.pop())!=null?M:g.value.length;return g.value.map((N,j)=>{var U;return j+1>I&&(I=(U=$.pop())!=null?U:I),e.color[String(I)]})}}),S=()=>{d.value&&(d.value=0,t("hoverChange",0))},k=(M,$)=>{const I=$&&e.allowHalf?M+.5:M+1;I!==d.value&&(d.value=I,t("hoverChange",I))},C=(M,$)=>{var I,N,j,U;const z=$&&e.allowHalf?M+.5:M+1;c.value=!0,z!==h.value?(l.value=z,t("update:modelValue",z),t("change",z),(N=(I=s.value)==null?void 0:I.onChange)==null||N.call(I)):e.allowClear&&(l.value=0,t("update:modelValue",0),t("change",0),(U=(j=s.value)==null?void 0:j.onChange)==null||U.call(j))},x=M=>{c.value&&M+1>=h.value-1&&(c.value=!1)},E=(M,$)=>M>$?O(uV,null,null):$<=2?O(V0e,null,null):$<=3?O(uV,null,null):O(j0e,null,null),_=(M,$=!1)=>({role:"radio","aria-checked":M+($?.5:1)<=h.value,"aria-setsize":g.value.length,"aria-posinset":M+($?.5:1)}),T=M=>e.grading?E(M,p.value):n.character?n.character({index:M}):O(OH,null,null),D=M=>{const $=m.value?{}:{onMouseenter:()=>k(M,!0),onClick:()=>C(M,!0)},I=m.value?{}:{onMouseenter:()=>k(M,!1),onClick:()=>C(M,!1)},N=c.value?{animationDelay:`${50*M}ms`}:void 0,j=Math.ceil(p.value)-1,U=y.value&&e.allowHalf&&M+.5===p.value?{color:y.value[j]}:void 0,z=y.value&&M+1<=p.value?{color:y.value[j]}:void 0,G=[`${o}-character`,{[`${o}-character-half`]:e.allowHalf&&M+.5===p.value,[`${o}-character-full`]:M+1<=p.value,[`${o}-character-scale`]:c.value&&M+1x(M)}),[O("div",zt({class:`${o}-character-left`,style:U},$,e.allowHalf?_(M,!0):void 0),[T(M)]),O("div",zt({class:`${o}-character-right`,style:z},I,e.allowHalf?_(M):void 0),[T(M)])])},P=F(()=>[o,{[`${o}-readonly`]:e.readonly,[`${o}-disabled`]:a.value}]);return()=>O("div",{class:P.value,onMouseleave:S},[g.value.map((M,$)=>D($))])}});const Lje=Object.assign(sM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+sM.name,sM)}}),Dje=ke({name:"IconInfo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-info`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Pje=["stroke-width","stroke-linecap","stroke-linejoin"];function Rje(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25 39h-2V18h2z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M25 39h-2V18h2z"},null,-1),L("path",{d:"M25 11h-2V9h2z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M25 11h-2V9h2z"},null,-1)]),14,Pje)}var aM=je(Dje,[["render",Rje]]);const z0e=Object.assign(aM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aM.name,aM)}});var Mje=ke({name:"ResultForbidden",render(){return O("svg",{viewBox:"0 0 213 213",height:"100%",width:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-871.485,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-75.2684,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(1,0,0,1,246.523,295.575)"},[O("g",{transform:"matrix(0.316667,0,0,0.316667,277.545,71.0298)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),O("g",{transform:"matrix(0.182997,0.105653,-0.494902,0.285732,814.161,66.3087)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.316667,0,0,0.316667,237.301,94.2647)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),O("g",{transform:"matrix(0.474953,0,0,0.474953,538.938,8.95289)"},[O("g",{transform:"matrix(0.180615,0.104278,-0.973879,0.562269,790.347,286.159)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.473356,0,0,0.473356,294.481,129.741)"},[O("g",null,[O("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),O("g",{transform:"matrix(0.473356,0,0,0.473356,192.621,188.549)"},[O("g",null,[O("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[O("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),O("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-49.2109)"},[O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-91.97)"},[O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),O("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[O("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(0.701585,5.16096e-35,-5.16096e-35,0.701585,-546.219,-21.3487)"},[O("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1033.27,615.815)"},[O("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1035.25,616.977)"},[O("path",{d:"M855.598,410.446C855.598,407.244 852.515,404.643 848.718,404.643L663.891,404.643C660.094,404.643 657.012,407.244 657.012,410.446L657.012,543.92C657.012,547.123 660.094,549.723 663.891,549.723L848.718,549.723C852.515,549.723 855.598,547.123 855.598,543.92L855.598,410.446Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(1,0,0,1,418.673,507.243)"},[O("path",{d:"M1088.34,192.063C1089.79,191.209 1090.78,191.821 1090.78,191.821L1092.71,192.944C1092.71,192.944 1092.29,192.721 1091.7,192.763C1090.99,192.813 1090.34,193.215 1090.34,193.215C1090.34,193.215 1088.85,192.362 1088.34,192.063Z",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(1,0,0,1,235.984,-39.1315)"},[O("path",{d:"M1164.02,805.247C1164.05,802.517 1165.64,799.379 1167.67,798.118L1169.67,799.272C1167.58,800.648 1166.09,803.702 1166.02,806.402L1164.02,805.247Z",style:{fill:"url(#_Linear1)"}},null)]),O("g",{transform:"matrix(0.396683,0,0,0.396683,1000.22,516.921)"},[O("path",{d:"M1011.2,933.14C1009.31,932.075 1008.05,929.696 1007.83,926.324L1012.87,929.235C1012.87,929.235 1012.96,930.191 1013.04,930.698C1013.16,931.427 1013.42,932.344 1013.62,932.845C1013.79,933.255 1014.59,935.155 1016.22,936.046C1015.83,935.781 1011.19,933.139 1011.19,933.139L1011.2,933.14Z",style:{fill:"rgb(238, 238, 238)"}},null)]),O("g",{transform:"matrix(0.253614,-0.146424,4.87691e-17,0.338152,1209.98,830.02)"},[O("circle",{cx:"975.681",cy:"316.681",r:"113.681",style:{fill:"rgb(245, 63, 63)"}},null),O("g",{transform:"matrix(1.08844,0,0,0.61677,-99.9184,125.436)"},[O("path",{d:"M1062,297.556C1062,296.697 1061.61,296 1061.12,296L915.882,296C915.395,296 915,296.697 915,297.556L915,333.356C915,334.215 915.395,334.912 915.882,334.912L1061.12,334.912C1061.61,334.912 1062,334.215 1062,333.356L1062,297.556Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(5.57947,-3.22131,0.306277,0.176829,-6260.71,4938.32)"},[O("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(248, 248, 248)"}},null)]),O("g",{transform:"matrix(0.10726,0.0619268,-1.83335e-14,18.1609,1256.76,-11932.8)"},[O("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(238, 238, 238)"}},null)])])]),O("g",{transform:"matrix(0.316667,0,0,0.316667,269.139,37.8829)"},[O("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),O("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),O("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[O("g",{transform:"matrix(1,0,0,1,-6,-6)"},[O("path",{d:"M2.25,10.5C2.25,10.5 1.5,10.5 1.5,9.75C1.5,9 2.25,6.75 6,6.75C9.75,6.75 10.5,9 10.5,9.75C10.5,10.5 9.75,10.5 9.75,10.5L2.25,10.5ZM6,6C7.234,6 8.25,4.984 8.25,3.75C8.25,2.516 7.234,1.5 6,1.5C4.766,1.5 3.75,2.516 3.75,3.75C3.75,4.984 4.766,6 6,6Z",style:{fill:"white"}},null)])]),O("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[O("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])])])])]),O("defs",null,[O("linearGradient",{id:"_Linear1",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-2.64571,4.04098,-4.04098,-2.64571,1167.67,799.269)"},[O("stop",{offset:"0",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null),O("stop",{offset:"1",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null)])])])}}),Oje=ke({name:"ResultNotFound",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[O("g",{transform:"matrix(1,0,0,1,-1241.95,-445.62)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,295.2,-87.3801)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),O("g",{transform:"matrix(0.38223,0,0,0.38223,1126.12,238.549)"},[O("g",{transform:"matrix(0.566536,0.327089,-1.28774,0.74348,763.4,317.171)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(0.29595,0.170867,-0.91077,0.525833,873.797,588.624)"},[O("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),O("g",{transform:"matrix(1,0,0,1,275,-15)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,183.952,-67.5665)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,414,-95.2517)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",{transform:"matrix(1,0,0,1,322.952,-147.818)"},[O("path",{d:"M262.077,959.012L276.923,959.012L273.388,1004.01C273.388,1004.59 273.009,1005.16 272.25,1005.6C270.732,1006.48 268.268,1006.48 266.75,1005.6C265.991,1005.16 265.612,1004.59 265.612,1004.01L262.077,959.012Z",style:{fill:"rgb(196, 173, 142)"}},null),O("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[O("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),O("g",null,[O("g",{transform:"matrix(1.42334,-0.821763,1.11271,0.642426,-1439.64,459.621)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.40786,-0.812831,6.60237e-16,1.99081,-2052.17,-84.7286)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.26159,-0.728382,5.91642e-16,1.78397,-1774.67,11.2303)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.2198,-0.704254,5.72043e-16,1.72488,-1697.6,37.2103)"},[O("path",{d:"M1950.29,1194.38C1950.29,1193.37 1949.41,1192.54 1948.34,1192.54L1846.01,1192.54C1844.93,1192.54 1844.06,1193.37 1844.06,1194.38L1844.06,1282.7C1844.06,1283.72 1844.93,1284.54 1846.01,1284.54L1948.34,1284.54C1949.41,1284.54 1950.29,1283.72 1950.29,1282.7L1950.29,1194.38Z",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.707187,0.408295,9.06119e-17,1.54833,-733.949,683.612)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.74666,0.431085,2.3583e-17,0.135259,-816.63,57.1397)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,354.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,309.191)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,263.931)"},[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),O("path",{d:"M555.753,832.474L555.753,921.408L630.693,878.141L630.693,789.207L555.753,832.474Z",style:{fillOpacity:.1}},null),O("g",{transform:"matrix(0.750082,0,0,0.750082,236.431,272.852)"},[O("g",{transform:"matrix(1.64553,-0.950049,1.14552,0.661368,-1606.78,467.933)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),O("g",{transform:"matrix(1.54477,-0.891873,1.05847,0.611108,-1456.84,490.734)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(1.27607,-0.736739,0.751435,0.433841,-970.952,617.519)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.728038,0.420333,3.52595e-17,0.377589,-790.978,151.274)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2726.83,1873.38)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",null,[O("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),O("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1944.73,1192.54 1937.88,1192.54L1856.47,1192.54C1849.62,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1849.62,1284.54 1856.47,1284.54L1937.88,1284.54C1944.73,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(132, 97, 51)"}},null)]),O("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[O("path",{d:"M1950.29,1238.54C1950.29,1213.15 1948.14,1192.54 1945.5,1192.54L1848.85,1192.54C1846.2,1192.54 1844.06,1213.15 1844.06,1238.54C1844.06,1263.93 1846.2,1284.54 1848.85,1284.54L1945.5,1284.54C1948.14,1284.54 1950.29,1263.93 1950.29,1238.54Z",style:{fill:"rgb(246, 220, 185)"}},null)]),O("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[O("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),O("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[O("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])])]),O("g",{transform:"matrix(1.62765,-0.939723,4.80984e-17,0.173913,-2468.81,2307.87)"},[O("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)])]),O("g",null,[O("g",{transform:"matrix(0.479077,0.276595,-0.564376,0.325843,598.357,-129.986)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.15,1317.28 1767.24,1317.28L1684.37,1317.28C1679.46,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.46,1404.46 1684.37,1404.46L1767.24,1404.46C1772.15,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:{fill:"white"}},null)]),O("g",{transform:"matrix(2.61622,0,0,2.61622,-2305.73,162.161)"},[O("g",{transform:"matrix(1.09915,-0.634597,1.26919,0.73277,-299.167,-62.4615)"},[O("ellipse",{cx:"412.719",cy:"770.575",rx:"6.303",ry:"5.459",style:{fill:"rgb(255, 125, 0)"}},null)]),O("g",{transform:"matrix(0.238212,-0.137532,0.178659,0.103149,875.064,207.93)"},[O("text",{x:"413.474px",y:"892.067px",style:{fontFamily:"NunitoSans-Bold, Nunito Sans",fontWeight:700,fontSize:41.569,fill:"white"}},[We("?")])])])])])])])])}}),$je=ke({name:"ResultServerError",render(){return O("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;"},[O("g",{transform:"matrix(1,0,0,1,-483.054,-445.448)"},[O("g",null,[O("g",{transform:"matrix(1,0,0,1,-463.699,-87.5516)"},[O("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:"fill: rgb(235, 238, 246);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,260.021)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill-opacity: 0.1;"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,218.845)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,238.807)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,257.804)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,329.956)"},[O("clipPath",{id:"_clip1"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip1)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,269.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"112.301",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,265.448)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,268.45)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,271.452)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,124.262)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,420.796)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,419.062)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,417.329)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,415.595)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,413.862)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,196.542)"},[O("clipPath",{id:"_clip3"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip3)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,68.2716,1030.07)"},[O("use",{href:"#_Image4",x:"50.54",y:"56.312",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,216.764)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,235.762)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,307.652)"},[O("clipPath",{id:"_clip5"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip5)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,321.266)"},[O("use",{href:"#_Image2",x:"50.54",y:"89.692",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,243.144)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,246.146)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,249.149)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,101.958)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,398.492)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,396.759)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,395.025)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,393.292)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,391.558)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,171.832)"},[O("clipPath",{id:"_clip6"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip6)"},[O("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,12.6215,1078.27)"},[O("use",{href:"#_Image7",x:"50.54",y:"31.563",width:"112.406px",height:"64.897px",transform:"matrix(0.99474,0,0,0.998422,0,0)"},null)])])]),O("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,192.055)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(0, 85, 255);"},null)]),O("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,211.052)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:"fill: rgb(29, 105, 255);"},null)]),O("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,282.943)"},[O("clipPath",{id:"_clip8"},[O("path",{d:"M1461.07,528.445C1461.07,530.876 1459.6,533.196 1456.6,534.928L1342.04,601.072C1335.41,604.896 1323.83,604.415 1316.18,600L1205.33,536C1201.14,533.585 1199,530.489 1199,527.555L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,528.445Z"},null)]),O("g",{"clip-path":"url(#_clip8)"},[O("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,378.876)"},[O("use",{href:"#_Image2",x:"50.54",y:"64.644",width:"112.406px",height:"46.365px",transform:"matrix(0.99474,0,0,0.98649,0,0)"},null)])])]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,218.434)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,221.437)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,224.439)"},[O("path",{d:"M1480.33,34.813C1480.33,34.162 1479.7,33.634 1478.94,33.634L1396.27,33.634C1395.5,33.634 1394.88,34.162 1394.88,34.813C1394.88,35.464 1395.5,35.993 1396.27,35.993L1478.94,35.993C1479.7,35.993 1480.33,35.464 1480.33,34.813Z",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,77.2484)"},[O("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,373.782)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,372.049)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,370.316)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,368.582)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,366.849)"},[O("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,185.45)"},[O("clipPath",{id:"_clip9"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z"},null)]),O("g",{"clip-path":"url(#_clip9)"},[O("g",{transform:"matrix(1.36821,1.1849,-2.36981,2.05231,5.46929,1071.93)"},[O("use",{href:"#_Image10",x:"53.151",y:"30.14",width:"106.825px",height:"61.676px",transform:"matrix(0.998367,0,0,0.994768,0,0)"},null)])])]),O("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,183.729)"},[O("path",{d:"M84.299,1269.38C84.299,1261.99 78.301,1256 70.913,1256L-56.874,1256C-64.261,1256 -70.259,1261.99 -70.259,1269.38L-70.259,1376.46C-70.259,1383.85 -64.261,1389.85 -56.874,1389.85L70.913,1389.85C78.301,1389.85 84.299,1383.85 84.299,1376.46L84.299,1269.38Z",style:'fill: url("#_Linear11");'},null)]),O("g",{transform:"matrix(0.407622,0,0,0.407622,47.38,278)"},[O("clipPath",{id:"_clip12"},[O("path",{d:"M1461.07,554.317C1461.07,556.747 1459.6,559.067 1456.6,560.8L1342.04,626.943C1335.41,630.767 1323.83,630.287 1316.18,625.871L1205.33,561.871C1201.14,559.456 1199,556.361 1199,553.426L1199,559.555C1199,562.489 1201.14,565.585 1205.33,568L1316.18,632C1323.83,636.415 1335.41,636.896 1342.04,633.072L1456.6,566.928C1459.6,565.196 1461.07,562.876 1461.07,560.445L1461.07,554.317Z"},null)]),O("g",{"clip-path":"url(#_clip12)"},[O("g",{transform:"matrix(2.45325,-0,-0,2.45325,1068.82,410.793)"},[O("use",{href:"#_Image13",x:"53.151",y:"58.978",width:"106.825px",height:"33.517px",transform:"matrix(0.998367,0,0,0.985808,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-19.3677,248.256)"},[O("clipPath",{id:"_clip14"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z"},null)]),O("g",{"clip-path":"url(#_clip14)"},[O("g",{transform:"matrix(2.69214,1.16573,-1.29422e-16,2.0191,1352.59,983.841)"},[O("use",{href:"#_Image15",x:"121.882",y:"76.034",width:"37.393px",height:"61.803px",transform:"matrix(0.984021,0,0,0.996825,0,0)"},null)])])]),O("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-15.0786,249.972)"},[O("path",{d:"M1776.14,1326C1776.14,1321.19 1772.23,1317.28 1767.42,1317.28L1684.19,1317.28C1679.38,1317.28 1675.47,1321.19 1675.47,1326L1675.47,1395.75C1675.47,1400.56 1679.38,1404.46 1684.19,1404.46L1767.42,1404.46C1772.23,1404.46 1776.14,1400.56 1776.14,1395.75L1776.14,1326Z",style:"fill: white; stop-opacity: 0.9;"},null)]),O("g",{transform:"matrix(0.220199,-0.127132,1.41145e-17,0.293599,339.708,327.53)"},[O("path",{d:"M1306.5,1286.73C1307.09,1285.72 1308.6,1285.48 1310.36,1286.12C1312.13,1286.76 1313.84,1288.16 1314.73,1289.7C1326.44,1309.98 1355.4,1360.15 1363.73,1374.57C1364.33,1375.61 1364.49,1376.61 1364.18,1377.35C1363.87,1378.09 1363.11,1378.5 1362.07,1378.5C1346.41,1378.5 1288.17,1378.5 1264.07,1378.5C1262.42,1378.5 1260.37,1377.48 1258.9,1375.94C1257.44,1374.41 1256.88,1372.67 1257.5,1371.6C1268.1,1353.25 1296.8,1303.53 1306.5,1286.73Z"},null)]),O("g",{transform:"matrix(0.254264,-0.1468,1.22235e-17,0.254264,329.57,364.144)"},[O("text",{x:"1170.88px",y:"1451.42px",style:'font-family: NunitoSans-Bold, "Nunito Sans"; font-weight: 700; font-size: 41.569px; fill: white; fill-opacity: 0.9;'},[We("!")])])])]),O("defs",null,[O("image",{id:"_Image2",width:"113px",height:"47px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAAAvCAYAAADU+iVXAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABVUlEQVR4nO2aQRKCMAxFxUN4O+9/DNw4CoiTliZN8vPfQlm00ykvP3aQ5fFc11sjy/L+/nx8r3ffm7Fn845jz+aJa23XOJvfs9Zh7NBawv3YrSGtdbj+x10egkFzpRrNt+SSxMgbqkiZJCJDiQDoSmSfdYFJ3JD18GMmcXhDTHUzNZIIXhA1JIJDib0MptqiKbhKzHqQiAaT6IlSFVIiAJQIACUGpLfLhpfIw49Ml8T2v4/JTPySyIJQI3w7JTIYEp2fong3FXWJ3huqCEYSNUlYhZRoyaSCoEQAKHESlqF0kZj9NBgNJhEASgSAEgNx9WfCTmLxpygzYRIBmCORsTIlXxJZED/kk0h+KC1x9E2FKG86qEkMsh8/HG9A6SSGYqAIKDEinUIpUSDDYXiqxAw3JCNMIgDXJTIWYdBJIvukK2ynARit4XASUZ6izCScRFWKCH0BfLM84oTw1Z8AAAAASUVORK5CYII="},null),O("image",{id:"_Image4",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAASeElEQVR4nN2d6ZbcNpKFL5cs9UN1W5bntWxr6XmsWTzLQ7mSJDA/gh/iApWyLalUy+AcnypVJkEAsd24EaQn/T8Yb9+XKknrOuk4pOM4tCyLpkkqpWpZJu170TzPKqVoWWZJUq3Sbx+m6VkX/wjjVW/gH7/sdZ5nTacc5lkqJT6rtWqaJtVaVUrRNE26XGbd3+9alkW1Vi3LrFKq/uvj/KrP4dUu/t3HWkupmuepWVspIcjrddc8z1qWWcdRTusLwc3z3Cz1OA5dLouOo+o4Dv3vv15e5Xm8ukX//eetTtOkdV20bWFVkrQsk+ZZOo74Xq3SNMVPqXextYal1lq1rrNqlfb90LrGXP/5/nW52Fez2B8/1FpPiSxLLLsUaV2lfZdKiZiHkHCtuFWPj/73cvpfLDQseNJxvB43++IX+cOvR5WkZQkBbdsh4uCySNtWWkxEuLVKx1HOuLecFjdp3/NnWiYKUbSuAXiOIwR8HIf+55/riz+jF73Anz7VWkq4RSkEI+m0Fun+ftflsra/r+usfY/fATVY3DzP2ratCe3Nm7UhWawv3KzO69PtllJetDBf5MJ++hRHWWu4QCkOm1h4HH2agJuVpHme2ufHUXS5zLpeQ1B8Ns9zu2ZdU3gAJdwxFh3zxjUv0cW+qAX9+KFWhMV/Urg6kCUWcxzpRvlsmno3ehwBVhDKcWRMZQ6uQ4D7HsgI1MrcDIT/koT5IhaC28T17fuudV0bWAmhTJ0QpN56ti1cq4MXSR1wiWv6+ChJ12ukGpJaunG5rJpnad9rm+NyWVRKgqiXQhQ8+yI87pEicDQIRApAg3US60gvPPYhbBceqYTH17DEo8VLSVqWTFGmKdKOZVm0LDKlqIaEQ+GeO798tpu/fV/qPE+nCwwLiwNVi1FhCaUJIFxbury7uxAiwrled0k6Dz6F78J2FgcBk2qs66J9T/QrpRt2MoH7RX6ZXuO/Py3Pcp5PftMffj0qdBeHF4AlXJwU4ETSGavUMSsAD1AlqYDHvut1P61y6QRPMg/g2bbSudnJvCNCgmsFQKEE8Z2p+1x6Hi72SW/47mPk6/u+txwNa4vfpw4hYi3Lok7AHBiHCfjArTr6ZE4Sfr+W+aVAqQgVpUCJJBQq1kas7FFxAqTLZdK//fx0wnySG/3LP2sl1uEKU4uX9r1Siu7uliYwhHwctR0y1zmz4gwO80gp3OM4dHe3NqIAy3R36kjX4yvVj31P4OR0HYJluPVOk/Qfv35/YX7XG/z4IVSVQ8d11lp1ucydsNxlLsukbQth4zLnWQ8sA85zWZYm7LCiiFEp7J6O477rOul6TU5VUpdHjgJmL4QDKiGxzmSP3OqJ8d+Tj/0uE//w61EBI57jSWldUk+hxWc9OR1Wk+4WYWNNaD2jlNKsxdMOEnZJ7dC3bTcFmZpQSimNzXHl81ok7tndvAOlW8KXvl9u+eiTAlyoIozuB4DhrAt/w6qkdL3kb1Jymli0xzSH/Vi153QcLqmJX0t6c70erTqyrusfKhPEggOjmGvqANAIxNZ10r//8rhW+WiTkTI4iCDuOGAZ+U8osXWddH+/twMn5iEIeFEswasRkroir49l4cDVhM/Bcshc44LwCkcKZD6tfW75JHN6jRJlQnld+NzzOB4vJfnmSd59rHWMTwEkFh3HeDBxDVaIwB1JjlxofhZCj0pG7bQ9508rIH+bJq6JU/eaYsybaczd3dJVRXCZpajVLhEMua2j5VueIeZxAqNXnlrrNwvzqy/+6VP1s+6Sdnpd/LAYxJ1lWbTv+2mpc8ekeOz5XJINkPEknbSABN/dIfFrniddr9uZm65tPudsGS4gLyqzX9ZTSgIq9iipoWfQKyGm1qyDxn2+DcV+1YU/faqVxbEZL8Iy3AURV0Z2Bgjv8aPW2iyJgbDcejk4YiCQnwEH6gpGuuHxknV5GAApe+rhjBIM0Zs362dJAwTM2uNzNWAnPQRtX1Py+qILEJ4kXS6Tfv89ER6D2ITLjEPpSWjiCL8DXvhezrO0eIhuJILNQ6IqUUqS2lJAfikQKWi01tq5enJBXKQn/SiK57LO3XrvDvdxZgfSAC+xbXvjat3K2a+fyZe42L/0RfI94sO+H11S7ptzwDFCbQcKHuTTitVZhR+g/x13u+/HGaPWJtBucwZOGNQXmddjl9cYr9fjjIlzQ6EolO9vjIHM4Yo65o6+L1CuK76j2b+SlvzhF959rBWEySY9r/IWBxeapJsxgs9gP9y6cHlj99q+9zwow8tRzIFr4l4jqHJkPOaAzOFzOnjy3z3ZZw73HJwRQM/PZZzLz5bwdH+/6e7ucirDnxeiP/shqPN63U1rMo5J6nI/YgiaD9IbUahX19mwI1dHp+6SRvDgBzIWbaHvIu7VB4dIHCwly09es8TF46JZH6AJl4i18H2KyMuS83tbpSvXuk4nKs70ybGBnwWe4XPx8sEf//7zVtd17YAKNJgjPrSNSjqCy5bBjBmx+FyUC5IxghyPM1w75nMIxF0v6yVmjqzQmJT7YaKYYdUJtCQ1ZaKjwNMPZ4ig+dwlxv6mdi2CJm0ZvYafnYcg1jNWSto/3r4v9ZZms/HRlTjKQ0ggMQcCXhPctiwZObr0+7iC8D0npEHCgBuGu0f+/ebN2oTh1ZFQjhAUwvBiMMriB+kpTwi1z1P9++wF0OSAB4HggpkDz+WKFF6uV2z3fljm5IgTM0ZjRqQ2ukKPDSzO3aa7orHhyGONI8FsR8wD8Prfus5dh/donX4PDjYtZ+q8ixecHUl6l/jIf8LYcOC33Dnu2lOQEEAqsKPymPchNnDBj/2yDnwmmnK9h2WEzLhWhifcnvDimm5B5xH0eFwZEah/lw2wMdryuX6sMKTVBnrl87E7oFZ1uagDHPZIDuzC2/eoF+57368z5pPUTDGMUaHhjdnPSNXhacbvO4BrBoNWQEthUQ7NXSNCcHHQYSnxtzjgZFxG7eU+6S5n0856WmJfaOXacKHTef/ZWJ4ERB4BYv0xN4IJ96fu4CC5Y/299W7b3pRx33cdx9GUwKszpFnpVQL8ZQpTT4XILvTLJWuRtVZdLuvpcY4GchAg3wnsQdf7fLJiZ7nucoleTvpViEfRbLurlKJ9P0R9zjcQ2l5PTcxDpIgaLjc/QFvRqlLKqWW90gSY6asBbNoJ5/QYcd3lMneQnYNIIAQhjkLoTAVK21+eQWrF5bI2yO9rZB8BpNxT8GwITExt3kuKpmcPJft+nCEj8QHnOU2TLpelU7JQdhR60gzHSWCPw4kvRNse6Cpb58NNhN/3+MXNp4lmpfk8uIxzjiyzWiCt63JuPONcBPjpVCSaoJhrOQ+otPgUrj3dZ+ynnGWp0lkTQMsbo6KaklYFmYBFuXsOoKS2/rT+uSl74Ae8SQhynjPnDYusZwpVTmFmTJXCC4T7zHXFd0u754zv9aQ6hJDawE1i0nrGtNHNzp3Gx3dDMwJKT6ebqJ2WpSstLb5SPkLYcbhrs66Ma7W7p1sdG5+mqeV2d3f5eFsp0UcKp5nxWuf9lnbYXjCutbbQwz7dK3C4t/7tqBdwlLhj7lgkUheUi/RlXRMLtNDkQuDQ2EwejE6Txh0Gyrpe9xYj0MrrdWtaFDeSKcbcDrBPvp2P7BXBlQPrgtlY16nrYNu2ox22K1Ek7rV5m5hD5uZAxulmM16lN7hcLlpXd9mJavEarBe37fGbGOasUn/mx2mpkPJHM6DoWCgNaHEPSZoxSQIrpr8sKcTQjocVgiAFKPMEyPnb3y7NbXiciU7qkTlJITT/PmM5STaQNzn4Oo6qbStdyoOg2XgSErWzOD+MzHOnM/bXbn2wOl4uC1DUK7S7PI/5/MTL8W/iIvdGwblH/7SXt3hSgMjcc/7twzQFsKhnHOu7zxws3mIWvM/kONRATghy7jbM4XBAaDNaz+/ExQQ2vav0DjMs7+5ubRZfStWbN+tpFRmTwhVu56GGJUfYANpHQTs9TD1jYW3MET2trCNqolCEEXe3bX8Q23wsy3KS9tNZ2chqTICsuB8MkbNEefY6UfCUjA09oeR+TjPBRDhMJj/yZHesQLjvHvnDyHcOcz+525HKg3DgQBB23BNSvafFXPHCivdWe/T0BCKBkEDO5wfrMZ690k7iBLfv2+/Nnih3ZZqVzV6eQ2ca1VOfyAVlpYPuAXf6w69HRTDOSUJ1OUODK4VJyUCftUQqERRnnTz3p47CctON4Ipo9/BnIjzPQ3mc2+WQ6d9hH5DiHJz37XDIsf5UNhTTFQY35uuE4QqFedgoxVhX6f4+FS7z2KPjSsdaLGSF9Afc6Tho+B0tKm6Q7A6jTzN6rXRqzVGVL9gZDRTBm4wkDe0cbm09COO7zsZwyM6lIhj3QOMenT1yxiisI1MtUD50JHO612B/sz04RGbg/UCu3G6lnytJfVaIDIhxKUtPvmkHFH6QuLVbLfmOEhGCF0bd/2MJY/u+Wyqbj8/yIFAsn+9WYXp0b27NiQbVXR/INSx726L+xx5w3azLH/Rx78Y8biBO03nnwB/VFP9UiFI+N4/b+1wNzA8AV0Tux8K8y8sJdCeV4T1HlwPmwn07F+oCxI17DB3LQAyvdXa51/A01Gjld3fe/9P3lUaumUqO1/E+G+ZBuM6fEo+lv9Zw/JeEyHj7vtSE6KW5tlhYDwhwB+5SvGDsKYs3XAVK7J+7cMDi7i0P0d9Tk4/Lcf3Y+uCIGqGS81FZGEEE8SnnDJxwf7+1RN2TeI+3faGgXzfM0RiyvqRb/IuEyPAne/0gvGbn8XAM0qNFjMjSEaWDFag7Ns3fYo5wYR5fODzosh6mZ58se0iXP3VKABd8qyls7FCgQoM38aIwrvXubhXPjYT1hiAvl+WrWhe/SoiMdx9r3ba9FYcdsPATq0MLSV04SEeCoE93yxyAIzxHjMsy6XpNAQaAWdr3cYNYqb/ACEXyZzWSe+1flcKAfPBWjFt9SCPwGoGUdyIg/K99Q8c3CVFK4DPmiuNz8xRzqbGND7k4MMFyvJHJEWBel+4JZcLaoarI/WLusWUkrdJDgIMdVybAjyNp0iLQqgvM+2K5npqkM1ff+qDNNwuRwZNQkiO51OQR+IyFUM+r+mfk+2Ymb5kYXVm3MQMitxDo+HQVa/Jiredmjh79+35fqvUoknce4GkgSEopj/as/6MJkfH2faluhYAF75qT+ke66TDzxByXOLpD4qbnpWPq4vkWvUDjsxOOHhGw9w8FNTbdtGLefeO4AKtjnW6hxHvW+tiPhD+6EBkgWafi0NxMqLMxV1JzO/nSvRDMSGUx3NW5sBwZ8293Y2Mvq6PbsbKQCHlurNDIEI05rOefTliU8n3eTPXdhCipPXQDqPEOs/FgsB7i3mGMgLfCe46aaDIZfY9rntLwaJv0UHnGFAIheC+QP3rnDE78VKsNEoOdTqz1+76Q4bsKkfHjh3z8jYP2eIF78u4zb8N482bV/X0++CllY7ET0t7z6k1bWA6oOL4TPz2mpkt/yBG7O7/VsXeLbXqqF/w9iRAZvCk4qyL9YUk9HUZMcsAwHhYgyHNCrMU5Tql3dQjM06Jb77FhjZ97xM4JArzIND3tO1OfVIgM3tntVsWIikc0JXkJa3y2A+33vM+tydkbKd359Rrm+rlccryPs0kjIxPr7b2HpCd/KdGzCFGKlCRLTA9fTuSVhs/1nYIo/ZAdaY6v9fL6IDVLYh41O3JcrIoOB2I3aQgx1K99ited3BrPJkSGv0k/QU1SXaBIJwPGOOYpRyLTqfs+sdObgD1l8WqL1yoldUwQXgHhS8//xsVnFyLjxw+13mJn/O1Okk5O9eGrouuNup2/+MgRqZeaHAzxXQTtL2tAOUh7njru/dG40QHyPOO3D9ME6EGAPUUWLvH337cmJBJorwyEi0xrTlaIZuVDNCtfr4fot6EXKB9Xyw6+7FxLxXopApRekCX6ePexVtzc+MZhSc1KnEgAzUpZb/SHVp3IdvLZLXPsOhgrM4/Bc36P8eIW5IP/9wWW5+S354hSz6z4+25IJ2BzmCuuiZ+AFn9x4EiKv5QX1N4aL3ZhPqDwvN/H63vENqe6kgbrCXAHObcq+k504w1eovX5eNGL8/GPX4KJBpXi4oh/lLrGd7tRdIUsx7L89SjEv/EFuS9deIxXsUgf8LF9p3a+o3TsO3UOk1eQSLQY5iulqXpIz58yfOl4VYv14awPeZ0XpEnE+Y7Hwuw4ry33k16f8BivctE+/H8/5IBkfLmfv2Wf3NIF/ZKBy5+NV7twH2OVRPJH1fp3vsG0IMTnevn6Y47/AxX1K5XSf237AAAAAElFTkSuQmCC"},null),O("image",{id:"_Image7",width:"113px",height:"65px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHEAAABBCAYAAADmBEt9AAAACXBIWXMAAA7EAAAOxAGVKw4bAAAMrklEQVR4nOVdW2LbNhAcUD5Xkl4scXqxpr0XiX7AQwwGu7Rj2RLV7o8lknjtc3YBygX/Afr2XOu2bQCAZVkAALVWlFJQClAr9mvLUrBt7R4A/Hp++fDA9NAL+PpjqwBQSkF9kVQkOBIFx2vLUlDr4wvyYSf/7blJghanglFLc9q2DZfLgnXddqvl9X/+vDwkPx5u0l9/bFWtTf+q8Hidwt22DaWUXYCtj3H5bPNolvkwk2Xc05hHcjep1yk8Fy4tksSmfH5ZCv768RjCPP0k3W3ysxKFtSwLaq0vAGYZXC2vtefHmKn9Lkv7TKt+BKs89QT/+FnrtnVECYwghuRukfcpOL1N4fgzrZ/umgHsbvfsVnnKiX35vlYFHUpMJQAMwMQtqpSCdV3x9HTBujbXSUUAZmVQa876A84ZL081oS/f1+qAQwGLusx+vz/rSNUtbk5FZvccpSuOdmut+PvnchrenWIidJvAKJRIaPpZY6B+Z/6nAlBrisjjp4KezKWfRZB3n8QfP2tlKuBWAHS0SMZqOFSAwu+R1QA9sVdhupA5riNapUjY946Xdxv823OtHnfIFGp+lv+pZSiaZH/e1gVIlmseCXRBk1SBFO26i6fA7xUvbz4oS2UABoaua699ZjFK25CJ/NzajukBgMmNerzUNuyD1Rw2U6XR/ihAzhu4D/C56YDM+QAMDMqScrUiYMzjiDjVmjT2aTLvlhtZLeOvI9RufWWyRCUt9906Xt5kIFpf5uaUKarlR0jUy2p+X2Nh62+2bi3faaxz1JoBInf1nr/WWm9Sj/3UAb7+2KrHo6hC4gJ0kAOMwMSf0RwwSgu8isNrDpSU1KIVBY9zX+Rz9xAaP3n/My3zUzrWOqdbhLpGPqMuFMhjkGu8pxZRKuE5H0ljYFaC0z60b8ZNutllAbatC1PdcxurPftZgvzwTnWDFuhJdSlzHFOozudGsHBsxeMYc5xiHxm6jdyx11mVojHVkt2zaJ/6+aOF+WGdffm+7hu0zrB9sCC2ULiRNUUF6fa5l9H0GjCX4nRsF9BRPsj2kVC8fyofx88KC5/lYq/uhPt7zni6FFoetZaCjQU2okPgWBBqtXrfXbczmP2qmz7a5oqAVwR6Mkv1Zz3eXpuWvLux7jBwog7bIyKTNaboEjQ+7ZMUl+RQnvdVYTKE6S48AiD6LOepwMmVTfs6Qsw+P1/XNVb5roaa7wFjzIqAgloHidaoRyUiVOruz9MOIE4ZpoVapcfben9ODpAyC9M+dc1UWmCuDGnb9wjztxqo65wXNqcNUVDXeBmdc4kWqsKLQBL78zIcx6U71aMZfa6xW86uOeKOarU6R3fZ6n2y3Bj4vcrPmx789lyrx7QsH9OFXC4F6xqnGBHo0aqJCihzpa+hV33OEWpk/ZGFkJWeh0YVI953ZSU+UIGyzeVSQDDvHgF4m2UePsAiNRmoNUXX9NcOIDkTyJhs0R782/PxZzLAtZ3XNYXxeKhMzRivfbW1XlKX/1oakn3XsVyxXtslSW+q61QNjayv1oqnp+VlMnGVxRnnwEKFQAaocFQx9BkHPWSIV1OyfUUfb2KQeRnPL13wJHWrkedyZY3auSfKrHK6mIEW7YyTd2txbVbw0vuL9/1GxvXPtG510W3xs6X4wtXyiJo9Trml6jo1vqqCaHvOVcd1AWdgz/FFBu6cTx4v9y9R3BsZO2uPCkM1Xl1vhvwi16j967PKKP0cxTMFFC4k9umxl8r2lvlmTPa4TXIBet+RG414wvbqrVhcL9xZ10Hcuo6OO0QD8/MoiNnqdIKZ4pB8AY4ql4VKNQ0zzU3XGrlgjdk6F80ds3VxHd6vto3G8fyTc4x2ftimlLYRXfx9Bg/+RxoRAYMIYUX3IxfdJz6fOHPGt+8Yis9jSjDHnAzRcj56cDg686NziEALKQNdLhQKg89oKVHvR25+2BPVCXECOvkuVGWyl7fmZF7jUCljfNB2nem8P277aIzhuG0BdJ0ag0bm6PEKlQX7dNR6uSwTCGLb7gEU0I0xMFJQzoHt13Xb16BEdE8Z1NpPOyiPW1/kbVOUJy6+MaUMGuaW1jvE3hlJNYptIhfZJ6CId0aL/XhEmdqy7yjuRrlnmz+ZU3amKVCJ5sO+lZlRESFCvbyuSuHgiXzkGN3tLnt7kuIN9zBPFIpqfktkL4NAI4TlVRXVDk6ScYBMIXEBbMt9RUd8ruVdaGXoT4Wsa1ENZ36nCkjk7IwZ4/Wcv+l1pVHZ66R4kZtuAtKxxudU4I7qSylYdHK8p9pNBvRFjh3rgtpkutvRwTtYKnJPraYrQ3OF82I5R3V1zlB3b02Rln1MjtUtYi4ucA0zSi7Wd//chD4K0EOClyL7sx2YqWA7Nhnz4a7kbdyFDSh9jxMx7MYuMHdZFAQnNrYru4A4MQBD+SqD8XroieMrc3Ujms9qfFXLJwP6urcpduv8KVi9766xucMYuLkSjC61DoqrMX/Mr0fF7Ir24k5ZBxy1I/bxbn1uGRHkBub9ui60Lnx+VjfJ/hXWKyR3N6fITZmpcZ9/+wszfc9ThcM41ePQnMwreFJBUYk0DXIBdtc5sGxYp7r+plTtu26PLb+eS9Fis1pes6hZc2gFZEhHq8s+GLWTWtMtaazAaL9kJEmhvgZ7R6M9PleJf8uLhVe48ilq1O+cqwqBHqqHmrIrjzJdleNy6crl6+acPZy4B+S6xnl2DzEAOH7gyywKWrzyoaiwI7h8OyY6/qBWM2rtnJvRerLjGGOs7Qm0H0T2Z9RiIytRiqzHrU7bRWiXbfnXT+dpH17A8KOd6g32io1PmoVvAFjX1VxbXAgYAUpvq2hQ6WhfLXc5M9DxcSOXFjGabfW6CjUqcGTz8XU3IY3u1wERkKc4vn72rWN6IXxWvRfSQngWrFWjfTG+aPZ2lFtFWsrJ6zjqLbQUxTFG1DimGmq97hK1LRALVj2HMz1atyuok3o8XU+0qZ5tFKdCJOm7EzqZyGqUGdGiIgaxjbpMzS3VYltfnEd3tRq7FOFqnOHzylivZWZzzcKB3su8hc5TQ4saQOQu3WCOdvpfFSLQD0VlKCsThPrvvtjxJRqPmd6nMydihraL4mAkkGynnVbrrjD6q3OLGD8x+6AvnyObv+W1uTcJkcSd/sjslZFR3Iqq+srQ6Liiotr2fY4vc/yMT75pm+hsaCk9pXDhZ3E5U+bIUx3FPi+8v2U3X+m3hEji9pW6uKOJRxpHxmg88A1gXfDR+ZouiDnuaLw8iu0TY4LrPjb78L5UOTxsRHxQPr3nDOq7hEjyHwaKDjpFsTJzJZGL3Cdaeo7Fw1fRM1FKQWUBxkIC73Hu0Y8zeExrfcRbVUcuNVN4Heu9h4ivEiLQUawDhkAOALRgsEzxTZ9xrScz94kbkFGA47sb6g5Lab+q0Sw9Pi7ZxxjzP68kqTVyHvxOPmTHULgPClz/YurVQiTpu/fDAAkQcMa6Fkcbq15XVQFGxwd53wGIx0udBxAXFzxdorJkz+kcVMBt7e3vR73r/2FCJPm7GRkgIJGpwJhAq9D8tJ3qicdHLbpHqNaF6CAt3hQe88kIWPn61KXrXwAf/uLphwuR5O/mAzEIUe1u17XwO8Y1t1rdQPb+dQwlzw0jhJmVHCNAlYGkTMCf8U7/pwkRGH+XDRhztAhgROhTBaUC8SqNWjzHygBTlgY4ZejV+1aX6aiT1x7uTWGn6PW3iMmkjBEeWzLk6y7TyWObu9YobrZ2CEt3fN7jfa23+TWNmwiRpL9dE0HwaOdbGeIC6e44P2LpVSG3IHePfiSQlBUAVNDX5nvvpZsKkURhZpYF5AXpKN3gcx6TFDkeKU0Elvg3eukGiBWOz9/6t2zuIkRgfFknQoJRhUaL4wo6nDKAEVWAvBzom9aRq492VIDrXhS9hu4mRJL+LKaDE1IE+9vz84azu9hIgBHAigCOWqgKj6+j8dr/9rfdnHzLi+Qul9eAectHD3rpfbf43maOi442gX5kg5vcFOZZfmUx/mXYO5AyRC3MXWP0mbLUE3BKUWrCds1ix+OPHLe3WXC5XNL53ptOMxElLaz7ybUsufadBY9/fu4mugZgf7vZx6SQz/hvF043ISX/Mdsoz9QYmCX8fMYL0hEqzXLWM1me02knpuRbXsC8tdM+x7vmWmrrQh/P7mgMVGU4A3B5jU49OaXX/i8Gy3N+iizKEbPKkVvsma1P6SEmqeRVH2U8CwGa/wHjXqG++KPWrHniGePeET3UZJX05VhgLouR/H526uxWdc7PoIectBJ/a8B3872yoxvHwHxu51EFCPwHhAjMv/gBzNUYIP5duEeJe0f0L+D749HrhKeLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image10",width:"107px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAA+CAYAAAAs/OVIAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAgAElEQVR4nN2dWa8saXaWn5jnzMjMPZ5T1V3tsrGR+TNIvjAgC+y2uw22bIONzB/gBgkEAowZJbiBCyR+CzdIIHDX0Gfvs4fMjHmO+LhYEbGrrabdQw2nCKl0ztlDROQ3rPWu933XVxpf0+vn/0CpplEAeJ7G83MBQByHmCaczzVx7GEYMI7QtjAMA/f/1tK+yvf+Wa6v5Yt/4+8olWU5YRgCYJoawyATZxgargtVBZoGZVlhWRamaeJ5Gl0HRVFx/I/B1+6zf61e+Ju/o1TXDTw/P3N7e4NhQN8rbFujaUY0TSMMdU6nhjh2GUfoezBN+a/rIM9LLi8DHh8LNpuQj/+l9rUZg6/Fi17+eq00TaNpGjabDZ6noesyEY4jk2BZUBQKTdPQNIgiyHMYx4lpmnh+fiaKIq6vAz799MxmsyEMDboOlOJrMWnv9Au++s6gLMvgeDxzc7Pj+Tnn4iICIElqLMvCMAxcV2MYoOtGdF0HoOs6NhuH47HAMAw8z0PXIQyhruHx8cwHH+zo+2Wi4aN/8W5P2Dv7cq+/OyrL0jFNAQhl2RIEDtMEwzDRNA2GYWCaJrZtcDwm7PcxVdXQdR37/Ya2HTFNg7bt6LqOi4uQpoEggGGQnFYUA45jzvcdiWOD//GP3s1Je+de6uf/QKkkqXFdlzDUyLKR/d7g+bmfJ0Yjy+T7fd8DEAQ2AIYhIbGqGkzTpCxLttstcSwTrhSk6YjrGuS5THZZllxcxOg6uK6EzjiWifzv//DdmrR35mVuf6tXlmUyTYqqqthuAwxDBm0YBCBoGjw9CURXSrHbRUyT/P4wTLiujq5DWY4YhsHbt2/58MMbHh4KXr8OOZ8nlFJM04TnWVRVh67r6LqO7+u8fZsQxzGGAUVREwTeO5XL3okX+cU/VCpNe7quw3VdbNtgmmQnBAGkqYSq5+czV1e7dVeM40gQuOuEdV2P61r0vXzBsnSaRnZkVVVomkbXdWiaxmazwTDk44+jQinFOI64rkXXCbLUdZ0ggKendwPqf6Uv8Oo7gxrHkf3eJk0FHBiGhmVJ2Hp6EmBR1xPavMCTJMGyLDRNIwgC6rpmHEeUUmy3EXXdst87VBV4HhTFhOPo1PVAFJn0Pei63B9kxyoFeS45sW1Hmqbh/fcD2lZ28+Njxe2tT5Iovv+n+lc2Zl/Jg3e/lisAwzC4ufFmiK0wTY2qahnHEd/3sSxBba7rMk0Tr14FVJUMcF0LPO86uWffy78fH1s8z1mfVVWyC+PYommgrjtc10bXwbbh+bnC932qqsLzPDRNI0kSwjDEtk0sS+6tafJf3yt8X+N//ZMvPzx+qQ/8xt9RCgR1WZZBVTW4rouuQ123dF3H9XXE+dxydeXQdTIxaTphWfoKApJEQMfpNLLdSsh8fq4YxxHLstjvXepaQmieK6JIo65hGGRBLGiwaWQyHcdhGAa2W4tpetl1SVLiui5ZlrHb7VBKYRgamw0cjyN3/8b8UsdP/7IedPG3KrXdwjQp2ralLGvC0GW3g+0WqqqawxlomsbxOFCWE30vNVPT9HSdoq5hszE4HgeCwJjBwIRpmrx+HXFx4ZIkHY4jfGDXdYyj1FKGIbTU+TzO7MbIxYVLHGsMw0Cej+i6TFLfw/vvB2y3Bo7jEEl5R5YVvH3bSH77lUe1/Rup+rLG8AtfGX/p7yk1jpAkFWHoM00CsR1HcsfjY0UQ+KRpNoceHcOQHVUUijjWqCqYJil6o8jANOGTTxLeey+maaDrJrquw/Nc2rbDcWyKouT6OkDTIMvkPkmi2Gw0jsduDXv7vUNZQlEUbLchj49HXr8+rCVA27YEQYBpmozjOIdUeHrqmaYJy7IA2G71L7w++8Ju/kt/pFTfQ12P9H2PruvEsY1SMlF3dxWvXvlkGWw28uGVUvi+jWHA8SiDl+cVjiM5KAyNleuzrIVOGpkmgeS2bWOazPBdBvPyUn738VFyl6ZpuK5J3yssS8P3hfRdCuhpUniexjRBUXQz+2GsTMeSv2ybmd3vsW2ZsGGQ+PlFhcfPPQxef7tVv/zHStU1pGlNFBlEkQtInkjTjrKE/d7n/r7G8+D+vp4LXpthgKoaiaKQYVDouo6maWy3BgB13VPXik8+OdO2LUmSsNtZTJNwgAtpOwwDYejQNHA6DTPMt+j7nr5XpGmK5wlQUUrAjiwkYebbVhFFNk3ToJSE7+MxZxwnum7g/v5MVUEUWXRdTxDAdmuQ5znv/231hYTGz3WyXn93VI5j07ZwOiV4nkdZKrKsZr+3CUPwfZtxhDzvKYqC47HB9z0MQxJ/FMlAx7Hcs65r+r7n8bECIAyteSJCuk6K2rKUwfZ9naIYaBrwfY++l/DbdR1RFOA4cH3tsdlInfX01OD7EpYNQ547DLKDhmGgaRS+73M+SyE+DAOapnE4mDNDUtP3cHtr0XWQJAPvvy9F9eavJ+qD3/18J+1z2a7X324VgOMI7XM6nQHQdZ3NZoNlCYL63vdSXr3aUlUSMmzboGl6qqpis9lgmhpJkq/E636vkabQdVIUN00/k7fQNBJa27YlDP0VtpumCcjAWpZFGOqkac9mYzEMzEVuz25nUZbQNO2aj2zbRinZdZeX8VqTLXVf0wwYhuxw09RwHAmhris5tW0VYaiRJBLSlVJ4nkPTdDz8e+dnHuuf6Qa7X8vV9XWIZcFHHyVzYbrFdfWVfTif1YzIRnY7n7aVAQCJ/a4Lb9/mRFFEXdd4nkdVCejoup793sKy4HhU6LrIH6dTwqtXMVk24Lom4whFUc7PD9E0Zgguz7ZtG8PQqKqGvu85HCK6DsqyxDRNHMdZ0eMCfJoG+n7g6srk6UlykYANH5CclSQ1tm0TBAZv30qxHscBXSclwgI3TFNy3c/K6v/Uv3z567WKY3fl4ZqmIQhc6rrjcLDpe3h4SLm93a4F7MIqZJmiLEssS0Ka7/szoRry9JQTx4KTpwnqull3y7ID0jTl9es9b9+m2LaNZVl0XUcY+tR1y/W1gIqylHukqYSxzSZkHBXDMNC27TyJBpZlcDolXF7GaJrsEAmJA77vEYbyzn3fs9lImJ8m+bfr2uu7Sn6THRVFPmEoIGgYhIGxLA3DgP/9T3+6SfuJc1b0187qm7+j1OWly/lcs9sJlHYchywrVz2p72G/3zIM8nt5Ln+ezwNxrKGUwjRN4jjgcNB4770Qz4M4juYBG5gmNSNEk67r6Pue3c7A9/05pAXYto1tm/PPQRg6HI8jeS7vUNcdnucRxyF9/8L5tW3LdmvTdR2GARcXMVXVUxQdti1j+eqVx/Pzcf3sSikeHzMA0jRlu7Vpmo7n5xOmCRcXLlHkYZomeV5xOo0YhnCURVHg+/JOr74zqJvf7H7ifPZjz/B7vz0ppdScrF2Uku3dNPIhNE2jqiouLnzGUVZaWUrN07YdFxf2al4ZRzgeG4Zh4OYm5OGhJAwDxlF4vDR9get5nrPbCdooipKLi4Dz+QWGT9PEdmtTlhNBoK9C4kIPCZID3xdC+HAwub+v5h1lEQQ6SdLOSHSYw6KEsK57uUfbdrNtwMJx5BllKWHQ9405Cgzouo5t63TdRBjKwjVNuL8v8TyPpmnWksVxZPw++ZMfb6f9hTvrw99X6hf+rlJZlqFpGp7nkqYVVdXx9JSTpikguSeKfE6nBtuWiYoim74fmKaJuoaHh448Z4buAufrGrbbYKaREspSapv9XuqbwyGmKEpME3zfp2nkd7MsI45Ntlt7DrM6x2PFOC6c4Uhd9+i6TPLjY8luZ/LxxwkAlmWRpum8++p5UGWH6jo8PCSM40RZ1ozjRBjKLpSwquj7kcPBmxeMLEDPM2fKC8JQ5/4+pSwVaarYbAKqShbhQoVlWU/X9T821P+Rk/X6u6MaR6mPvvWtLbouRSSI4HdzExGGIaapMY4yQI7j8OmnCZqmEUWsVX8Uwc2NvSZw4flcum6kbUf6njnW27RtS9+/cHSO49A0I0GgMU2KcYT9fr8O0jAMdB3Ytk3XQZoKEnVdi6YZub2VcFmWsNvFXF0Jcbvb7ajrnutr2bmbjYZl6bQt3N7GGIbOxYXH4aBTliK1TJP8XF3XGIY8p+tk8ppmxLYtzueGuoY43hIEkqvO52z+2W7O5xVKKW5vLTQNfu73lFpQ9f/r+qHbz/qr9+rDD28YBkE8mqZxdeVyd1dwcRFi27K6hmHAcSzOZwESDw9iD3McDaUkPrvuwihIQnYcG8+TuibLFK6rkeeyC7tOVNokEUjteQ6nk8j1SskOCYIAXRdEeDjEKyNSVeJyenqS+s5xnJmyknDrui5RZFJVijzP2W43lGU112cOeV6x3/v0vYTMtoXHxwTf99ls7DXcPzw88OrVDUVRYds24zhS1zWHQzwvnhc5x/MEUCyFN8i96/olvC6k8v19MpcvOn3/w0niH/hC+KsntdvtZugrDPM4KrZbjTyXAZYQJ1SNhBjxN3zwQcgwvEB1WTUuZSmUU1EU7HbbFY3VdU0cb6iqBt93KQqB63kuyO2zxpcoivB9g2GQiX96+qym5dP3gmIOB5OyhCQRm5llQV1PxLHO42OzcodRZK8KdJIUKKUIw5BhGFZRU9O0dZJlMQitFcfCzJ9O9fw9bd79gnYXrWwcX+ist28rdjt//nvLdisLqSwlFwpQkXquqiRvRpF8/7NKtQbwwe8q5TiQpsJzaZo8XOCo1AwgyEoEQgPL0lY+7XxOuLqKSdMa3xcXkePA8VgzTRPX18G6A85ncRgdjx2bjXCFCwgYBlkMS6gcR7i/zzFNk7Zt8TyP16+FQioKIV89z8OyjHWVlqXcbwm/4ziuueLy0uajj8SGJpKIQ12rVb8KQ4u2lR0kphsHTRP+b7+3yHN5pmVZc8h2sW1517Zd0GdDXYvzStd1HMdhuzXWiWzbkTA0SFPR1dq2xzAM0jTl1asdZTlhmjrjqKjrGsdx1l2m/ZV/oFSWsdq08lyI1ft7QTq6rs+eBYHowj4M+L6JbcPp1BEENlUlrECWTUSRzt1dShxvGQZRgPu+ZxxHwtADpPa5vAxnmkaK4jiGLBPpQrg84Qo9j3kXy4TI7pYdGwQGeS6DWZby/U8/TbBtmzj2ybKGsizZ7/fzhLtkmTwvyzJev96QptOsWcV0nZhwltJCPBpwPqdcX285nSo2G5++V+tOdBydthXH1cWFT1lKydE0DTc3AooELcoY6LrOMAwcDj739xJql5C6eBkXt1YQyOe2bdAXo6Ss4oq6btcJCQKDYRjYbAzGcVFoayzLpK7HWSey6Hvh7N68STEMna4Tri7LcnRdRylFENhEkYemycDHcbjunu02IgzhdJrWWmgphA1DVm2ajmgavHmT8NFHKboutU6evyT+/V5W99VVjO/7KAW+73I4HCjLcg1pcRyhlMJxnBnF6ViWhW0LMXt5abHbCdAR24Di8nJLnvdcXvqcz1I0TtOEbctkmqbObuevoXu71TkcfO7uCqZJFGZRqxtcVxaSbcN778WM40iWZRiGweOj3PvqKp69IRIeTRP0slQUxTCHPmf2IahVCGya5geS7n7vMU0KxzE4nxsBJJaEy/1+S98PZFm91jGyKwUxDQNkWUWeN2voEGGx43zu15eWUKtTlt2cv8A0DYZhJIoibm+3WBYcDvsZTWmczx2nk8T2cZQoIQ0JPZoGFxfhCsuXLOB5Ds/PFedzRRAEPD1l1LWi70VLMwyDIBB4Lova4ulJgIXjaBwODsMgu2ah0IZBFnRdy9d3u5CybHFdjdOp5fXreJVXJMf3OI6DrutEkcyBUswLRyPLJpSSn9Vlpk08T1ZKkkiCD8OQtpU/01TY5b6XxBqGGk0zcHUl3ogXWM3skHWpqgrXdbm8NGYxUQrNqyufw8FlGCR+L+Kd48ifu91uDpkTrmtTVR1ZVmNZsNsJrVUUE3kOux3c3QmYsSwLz5OFs4Tn8znFdS2mSdgNIWtllSdJQt+PRJE/85Adt7cbgkCjKCRP931P2/Zst3A+J2ga3Nz4aJpGWfZzflQURTtrW6IMbLfbWcHuOR4z4tjh8VGose9//8zpVJGm/ZyrRYv7xjdC7u8lH55OCXUNd3fZLP0IwNEOf7NUC+sgtY7krDRlVVOXLg2ZWBddXxjnabV3Lbxd3/c0TUMcx0SRwfEoqElW3UCWZWw2G+LY4nwWVsC2rRni9mRZNsvoIUEgFb5hvDAiS/ja7eDP/uzFmqaU4vra4/m5m8OnQd/3DMMw+wJ9np6eME0TTdP45jdjigKyTJiFKNLpe1nBS+gRH7wiy7LZpxjT98PMZBjc3yfz38MZlhtomoyLMBmSb9++fSF8FyI7z8Woo2lSpvR9z8VFyPlcz5KRLOZpmnAcWYjaYlNumn71zJ1OJ25uLgHW9plFUZWXkUnbbGQwxxEeH4/s93tsW3ZQmopJMgjg7dty5vVi6loMKotnT9fh+VlI1CU0+v4LU11VkqzP5zOO43A4hOS5wF0pxGVAl8vztJmz9DidxEL25k1BEAT4vsbxWBFF/uqL3++1Wf4QdTkIRErx/UUsbZmmadbHBmzbZBgkVzXNsOZWXWeWbsY53ztUVTfbDTxc18B1hRsVf6KzSi+uK97EIPDRdXn2w0M1q+sueT4DE8PQGQaF686zp2lcXFzQNBLrP/nkiK7LRNV1MwuELuM4znWCmgFDPPsbsjlceLRtP/Nr2oy+cm5uXA4Hjb4fqev2MywFc64oSJKONFWzu0m6R0zTxHVdDEPYk9Oppm3VHIYbDEPD8zSSRMwsAqV7qkpCeRRpFMU452XZBV3XkSSyQNpWEQQWx2NOlhXzTh7nWs6b84hJ28rAdd1EURQ4juSoMISuU+vC6bppLTeapqHrFEky4jgmwzBg26xCZ9PA7a1ocraQ+Fxe+nPBrdjvLbZbV+imzUabfd6KoijQdY3NxqIoGl6/PpDn1Sp9C3qCKDJ4fj6jaRrPz+lniladp6eMqoI4lrpFaKBOaoa7isfHgSgy2G4lmb56FVOWzDkkpKoqTFOjrru5PnN49WqLpmmzaRMuLz0cR4jc3c7j6em4vuP1tWha2+2WPJe6pyjAsowZaUqxfH3tEMfw+Jiy2Whz2PJo23ZGlwKSzueUNE1xXbBtsQbYtr7SW+M48sknCXGsURTFHLrElp1l2Spquq4xRzB3DrkTRTFwPCYkiXCIadpxPIr14fY2mEsIyX9rdfxLf6RUUYjOdHkZkiQtUeTMiGrAssw11CxajoQRk/N5XF9sAQy7nb+WBOKulXadZcX7vkWaVtzc+PNASjhI08U2JtJ/HFsoBff36YzCHJqmYZomwjCc2fF+VYa3W5MkEfV5yVXDMHBxIS7d+fVoGoH+oiZL7ghDef5CChyPJZtNQBiymkvzfFhFUssyOZ3OxHFMWZa8ehXy8CAOYc/z8H2Dh4eE29uYtoWm6fA8e65XpUYUEfOFohJ0LX+vKvn5PBf79g/QTe/99qQ8TyPP+1WgE1len7sw1JwIhR5ZFFnPg48/lmTfdWrt/kiShIuLA1mWc3sbUVXC6d3cxNS18ILCM76Ic54nAzkMwp6/fSsTKsWyTHKSlPK+7wWzfCE5482bZGYWIjYbE8OA+/uCOA5n4CBq89L8YNs2fd/jeR5ZlnF1teV0KmeNzJpRsZhKNxuDspR8soAe8XgkXFzEFIV0W3adjIfY7xr2e5eqkp/b72NcVxbMxx9L4f76tc+bNxXTNHE4hLMFrub62qMsf1Bd/qFE7vW3W3VxYfPxx0LNyPaVVhmxNBe4rsswDFxfuzw8CL8nu47ZFqZxPhc4joPrWivddDxWbLc+VSXU1uKB2O8NkkTNZpiXnxeXVMnNTUCWiXVZdkU2W6xNsixnv49WC/WnnyazsBnSNOJxf3jIuLraoGmQJC23tw53d/Le0/RS4I6jLELDWDzwNZuNmG+macIw9BURGoZBXQuYEZpKJsX3fS4v7bWrsusk5IHoc9/85pb7e6lFw9CmbcX+JjRagW3bP9Sz8SNFL/dXHtXFxcUqyi3EbpIk3N7ueHrKORwimuZlGxuGwPrvfe8tH3xwQ1VJK87iim0aOJ/Pcy2i43mQJB2WZeE4Ur9EkbUW0GHoE8fw/Cwf1vd1hmGRRl6oLN+3aZqBvu8JAo9xlETvuhpFIQtjATFSZE6z1yOY/YUG9/fC9KephOyFXpP7QFGM+L6B5wlhLbltWkGI9IcpLi+liBZ7tlBISdICzKDE4fY2pCggzwt0Xef2VqLHjxIif6Se1fzXK+37f6prCyEq6rA228BEjxKI3X8GlS3o5oY8l0Q8lyFzp2GBaZr0fc/5nJDnQrhO08T5XHJxYVHXiq6bCAIfzxOzzOEgWlBRDKRpObMZxsyE27guM1vt0TQdbdtSVRVVNVKW5QyH09nvLjWk7/trC1CaCqMxjmr2lKjZONNiGHB3dyYM5et3dxVBoLHdujiOQxx7zAgeXdf45JNqNd90XUdVKaLImZVpcfem6UTX9VxdhbP/Uf2FivGPLevf/lavxnEkihzqesRxDLpOGOKlvgBmuf1Fspa6TAq9um6wLIu2bbm99TmdFh5Q53xOef16uxLBDw/CpARBgKaJ1CCrmzVESn0npGwQQJL0lGXJbhdTltXqbNrv/dVSIMy/7Ib9XuPTTyWnWZaE8PNZdvMwCPQW86m1cppZJnJHUfT0fc9+768O3cfHdmbahWfsOmZILwtFhFoBFVnWcnHhkKYTb/618WPNw0/ssvm531OqqiRUSfErjMF2a/P0VHB9HfL8XHN15VFVUFXtHJqCub5Y6jl4eCjm5jkhYpcicRzVGtocB56f61lM1ElTETiXGL+gvsUDcn29o20FvLx9K/1dWSbhCiCOPaZJNDEhdh1cV6Np1ErcfvjhjtNJ7h2GPlXVEIYuWVZxOPgUxThbD2TXAytRvKgLi3NqYdilTpTnOI5GXf/kXSg/tRXt6jcatds5ZNlAGJorKmuaht3OpW2XLvh+RjpCej495VxeRiRJQxRJu8/xWLDbhZzPBVEkMdOy4HyWMytAEr4UlQZl2a4OJSmUDYpCWArD0EnTjJubzbxYRNJYitRhGNjtIvJcdjvIbhP/vRhy7u7On+EoRzzPJQzh6amZuU/xMmZZtxpbF5/7QjjbtsEwCHBoW1G5bdvm+tr6qXuVf2aX6F/++0rJJEnyrSoRJIXYlGTq+xZdJ6v9fK7mVWYTRfDmjfzMxYXFRx+d125GOadCm3WrmosLj/NZtLOuU7MPQpiCpTkhihzKsl9lGYA4Nueww9pDLMYWKcLD0FgprbaVRSCuX52yrFYuse97osinqgRJns/LCTYiNEoXypY0TWeUKnLI5aXH83OzaoOf/quf3uj5udinf/mPpWPk6Unif5IUvP9+SJqKRLEgSduWvJAkFXHs0zQCl/v+Bbm1LatAB5Kg5XvCNhgGPD2p2e+3AB9h3S3LWOX052epa8TTCHd3+SxDBKv7Vu4riK8opEl8IV2X0LrbidD58HAmiiK6ruPmxl89KEFgzfodlKUYXZUS/tTz3PUZn0en5OfamvLeb09KQp5BnktCXpqzP2tpLsuSzSbkdEpm352P677UJGUpk1nXUowuRPLiUxgGGYAsm6jrmv0+4HgsOBzEzHN/L+1Ci1IQRUIoPz8LUfvmzRO6rnN9fZhbTyXnSDuQuy6WIDBWqJ9lEqIti1VvWkJ9WU6cz2cuLw+AfEbZ6Qb/8x9/fj1bX0gf0TJpfd8Thu6aH3xfEJthGGuN9fwsSXwcpZAWL4bi+fmZ/X6PruszMdtyOATkeT9bzPrZhLOjLKVoXgjZaRKJ4nQ68fr1AcuSfKfrOufzmffe2895pCaKPBwH8nyakZzk0JubkDwXXUuUXmHcXfflqIdPPz3yC79w4O5OdpGgYvHfT9Pnf8TQF9ZMd/UbjdpuRQZ4eKhm+O3N/cPdipSyLOP997eMI5zP3bqq+75fm+kuLvx1hy6QuG1lwNp2YrvV5w5IxX4vH0kpePtWlOzt1uXhQSxqfd/zjW9IiO77ic1G5/m54fLS5XTqubiw1ibyYZAdE8/9R8LMmPT9uDq0ttvt6nHf7Xy67sd32P6k1xfepvr6u6NaTCdNs8j0+io3RJGF6wqt1PfM9ZI0iKdpznYrTQrL15cmiO3W5XgsaNuWq6vDLOP0q74kjXVyFBC85MHbW4ePP5b7iggou35RbTVNI4417u7KuRbzSVOZvLIUoFOWi7G0WwXEsvziz8r40rrNlxNklILj8cirV4f1WATTlB2T5xO+r5PnPYeDWL/O5wTDMNhsIoZhXLs0tltr3lmsNdrzsyjbck9Rt4W81Wcm5AWJ1nWL4zgrk7H0MS8uX8mfPZ5n0bbjeqCKlCbe7NUQ0+oXtZP+/PWln+Xw4e8rlSQyQHVdz40A1mxFlhDXdf0s95ukqdRlZSmtPldX+zUkLpY1zxPTpijHclLNe+8Fs2AquXMxhcqgO6sBaJFFhkHAzCITXV+Hs/dBmPoFVb55I7LK0qZ0+k/hlzaGX8mhJT//B0qlabNyi0tH4vEo0FfafWRGgsBeqaCyHFe/uFILdA6wLI00FWu1uGuFSLVtGVzf9/E8a0Wjcp6FPnNzFlUFed4xTRP7vYvrwsODyDHLwsiyksMhIE2lFnv77+z/vw8t+fNX+Ksntd/vVmtY2/azVGHjujLgi4zuOA6bjRTJYfiieS1HNeS5eBjKUsBM0zR861s7zmcpxstSjKnzQWozky8F/HYr/vqlt3ix4rVtSxQFNE1HGNqUZf+VTNJyfWmHlvywq/gve+2TP9E0yQ8DRVGsO0aI4A7ft9ak//QkHpCPPz7PTW/Mztd+1paa+SxcjziOOZ/FmZTn3Xw24dLoPc4yy4jvC7sh8jucTvIOeZ6vB0q6rs3/+Wea9lVOFLwjp6It1y/+oTzw8moAAAHYSURBVFJl+cJOLBrZZmOQ52IWTVOxQ4vxJVhdUkqJoadtWyzL4nDw1zZWOWjEnk+gfhH6kkSOrNM0+V3fd9fifQE9bQvf++df/jlNP+x6J17is9f1t1slsNtc/eJRFK2+jEWUXPyMy0Eii31rYfhBmtsk1y07zqTr5J6CEB36fmS3M+beXykZyrKmbVvy/7x7p8bnnXqZz17f/B2lmqabpXRhuhf6yLZt8jxns9ng+8I6LKzC6TSujLznuSuh7Hketm3MLMo4d+2LMzjPO4ZhmPWp7Tt7Vu47+VKfvV59Z1B1Xa/Iz/etGVio9biE5aihpVuy7wWG17XkvcPB5u4un21rW5qmY7ezubtL567MkGmSXPlV56Ufdb2zL/bZ6+Y3O+W6FmXZrAJfFFkUxbDmryhyZxVYWAyhgnyaZlxNKLe3Huezms0uL4eN/CRN2F/l9c6/4GevX/ojpapKitMX1gPyXDjA5WyLxUMoNmWXzcbg8bFkuw3WBkA5zvXLPzPwZ7m+Ni/62Wv5/5Asx4W7rs3pJK2rV1fB3GB9nifKo22Fxlr8hVXV8vgf3K/dZ//avfBnr8tfr9UC1a+u/PXM9udnYc+zbPH+vfx/Sx4eHuj/2+3X8nP/X8+jjAy2QdiEAAAAAElFTkSuQmCC"},null),O("linearGradient",{id:"_Linear11",x1:"0",y1:"0",x2:"1",y2:"0",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-118.47,-106.79,210.785,-180.125,69.2121,1372.7)"},[O("stop",{offset:"0",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null),O("stop",{offset:"1",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null)]),O("image",{id:"_Image13",width:"107px",height:"34px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAiCAYAAABY6CeoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABFElEQVRoge2aQRKDMAhFmx6it/P+x7Ab64xOmaAG8vnwFnWhiOGFOG3TPsu6vpS0djpuH61zXoz5F3s6r4rRxipiftddeUbp3t18QozEu3/JfdSzgCy5VWpTWcVYSlaPqcvDEUpZQPUdCqUsSAbMoJIViJIVCBNZrO+MHtbjrs4KRMkKBJUs9uXXTxZ7JR2g6ix27sly6BIxReIOHdpZWevoNe68y2DAmTVXFmDBAB9pJ29nBYRCln5jgkVyv1QUsrIAJyvtvg1F7iGykF/KlniPG66zKDCyWLI2IqwOJSsQz2URbqZEpTorEDCypn6xnciVYT+SlbS+08Zt01lJfv7xBmYZLPpgy6p/pA9gyxIArKMLXxexLNiBCThLAAAAAElFTkSuQmCC"},null),O("image",{id:"_Image15",width:"38px",height:"62px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACYAAAA+CAYAAABHuGlYAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAGaElEQVRogcVZSWLjOAwsblIu+oD+/zZ/YC4di8sc7IKLsJzJdCdpXGxLXIACUADpgL8oIYR9jKG/wd/hL+m080uMEb33pwHpR9UBkFLaU7ptW0rBGAOKGgAsy/KjiO3Aw105Z4wx0FpDSgmtNVPqer0if7c2Oee91oqUEsYY5rZaK5ZlQYwRx3HY+J+IsSmOQghPqKhwTO8dIYRvU8yU0kzzEmPEGGNSiGO/Ovh3ABtwQ4UI5ZxRSjEFKBprYwyUUtB7v6H3hQqhlGIb1loRY0RKCcdxIKWE3rshUkqZYsvLHykWQthjjJZZGtwqpRS01ia3MaZCCKi1cj2MMZBS+n1XhhB2brKuK2qtj/hIyeJHkVEypft678g5I+c8uf53FNsBbLoJF6RwU800kirjinM18HXcpxULIewANi5KyDWT1nWd3KquXZbF5tGVmq2qXO/9UzG2f/SSyK3rivf395e1T5/TmBAClmXB+/u7AnBD+7NK5fwoEiE822OM7d7lnBFjtIwlmkSMga97hBBelqRdraTf1SIvnsm1/gEwVBgCfMfPpwQ6UWgj0XGQxgrfeUWJFIO7tYacs20WYzRDPbqkDcZs790U25dl2ai9xoKK+V+oQFEhspzvWZ4kC2DKTK6tCRBjjDtd4RVZlgVvb2/T4lqMj+Ow9yRaRU/Xi/E5nIkUjWLMpZSQxhibn8C6dhyHlRZa6Ru73jtKKbYgDeBmWor8PN2LLmf8JdyLrsKrlV7hp+XeRa01G+/jjaj4hGE49N6ngm/vVakQgqU1N9c2uPc+pTdLjyqpn7qOFz6PMU48RjBsVcaHr/hqPZVZ13XKMn3v+U4zmiWKhur6mpm994diDDwN2BDCxD80wD9TZWqttimfE1lPQYyndV2n32OMW4xp6jI7vGi80CqSr48PRZGGkttSShO/sV9b19XHcjSkmEWKmP5mcKsiipaXs/hjCFCUO1ncASDFGLdXmxJBjRFFk4VbfxNVpRi6h/F2tgfBoRdiaw3LshifeCGPsW3hQsCj/lER5T1SCN3nWd76rhehk0IIGxVQC7iAh3xZlmksUVQC1eMaS5gqRve/OoXXWm/Br0jwANFas3aFStFNuomlt7iZ2aeErUox8Espxp9U1GomgJ0WTec6l23+HcvIWWPIHoytkM7lfYWi7ue21hBZ/9TiUsqUPWcMT746U6rWOvVnOvdVJaAYjeScNwYorSeFeDL0LO838W5WQ/S7ZZ4klc/4eL1eLViZsrVW8z39f9a2eKR8u8Mg93NpZGsNx3FMBxTzEoDt7KCqCcFNtTNVK1+dK1trljxKEWyVfDfLLM05I7Fz1c191tVarbPwLlXOMjecKKWbMtEo/s6s945IjWutBq1apxbpUR94JAkX00Kv8aSuZDZynWVZTCltNs2VHikN/DP+okvOEsCHA68BPFLa3XoujZqFKlqctRx5BfQsSI7iHACWeeoySmvt6eDDsmaIeSF18PbPu5ZjtCroe7+mP01pS+T3tZM4G7uzWGCvpNZpdhExZqx2ptpRKPX47oJoszMG7j2/xoIqx8DU1oYLcxwTxbfkPl5jjFN4MAP53p8nIsmV15G+9yICXIyKcNHjOKY5KjqXY6kc6yzXbK0ZkjFGhFLKzoH2UG75xIIP6xzT3X8HHg3B2TGOzabe+/PiblOfn8UEn3MToqnI6R0GjfOJoOXNcx7r552CLmmMsem1NjdX7uGiSqa6IUWPa2eZzoOtntBVeu8XAP8AuF1D5ZytmKoVFH/0OpNX79St/lMo5uLnJdzvUzXwpk5SiFTpwlv9qnfXYm8F+jHPEPJiaUR21gzTf8fUytba1E2Qw/TcSdECzaS6U8sTShPS/MKOk27T9FXxqKirSBetNby9veHXr182XrL0Q4UokVdInnO0vj1Zc+ciJUV2HloVXON4+axSAJDJ2F4Bn+p6tD9rhbkGkZee//JR0rySlHPelLfOWhUqqH966gFFKYRz7p+fRuhJsRDCaWtNJf1JiJvqkf6E4y6999Ns+6xkbVtIE2enZ0XKX4VzPP5HDP2XGI8B81W5lhTlOZYiV3YuY4w/QshLVJeR/TVOBA0TF49fhpJKptXaT/mSoZlLRa/X67coRAkAdt+OnP2ZLvKtClEy8Bz4L5T6EYUoU2utqGm9+2mlAMz/vunfxHda+HGFKP8C6wW6ett+DK8AAAAASUVORK5CYII="},null)])])}});const Bje=["info","success","warning","error","403","404","500",null],Nje=ke({name:"Result",components:{IconInfo:z0e,IconCheck:Ym,IconExclamation:MH,IconClose:ds,ResultForbidden:Mje,ResultNotFound:Oje,ResultServerError:$je},props:{status:{type:String,default:"info",validator:e=>Bje.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:Le("result")}}});function Fje(e,t,n,r,o,a){const s=Pe("icon-info"),l=Pe("icon-check"),c=Pe("icon-exclamation"),d=Pe("icon-close"),h=Pe("result-forbidden"),p=Pe("result-not-found"),m=Pe("result-server-error");return H(),J("div",{class:le(e.prefixCls)},[L("div",{class:le([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[L("div",{class:le(`${e.prefixCls}-icon-tip`)},[dt(e.$slots,"icon",{},()=>[e.status==="info"?(H(),Je(s,{key:0})):e.status==="success"?(H(),Je(l,{key:1})):e.status==="warning"?(H(),Je(c,{key:2})):e.status==="error"?(H(),Je(d,{key:3})):e.status==="403"?(H(),Je(h,{key:4})):e.status==="404"?(H(),Je(p,{key:5})):e.status==="500"?(H(),Je(m,{key:6})):Me("v-if",!0)])],2)],2),e.title||e.$slots.title?(H(),J("div",{key:0,class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2)):Me("v-if",!0),e.subtitle||e.$slots.subtitle?(H(),J("div",{key:1,class:le(`${e.prefixCls}-subtitle`)},[dt(e.$slots,"subtitle",{},()=>[We(Ve(e.subtitle),1)])],2)):Me("v-if",!0),e.$slots.extra?(H(),J("div",{key:2,class:le(`${e.prefixCls}-extra`)},[dt(e.$slots,"extra")],2)):Me("v-if",!0),e.$slots.default?(H(),J("div",{key:3,class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"default")],2)):Me("v-if",!0)],2)}var lM=je(Nje,[["render",Fje]]);const jje=Object.assign(lM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+lM.name,lM)}}),Vje=ke({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=Le("skeleton"),n=F(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function zje(e,t,n,r,o,a){return H(),J("div",{class:le(e.cls)},[e.loading?dt(e.$slots,"default",{key:0}):dt(e.$slots,"content",{key:1})],2)}var uM=je(Vje,[["render",zje]]);const Uje=ke({name:"SkeletonLine",props:{rows:{type:Number,default:1},widths:{type:Array,default:()=>[]},lineHeight:{type:Number,default:20},lineSpacing:{type:Number,default:15}},setup(e){const t=Le("skeleton-line"),n=[];for(let r=0;r0&&(o.marginTop=`${e.lineSpacing}px`),n.push(o)}return{prefixCls:t,lines:n}}});function Hje(e,t,n,r,o,a){return H(!0),J(Ft,null,pn(e.lines,(s,l)=>(H(),J("ul",{key:l,class:le(e.prefixCls)},[L("li",{class:le(`${e.prefixCls}-row`),style:Ge(s)},null,6)],2))),128)}var jw=je(Uje,[["render",Hje]]);const Wje=ke({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=Le("skeleton-shape"),n=F(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function Gje(e,t,n,r,o,a){return H(),J("div",{class:le(e.cls)},null,2)}var Vw=je(Wje,[["render",Gje]]);const Kje=Object.assign(uM,{Line:jw,Shape:Vw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+uM.name,uM),e.component(n+jw.name,jw),e.component(n+Vw.name,Vw)}}),qje=ke({name:"SliderButton",components:{Tooltip:qc},inheritAttrs:!1,props:{direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},formatTooltip:{type:Function},value:[String,Number],tooltipPosition:{type:String},showTooltip:{type:Boolean,default:!0}},emits:["movestart","moving","moveend"],setup(e,{emit:t}){const n=Le("slider-btn"),r=fe(!1),o=p=>{e.disabled||(p.preventDefault(),r.value=!0,Di(window,"mousemove",a),Di(window,"touchmove",a),Di(window,"mouseup",s),Di(window,"contextmenu",s),Di(window,"touchend",s),t("movestart"))},a=p=>{let m,g;p.type.startsWith("touch")?(g=p.touches[0].clientY,m=p.touches[0].clientX):(g=p.clientY,m=p.clientX),t("moving",m,g)},s=()=>{r.value=!1,to(window,"mousemove",a),to(window,"mouseup",s),to(window,"touchend",s),t("moveend")},l=F(()=>[n]),c=F(()=>{var p;return((p=e.tooltipPosition)!=null?p:e.direction==="vertical")?"right":"top"}),d=F(()=>{var p,m;return(m=(p=e.formatTooltip)==null?void 0:p.call(e,e.value))!=null?m:`${e.value}`}),h=F(()=>e.showTooltip?r.value?!0:void 0:!1);return{prefixCls:n,cls:l,tooltipContent:d,mergedTooltipPosition:c,popupVisible:h,handleMouseDown:o}}}),Yje=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function Xje(e,t,n,r,o,a){const s=Pe("tooltip");return H(),Je(s,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:de(()=>[L("div",zt(e.$attrs,{tabindex:"0",role:"slider","aria-disabled":e.disabled,"aria-valuemax":e.max,"aria-valuemin":e.min,"aria-valuenow":e.value,"aria-valuetext":e.tooltipContent,class:e.cls,onMousedown:t[0]||(t[0]=(...l)=>e.handleMouseDown&&e.handleMouseDown(...l)),onTouchstart:t[1]||(t[1]=(...l)=>e.handleMouseDown&&e.handleMouseDown(...l)),onContextmenu:t[2]||(t[2]=us(()=>{},["prevent"])),onClick:t[3]||(t[3]=us(()=>{},["stop"]))}),null,16,Yje)]),_:1},8,["popup-visible","position","content"])}var Zje=je(qje,[["render",Xje]]);const Jp=(e,[t,n])=>{const r=Math.max((e-t)/(n-t),0);return`${Yl.round(r*100,2)}%`},W5=(e,t)=>t==="vertical"?{bottom:e}:{left:e},Jje=ke({name:"SliderDots",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Le("slider"),getStyle:r=>W5(Jp(r,[e.min,e.max]),e.direction)}}});function Qje(e,t,n,r,o,a){return H(),J("div",{class:le(`${e.prefixCls}-dots`)},[(H(!0),J(Ft,null,pn(e.data,(s,l)=>(H(),J("div",{key:l,class:le(`${e.prefixCls}-dot-wrapper`),style:Ge(e.getStyle(s.key))},[L("div",{class:le([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:s.isActive}])},null,2)],6))),128))],2)}var eVe=je(Jje,[["render",Qje]]);const tVe=ke({name:"SliderMarks",props:{data:{type:Array,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){return{prefixCls:Le("slider"),getStyle:r=>W5(Jp(r,[e.min,e.max]),e.direction)}}});function nVe(e,t,n,r,o,a){return H(),J("div",{class:le(`${e.prefixCls}-marks`)},[(H(!0),J(Ft,null,pn(e.data,(s,l)=>(H(),J("div",{key:l,"aria-hidden":"true",class:le(`${e.prefixCls}-mark`),style:Ge(e.getStyle(s.key))},Ve(s.content),7))),128))],2)}var rVe=je(tVe,[["render",nVe]]);const iVe=ke({name:"SliderTicks",props:{value:{type:Array,required:!0},step:{type:Number,required:!0},min:{type:Number,required:!0},max:{type:Number,required:!0},direction:{type:String,default:"horizontal"}},setup(e){const t=Le("slider"),n=F(()=>{const o=[],a=Math.floor((e.max-e.min)/e.step);for(let s=0;s<=a;s++){const l=Yl.plus(s*e.step,e.min);l<=e.min||l>=e.max||o.push({key:l,isActive:l>=e.value[0]&&l<=e.value[1]})}return o});return{prefixCls:t,steps:n,getStyle:o=>W5(Jp(o,[e.min,e.max]),e.direction)}}});function oVe(e,t,n,r,o,a){return H(),J("div",{class:le(`${e.prefixCls}-ticks`)},[(H(!0),J(Ft,null,pn(e.steps,(s,l)=>(H(),J("div",{key:l,class:le([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:s.isActive}]),style:Ge(e.getStyle(s.key))},null,6))),128))],2)}var sVe=je(iVe,[["render",oVe]]);const aVe=ke({name:"SliderInput",components:{InputNumber:Y_},props:{modelValue:{type:Array,required:!0},min:{type:Number},max:{type:Number},step:{type:Number},disabled:{type:Boolean},range:{type:Boolean}},emits:["startChange","endChange"],setup(e,{emit:t}){return{prefixCls:Le("slider")}}});function lVe(e,t,n,r,o,a){const s=Pe("input-number");return H(),J("div",{class:le(`${e.prefixCls}-input`)},[e.range?(H(),J(Ft,{key:0},[O(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[0],"hide-button":"",onChange:t[0]||(t[0]=l=>e.$emit("startChange",l))},null,8,["min","max","step","disabled","model-value"]),L("div",{class:le(`${e.prefixCls}-input-hyphens`)},null,2)],64)):Me("v-if",!0),O(s,{min:e.min,max:e.max,step:e.step,disabled:e.disabled,"model-value":e.modelValue[1],"hide-button":"",onChange:t[1]||(t[1]=l=>e.$emit("endChange",l))},null,8,["min","max","step","disabled","model-value"])],2)}var uVe=je(aVe,[["render",lVe]]);const cVe=ke({name:"Slider",components:{SliderButton:Zje,SliderDots:eVe,SliderMarks:rVe,SliderTicks:sVe,SliderInput:uVe},props:{modelValue:{type:[Number,Array],default:void 0},defaultValue:{type:[Number,Array],default:0},step:{type:Number,default:1},min:{type:Number,default:0},marks:{type:Object},max:{type:Number,default:100},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},showTicks:{type:Boolean,default:!1},showInput:{type:Boolean,default:!1},range:{type:Boolean,default:!1},formatTooltip:{type:Function},showTooltip:{type:Boolean,default:!0}},emits:{"update:modelValue":e=>!0,change:e=>!0},setup(e,{emit:t}){const{modelValue:n}=nn(e),r=Le("slider"),{mergedDisabled:o,eventHandlers:a}=Ao({disabled:Iu(e,"disabled")}),s=fe(null),l=fe(),c=e.modelValue?e.modelValue:e.defaultValue,d=fe(tr(c)?c[0]:0),h=fe(tr(c)?c[1]:c);Pt(n,N=>{var j,U,z,G,X;tr(N)?(d.value=(U=(j=N[0])!=null?j:e.min)!=null?U:0,h.value=(G=(z=N[1])!=null?z:e.min)!=null?G:0):h.value=(X=N??e.min)!=null?X:0});const p=()=>{var N,j;e.range?(t("update:modelValue",[d.value,h.value]),t("change",[d.value,h.value])):(t("update:modelValue",h.value),t("change",h.value)),(j=(N=a.value)==null?void 0:N.onChange)==null||j.call(N)},m=N=>{N=N??e.min,d.value=N,p()},g=N=>{N=N??e.min,h.value=N,p()},y=F(()=>{var N,j,U;return e.range?tr(e.modelValue)?e.modelValue:[d.value,(N=e.modelValue)!=null?N:h.value]:wn(e.modelValue)?[d.value,h.value]:tr(e.modelValue)?[(j=e.min)!=null?j:0,e.modelValue[1]]:[(U=e.min)!=null?U:0,e.modelValue]}),S=F(()=>Object.keys(e.marks||{}).map(N=>{var j;const U=Number(N);return{key:U,content:(j=e.marks)==null?void 0:j[U],isActive:U>=y.value[0]&&U<=y.value[1]}})),k=N=>W5(Jp(N,[e.min,e.max]),e.direction),C=fe(!1),x=()=>{C.value=!0,s.value&&(l.value=s.value.getBoundingClientRect())};function E(N,j){if(!l.value)return 0;const{left:U,top:z,width:G,height:X}=l.value,ie=e.direction==="horizontal"?G:X,ee=ie*e.step/(e.max-e.min);let W=e.direction==="horizontal"?N-U:z+X-j;W<0&&(W=0),W>ie&&(W=ie);const q=Math.round(W/ee);return Yl.plus(e.min,Yl.times(q,e.step))}const _=(N,j)=>{h.value=E(N,j),p()},T=N=>{if(o.value)return;const{clientX:j,clientY:U}=N;s.value&&(l.value=s.value.getBoundingClientRect()),h.value=E(j,U),p()};function D([N,j]){return N>j&&([N,j]=[j,N]),e.direction==="vertical"?{bottom:Jp(N,[e.min,e.max]),top:Jp(e.max+e.min-j,[e.min,e.max])}:{left:Jp(N,[e.min,e.max]),right:Jp(e.max+e.min-j,[e.min,e.max])}}const P=(N,j)=>{d.value=E(N,j),p()},M=()=>{C.value=!1},$=F(()=>[r,{[`${r}-vertical`]:e.direction==="vertical",[`${r}-with-marks`]:!!e.marks}]),I=F(()=>[`${r}-track`,{[`${r}-track-disabled`]:o.value,[`${r}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:r,cls:$,trackCls:I,trackRef:s,computedValue:y,mergedDisabled:o,markList:S,getBtnStyle:k,getBarStyle:D,handleClick:T,handleMoveStart:x,handleEndMoving:_,handleMoveEnd:M,handleStartMoving:P,handleStartChange:m,handleEndChange:g}}});function dVe(e,t,n,r,o,a){const s=Pe("slider-ticks"),l=Pe("slider-dots"),c=Pe("slider-marks"),d=Pe("slider-button"),h=Pe("slider-input");return H(),J("div",{class:le(e.cls)},[L("div",{ref:"trackRef",class:le(e.trackCls),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[L("div",{class:le(`${e.prefixCls}-bar`),style:Ge(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(H(),Je(s,{key:0,value:e.computedValue,step:e.step,min:e.min,max:e.max,direction:e.direction},null,8,["value","step","min","max","direction"])):Me("v-if",!0),e.marks?(H(),Je(l,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Me("v-if",!0),e.marks?(H(),Je(c,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Me("v-if",!0),e.range?(H(),Je(d,{key:3,style:Ge(e.getBtnStyle(e.computedValue[0])),value:e.computedValue[0],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleStartMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])):Me("v-if",!0),O(d,{style:Ge(e.getBtnStyle(e.computedValue[1])),value:e.computedValue[1],direction:e.direction,disabled:e.mergedDisabled,min:e.min,max:e.max,"format-tooltip":e.formatTooltip,"show-tooltip":e.showTooltip,onMovestart:e.handleMoveStart,onMoving:e.handleEndMoving,onMoveend:e.handleMoveEnd},null,8,["style","value","direction","disabled","min","max","format-tooltip","show-tooltip","onMovestart","onMoving","onMoveend"])],2),e.showInput?(H(),Je(h,{key:0,"model-value":e.computedValue,min:e.min,max:e.max,step:e.step,range:e.range,disabled:e.disabled,onStartChange:e.handleStartChange,onEndChange:e.handleEndChange},null,8,["model-value","min","max","step","range","disabled","onStartChange","onEndChange"])):Me("v-if",!0)],2)}var cM=je(cVe,[["render",dVe]]);const fVe=Object.assign(cM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+cM.name,cM)}});var dM=ke({name:"Space",props:{align:{type:String},direction:{type:String,default:"horizontal"},size:{type:[Number,String,Array],default:"small"},wrap:{type:Boolean},fill:{type:Boolean}},setup(e,{slots:t}){const n=Le("space"),r=F(()=>{var l;return(l=e.align)!=null?l:e.direction==="horizontal"?"center":""}),o=F(()=>[n,{[`${n}-${e.direction}`]:e.direction,[`${n}-align-${r.value}`]:r.value,[`${n}-wrap`]:e.wrap,[`${n}-fill`]:e.fill}]);function a(l){if(Ze(l))return l;switch(l){case"mini":return 4;case"small":return 8;case"medium":return 16;case"large":return 24;default:return 8}}const s=l=>{const c={},d=`${a(tr(e.size)?e.size[0]:e.size)}px`,h=`${a(tr(e.size)?e.size[1]:e.size)}px`;return l?e.wrap?{marginBottom:h}:{}:(e.direction==="horizontal"&&(c.marginRight=d),(e.direction==="vertical"||e.wrap)&&(c.marginBottom=h),c)};return()=>{var l;const c=yf((l=t.default)==null?void 0:l.call(t),!0).filter(d=>d.type!==Ss);return O("div",{class:o.value},[c.map((d,h)=>{var p,m;const g=t.split&&h>0;return O(Ft,{key:(p=d.key)!=null?p:`item-${h}`},[g&&O("div",{class:`${n}-item-split`,style:s(!1)},[(m=t.split)==null?void 0:m.call(t)]),O("div",{class:`${n}-item`,style:s(h===c.length-1)},[d])])})])}}});const hVe=Object.assign(dM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+dM.name,dM)}});function U0e(e){const t=cs(e)?parseFloat(e):e;let n="";return Ze(e)||String(t)===e?n=t>1?"px":"%":n="px",{size:t,unit:n,isPx:n==="px"}}function mx({size:e,defaultSize:t,containerSize:n}){const r=U0e(e??t);return r.isPx?r.size:r.size*n}function pVe(e,t){return parseFloat(e)/parseFloat(t)}const vVe=ke({name:"Split",components:{ResizeTrigger:w0e},props:{component:{type:String,default:"div"},direction:{type:String,default:"horizontal"},size:{type:[Number,String],default:void 0},defaultSize:{type:[Number,String],default:.5},min:{type:[Number,String]},max:{type:[Number,String]},disabled:{type:Boolean,default:!1}},emits:{moveStart:e=>!0,moving:e=>!0,moveEnd:e=>!0,"update:size":e=>!0},setup(e,{emit:t}){const{direction:n,size:r,defaultSize:o,min:a,max:s}=nn(e),l=fe(0),c=fe(),d=Le("split"),[h,p]=fa(o.value,Yt({value:r})),m=F(()=>U0e(h.value)),g=F(()=>n.value==="horizontal"),y=F(()=>[d,{[`${d}-horizontal`]:g.value,[`${d}-vertical`]:!g.value}]),S=F(()=>{const{size:$,unit:I,isPx:N}=m.value;return{flex:`0 0 calc(${N?$:$*100}${I} - ${l.value/2}px)`}}),k={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function C(){const $=()=>{var I,N;return g.value?(I=c.value)==null?void 0:I.clientWidth:((N=c.value)==null?void 0:N.clientHeight)||0};return(!c.value||$())&&await _n(),$()}function x($,I){if(!I)return;const N=m.value.isPx?`${$}px`:pVe($,I);h.value!==N&&(p(N),t("update:size",N))}function E($,I){const N=mx({size:$,containerSize:I}),j=mx({size:a.value,defaultSize:"0px",containerSize:I}),U=mx({size:s.value,defaultSize:`${I}px`,containerSize:I});let z=N;return z=Math.max(z,j),z=Math.min(z,U),z}function _({startContainerSize:$,startSize:I,startPosition:N,endPosition:j}){const U=mx({size:I,containerSize:$});return E(`${U+(j-N)}px`,$)}function T($){t("moving",$);const I=g.value?_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageX,endPosition:$.pageX}):_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageY,endPosition:$.pageY});x(I,k.startContainerSize)}function D($){to(window,"mousemove",T),to(window,"mouseup",D),to(window,"contextmenu",D),document.body.style.cursor="default",t("moveEnd",$)}async function P($){t("moveStart",$),k.startPageX=$.pageX,k.startPageY=$.pageY,k.startContainerSize=await C(),k.startSize=h.value,Di(window,"mousemove",T),Di(window,"mouseup",D),Di(window,"contextmenu",D),document.body.style.cursor=g.value?"col-resize":"row-resize"}function M($){const{width:I,height:N}=$.contentRect;l.value=g.value?I:N}return vn(async()=>{const $=await C(),I=E(h.value,$);x(I,$)}),{prefixCls:d,classNames:y,isHorizontal:g,wrapperRef:c,onMoveStart:P,onTriggerResize:M,firstPaneStyles:S}}});function mVe(e,t,n,r,o,a){const s=Pe("ResizeTrigger");return H(),Je(Wa(e.component),{ref:"wrapperRef",class:le(e.classNames)},{default:de(()=>[L("div",{class:le([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:Ge(e.firstPaneStyles)},[dt(e.$slots,"first")],6),e.disabled?Me("v-if",!0):(H(),Je(s,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:de(()=>[dt(e.$slots,"resize-trigger")]),icon:de(()=>[dt(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),L("div",{class:le([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[dt(e.$slots,"second")],2)]),_:3},8,["class"])}var fM=je(vVe,[["render",mVe]]);const gVe=Object.assign(fM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+fM.name,fM)}}),yVe=ke({name:"Statistic",props:{title:String,value:{type:[Number,Object]},format:{type:String,default:"HH:mm:ss"},extra:String,start:{type:Boolean,default:!0},precision:{type:Number,default:0},separator:String,showGroupSeparator:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},animationDuration:{type:Number,default:2e3},valueFrom:{type:Number,default:void 0},placeholder:{type:String},valueStyle:{type:Object}},setup(e){var t;const n=Le("statistic"),r=F(()=>Ze(e.value)?e.value:0),o=fe((t=e.valueFrom)!=null?t:e.value),a=fe(null),{value:s}=nn(e),l=F(()=>wn(e.value)),c=(h=(m=>(m=e.valueFrom)!=null?m:0)(),p=r.value)=>{var m;h!==p&&(a.value=new Km({from:{value:h},to:{value:p},duration:e.animationDuration,easing:"quartOut",onUpdate:g=>{o.value=g.value},onFinish:()=>{o.value=p}}),(m=a.value)==null||m.start())},d=F(()=>{let h=o.value;if(Ze(h)){Ze(e.precision)&&(h=Yl.round(h,e.precision).toFixed(e.precision));const p=String(h).split("."),m=e.showGroupSeparator?Number(p[0]).toLocaleString("en-US"):p[0],g=p[1];return{isNumber:!0,integer:m,decimal:g}}return e.format&&(h=vl(h).format(e.format)),{isNumber:!1,value:h}});return vn(()=>{e.animation&&e.start&&c()}),Pt(()=>e.start,h=>{h&&e.animation&&!a.value&&c()}),Pt(s,h=>{var p;a.value&&((p=a.value)==null||p.stop(),a.value=null),o.value=h,e.animation&&e.start&&c()}),{prefixCls:n,showPlaceholder:l,formatValue:d}}}),bVe={key:0};function _Ve(e,t,n,r,o,a){return H(),J("div",{class:le(e.prefixCls)},[e.title||e.$slots.title?(H(),J("div",{key:0,class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-content`)},[L("div",{class:le(`${e.prefixCls}-value`),style:Ge(e.valueStyle)},[e.showPlaceholder?(H(),J("span",bVe,Ve(e.placeholder),1)):(H(),J(Ft,{key:1},[e.$slots.prefix?(H(),J("span",{key:0,class:le(`${e.prefixCls}-prefix`)},[dt(e.$slots,"prefix")],2)):Me("v-if",!0),e.formatValue.isNumber?(H(),J(Ft,{key:1},[L("span",{class:le(`${e.prefixCls}-value-integer`)},Ve(e.formatValue.integer),3),e.formatValue.decimal?(H(),J("span",{key:0,class:le(`${e.prefixCls}-value-decimal`)}," ."+Ve(e.formatValue.decimal),3)):Me("v-if",!0)],64)):(H(),J(Ft,{key:2},[We(Ve(e.formatValue.value),1)],64)),e.$slots.suffix?(H(),J("span",{key:3,class:le(`${e.prefixCls}-suffix`)},[dt(e.$slots,"suffix")],2)):Me("v-if",!0)],64))],6),e.extra||e.$slots.extra?(H(),J("div",{key:0,class:le(`${e.prefixCls}-extra`)},[dt(e.$slots,"extra",{},()=>[We(Ve(e.extra),1)])],2)):Me("v-if",!0)],2)],2)}var hM=je(yVe,[["render",_Ve]]);const SVe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function pM(e,t){let n=e;return SVe.reduce((r,[o,a])=>{if(r.indexOf(o)!==-1){const s=Math.floor(n/a);return n-=s*a,r.replace(new RegExp(`${o}+`,"g"),l=>{const c=l.length;return String(s).padStart(c,"0")})}return r},t)}const kVe=ke({name:"Countdown",props:{title:String,value:{type:Number,default:()=>Date.now()+3e5},now:{type:Number,default:()=>Date.now()},format:{type:String,default:"HH:mm:ss"},start:{type:Boolean,default:!0},valueStyle:{type:Object}},emits:{finish:()=>!0},setup(e,{emit:t}){const n=Le("statistic"),{start:r,value:o,now:a,format:s}=nn(e),l=fe(pM(Math.max(vl(e.value).diff(vl(e.now),"millisecond"),0),e.format));Pt([o,a,s],()=>{const p=pM(Math.max(vl(e.value).diff(vl(e.now),"millisecond"),0),e.format);p!==l.value&&(l.value=p)});const c=fe(0),d=()=>{c.value&&(window.clearInterval(c.value),c.value=0)},h=()=>{vl(e.value).valueOf(){const p=vl(e.value).diff(vl(),"millisecond");p<=0&&(d(),t("finish")),l.value=pM(Math.max(p,0),e.format)},1e3/30))};return vn(()=>{e.start&&h()}),Oo(()=>{d()}),Pt(r,p=>{p&&!c.value&&h()}),{prefixCls:n,displayValue:l}}});function xVe(e,t,n,r,o,a){return H(),J("div",{class:le([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(H(),J("div",{key:0,class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"title",{},()=>[We(Ve(e.title),1)])],2)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-content`)},[L("div",{class:le(`${e.prefixCls}-value`),style:Ge(e.valueStyle)},Ve(e.displayValue),7)],2)],2)}var zw=je(kVe,[["render",xVe]]);const CVe=Object.assign(hM,{Countdown:zw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+hM.name,hM),e.component(n+zw.name,zw)}}),H0e=Symbol("ArcoSteps"),wVe=ke({name:"Steps",props:{type:{type:String,default:"default"},direction:{type:String,default:"horizontal"},labelPlacement:{type:String,default:"horizontal"},current:{type:Number,default:void 0},defaultCurrent:{type:Number,default:1},status:{type:String,default:"process"},lineLess:{type:Boolean,default:!1},small:{type:Boolean,default:!1},changeable:{type:Boolean,default:!1}},emits:{"update:current":e=>!0,change:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{type:r,lineLess:o}=nn(e),a=Le("steps"),s=fe(e.defaultCurrent),l=F(()=>{var C;return(C=e.current)!=null?C:s.value}),c=F(()=>["navigation","arrow"].includes(e.type)?"horizontal":e.direction),d=F(()=>e.type==="dot"?c.value==="vertical"?"horizontal":"vertical":e.type==="navigation"?"horizontal":e.labelPlacement),h=C=>Cl.value?"wait":e.status,p=(C,x)=>{e.changeable&&(s.value=C,t("update:current",C),t("change",C,x))},m=Yt(new Map),g=F(()=>Array.from(m.values()).filter(C=>C.status==="error").map(C=>C.step)),y=(C,x)=>{m.set(C,x)},S=C=>{m.delete(C)},k=F(()=>[a,`${a}-${c.value}`,`${a}-label-${d.value}`,`${a}-mode-${r.value}`,{[`${a}-changeable`]:e.changeable,[`${a}-size-small`]:e.small&&e.type!=="dot",[`${a}-line-less`]:o.value}]);return ti(H0e,Yt({type:r,direction:c,labelPlacement:d,lineLess:o,current:l,errorSteps:g,getStatus:h,addItem:y,removeItem:S,onClick:p,parentCls:a})),{cls:k}}});function EVe(e,t,n,r,o,a){return H(),J("div",{class:le(e.cls)},[dt(e.$slots,"default")],2)}var vM=je(wVe,[["render",EVe]]);const TVe=ke({name:"Step",components:{IconCheck:Ym,IconClose:ds},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=Le("steps-item"),n=go(),r=Le("steps-icon"),o=Pn(H0e,void 0),a=F(()=>{var y;return(y=o?.type)!=null?y:"default"}),s=fe(),{computedIndex:l}=uH({itemRef:s,selector:`.${t}`,parentClassName:o?.parentCls}),c=F(()=>l.value+1),d=F(()=>{var y,S;return(S=(y=e.status)!=null?y:o?.getStatus(c.value))!=null?S:"process"}),h=F(()=>{var y;return(y=o?.errorSteps.includes(c.value+1))!=null?y:!1});n&&o?.addItem(n.uid,Yt({step:c,status:d})),Oo(()=>{n&&o?.removeItem(n.uid)});const p=F(()=>!o?.lineLess&&(o?.labelPlacement==="vertical"||o?.direction==="vertical")),m=y=>{e.disabled||o?.onClick(c.value,y)},g=F(()=>[t,`${t}-${d.value}`,{[`${t}-active`]:c.value===o?.current,[`${t}-next-error`]:h.value,[`${t}-disabled`]:e.disabled}]);return{prefixCls:t,iconCls:r,cls:g,itemRef:s,showTail:p,stepNumber:c,computedStatus:d,type:a,handleClick:m}}});function AVe(e,t,n,r,o,a){const s=Pe("icon-check"),l=Pe("icon-close");return H(),J("div",{ref:"itemRef",class:le(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.showTail?(H(),J("div",{key:0,class:le(`${e.prefixCls}-tail`)},null,2)):Me("v-if",!0),e.type!=="arrow"?(H(),J("div",{key:1,class:le(`${e.prefixCls}-node`)},[dt(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(H(),J("div",{key:0,class:le(e.iconCls)},[dt(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(H(),Je(s,{key:0})):e.computedStatus==="error"?(H(),Je(l,{key:1})):(H(),J(Ft,{key:2},[We(Ve(e.stepNumber),1)],64))])],2)):Me("v-if",!0)])],2)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-content`)},[L("div",{class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"default",{},()=>[We(Ve(e.title),1)])],2),e.description||e.$slots.description?(H(),J("div",{key:0,class:le(`${e.prefixCls}-description`)},[dt(e.$slots,"description",{},()=>[We(Ve(e.description),1)])],2)):Me("v-if",!0)],2)],2)}var Uw=je(TVe,[["render",AVe]]);const IVe=Object.assign(vM,{Step:Uw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+vM.name,vM),e.component(n+Uw.name,Uw)}}),LVe=ke({name:"Switch",components:{IconLoading:Xa},props:{modelValue:{type:[String,Number,Boolean],default:void 0},defaultChecked:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},type:{type:String,default:"circle"},size:{type:String},checkedValue:{type:[String,Number,Boolean],default:!0},uncheckedValue:{type:[String,Number,Boolean],default:!1},checkedColor:{type:String},uncheckedColor:{type:String},beforeChange:{type:Function},checkedText:{type:String},uncheckedText:{type:String}},emits:{"update:modelValue":e=>!0,change:(e,t)=>!0,focus:e=>!0,blur:e=>!0},setup(e,{emit:t}){const{disabled:n,size:r,modelValue:o}=nn(e),a=Le("switch"),{mergedSize:s}=wa(r),{mergedDisabled:l,mergedSize:c,eventHandlers:d}=Ao({disabled:n,size:s}),h=fe(e.defaultChecked?e.checkedValue:e.uncheckedValue),p=F(()=>{var _;return((_=e.modelValue)!=null?_:h.value)===e.checkedValue}),m=fe(!1),g=F(()=>m.value||e.loading),y=(_,T)=>{var D,P;h.value=_?e.checkedValue:e.uncheckedValue,t("update:modelValue",h.value),t("change",h.value,T),(P=(D=d.value)==null?void 0:D.onChange)==null||P.call(D,T)},S=async _=>{if(g.value||l.value)return;const T=!p.value,D=T?e.checkedValue:e.uncheckedValue,P=e.beforeChange;if(xn(P)){m.value=!0;try{const M=await P(D);(M??!0)&&y(T,_)}finally{m.value=!1}}else y(T,_)},k=_=>{var T,D;t("focus",_),(D=(T=d.value)==null?void 0:T.onFocus)==null||D.call(T,_)},C=_=>{var T,D;t("blur",_),(D=(T=d.value)==null?void 0:T.onBlur)==null||D.call(T,_)};Pt(o,_=>{(wn(_)||Tl(_))&&(h.value=e.uncheckedValue)});const x=F(()=>[a,`${a}-type-${e.type}`,{[`${a}-small`]:c.value==="small"||c.value==="mini",[`${a}-checked`]:p.value,[`${a}-disabled`]:l.value,[`${a}-loading`]:g.value,[`${a}-custom-color`]:e.type==="line"&&(e.checkedColor||e.uncheckedColor)}]),E=F(()=>{if(p.value&&e.checkedColor)return e.type==="line"?{"--custom-color":e.checkedColor}:{backgroundColor:e.checkedColor};if(!p.value&&e.uncheckedColor)return e.type==="line"?{"--custom-color":e.uncheckedColor}:{backgroundColor:e.uncheckedColor}});return{prefixCls:a,cls:x,mergedDisabled:l,buttonStyle:E,computedCheck:p,computedLoading:g,handleClick:S,handleFocus:k,handleBlur:C}}}),DVe=["aria-checked","disabled"];function PVe(e,t,n,r,o,a){const s=Pe("icon-loading");return H(),J("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:le(e.cls),style:Ge(e.buttonStyle),disabled:e.mergedDisabled,onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l)),onFocus:t[1]||(t[1]=(...l)=>e.handleFocus&&e.handleFocus(...l)),onBlur:t[2]||(t[2]=(...l)=>e.handleBlur&&e.handleBlur(...l))},[L("span",{class:le(`${e.prefixCls}-handle`)},[L("span",{class:le(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(H(),Je(s,{key:0})):(H(),J(Ft,{key:1},[e.computedCheck?dt(e.$slots,"checked-icon",{key:0}):dt(e.$slots,"unchecked-icon",{key:1})],64))],2)],2),Me(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(H(),J(Ft,{key:0},[L("span",{class:le(`${e.prefixCls}-text-holder`)},[e.computedCheck?dt(e.$slots,"checked",{key:0},()=>[We(Ve(e.checkedText),1)]):dt(e.$slots,"unchecked",{key:1},()=>[We(Ve(e.uncheckedText),1)])],2),L("span",{class:le(`${e.prefixCls}-text`)},[e.computedCheck?dt(e.$slots,"checked",{key:0},()=>[We(Ve(e.checkedText),1)]):dt(e.$slots,"unchecked",{key:1},()=>[We(Ve(e.uncheckedText),1)])],2)],64)):Me("v-if",!0)],46,DVe)}var mM=je(LVe,[["render",PVe]]);const RVe=Object.assign(mM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+mM.name,mM)}}),MVe=e=>{let t=0;const n=r=>{if(tr(r)&&r.length>0)for(const o of r)o.children?n(o.children):t+=1};return n(e),t},W0e=e=>{let t=0;if(tr(e)&&e.length>0){t=1;for(const n of e)if(n.children){const r=W0e(n.children);r>0&&(t=Math.max(t,r+1))}}return t},Tre=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},OVe=(e,t,n)=>{const r=W0e(e);t.clear();const o=[],a=[...Array(r)].map(()=>[]);let s,l;const c=(d,{level:h=0,parent:p,fixed:m}={})=>{var g;for(const y of d){const S={...y,parent:p};if(tr(S.children)){const k=MVe(S.children);k>1&&(S.colSpan=k),a[h].push(S),c(S.children,{level:h+1,parent:S,fixed:S.fixed})}else{const k=r-h;k>1&&(S.rowSpan=k),(m||S.fixed)&&(S.fixed=(g=S.fixed)!=null?g:m,S.fixed==="left"?s=o.length:wn(l)&&(l=o.length)),(wn(S.dataIndex)||Tl(S.dataIndex))&&(S.dataIndex=`__arco_data_index_${o.length}`),n[S.dataIndex]&&(S._resizeWidth=n[S.dataIndex]),t.set(S.dataIndex,S),o.push(S),a[h].push(S)}}};return c(e),wn(s)||(o[s].isLastLeftFixed=!0,Tre(o[s],"left")),wn(l)||(o[l].isFirstRightFixed=!0,Tre(o[l],"right")),{dataColumns:o,groupColumns:a}},$Ve=(e,t)=>{for(let n=0;n{var n;const r=$Ve(t,e.name);if(r<=0)return 0;let o=0;const a=t.slice(0,r);for(const s of a)o+=(n=s.width)!=null?n:0;return o},$H=e=>e.children&&e.children.length>0?$H(e.children[0]):e,NVe=e=>e.children&&e.children.length>0?$H(e.children[e.children.length-1]):e,FVe=(e,{dataColumns:t,operations:n})=>{var r,o,a;let s=0;if(e.fixed==="left"){for(const d of n)s+=(r=d.width)!=null?r:40;const c=$H(e);for(const d of t){if(c.dataIndex===d.dataIndex)break;s+=(a=(o=d._resizeWidth)!=null?o:d.width)!=null?a:0}return s}const l=NVe(e);for(let c=t.length-1;c>0;c--){const d=t[c];if(l.dataIndex===d.dataIndex)break;d.fixed==="right"&&(s+=d.width)}return s},G0e=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],K0e=(e,t)=>t.fixed==="left"?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:t.fixed==="right"?[`${e}-col-fixed-right`,{[`${e}-col-fixed-right-first`]:t.isFirstRightFixed}]:[],q0e=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const r=`${FVe(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:r}:{right:r}}return{}},Y0e=(e,t)=>e.fixed?{left:`${BVe(e,t)}px`}:{};function X0e(e){return e.map(t=>{const n={...t};return n.children&&(n.children=X0e(n.children)),n})}function Z0e(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=Z0e(t.children)),t.raw})}const BH=e=>{const t=[];if(e.children)for(const n of e.children)n.isLeaf?t.push(n.key):t.push(...BH(n));return t},jVe=(e,t)=>{let n=!1,r=!1;const o=t.filter(a=>e.includes(a));return o.length>0&&(o.length>=t.length?n=!0:r=!0),{checked:n,indeterminate:r}},W2=(e,t,n=!1)=>n?e.filter(r=>!t.includes(r)):Array.from(new Set(e.concat(t))),VVe=e=>{const t=[];for(let n=0;n{var s,l,c;const d=F(()=>{var E;return((E=n.value)==null?void 0:E.type)==="radio"}),h=fe((c=(l=t.value)!=null?l:(s=n.value)==null?void 0:s.defaultSelectedRowKeys)!=null?c:[]),p=F(()=>{var E,_,T;return(T=(_=e.value)!=null?_:(E=n.value)==null?void 0:E.selectedRowKeys)!=null?T:h.value}),m=F(()=>p.value.filter(E=>r.value.includes(E)));return{isRadio:d,selectedRowKeys:p,currentSelectedRowKeys:m,handleSelectAll:E=>{const _=W2(p.value,o.value,!E);h.value=_,a("selectAll",E),a("selectionChange",_),a("update:selectedKeys",_)},handleSelect:(E,_)=>{const T=d.value?[_.key]:W2(p.value,[_.key],!E);h.value=T,a("select",T,_.key,_.raw),a("selectionChange",T),a("update:selectedKeys",T)},handleSelectAllLeafs:(E,_)=>{const T=W2(p.value,BH(E),!_);h.value=T,a("select",T,E.key,E.raw),a("selectionChange",T),a("update:selectedKeys",T)},select:(E,_=!0)=>{const T=[].concat(E),D=d.value?T:W2(p.value,T,!_);h.value=D,a("selectionChange",D),a("update:selectedKeys",D)},selectAll:(E=!0)=>{const _=W2(p.value,o.value,!E);h.value=_,a("selectionChange",_),a("update:selectedKeys",_)},clearSelected:()=>{h.value=[],a("selectionChange",[]),a("update:selectedKeys",[])}}},UVe=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:r,allRowKeys:o,emit:a})=>{const l=fe((()=>{var m,g;return t.value?t.value:(m=r.value)!=null&&m.defaultExpandedRowKeys?r.value.defaultExpandedRowKeys:n.value||(g=r.value)!=null&&g.defaultExpandAllRows?[...o.value]:[]})()),c=F(()=>{var m,g,y;return(y=(g=e.value)!=null?g:(m=r.value)==null?void 0:m.expandedRowKeys)!=null?y:l.value});return{expandedRowKeys:c,handleExpand:(m,g)=>{const S=c.value.includes(m)?c.value.filter(k=>m!==k):c.value.concat(m);l.value=S,a("expand",m,g),a("expandedChange",S),a("update:expandedKeys",S)},expand:(m,g=!0)=>{const y=[].concat(m),S=g?c.value.concat(y):c.value.filter(k=>!y.includes(k));l.value=S,a("expandedChange",S),a("update:expandedKeys",S)},expandAll:(m=!0)=>{const g=m?[...o.value]:[];l.value=g,a("expandedChange",g),a("update:expandedKeys",g)}}},HVe=(e,t)=>{var n,r;const o=fe(mr(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),a=fe(mr(e.pagination)&&(r=e.pagination.defaultPageSize)!=null?r:10),s=F(()=>{var h;return mr(e.pagination)&&(h=e.pagination.pageSize)!=null?h:a.value});return{page:F(()=>{var h;return mr(e.pagination)&&(h=e.pagination.current)!=null?h:o.value}),pageSize:s,handlePageChange:h=>{o.value=h,t("pageChange",h)},handlePageSizeChange:h=>{a.value=h,t("pageSizeChange",h)}}},WVe=ke({name:"ColGroup",props:{dataColumns:{type:Array,required:!0},operations:{type:Array,required:!0},columnWidth:{type:Object}},setup(){return{fixedWidth:(t,n)=>{if(t){const r=Math.max(t,n||0);return{width:`${t}px`,minWidth:`${r}px`,maxWidth:`${t}px`}}if(n)return{minWidth:`${n}px`}}}}});function GVe(e,t,n,r,o,a){return H(),J("colgroup",null,[(H(!0),J(Ft,null,pn(e.operations,s=>(H(),J("col",{key:`arco-col-${s.name}`,class:le(`arco-table-${s.name}-col`),style:Ge(e.fixedWidth(s.width))},null,6))),128)),(H(!0),J(Ft,null,pn(e.dataColumns,s=>(H(),J("col",{key:`arco-col-${s.dataIndex}`,style:Ge(e.fixedWidth(e.columnWidth&&s.dataIndex&&e.columnWidth[s.dataIndex]||s.width,s.minWidth))},null,4))),128))])}var gx=je(WVe,[["render",GVe]]),ob=ke({name:"Thead",setup(e,{slots:t}){return()=>{var n,r;return O((r=(n=t.thead)==null?void 0:n.call(t)[0])!=null?r:"thead",null,{default:t.default})}}}),sb=ke({name:"Tbody",setup(e,{slots:t}){return()=>{var n,r;return O((r=(n=t.tbody)==null?void 0:n.call(t)[0])!=null?r:"tbody",null,{default:t.default})}}}),kh=ke({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=Le("table"),r=F(()=>[`${n}-tr`,{[`${n}-tr-expand`]:e.expand,[`${n}-tr-empty`]:e.empty,[`${n}-tr-checked`]:e.checked}]);return()=>{var o,a,s;return O((s=(a=t.tr)==null?void 0:a.call(t,{rowIndex:e.rowIndex,record:(o=e.record)==null?void 0:o.raw})[0])!=null?s:"tr",{class:r.value},{default:t.default})}}});const KVe=ke({name:"IconCaretDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-caret-down`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qVe=["stroke-width","stroke-linecap","stroke-linejoin"];function YVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.938 34.829a1.2 1.2 0 0 1-1.875 0L9.56 17.949c-.628-.785-.069-1.949.937-1.949h27.007c1.006 0 1.565 1.164.937 1.95L24.937 34.829Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qVe)}var gM=je(KVe,[["render",YVe]]);const NH=Object.assign(gM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gM.name,gM)}}),XVe=ke({name:"IconCaretUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-caret-up`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZVe=["stroke-width","stroke-linecap","stroke-linejoin"];function JVe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M23.063 13.171a1.2 1.2 0 0 1 1.875 0l13.503 16.88c.628.785.069 1.949-.937 1.949H10.497c-1.006 0-1.565-1.164-.937-1.95l13.503-16.879Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ZVe)}var yM=je(XVe,[["render",JVe]]);const J0e=Object.assign(yM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yM.name,yM)}}),QVe=ke({name:"IconFilter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-filter`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eze=["stroke-width","stroke-linecap","stroke-linejoin"];function tze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M30 42V22.549a1 1 0 0 1 .463-.844l10.074-6.41A1 1 0 0 0 41 14.45V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v6.451a1 1 0 0 0 .463.844l10.074 6.41a1 1 0 0 1 .463.844V37"},null,-1)]),14,eze)}var bM=je(QVe,[["render",tze]]);const FH=Object.assign(bM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bM.name,bM)}}),nze=({column:e,tableCtx:t})=>{const n=F(()=>{var d;if(e.value.dataIndex&&e.value.dataIndex===((d=t.sorter)==null?void 0:d.field))return t.sorter.direction}),r=F(()=>{var d,h,p;return(p=(h=(d=e.value)==null?void 0:d.sortable)==null?void 0:h.sortDirections)!=null?p:[]}),o=F(()=>r.value.length>0),a=F(()=>r.value.includes("ascend")),s=F(()=>r.value.includes("descend")),l=F(()=>{var d,h;return n.value?n.value===r.value[0]&&(h=r.value[1])!=null?h:"":(d=r.value[0])!=null?d:""});return{sortOrder:n,hasSorter:o,hasAscendBtn:a,hasDescendBtn:s,nextSortOrder:l,handleClickSorter:d=>{var h;e.value.dataIndex&&((h=t.onSorterChange)==null||h.call(t,e.value.dataIndex,l.value,d))}}},rze=({column:e,tableCtx:t})=>{const n=F(()=>{var g;return e.value.dataIndex&&((g=t.filters)!=null&&g[e.value.dataIndex])?t.filters[e.value.dataIndex]:[]}),r=fe(!1),o=F(()=>n.value.length>0),a=F(()=>{var g;return!!((g=e.value.filterable)!=null&&g.multiple)}),s=fe(n.value);Pt(n,g=>{tr(g)&&String(g)!==String(s.value)&&(s.value=g)});const l=g=>{r.value=g},c=g=>{s.value=g};return{filterPopupVisible:r,isFilterActive:o,isMultipleFilter:a,columnFilterValue:s,handleFilterPopupVisibleChange:l,setFilterValue:c,handleCheckboxFilterChange:g=>{c(g)},handleRadioFilterChange:g=>{c([g])},handleFilterConfirm:g=>{var y;e.value.dataIndex&&((y=t.onFilterChange)==null||y.call(t,e.value.dataIndex,s.value,g)),l(!1)},handleFilterReset:g=>{var y;c([]),e.value.dataIndex&&((y=t.onFilterChange)==null||y.call(t,e.value.dataIndex,s.value,g)),l(!1)}}},a3=Symbol("ArcoTable"),Are=Symbol("ArcoTableColumn");function Ire(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var Q0e=ke({name:"AutoTooltip",inheritAttrs:!1,props:{tooltipProps:{type:Object}},setup(e,{attrs:t,slots:n}){const r=Le("auto-tooltip"),o=fe(),a=fe(),s=fe(""),l=fe(!1),c=()=>{if(o.value&&a.value){const m=a.value.offsetWidth>o.value.offsetWidth;m!==l.value&&(l.value=m)}},d=()=>{var m;(m=a.value)!=null&&m.textContent&&a.value.textContent!==s.value&&(s.value=a.value.textContent)},h=()=>{d(),c()};vn(()=>{d(),c()}),Qa(()=>{d(),c()});const p=()=>O("span",zt({ref:o,class:r},t),[O(y0,{onResize:h},{default:()=>{var m;return[O("span",{ref:a,class:`${r}-content`},[(m=n.default)==null?void 0:m.call(n)])]}})]);return()=>{let m;if(l.value){let g;return O(qc,zt({content:s.value,onResize:h},e.tooltipProps),Ire(g=p())?g:{default:()=>[g]})}return O(y0,{onResize:h},Ire(m=p())?m:{default:()=>[m]})}}});function _M(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var ab=ke({name:"Th",props:{column:{type:Object,default:()=>({})},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},resizable:Boolean},setup(e,{slots:t}){const{column:n}=nn(e),r=Le("table"),{t:o}=$o(),a=Pn(a3,{}),s=F(()=>{var ie;return((ie=e.column)==null?void 0:ie.dataIndex)&&a.resizingColumn===e.column.dataIndex}),l=F(()=>{var ie;if(mr((ie=e.column)==null?void 0:ie.tooltip))return e.column.tooltip}),c=F(()=>{var ie;return(ie=e.column)!=null&&ie.filterable&&wl(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:a.filterIconAlignLeft}),{sortOrder:d,hasSorter:h,hasAscendBtn:p,hasDescendBtn:m,nextSortOrder:g,handleClickSorter:y}=nze({column:n,tableCtx:a}),{filterPopupVisible:S,isFilterActive:k,isMultipleFilter:C,columnFilterValue:x,handleFilterPopupVisibleChange:E,setFilterValue:_,handleCheckboxFilterChange:T,handleRadioFilterChange:D,handleFilterConfirm:P,handleFilterReset:M}=rze({column:n,tableCtx:a}),$=()=>{var ie,ee,W,q,Q;let ne,ae;const{filterable:re}=e.column;return(ie=e.column.slots)!=null&&ie["filter-content"]?(ee=e.column.slots)==null?void 0:ee["filter-content"]({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):re?.slotName?(q=(W=a?.slots)==null?void 0:W[re?.slotName])==null?void 0:q.call(W,{filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):re?.renderContent?re.renderContent({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):O("div",{class:`${r}-filters-content`},[O("ul",{class:`${r}-filters-list`},[(Q=re?.filters)==null?void 0:Q.map((Ce,we)=>{var ve;return O("li",{class:`${r}-filters-item`,key:we},[C.value?O(Td,{value:Ce.value,modelValue:x.value,uninjectGroupContext:!0,onChange:T},{default:()=>[Ce.text]}):O(Ly,{value:Ce.value,modelValue:(ve=x.value[0])!=null?ve:"",uninjectGroupContext:!0,onChange:D},{default:()=>[Ce.text]})])})]),O("div",{class:`${r}-filters-bottom`},[O(Xo,{size:"mini",onClick:M},_M(ne=o("table.resetText"))?ne:{default:()=>[ne]}),O(Xo,{type:"primary",size:"mini",onClick:P},_M(ae=o("table.okText"))?ae:{default:()=>[ae]})])])},I=()=>{const{filterable:ie}=e.column;return ie?O(ha,zt({popupVisible:S.value,trigger:"click",autoFitPosition:!0,popupOffset:c.value?4:0,onPopupVisibleChange:E},ie.triggerProps),{default:()=>[O(To,{class:[`${r}-filters`,{[`${r}-filters-active`]:k.value,[`${r}-filters-open`]:S.value,[`${r}-filters-align-left`]:c.value}],disabled:!c.value,onClick:ee=>ee.stopPropagation()},{default:()=>{var ee,W,q,Q,ne;return[(ne=(Q=(W=(ee=e.column.slots)==null?void 0:ee["filter-icon"])==null?void 0:W.call(ee))!=null?Q:(q=ie.icon)==null?void 0:q.call(ie))!=null?ne:O(FH,null,null)]}})],content:$}):null},N=F(()=>{var ie,ee;const W=[`${r}-cell`,`${r}-cell-align-${(ee=(ie=e.column)==null?void 0:ie.align)!=null?ee:e.column.children?"center":"left"}`];return h.value&&W.push(`${r}-cell-with-sorter`,{[`${r}-cell-next-ascend`]:g.value==="ascend",[`${r}-cell-next-descend`]:g.value==="descend"}),c.value&&W.push(`${r}-cell-with-filter`),W}),j=()=>{var ie,ee,W,q,Q,ne;return t.default?t.default():(ie=e.column)!=null&&ie.titleSlotName&&((ee=a.slots)!=null&&ee[e.column.titleSlotName])?(q=(W=a.slots)[e.column.titleSlotName])==null?void 0:q.call(W,{column:e.column}):(ne=(Q=e.column)==null?void 0:Q.slots)!=null&&ne.title?e.column.slots.title():xn(e.column.title)?e.column.title():e.column.title},U=()=>{var ie,ee,W;let q;return O("span",{class:N.value,onClick:h.value?y:void 0},[(ie=e.column)!=null&&ie.ellipsis&&((ee=e.column)!=null&&ee.tooltip)?O(Q0e,{class:`${r}-th-title`,tooltipProps:l.value},_M(q=j())?q:{default:()=>[q]}):O("span",{class:[`${r}-th-title`,{[`${r}-text-ellipsis`]:(W=e.column)==null?void 0:W.ellipsis}]},[j()]),h.value&&O("span",{class:`${r}-sorter`},[p.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="ascend"}]},[O(J0e,null,null)]),m.value&&O("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="descend"}]},[O(NH,null,null)])]),c.value&&I()])},z=F(()=>{var ie,ee;return{...q0e(e.column,{dataColumns:e.dataColumns,operations:e.operations}),...(ie=e.column)==null?void 0:ie.cellStyle,...(ee=e.column)==null?void 0:ee.headerCellStyle}}),G=F(()=>{var ie,ee;return[`${r}-th`,{[`${r}-col-sorted`]:!!d.value,[`${r}-th-resizing`]:s.value},...K0e(r,e.column),(ie=e.column)==null?void 0:ie.cellClass,(ee=e.column)==null?void 0:ee.headerCellClass]}),X=ie=>{var ee,W,q;(ee=e.column)!=null&&ee.dataIndex&&((q=a.onThMouseDown)==null||q.call(a,(W=e.column)==null?void 0:W.dataIndex,ie))};return()=>{var ie,ee,W,q;const Q=(ie=e.column.colSpan)!=null?ie:1,ne=(ee=e.column.rowSpan)!=null?ee:1;return O((q=(W=t.th)==null?void 0:W.call(t,{column:e.column})[0])!=null?q:"th",{class:G.value,style:z.value,colspan:Q>1?Q:void 0,rowspan:ne>1?ne:void 0},{default:()=>[U(),!c.value&&I(),e.resizable&&O("span",{class:`${r}-column-handle`,onMousedown:X},null)]})}}});function ize(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var e0=ke({name:"Td",props:{rowIndex:Number,record:{type:Object,default:()=>({})},column:{type:Object,default:()=>({})},type:{type:String,default:"normal"},operations:{type:Array,default:()=>[]},dataColumns:{type:Array,default:()=>[]},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},isFixedExpand:{type:Boolean,default:!1},containerWidth:{type:Number},showExpandBtn:{type:Boolean,default:!1},indentSize:{type:Number,default:0},renderExpandBtn:{type:Function},summary:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Le("table"),r=F(()=>{var k;if(mr((k=e.column)==null?void 0:k.tooltip))return e.column.tooltip}),o=F(()=>{var k,C;return((k=e.column)==null?void 0:k.dataIndex)&&((C=p.sorter)==null?void 0:C.field)===e.column.dataIndex}),a=F(()=>{var k;return((k=e.column)==null?void 0:k.dataIndex)&&p.resizingColumn===e.column.dataIndex}),s=()=>{var k,C,x,E,_,T;return e.summary?xn((k=e.column)==null?void 0:k.summaryCellClass)?e.column.summaryCellClass((C=e.record)==null?void 0:C.raw):(x=e.column)==null?void 0:x.summaryCellClass:xn((E=e.column)==null?void 0:E.bodyCellClass)?e.column.bodyCellClass((_=e.record)==null?void 0:_.raw):(T=e.column)==null?void 0:T.bodyCellClass},l=F(()=>{var k;return[`${n}-td`,{[`${n}-col-sorted`]:o.value,[`${n}-td-resizing`]:a.value},...K0e(n,e.column),(k=e.column)==null?void 0:k.cellClass,s()]}),c=()=>{var k,C,x,E,_,T;return e.summary?xn((k=e.column)==null?void 0:k.summaryCellStyle)?e.column.summaryCellStyle((C=e.record)==null?void 0:C.raw):(x=e.column)==null?void 0:x.summaryCellStyle:xn((E=e.column)==null?void 0:E.bodyCellStyle)?e.column.bodyCellStyle((_=e.record)==null?void 0:_.raw):(T=e.column)==null?void 0:T.bodyCellStyle},d=F(()=>{var k;const C=q0e(e.column,{dataColumns:e.dataColumns,operations:e.operations}),x=c();return{...C,...(k=e.column)==null?void 0:k.cellStyle,...x}}),h=F(()=>{if(e.isFixedExpand&&e.containerWidth)return{width:`${e.containerWidth}px`}}),p=Pn(a3,{}),m=()=>{var k,C,x,E,_,T,D,P;if(t.default)return t.default();const M={record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1};return t.cell?t.cell(M):(x=e.column.slots)!=null&&x.cell?e.column.slots.cell(M):e.column.render?e.column.render(M):e.column.slotName&&((E=p.slots)!=null&&E[e.column.slotName])?(T=(_=p.slots)[e.column.slotName])==null?void 0:T.call(_,M):String((P=um((D=e.record)==null?void 0:D.raw,e.column.dataIndex))!=null?P:"")},g=fe(!1),y=k=>{var C,x;xn(p.loadMore)&&!((C=e.record)!=null&&C.isLeaf)&&!((x=e.record)!=null&&x.children)&&(g.value=!0,new Promise(E=>{var _;(_=p.loadMore)==null||_.call(p,e.record.raw,E)}).then(E=>{var _;(_=p.addLazyLoadData)==null||_.call(p,E,e.record),g.value=!1})),k.stopPropagation()},S=()=>{var k,C,x,E,_,T;let D;return O("span",{class:[`${n}-cell`,`${n}-cell-align-${(C=(k=e.column)==null?void 0:k.align)!=null?C:"left"}`,{[`${n}-cell-fixed-expand`]:e.isFixedExpand,[`${n}-cell-expand-icon`]:e.showExpandBtn}],style:h.value},[e.indentSize>0&&O("span",{style:{paddingLeft:`${e.indentSize}px`}},null),e.showExpandBtn&&O("span",{class:`${n}-cell-inline-icon`,onClick:y},[g.value?O(Xa,null,null):(x=e.renderExpandBtn)==null?void 0:x.call(e,e.record,!1)]),(E=e.column)!=null&&E.ellipsis&&((_=e.column)!=null&&_.tooltip)?O(Q0e,{class:`${n}-td-content`,tooltipProps:r.value},ize(D=m())?D:{default:()=>[D]}):O("span",{class:[`${n}-td-content`,{[`${n}-text-ellipsis`]:(T=e.column)==null?void 0:T.ellipsis}]},[m()])])};return()=>{var k,C,x,E;return O((E=(x=t.td)==null?void 0:x.call(t,{record:(k=e.record)==null?void 0:k.raw,column:e.column,rowIndex:(C=e.rowIndex)!=null?C:-1})[0])!=null?E:"td",{class:l.value,style:d.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},{default:()=>[S()]})}}}),oze=ke({name:"OperationTh",props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},rowSpan:{type:Number,default:1},selectAll:{type:Boolean,default:!1}},setup(e){const t=Le("table"),n=Pn(a3,{}),r=F(()=>{var l,c,d,h;let p=!1,m=!1;const y=((c=(l=n.currentSelectedRowKeys)==null?void 0:l.filter(k=>{var C,x;return(x=(C=n.currentAllEnabledRowKeys)==null?void 0:C.includes(k))!=null?x:!0}))!=null?c:[]).length,S=(h=(d=n.currentAllEnabledRowKeys)==null?void 0:d.length)!=null?h:0;return y>0&&(y>=S?p=!0:m=!0),{checked:p,indeterminate:m}}),o=()=>e.selectAll?O(Td,{modelValue:r.value.checked,indeterminate:r.value.indeterminate,uninjectGroupContext:!0,onChange:l=>{var c;(c=n.onSelectAll)==null||c.call(n,l)}},{default:xn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?xn(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,a=F(()=>Y0e(e.operationColumn,e.operations)),s=F(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...G0e(t,e.operationColumn)]);return()=>O("th",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0},[O("span",{class:`${t}-cell`},[o()])])}}),Lre=ke({name:"OperationTd",components:{Checkbox:Td,Radio:Ly,IconPlus:Cf,IconMinus:Am},props:{operationColumn:{type:Object,required:!0},operations:{type:Array,required:!0},record:{type:Object,required:!0},hasExpand:{type:Boolean,default:!1},selectedRowKeys:{type:Array},renderExpandBtn:{type:Function},colSpan:{type:Number,default:1},rowSpan:{type:Number,default:1},summary:{type:Boolean,default:!1}},emits:["select"],setup(e,{emit:t,slots:n}){const r=Le("table"),o=Pn(a3,{}),a=F(()=>Y0e(e.operationColumn,e.operations)),s=F(()=>[`${r}-td`,`${r}-operation`,{[`${r}-checkbox`]:e.operationColumn.name==="selection-checkbox",[`${r}-radio`]:e.operationColumn.name==="selection-radio",[`${r}-expand`]:e.operationColumn.name==="expand",[`${r}-drag-handle`]:e.operationColumn.name==="drag-handle"},...G0e(r,e.operationColumn)]),l=F(()=>BH(e.record)),c=F(()=>{var h;return jVe((h=o.currentSelectedRowKeys)!=null?h:[],l.value)}),d=()=>{var h,p,m,g,y,S;if(e.summary)return null;if(e.operationColumn.render)return e.operationColumn.render(e.record.raw);if(e.operationColumn.name==="selection-checkbox"){const k=e.record.key;return!o.checkStrictly&&!e.record.isLeaf?O(Td,{modelValue:c.value.checked,indeterminate:c.value.indeterminate,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=o.onSelectAllLeafs)==null?void 0:x.call(o,e.record,C)},onClick:C=>C.stopPropagation()},null):O(Td,{modelValue:(p=(h=e.selectedRowKeys)==null?void 0:h.includes(k))!=null?p:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=o.onSelect)==null?void 0:x.call(o,C,e.record)},onClick:C=>C.stopPropagation()},null)}if(e.operationColumn.name==="selection-radio"){const k=e.record.key;return O(Ly,{modelValue:(g=(m=e.selectedRowKeys)==null?void 0:m.includes(k))!=null?g:!1,disabled:!!e.record.disabled,uninjectGroupContext:!0,onChange:C=>{var x;return(x=o.onSelect)==null?void 0:x.call(o,C,e.record)},onClick:C=>C.stopPropagation()},null)}return e.operationColumn.name==="expand"?e.hasExpand&&e.renderExpandBtn?e.renderExpandBtn(e.record):null:e.operationColumn.name==="drag-handle"?(S=(y=n["drag-handle-icon"])==null?void 0:y.call(n))!=null?S:O(z5,null,null):null};return()=>O("td",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},[O("span",{class:`${r}-cell`},[d()])])}});const sze=e=>{const t=F(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=Yt({dragging:!1,sourceKey:"",sourcePath:[],targetPath:[],data:{}}),r=()=>{n.dragging=!1,n.sourceKey="",n.sourcePath=[],n.targetPath=[],n.data={}};return{dragType:t,dragState:n,handleDragStart:(h,p,m,g)=>{if(h.dataTransfer&&(h.dataTransfer.effectAllowed="move",h.target&&h.target.tagName==="TD")){const{parentElement:y}=h.target;y&&y.tagName==="TR"&&h.dataTransfer.setDragImage(y,0,0)}n.dragging=!0,n.sourceKey=p,n.sourcePath=m,n.targetPath=[...m],n.data=g},handleDragEnter:(h,p)=>{h.dataTransfer&&(h.dataTransfer.dropEffect="move"),n.targetPath.toString()!==p.toString()&&(n.targetPath=p),h.preventDefault()},handleDragLeave:h=>{},handleDragover:h=>{h.dataTransfer&&(h.dataTransfer.dropEffect="move"),h.preventDefault()},handleDragEnd:h=>{var p;((p=h.dataTransfer)==null?void 0:p.dropEffect)==="none"&&r()},handleDrop:h=>{r(),h.preventDefault()}}},aze=(e,t)=>{const n=fe(""),r=Yt({}),o=(l,c)=>{c.preventDefault(),n.value=l,Di(window,"mousemove",s),Di(window,"mouseup",a),Di(window,"contextmenu",a)},a=()=>{n.value="",to(window,"mousemove",s),to(window,"mouseup",a),to(window,"contextmenu",a)},s=l=>{const c=e.value[n.value];if(c){const{clientX:d}=l,{x:h}=c.getBoundingClientRect();let p=Math.ceil(d-h);p<40&&(p=40),r[n.value]=p,t("columnResize",n.value,p)}};return{resizingColumn:n,columnWidth:r,handleThMouseDown:o,handleThMouseUp:a}},lze=({columns:e,onFilterChange:t})=>{const n=fe(Dre(e.value));Pt(e,s=>{const l=Dre(s);i3(l,n.value)||(n.value=l)});const r=F(()=>{var s,l;const c={};for(const d of e.value)if(d.dataIndex){const h=(l=(s=d.filterable)==null?void 0:s.filteredValue)!=null?l:n.value[d.dataIndex];h&&(c[d.dataIndex]=h)}return c});return{_filters:n,computedFilters:r,resetFilters:s=>{var l;const c=s?[].concat(s):[],d={};for(const h of e.value)if(h.dataIndex&&h.filterable&&(c.length===0||c.includes(h.dataIndex))){const p=(l=h.filterable.defaultFilteredValue)!=null?l:[];d[h.dataIndex]=p,t(h.dataIndex,p)}n.value=d},clearFilters:s=>{const l=s?[].concat(s):[],c={};for(const d of e.value)if(d.dataIndex&&d.filterable&&(l.length===0||l.includes(d.dataIndex))){const h=[];c[d.dataIndex]=h,t(d.dataIndex,h)}n.value=c}}},Dre=e=>{var t;const n={};for(const r of e)r.dataIndex&&((t=r.filterable)!=null&&t.defaultFilteredValue)&&(n[r.dataIndex]=r.filterable.defaultFilteredValue);return n},uze=({columns:e,onSorterChange:t})=>{const n=fe(Pre(e.value));Pt(e,s=>{const l=Pre(s);i3(l,n.value)||(n.value=l)});const r=F(()=>{var s;for(const l of e.value)if(l.dataIndex&&l.sortable){const c=cs(l.sortable.sortOrder)?l.sortable.sortOrder:((s=n.value)==null?void 0:s.field)===l.dataIndex?n.value.direction:"";if(c)return{field:l.dataIndex,direction:c}}});return{_sorter:n,computedSorter:r,resetSorters:()=>{var s;let l;for(const c of e.value)c.dataIndex&&c.sortable&&(!l&&c.sortable.defaultSortOrder&&(l={field:c.dataIndex,direction:c.sortable.defaultSortOrder}),t(c.dataIndex,(s=c.sortable.defaultSortOrder)!=null?s:""));n.value=l},clearSorters:()=>{for(const s of e.value)s.dataIndex&&s.sortable&&t(s.dataIndex,"")}}},Pre=e=>{var t;for(const n of e)if(n.dataIndex&&((t=n.sortable)!=null&&t.defaultSortOrder))return{field:n.dataIndex,direction:n.sortable.defaultSortOrder}},Rre=({spanMethod:e,data:t,columns:n})=>{const r=(l,c)=>{l?.forEach((d,h)=>{var p;d.hasSubtree&&((p=d.children)!=null&&p.length)&&r(d.children||[],c),n.value.forEach((m,g)=>{var y,S;const{rowspan:k=1,colspan:C=1}=(S=(y=e.value)==null?void 0:y.call(e,{record:d.raw,column:m,rowIndex:h,columnIndex:g}))!=null?S:{};(k>1||C>1)&&(c[`${h}-${g}-${d.key}`]=[k,C],Array.from({length:k}).forEach((x,E)=>{var _;if(h+E{g+P{const l={};return o.value={},e.value&&r(t.value,l),l}),s=F(()=>{const l=[];for(const c of Object.keys(o.value))l.push(c);return l});return{tableSpan:a,removedCells:s}};function cze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}const Mre={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var SM=ke({name:"Table",props:{columns:{type:Array,default:()=>[]},data:{type:Array,default:()=>[]},bordered:{type:[Boolean,Object],default:!0},hoverable:{type:Boolean,default:!0},stripe:{type:Boolean,default:!1},size:{type:String,default:()=>{var e,t;return(t=(e=Pn(Ya,void 0))==null?void 0:e.size)!=null?t:"large"}},tableLayoutFixed:{type:Boolean,default:!1},loading:{type:[Boolean,Object],default:!1},rowSelection:{type:Object},expandable:{type:Object},scroll:{type:Object},pagination:{type:[Boolean,Object],default:!0},pagePosition:{type:String,default:"br"},indentSize:{type:Number,default:16},rowKey:{type:String,default:"key"},showHeader:{type:Boolean,default:!0},virtualListProps:{type:Object},spanMethod:{type:Function},spanAll:{type:Boolean,default:!1},components:{type:Object},loadMore:{type:Function},filterIconAlignLeft:{type:Boolean,default:!1},hideExpandButtonOnEmpty:{type:Boolean,default:!1},rowClass:{type:[String,Array,Object,Function]},draggable:{type:Object},rowNumber:{type:[Boolean,Object]},columnResizable:{type:Boolean},summary:{type:[Boolean,Function]},summaryText:{type:String,default:"Summary"},summarySpanMethod:{type:Function},selectedKeys:{type:Array},defaultSelectedKeys:{type:Array},expandedKeys:{type:Array},defaultExpandedKeys:{type:Array},defaultExpandAllRows:{type:Boolean,default:!1},stickyHeader:{type:[Boolean,Number],default:!1},scrollbar:{type:[Object,Boolean],default:!0},showEmptyTree:{type:Boolean,default:!1}},emits:{"update:selectedKeys":e=>!0,"update:expandedKeys":e=>!0,expand:(e,t)=>!0,expandedChange:e=>!0,select:(e,t,n)=>!0,selectAll:e=>!0,selectionChange:e=>!0,sorterChange:(e,t)=>!0,filterChange:(e,t)=>!0,pageChange:e=>!0,pageSizeChange:e=>!0,change:(e,t,n)=>!0,cellMouseEnter:(e,t,n)=>!0,cellMouseLeave:(e,t,n)=>!0,cellClick:(e,t,n)=>!0,rowClick:(e,t)=>!0,headerClick:(e,t)=>!0,columnResize:(e,t)=>!0,rowDblclick:(e,t)=>!0,cellDblclick:(e,t,n)=>!0,rowContextmenu:(e,t)=>!0,cellContextmenu:(e,t,n)=>!0},setup(e,{emit:t,slots:n}){const{columns:r,rowKey:o,rowSelection:a,expandable:s,loadMore:l,filterIconAlignLeft:c,selectedKeys:d,defaultSelectedKeys:h,expandedKeys:p,defaultExpandedKeys:m,defaultExpandAllRows:g,spanMethod:y,draggable:S,summarySpanMethod:k,scrollbar:C,showEmptyTree:x}=nn(e),E=Le("table"),_=Pn(Ya,void 0),T=F(()=>mr(e.bordered)?{...Mre,...e.bordered}:{...Mre,wrapper:e.bordered}),{children:D,components:P}=q_("TableColumn"),M=F(()=>{var It,Xt;return(Xt=(It=a.value)==null?void 0:It.checkStrictly)!=null?Xt:!0}),{displayScrollbar:$,scrollbarProps:I}=I5(C),N=F(()=>{var It,Xt,ln,fn;const An=!!((It=e.scroll)!=null&&It.x||(Xt=e.scroll)!=null&&Xt.minWidth),Xn=!!((ln=e.scroll)!=null&&ln.y||(fn=e.scroll)!=null&&fn.maxHeight);return{x:An,y:Xn}}),j=fe(),U=fe({}),{componentRef:z,elementRef:G}=N1("containerRef"),{componentRef:X,elementRef:ie}=N1("containerRef"),{elementRef:ee}=N1("viewportRef"),{componentRef:W,elementRef:q}=N1("containerRef"),Q=F(()=>ne.value?Tn.value?ee.value:ie.value:G.value),ne=F(()=>N.value.y||e.stickyHeader||Tn.value||N.value.x&&pe.value.length===0),ae=Yt(new Map),re=fe();Pt([P,ae],([It,Xt])=>{if(It.length>0){const ln=[];It.forEach(fn=>{const An=Xt.get(fn);An&&ln.push(An)}),re.value=ln}else re.value=void 0});const Ce=new Map,we=fe([]),ve=fe([]),{resizingColumn:me,columnWidth:xe,handleThMouseDown:Be}=aze(U,t);Pt([r,re,xe],([It,Xt])=>{var ln;const fn=OVe((ln=Xt??It)!=null?ln:[],Ce,xe);we.value=fn.dataColumns,ve.value=fn.groupColumns},{immediate:!0,deep:!0});const Ke=F(()=>["tl","top","tr"].includes(e.pagePosition)),ze=fe(!1),be=fe(!1),_e=fe(!1);Os(()=>{var It,Xt,ln;let fn=!1,An=!1,Xn=!1;((It=e.rowSelection)!=null&&It.fixed||(Xt=e.expandable)!=null&&Xt.fixed||(ln=e.draggable)!=null&&ln.fixed)&&(fn=!0);for(const Cr of we.value)Cr.fixed==="left"?(fn=!0,Xn=!0):Cr.fixed==="right"&&(An=!0);fn!==ze.value&&(ze.value=fn),An!==be.value&&(be.value=An),Xn!==_e.value&&(_e.value=Xn)});const Ne=F(()=>{for(const It of we.value)if(It.ellipsis)return!0;return!1}),Se=It=>{const Xt={type:It,page:Wo.value,pageSize:ce.value,sorter:Ct.value,filters:nt.value,dragTarget:It==="drag"?Bt.data:void 0};t("change",Te.value,Xt,ur.value)},$e=(It,Xt)=>{rt.value={...nt.value,[It]:Xt},t("filterChange",It,Xt),Se("filter")},Xe=(It,Xt)=>{$t.value=Xt?{field:It,direction:Xt}:void 0,t("sorterChange",It,Xt),Se("sorter")},{_filters:rt,computedFilters:nt,resetFilters:gt,clearFilters:yt}=lze({columns:we,onFilterChange:$e}),{_sorter:$t,computedSorter:Ct,resetSorters:Dt,clearSorters:on}=uze({columns:we,onSorterChange:Xe}),lt=new Set,xt=F(()=>{const It=[];lt.clear();const Xt=ln=>{if(tr(ln)&&ln.length>0)for(const fn of ln)It.push(fn[o.value]),fn.disabled&<.add(fn[o.value]),fn.children&&Xt(fn.children)};return Xt(e.data),It}),Ye=F(()=>{const It=[],Xt=ln=>{for(const fn of ln)It.push(fn.key),fn.children&&Xt(fn.children)};return Xt(pe.value),It}),Ue=F(()=>{const It=[],Xt=ln=>{for(const fn of ln)fn.disabled||It.push(fn.key),fn.children&&Xt(fn.children)};return Xt(pe.value),It}),{selectedRowKeys:ut,currentSelectedRowKeys:St,handleSelect:Ht,handleSelectAllLeafs:bt,handleSelectAll:Fe,select:At,selectAll:tn,clearSelected:sn}=zVe({selectedKeys:d,defaultSelectedKeys:h,rowSelection:a,currentAllRowKeys:Ye,currentAllEnabledRowKeys:Ue,emit:t}),{expandedRowKeys:Gt,handleExpand:Zt,expand:nr,expandAll:Ar}=UVe({expandedKeys:p,defaultExpandedKeys:m,defaultExpandAllRows:g,expandable:s,allRowKeys:xt,emit:t}),ji=Yt({}),Ho=(It,Xt)=>{It&&(ji[Xt.key]=It)},Mt=It=>{var Xt,ln;for(const fn of Object.keys(nt.value)){const An=nt.value[fn],Xn=Ce.get(fn);if(Xn&&((Xt=Xn.filterable)!=null&&Xt.filter)&&An.length>0){const Cr=(ln=Xn.filterable)==null?void 0:ln.filter(An,It.raw);if(!Cr)return Cr}}return!0},{dragType:vt,dragState:Bt,handleDragStart:jt,handleDragEnter:rn,handleDragover:en,handleDragEnd:dn,handleDrop:Sn}=sze(S),qn=F(()=>{var It;const Xt=ln=>{const fn=[];for(const An of ln){const Xn={raw:An,key:An[e.rowKey],disabled:An.disabled,expand:An.expand,isLeaf:An.isLeaf};An.children?(Xn.isLeaf=!1,Xn.children=Xt(An.children)):e.loadMore&&!An.isLeaf?(Xn.isLeaf=!1,ji[Xn.key]&&(Xn.children=Xt(ji[Xn.key]))):Xn.isLeaf=!0,Xn.hasSubtree=!!(Xn.children?!e.hideExpandButtonOnEmpty||Xn.children.length>0:e.loadMore&&!Xn.isLeaf),fn.push(Xn)}return fn};return Xt((It=e.data)!=null?It:[])}),Dr=F(()=>{const It=Xt=>Xt.filter(ln=>Mt(ln)?(ln.children&&(ln.children=It(ln.children)),!0):!1);return Object.keys(nt.value).length>0?It(qn.value):qn.value}),ur=F(()=>{var It,Xt,ln;const fn=X0e(Dr.value);if(fn.length>0){if((It=Ct.value)!=null&&It.field){const Cr=Ce.get(Ct.value.field);if(Cr&&((Xt=Cr.sortable)==null?void 0:Xt.sorter)!==!0){const{field:ai,direction:Xi}=Ct.value;fn.sort((Es,$u)=>{var mc;const Nr=um(Es.raw,ai),br=um($u.raw,ai);if((mc=Cr.sortable)!=null&&mc.sorter&&xn(Cr.sortable.sorter))return Cr.sortable.sorter(Es.raw,$u.raw,{dataIndex:ai,direction:Xi});const po=Nr>br?1:-1;return Xi==="descend"?-po:po})}}const{sourcePath:An,targetPath:Xn}=Bt;if(Bt.dragging&&Xn.length&&Xn.toString()!==An.toString()&&An.length===Xn.length&&An.slice(0,-1).toString()===Xn.slice(0,-1).toString()){let Cr=fn;for(let ai=0;ai=An.length-1){const $u=Cr[Xi],mc=Xn[ai];mc>Xi?(Cr.splice(mc+1,0,$u),Cr.splice(Xi,1)):(Cr.splice(mc,0,$u),Cr.splice(Xi+1,1))}else Cr=(ln=Cr[Xi].children)!=null?ln:[]}}}return fn}),{page:Wo,pageSize:ce,handlePageChange:se,handlePageSizeChange:te}=HVe(e,t),Z=F(()=>{var It,Xt;return(Xt=(It=a.value)==null?void 0:It.onlyCurrent)!=null?Xt:!1});Pt(Wo,(It,Xt)=>{It!==Xt&&Z.value&&sn()});const pe=F(()=>e.pagination&&ur.value.length>ce.value?ur.value.slice((Wo.value-1)*ce.value,Wo.value*ce.value):ur.value),Te=F(()=>Z0e(pe.value)),Ee=()=>we.value.reduce((It,Xt,ln)=>{if(Xt.dataIndex)if(ln===0)V8(It,Xt.dataIndex,e.summaryText,{addPath:!0});else{let fn=0,An=!1;pe.value.forEach(Xn=>{if(Xt.dataIndex){const Cr=um(Xn.raw,Xt.dataIndex);Ze(Cr)?fn+=Cr:!wn(Cr)&&!Tl(Cr)&&(An=!0)}}),V8(It,Xt.dataIndex,An?"":fn,{addPath:!0})}return It},{}),Re=It=>It&&It.length>0?It.map(Xt=>({raw:Xt,key:Xt[e.rowKey]})):[],at=F(()=>e.summary?xn(e.summary)?Re(e.summary({columns:we.value,data:Te.value})):Re([Ee()]):[]),it=fe(0),ht=fe(!0),Ae=fe(!0),tt=()=>{let It=!0,Xt=!0;const ln=Q.value;ln&&(It=it.value===0,Xt=Math.ceil(it.value+ln.offsetWidth)>=ln.scrollWidth),It!==ht.value&&(ht.value=It),Xt!==Ae.value&&(Ae.value=Xt)},st=()=>ht.value&&Ae.value?`${E}-scroll-position-both`:ht.value?`${E}-scroll-position-left`:Ae.value?`${E}-scroll-position-right`:`${E}-scroll-position-middle`,Rt=()=>{const It=[];return ze.value&&It.push(`${E}-has-fixed-col-left`),be.value&&It.push(`${E}-has-fixed-col-right`),It},Jt=It=>{It.target.scrollLeft!==it.value&&(it.value=It.target.scrollLeft),tt()},Kt=It=>{Jt(It);const{scrollLeft:Xt}=It.target;q.value&&(q.value.scrollLeft=Xt),j.value&&(j.value.scrollLeft=Xt)},hn=(It,Xt)=>{t("rowClick",It.raw,Xt)},gn=(It,Xt)=>{t("rowDblclick",It.raw,Xt)},cn=(It,Xt)=>{t("rowContextmenu",It.raw,Xt)},cr=(It,Xt,ln)=>{t("cellClick",It.raw,Xt,ln)},er=Qb((It,Xt,ln)=>{t("cellMouseEnter",It.raw,Xt,ln)},30),kn=Qb((It,Xt,ln)=>{t("cellMouseLeave",It.raw,Xt,ln)},30),Yn=(It,Xt,ln)=>{t("cellDblclick",It.raw,Xt,ln)},dr=(It,Xt,ln)=>{t("cellContextmenu",It.raw,Xt,ln)},rr=(It,Xt)=>{t("headerClick",It,Xt)},Dn=F(()=>{var It,Xt;const ln=[],fn=ze.value||be.value;let An,Xn,Cr;((It=e.draggable)==null?void 0:It.type)==="handle"&&(An={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||fn},ln.push(An)),e.expandable&&(Xn={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||fn},ln.push(Xn)),e.rowSelection&&(Cr={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||fn},ln.push(Cr)),!_e.value&&ln.length>0&&ln[ln.length-1].fixed&&(ln[ln.length-1].isLastLeftFixed=!0);const ai=(Xt=e.components)==null?void 0:Xt.operations;return xn(ai)?ai({dragHandle:An,expand:Xn,selection:Cr}):ln}),or=F(()=>{var It,Xt,ln,fn;if(N.value.x){const An={width:Ze((It=e.scroll)==null?void 0:It.x)?`${(Xt=e.scroll)==null?void 0:Xt.x}px`:(ln=e.scroll)==null?void 0:ln.x};return(fn=e.scroll)!=null&&fn.minWidth&&(An.minWidth=Ze(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),An}}),pr=F(()=>{var It,Xt,ln,fn;if(N.value.x&&pe.value.length>0){const An={width:Ze((It=e.scroll)==null?void 0:It.x)?`${(Xt=e.scroll)==null?void 0:Xt.x}px`:(ln=e.scroll)==null?void 0:ln.x};return(fn=e.scroll)!=null&&fn.minWidth&&(An.minWidth=Ze(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),An}});ti(a3,Yt({loadMore:l,addLazyLoadData:Ho,slots:n,sorter:Ct,filters:nt,filterIconAlignLeft:c,resizingColumn:me,checkStrictly:M,currentAllEnabledRowKeys:Ue,currentSelectedRowKeys:St,addColumn:(It,Xt)=>{ae.set(It,Xt)},removeColumn:It=>{ae.delete(It)},onSelectAll:Fe,onSelect:Ht,onSelectAllLeafs:bt,onSorterChange:Xe,onFilterChange:$e,onThMouseDown:Be}));const mi=F(()=>[E,`${E}-size-${e.size}`,{[`${E}-border`]:T.value.wrapper,[`${E}-border-cell`]:T.value.cell,[`${E}-border-header-cell`]:!T.value.cell&&T.value.headerCell,[`${E}-border-body-cell`]:!T.value.cell&&T.value.bodyCell,[`${E}-stripe`]:e.stripe,[`${E}-hover`]:e.hoverable,[`${E}-dragging`]:Bt.dragging,[`${E}-type-selection`]:!!e.rowSelection,[`${E}-empty`]:e.data&&pe.value.length===0,[`${E}-layout-fixed`]:e.tableLayoutFixed||N.value.x||ne.value||Ne.value}]),oi=F(()=>[`${E}-pagination`,{[`${E}-pagination-left`]:e.pagePosition==="tl"||e.pagePosition==="bl",[`${E}-pagination-center`]:e.pagePosition==="top"||e.pagePosition==="bottom",[`${E}-pagination-right`]:e.pagePosition==="tr"||e.pagePosition==="br",[`${E}-pagination-top`]:Ke.value}]),Ta=F(()=>{const It=Rt();return N.value.x&&It.push(st()),ne.value&&It.push(`${E}-scroll-y`),It}),Tn=F(()=>!!e.virtualListProps),Kr=fe({}),Cs=()=>{const It={};for(const Xt of Object.keys(U.value))It[Xt]=U.value[Xt].offsetWidth;Kr.value=It},Bo=fe(!1),Go=()=>ie.value?ie.value.offsetWidth>ie.value.clientWidth:!1,si=()=>{const It=Go();Bo.value!==It&&(Bo.value=It),tt(),Cs()};vn(()=>{Bo.value=Go(),Cs()});const eu=F(()=>mr(e.loading)?e.loading:{loading:e.loading}),Il=()=>O(kh,{empty:!0},{default:()=>[O(e0,{colSpan:we.value.length+Dn.value.length},{default:()=>{var It,Xt,ln,fn,An;return[(An=(fn=(It=n.empty)==null?void 0:It.call(n))!=null?fn:(ln=_==null?void 0:(Xt=_.slots).empty)==null?void 0:ln.call(Xt,{component:"table"}))!=null?An:O(qh,null,null)]}})]}),No=It=>{var Xt;if(It.expand)return xn(It.expand)?It.expand():It.expand;if(n["expand-row"])return n["expand-row"]({record:It.raw});if((Xt=e.expandable)!=null&&Xt.expandedRowRender)return e.expandable.expandedRowRender(It.raw)},dc=F(()=>[].concat(Dn.value,we.value)),eg=F(()=>e.spanAll?dc.value:we.value),{tableSpan:$f,removedCells:tu}=Rre({spanMethod:y,data:pe,columns:eg}),{tableSpan:fc,removedCells:ep}=Rre({spanMethod:k,data:at,columns:dc}),Bs=It=>{if(!(!Tn.value||!It||!Kr.value[It]))return{width:`${Kr.value[It]}px`}},Bf=(It,Xt)=>O(kh,{key:`table-summary-${Xt}`,class:[`${E}-tr-summary`,xn(e.rowClass)?e.rowClass(It.raw,Xt):e.rowClass],onClick:ln=>hn(It,ln)},{default:()=>[Dn.value.map((ln,fn)=>{var An;const Xn=`${Xt}-${fn}-${It.key}`,[Cr,ai]=(An=fc.value[Xn])!=null?An:[1,1];if(ep.value.includes(Xn))return null;const Xi=Bs(ln.name);return O(Lre,{style:Xi,operationColumn:ln,operations:Dn.value,record:It,rowSpan:Cr,colSpan:ai,summary:!0},null)}),we.value.map((ln,fn)=>{var An;const Xn=`${Xt}-${Dn.value.length+fn}-${It.key}`,[Cr,ai]=(An=fc.value[Xn])!=null?An:[1,1];if(ep.value.includes(Xn))return null;const Xi=Bs(ln.dataIndex);return O(e0,{key:`td-${Xn}`,style:Xi,rowIndex:Xt,record:It,column:ln,operations:Dn.value,dataColumns:we.value,rowSpan:Cr,colSpan:ai,summary:!0,onClick:Es=>cr(It,ln,Es),onDblclick:Es=>Yn(It,ln,Es),onMouseenter:Es=>er(It,ln,Es),onMouseleave:Es=>kn(It,ln,Es),onContextmenu:Es=>dr(It,ln,Es)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),td=()=>at.value&&at.value.length>0?O("tfoot",null,[at.value.map((It,Xt)=>Bf(It,Xt))]):null,Nd=(It,Xt=!0)=>{var ln,fn,An,Xn,Cr;const ai=It.key,Xi=Gt.value.includes(ai);return O("button",{type:"button",class:`${E}-expand-btn`,onClick:Es=>{Zt(ai,It.raw),Xt&&Es.stopPropagation()}},[(Cr=(Xn=(ln=n["expand-icon"])==null?void 0:ln.call(n,{expanded:Xi,record:It.raw}))!=null?Xn:(An=(fn=e.expandable)==null?void 0:fn.icon)==null?void 0:An.call(fn,Xi,It.raw))!=null?Cr:O(Xi?Am:Cf,null,null)])},Mu=(It,{indentSize:Xt,indexPath:ln,allowDrag:fn,expandContent:An})=>{var Xn,Cr;if(It.hasSubtree)return((Xn=It.children)==null?void 0:Xn.length)===0&&x.value?Il():(Cr=It.children)==null?void 0:Cr.map((ai,Xi)=>el(ai,Xi,{indentSize:Xt,indexPath:ln,allowDrag:fn}));if(An){const ai=Q.value;return O(kh,{key:`${It.key}-expand`,expand:!0},{default:()=>[O(e0,{isFixedExpand:ze.value||be.value,containerWidth:ai?.clientWidth,colSpan:we.value.length+Dn.value.length},cze(An)?An:{default:()=>[An]})]})}return null},el=(It,Xt,{indentSize:ln=0,indexPath:fn,allowDrag:An=!0}={})=>{var Xn;const Cr=It.key,ai=(fn??[]).concat(Xt),Xi=No(It),Es=Gt.value.includes(Cr),$u=Bt.sourceKey===It.key,mc=vt.value?{draggable:An,onDragstart:br=>{An&&jt(br,It.key,ai,It.raw)},onDragend:br=>{An&&dn(br)}}:{},Nr=vt.value?{onDragenter:br=>{An&&rn(br,ai)},onDragover:br=>{An&&en(br)},onDrop:br=>{An&&(Se("drag"),Sn(br))}}:{};return O(Ft,null,[O(kh,zt({key:Cr,class:[{[`${E}-tr-draggable`]:vt.value==="row",[`${E}-tr-drag`]:$u},xn(e.rowClass)?e.rowClass(It.raw,Xt):e.rowClass],rowIndex:Xt,record:It,checked:e.rowSelection&&((Xn=ut.value)==null?void 0:Xn.includes(Cr)),onClick:br=>hn(It,br),onDblclick:br=>gn(It,br),onContextmenu:br=>cn(It,br)},vt.value==="row"?mc:{},Nr),{default:()=>[Dn.value.map((br,po)=>{var Aa;const ii=`${Xt}-${po}-${It.key}`,[Ia,Mn]=e.spanAll?(Aa=$f.value[ii])!=null?Aa:[1,1]:[1,1];if(e.spanAll&&tu.value.includes(ii))return null;const Bu=Bs(br.name);return O(Lre,zt({key:`operation-td-${po}`,style:Bu,operationColumn:br,operations:Dn.value,record:It,hasExpand:!!Xi,selectedRowKeys:St.value,rowSpan:Ia,colSpan:Mn,renderExpandBtn:Nd},vt.value==="handle"?mc:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),we.value.map((br,po)=>{var Aa;const ii=`${Xt}-${e.spanAll?Dn.value.length+po:po}-${It.key}`,[Ia,Mn]=(Aa=$f.value[ii])!=null?Aa:[1,1];if(tu.value.includes(ii))return null;const Bu=po===0?{showExpandBtn:It.hasSubtree,indentSize:It.hasSubtree?ln-20:ln}:{},kS=Bs(br.dataIndex);return O(e0,zt({key:`td-${po}`,style:kS,rowIndex:Xt,record:It,column:br,operations:Dn.value,dataColumns:we.value,rowSpan:Ia,renderExpandBtn:Nd,colSpan:Mn},Bu,{onClick:Ns=>cr(It,br,Ns),onDblclick:Ns=>Yn(It,br,Ns),onMouseenter:Ns=>er(It,br,Ns),onMouseleave:Ns=>kn(It,br,Ns),onContextmenu:Ns=>dr(It,br,Ns)}),{td:n.td})})],tr:n.tr}),Es&&Mu(It,{indentSize:ln+e.indentSize,indexPath:ai,allowDrag:An&&!$u,expandContent:Xi})])},ws=()=>{const It=pe.value.some(Xt=>!!Xt.hasSubtree);return O(sb,null,{default:()=>[pe.value.length>0?pe.value.map((Xt,ln)=>el(Xt,ln,{indentSize:It?20:0})):Il()],tbody:n.tbody})},tp=()=>O(ob,null,{default:()=>[ve.value.map((It,Xt)=>O(kh,{key:`header-row-${Xt}`},{default:()=>[Xt===0&&Dn.value.map((ln,fn)=>{var An;return O(oze,{key:`operation-th-${fn}`,ref:Xn=>{Xn?.$el&&ln.name&&(U.value[ln.name]=Xn.$el)},operationColumn:ln,operations:Dn.value,selectAll:!!(ln.name==="selection-checkbox"&&((An=e.rowSelection)!=null&&An.showCheckedAll)),rowSpan:ve.value.length},null)}),It.map((ln,fn)=>{const An=e.columnResizable&&!!ln.dataIndex&&fn{Xn?.$el&&ln.dataIndex&&(U.value[ln.dataIndex]=Xn.$el)},column:ln,operations:Dn.value,dataColumns:we.value,resizable:An,onClick:Xn=>rr(ln,Xn)},{th:n.th})})]}))],thead:n.thead}),hc=()=>{var It,Xt;if(ne.value){const ln=Ze(e.stickyHeader)?`${e.stickyHeader}px`:void 0,fn=[(It=I.value)==null?void 0:It.outerClass];e.stickyHeader&&fn.push(`${E}-header-sticky`);const An={top:ln,...(Xt=I.value)==null?void 0:Xt.outerStyle},Xn=$.value?Dd:"div";return O(Ft,null,[e.showHeader&&O(Xn,zt({ref:W,class:[`${E}-header`,{[`${E}-header-sticky`]:e.stickyHeader&&!$.value}],style:{overflowY:Bo.value?"scroll":void 0,top:$.value?void 0:ln}},C.value?{hide:pe.value.length!==0,disableVertical:!0,...I.value,outerClass:fn,outerStyle:An}:void 0),{default:()=>[O("table",{class:`${E}-element`,style:or.value,cellpadding:0,cellspacing:0},[O(gx,{dataColumns:we.value,operations:Dn.value,columnWidth:xe},null),tp()])]}),O(Id,{onResize:si},{default:()=>{var Cr,ai;return[Tn.value&&pe.value.length?O(o3,zt({ref:Xi=>{Xi?.$el&&(ie.value=Xi.$el)},class:`${E}-body`,data:pe.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${E}-element`,style:pr.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:Kt}),{item:({item:Xi,index:Es})=>el(Xi,Es)}):O(Xn,zt({ref:X,class:`${E}-body`,style:{maxHeight:Ze((Cr=e.scroll)==null?void 0:Cr.y)?`${(ai=e.scroll)==null?void 0:ai.y}px`:"100%"}},C.value?{outerStyle:{display:"flex",minHeight:"0"},...I.value}:void 0,{onScroll:Kt}),{default:()=>[O("table",{class:`${E}-element`,style:pr.value,cellpadding:0,cellspacing:0},[pe.value.length!==0&&O(gx,{dataColumns:we.value,operations:Dn.value,columnWidth:xe},null),ws()])]})]}}),at.value&&at.value.length>0&&O("div",{ref:j,class:`${E}-tfoot`,style:{overflowY:Bo.value?"scroll":"hidden"}},[O("table",{class:`${E}-element`,style:pr.value,cellpadding:0,cellspacing:0},[O(gx,{dataColumns:we.value,operations:Dn.value,columnWidth:xe},null),td()])])])}return O(Id,{onResize:()=>tt()},{default:()=>[O("table",{class:`${E}-element`,cellpadding:0,cellspacing:0,style:pr.value},[O(gx,{dataColumns:we.value,operations:Dn.value,columnWidth:xe},null),e.showHeader&&tp(),ws(),at.value&&at.value.length>0&&td()])]})},pc=It=>{var Xt;const ln=(Xt=e.scroll)!=null&&Xt.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,fn=$.value?Dd:"div";return O(Ft,null,[O("div",{class:[`${E}-container`,Ta.value]},[O(fn,zt({ref:z,class:[`${E}-content`,{[`${E}-content-scroll-x`]:!ne.value}],style:ln},C.value?{outerStyle:{height:"100%"},...I.value}:void 0,{onScroll:Jt}),{default:()=>[It?O("table",{class:`${E}-element`,cellpadding:0,cellspacing:0},[It()]):hc()]})]),n.footer&&O("div",{class:`${E}-footer`},[n.footer()])])},Ou=()=>{var It,Xt;const ln=mr(e.pagination)?xa(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return O("div",{class:oi.value},[(It=n["pagination-left"])==null?void 0:It.call(n),O(LH,zt({total:Dr.value.length,current:Wo.value,pageSize:ce.value,onChange:fn=>{se(fn),Se("pagination")},onPageSizeChange:fn=>{te(fn),Se("pagination")}},ln),null),(Xt=n["pagination-right"])==null?void 0:Xt.call(n)])},vc=F(()=>{var It,Xt;if(cs((It=e.scroll)==null?void 0:It.y))return{height:(Xt=e.scroll)==null?void 0:Xt.y}});return{render:()=>{var It;return n.default?O("div",{class:mi.value},[pc(n.default)]):(D.value=(It=n.columns)==null?void 0:It.call(n),O("div",{class:mi.value,style:vc.value},[D.value,O(Ld,eu.value,{default:()=>[e.pagination!==!1&&(pe.value.length>0||ur.value.length>0)&&Ke.value&&Ou(),pc(),e.pagination!==!1&&(pe.value.length>0||ur.value.length>0)&&!Ke.value&&Ou()]})]))},selfExpand:nr,selfExpandAll:Ar,selfSelect:At,selfSelectAll:tn,selfResetFilters:gt,selfClearFilters:yt,selfResetSorters:Dt,selfClearSorters:on}},methods:{selectAll(e){return this.selfSelectAll(e)},select(e,t){return this.selfSelect(e,t)},expandAll(e){return this.selfExpandAll(e)},expand(e,t){return this.selfExpand(e,t)},resetFilters(e){return this.selfResetFilters(e)},clearFilters(e){return this.selfClearFilters(e)},resetSorters(){return this.selfResetSorters()},clearSorters(){return this.selfClearSorters()}},render(){return this.render()}});const sd=(e,t)=>{const n=Iu(e,t),r=fe(n.value);return Pt(n,(o,a)=>{i3(o,a)||(r.value=o)}),r};var Hw=ke({name:"TableColumn",props:{dataIndex:String,title:String,width:Number,minWidth:Number,align:{type:String},fixed:{type:String},ellipsis:{type:Boolean,default:!1},sortable:{type:Object,default:void 0},filterable:{type:Object,default:void 0},cellClass:{type:[String,Array,Object]},headerCellClass:{type:[String,Array,Object]},bodyCellClass:{type:[String,Array,Object,Function]},summaryCellClass:{type:[String,Array,Object,Function]},cellStyle:{type:Object},headerCellStyle:{type:Object},bodyCellStyle:{type:[Object,Function]},summaryCellStyle:{type:[Object,Function]},index:{type:Number},tooltip:{type:[Boolean,Object],default:!1}},setup(e,{slots:t}){var n;const{dataIndex:r,title:o,width:a,align:s,fixed:l,ellipsis:c,index:d,minWidth:h}=nn(e),p=sd(e,"sortable"),m=sd(e,"filterable"),g=sd(e,"cellClass"),y=sd(e,"headerCellClass"),S=sd(e,"bodyCellClass"),k=sd(e,"summaryCellClass"),C=sd(e,"cellStyle"),x=sd(e,"headerCellStyle"),E=sd(e,"bodyCellStyle"),_=sd(e,"summaryCellStyle"),T=sd(e,"tooltip"),D=go(),P=Pn(a3,{}),M=Pn(Are,void 0),{children:$,components:I}=q_("TableColumn"),N=Yt(new Map);ti(Are,{addChild:(X,ie)=>{N.set(X,ie)},removeChild:X=>{N.delete(X)}});const z=fe();Pt([I,N],([X,ie])=>{if(X.length>0){const ee=[];X.forEach(W=>{const q=ie.get(W);q&&ee.push(q)}),z.value=ee}else z.value=void 0});const G=Yt({dataIndex:r,title:o,width:a,minWidth:h,align:s,fixed:l,ellipsis:c,sortable:p,filterable:m,cellClass:g,headerCellClass:y,bodyCellClass:S,summaryCellClass:k,cellStyle:C,headerCellStyle:x,bodyCellStyle:E,summaryCellStyle:_,index:d,tooltip:T,children:z,slots:t});return D&&(M?M.addChild(D.uid,G):(n=P.addColumn)==null||n.call(P,D.uid,G)),Oo(()=>{var X;D&&(M?M.removeChild(D.uid):(X=P.removeColumn)==null||X.call(P,D.uid))}),()=>{var X;return $.value=(X=t.default)==null?void 0:X.call(t),$.value}}});const dze=Object.assign(SM,{Thead:ob,Tbody:sb,Tr:kh,Th:ab,Td:e0,Column:Hw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+SM.name,SM),e.component(n+ob.name,ob),e.component(n+sb.name,sb),e.component(n+kh.name,kh),e.component(n+ab.name,ab),e.component(n+e0.name,e0),e.component(n+Hw.name,Hw)}}),fze=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},hze=(e,t)=>{const{scrollTop:n,scrollLeft:r}=e;t==="horizontal"&&r&&e.scrollTo({left:-1*r}),t==="vertical"&&n&&e.scrollTo({top:-1*n})},jH=Symbol("ArcoTabs"),pze=ke({name:"TabsTab",components:{IconHover:To,IconClose:ds},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=Le("tabs-tab"),r=Pn(jH,{}),o=d=>{e.tab.disabled||t("click",e.tab.key,d)},a=d=>{d.key==="Enter"&&o(d)},s=F(()=>Object.assign(r.trigger==="click"?{onClick:o}:{onMouseover:o},{onKeydown:a})),l=d=>{e.tab.disabled||t("delete",e.tab.key,d)},c=F(()=>[n,{[`${n}-active`]:e.active,[`${n}-closable`]:e.editable&&e.tab.closable,[`${n}-disabled`]:e.tab.disabled}]);return{prefixCls:n,cls:c,eventHandlers:s,handleDelete:l}}});function vze(e,t,n,r,o,a){const s=Pe("icon-close"),l=Pe("icon-hover");return H(),J("div",zt({tabindex:"0",class:e.cls},e.eventHandlers),[L("span",{class:le(`${e.prefixCls}-title`)},[dt(e.$slots,"default")],2),e.editable&&e.tab.closable?(H(),Je(l,{key:0,class:le(`${e.prefixCls}-close-btn`),onClick:us(e.handleDelete,["stop"])},{default:de(()=>[O(s)]),_:1},8,["class","onClick"])):Me("v-if",!0)],16)}var mze=je(pze,[["render",vze]]);function gze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var Ore=ke({name:"TabsButton",props:{type:{type:String,default:"next"},direction:{type:String,default:"horizontal"},disabled:{type:Boolean,default:!1},onClick:{type:Function}},emits:["click"],setup(e,{emit:t}){const n=Le("tabs-nav-button"),r=s=>{e.disabled||t("click",e.type,s)},o=()=>e.direction==="horizontal"?e.type==="next"?O(zi,null,null):O(Al,null,null):e.type==="next"?O(Yh,null,null):O(K_,null,null),a=F(()=>[n,{[`${n}-disabled`]:e.disabled,[`${n}-left`]:e.direction==="horizontal"&&e.type==="previous",[`${n}-right`]:e.direction==="horizontal"&&e.type==="next",[`${n}-up`]:e.direction==="vertical"&&e.type==="previous",[`${n}-down`]:e.direction==="vertical"&&e.type==="next"}]);return()=>{let s;return O("div",{class:a.value,onClick:r},[O(To,{disabled:e.disabled},gze(s=o())?s:{default:()=>[s]})])}}});const yze=ke({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=nn(e),n=Le("tabs-nav-ink"),r=fe(0),o=fe(0),a=F(()=>e.direction==="vertical"?{top:`${r.value}px`,height:`${o.value}px`}:{left:`${r.value}px`,width:`${o.value}px`}),s=()=>{if(t.value){const c=e.direction==="vertical"?t.value.offsetTop:t.value.offsetLeft,d=e.direction==="vertical"?t.value.offsetHeight:t.value.offsetWidth;(c!==r.value||d!==o.value)&&(r.value=c,o.value=d)}};vn(()=>{_n(()=>s())}),Qa(()=>{s()});const l=F(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:l,style:a}}});function bze(e,t,n,r,o,a){return H(),J("div",{class:le(e.cls),style:Ge(e.style)},null,6)}var _ze=je(yze,[["render",bze]]),Sze=ke({name:"TabsNav",props:{tabs:{type:Array,required:!0},direction:{type:String,required:!0},type:{type:String,required:!0},activeKey:{type:[String,Number]},activeIndex:{type:Number,required:!0},position:{type:String,required:!0},size:{type:String,required:!0},showAddButton:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},animation:{type:Boolean,required:!0},headerPadding:{type:Boolean,default:!0},scrollPosition:{type:String,default:"auto"}},emits:["click","add","delete"],setup(e,{emit:t,slots:n}){const{tabs:r,activeKey:o,activeIndex:a,direction:s,scrollPosition:l}=nn(e),c=Le("tabs-nav"),d=fe(),h=fe(),p=fe({}),m=F(()=>{if(!wn(o.value))return p.value[o.value]}),g=fe(),y=F(()=>e.editable&&["line","card","card-gutter"].includes(e.type)),S=fe(!1),k=fe(0),C=fe(0),x=fe(0),E=()=>{var W,q,Q;return(Q=s.value==="vertical"?(W=d.value)==null?void 0:W.offsetHeight:(q=d.value)==null?void 0:q.offsetWidth)!=null?Q:0},_=()=>!h.value||!d.value?0:s.value==="vertical"?h.value.offsetHeight-d.value.offsetHeight:h.value.offsetWidth-d.value.offsetWidth,T=()=>{S.value=D(),S.value?(k.value=E(),C.value=_(),x.value>C.value&&(x.value=C.value)):x.value=0},D=()=>d.value&&h.value?e.direction==="vertical"?h.value.offsetHeight>d.value.offsetHeight:h.value.offsetWidth>d.value.offsetWidth:!1,P=W=>{(!d.value||!h.value||W<0)&&(W=0),x.value=Math.min(W,C.value)},M=()=>{if(!m.value||!d.value||!S.value)return;hze(d.value,s.value);const W=s.value==="horizontal",q=W?"offsetLeft":"offsetTop",Q=W?"offsetWidth":"offsetHeight",ne=m.value[q],ae=m.value[Q],re=d.value[Q],Ce=window.getComputedStyle(m.value),we=W?l.value==="end"?"marginRight":"marginLeft":l.value==="end"?"marginBottom":"marginTop",ve=parseFloat(Ce[we])||0;l.value==="auto"?nex.value+re&&P(ne+ae-re+ve):l.value==="center"?P(ne+(ae-re+ve)/2):l.value==="start"?P(ne-ve):l.value==="end"?P(ne+ae-re+ve):Ze(l.value)&&P(ne-l.value)},$=W=>{if(!S.value)return;W.preventDefault();const{deltaX:q,deltaY:Q}=W;Math.abs(q)>Math.abs(Q)?P(x.value+q):P(x.value+Q)},I=(W,q)=>{t("click",W,q)},N=(W,q)=>{t("delete",W,q),_n(()=>{delete p.value[W]})},j=W=>{const q=W==="previous"?x.value-k.value:x.value+k.value;P(q)},U=()=>{T(),g.value&&g.value.$forceUpdate()};Pt(r,()=>{_n(()=>{T()})}),Pt([a,l],()=>{setTimeout(()=>{M()},0)}),vn(()=>{T(),d.value&&Di(d.value,"wheel",$,{passive:!1})}),vi(()=>{d.value&&to(d.value,"wheel",$)});const z=()=>!y.value||!e.showAddButton?null:O("div",{class:`${c}-add-btn`,onClick:W=>t("add",W)},[O(To,null,{default:()=>[O(Cf,null,null)]})]),G=F(()=>[c,`${c}-${e.direction}`,`${c}-${e.position}`,`${c}-size-${e.size}`,`${c}-type-${e.type}`]),X=F(()=>[`${c}-tab-list`,{[`${c}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),ie=F(()=>fze({direction:e.direction,type:e.type,offset:x.value})),ee=F(()=>[`${c}-tab`,{[`${c}-tab-scroll`]:S.value}]);return()=>{var W;return O("div",{class:G.value},[S.value&&O(Ore,{type:"previous",direction:e.direction,disabled:x.value<=0,onClick:j},null),O(Id,{onResize:()=>T()},{default:()=>[O("div",{class:ee.value,ref:d},[O(Id,{onResize:U},{default:()=>[O("div",{ref:h,class:X.value,style:ie.value},[e.tabs.map((q,Q)=>O(mze,{key:q.key,ref:ne=>{ne?.$el&&(p.value[q.key]=ne.$el)},active:q.key===o.value,tab:q,editable:e.editable,onClick:I,onDelete:N},{default:()=>{var ne,ae,re;return[(re=(ae=(ne=q.slots).title)==null?void 0:ae.call(ne))!=null?re:q.title]}})),e.type==="line"&&m.value&&O(_ze,{ref:g,activeTabRef:m.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!S.value&&z()])]}),S.value&&O(Ore,{type:"next",direction:e.direction,disabled:x.value>=C.value,onClick:j},null),O("div",{class:`${c}-extra`},[S.value&&z(),(W=n.extra)==null?void 0:W.call(n)])])}}}),kM=ke({name:"Tabs",props:{activeKey:{type:[String,Number],default:void 0},defaultActiveKey:{type:[String,Number],default:void 0},position:{type:String,default:"top"},size:{type:String},type:{type:String,default:"line"},direction:{type:String,default:"horizontal"},editable:{type:Boolean,default:!1},showAddButton:{type:Boolean,default:!1},destroyOnHide:{type:Boolean,default:!1},lazyLoad:{type:Boolean,default:!1},justify:{type:Boolean,default:!1},animation:{type:Boolean,default:!1},headerPadding:{type:Boolean,default:!0},autoSwitch:{type:Boolean,default:!1},hideContent:{type:Boolean,default:!1},trigger:{type:String,default:"click"},scrollPosition:{type:[String,Number],default:"auto"}},emits:{"update:activeKey":e=>!0,change:e=>!0,tabClick:(e,t)=>!0,add:e=>!0,delete:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{size:r,lazyLoad:o,destroyOnHide:a,trigger:s}=nn(e),l=Le("tabs"),{mergedSize:c}=wa(r),d=F(()=>e.direction==="vertical"?"left":e.position),h=F(()=>["left","right"].includes(d.value)?"vertical":"horizontal"),{children:p,components:m}=q_("TabPane"),g=Yt(new Map),y=F(()=>{const N=[];return m.value.forEach(j=>{const U=g.get(j);U&&N.push(U)}),N}),S=F(()=>y.value.map(N=>N.key)),k=(N,j)=>{g.set(N,j)},C=N=>{g.delete(N)},x=fe(e.defaultActiveKey),E=F(()=>{var N;const j=(N=e.activeKey)!=null?N:x.value;return wn(j)?S.value[0]:j}),_=F(()=>{const N=S.value.indexOf(E.value);return N===-1?0:N});ti(jH,Yt({lazyLoad:o,destroyOnHide:a,activeKey:E,addItem:k,removeItem:C,trigger:s}));const T=N=>{N!==E.value&&(x.value=N,t("update:activeKey",N),t("change",N))},D=(N,j)=>{T(N),t("tabClick",N,j)},P=N=>{t("add",N),e.autoSwitch&&_n(()=>{const j=S.value[S.value.length-1];T(j)})},M=(N,j)=>{t("delete",N,j)},$=()=>O("div",{class:[`${l}-content`,{[`${l}-content-hide`]:e.hideContent}]},[O("div",{class:[`${l}-content-list`,{[`${l}-content-animation`]:e.animation}],style:{marginLeft:`-${_.value*100}%`}},[p.value])]),I=F(()=>[l,`${l}-${h.value}`,`${l}-${d.value}`,`${l}-type-${e.type}`,`${l}-size-${c.value}`,{[`${l}-justify`]:e.justify}]);return()=>{var N;return p.value=(N=n.default)==null?void 0:N.call(n),O("div",{class:I.value},[d.value==="bottom"&&$(),O(Sze,{tabs:y.value,activeKey:E.value,activeIndex:_.value,direction:h.value,position:d.value,editable:e.editable,animation:e.animation,showAddButton:e.showAddButton,headerPadding:e.headerPadding,scrollPosition:e.scrollPosition,size:c.value,type:e.type,onClick:D,onAdd:P,onDelete:M},{extra:n.extra}),d.value!=="bottom"&&$()])}}});const kze=ke({name:"TabPane",props:{title:String,disabled:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},destroyOnHide:{type:Boolean,default:!1}},setup(e,{slots:t}){var n;const{title:r,disabled:o,closable:a}=nn(e),s=go(),l=Le("tabs"),c=Pn(jH,{}),d=fe(),h=F(()=>s?.vnode.key),p=F(()=>h.value===c.activeKey),m=fe(c.lazyLoad?p.value:!0),g=Yt({key:h,title:r,disabled:o,closable:a,slots:t});return s?.uid&&((n=c.addItem)==null||n.call(c,s.uid,g)),Oo(()=>{var y;s?.uid&&((y=c.removeItem)==null||y.call(c,s.uid))}),Pt(p,y=>{y?m.value||(m.value=!0):(e.destroyOnHide||c.destroyOnHide)&&(m.value=!1)}),Qa(()=>{g.slots={...t}}),{prefixCls:l,active:p,itemRef:d,mounted:m}}});function xze(e,t,n,r,o,a){return H(),J("div",{ref:"itemRef",class:le([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(H(),J("div",{key:0,class:le(`${e.prefixCls}-pane`)},[dt(e.$slots,"default")],2)):Me("v-if",!0)],2)}var Ww=je(kze,[["render",xze]]);const Cze=Object.assign(kM,{TabPane:Ww,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+kM.name,kM),e.component(n+Ww.name,Ww)}});function wze(e){const{modelValue:t,defaultValue:n,format:r,isRange:o}=nn(e);function a(){return o.value?[]:void 0}function s(k){if(!wn(k))return o.value?tr(k)?k:[k,void 0]:k}const l=F(()=>{const k=s(t.value);return uc(k,r.value)}),c=F(()=>{const k=s(n.value);return uc(k,r.value)}),[d,h]=Ga(wn(l.value)?wn(c.value)?a():c.value:l.value);Pt(l,()=>{wn(l.value)&&h(a())});const p=F(()=>l.value||d.value),[m,g]=Ga(p.value);Pt([p],()=>{g(p.value)});const[y,S]=Ga();return Pt([m],()=>{S(void 0)}),{computedValue:p,panelValue:m,inputValue:y,setValue:h,setPanelValue:g,setInputValue:S}}var Eze=ke({name:"TimePickerRangePanel",components:{Panel:F8},props:{value:{type:Array},displayIndex:{type:Number,default:0}},emits:["select","confirm","update:displayIndex","display-index-change"],setup(e,{emit:t}){const{value:n,displayIndex:r}=nn(e),o=fe(r.value);Pt(r,()=>{o.value=r.value});const a=F(()=>n?.value?n.value[o.value]:void 0);function s(c){const d=wn(n)||wn(n?.value)?[]:[...n.value];d[o.value]=c,t("select",d)}function l(){if(w4(n?.value))t("confirm",n?.value);else{const c=(o.value+1)%2;o.value=c,t("display-index-change",c),t("update:displayIndex",c)}}return{displayValue:a,onSelect:s,onConfirm:l}},render(){const e={...this.$attrs,isRange:!0,value:this.displayValue,onSelect:this.onSelect,onConfirm:this.onConfirm};return O(F8,e,this.$slots)}});const Tze=ke({name:"TimePicker",components:{Trigger:ha,DateInput:Npe,DateRangeInput:r0e,Panel:F8,RangePanel:Eze,IconClockCircle:N5},inheritAttrs:!1,props:{type:{type:String,default:"time"},modelValue:{type:[String,Number,Date,Array]},defaultValue:{type:[String,Number,Date,Array]},disabled:{type:Boolean},allowClear:{type:Boolean,default:!0},readonly:{type:Boolean},error:{type:Boolean},format:{type:String,default:"HH:mm:ss"},placeholder:{type:[String,Array]},size:{type:String},popupContainer:{type:[String,Object]},use12Hours:{type:Boolean},step:{type:Object},disabledHours:{type:Function},disabledMinutes:{type:Function},disabledSeconds:{type:Function},hideDisabledOptions:{type:Boolean},disableConfirm:{type:Boolean},position:{type:String,default:"bl"},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean,default:!1},triggerProps:{type:Object},unmountOnClose:{type:Boolean}},emits:{change:(e,t)=>!0,"update:modelValue":e=>!0,select:(e,t)=>!0,clear:()=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0},setup(e,{emit:t}){const{type:n,format:r,use12Hours:o,modelValue:a,defaultValue:s,popupVisible:l,defaultPopupVisible:c,disabled:d,placeholder:h,disableConfirm:p,disabledHours:m,disabledMinutes:g,disabledSeconds:y}=nn(e),{mergedDisabled:S,eventHandlers:k}=Ao({disabled:d}),C=F(()=>n.value==="time-range"),x=Le("timepicker"),E=fe(),{format:_,use12Hours:T}=kH(Yt({format:r,use12Hours:o})),{computedValue:D,panelValue:P,inputValue:M,setValue:$,setPanelValue:I,setInputValue:N}=wze(Yt({modelValue:a,defaultValue:s,isRange:C,format:_})),[j,U]=fa(c.value,Yt({value:l})),z=_e=>{_e!==j.value&&(U(_e),t("popup-visible-change",_e),t("update:popupVisible",_e))},{t:G}=$o(),[X,ie]=Ga(0),ee=F(()=>{const _e=h?.value;return C.value?wn(_e)?G("datePicker.rangePlaceholder.time"):tr(_e)?_e:[_e,_e]:wn(_e)?G("datePicker.placeholder.time"):_e}),W=Hpe(Yt({disabledHours:m,disabledMinutes:g,disabledSeconds:y}));function q(_e){var Ne,Se;if(fH(_e,D.value)){const $e=cf(_e,_.value),Xe=ku(_e);t("update:modelValue",$e),t("change",$e,Xe),(Se=(Ne=k.value)==null?void 0:Ne.onChange)==null||Se.call(Ne)}}function Q(_e,Ne){if(W(_e))return;let Se=_e;if(tr(_e)){const $e=Rs();Se=_e.map(Xe=>(Xe&&(Xe=Xe.year($e.year()),Xe=Xe.month($e.month()),Xe=Xe.date($e.date())),Xe)),w4(Se)&&(Se=Jb(Se)),Se?.length===0&&(Se=void 0)}q(Se),$(Se),Ne!==j.value&&z(Ne)}function ne(_e,Ne){I(_e),Ne!==j.value&&z(Ne)}function ae(_e){E.value&&E.value.focus&&E.value.focus(_e)}function re(_e){S.value||(z(_e),_e&&_n(()=>{ae(X.value)}))}function Ce(_e){const Ne=cf(_e,_.value),Se=ku(_e);t("select",Ne,Se),p.value&&(!C.value||w4(_e))?Q(_e,!0):(ne(_e,!0),N(void 0))}function we(_e){Q(_e,!1)}function ve(){Q(P.value||D.value,!1)}function me(){if(w4(P.value))Q(P.value,!1);else{const _e=(X.value+1)%2;ie(_e),ae(_e)}}function xe(_e){z(!0);const Ne=_e.target.value;if(N(Ne),!N8(Ne,_.value))return;const Se=Rs(Ne,_.value);W(Se)||(p.value?Q(Se,!0):ne(Se,!0))}function Be(_e){z(!0);const Ne=_e.target.value,Se=tr(M.value)?[...M.value]:tr(P.value)&&cf(P.value,_.value)||[];if(Se[X.value]=Ne,N(Se),!N8(Ne,_.value))return;const $e=Rs(Ne,_.value);if(W($e))return;const Xe=tr(P.value)?[...P.value]:[];Xe[X.value]=$e,p.value&&w4(Xe)?Q(Xe,!0):ne(Xe,!0)}function Ke(_e){_e.stopPropagation(),I(void 0),Q(void 0,C.value)}Pt(j,(_e,Ne)=>{_e!==Ne&&I(D.value),_e||N(void 0)});const ze=F(()=>C.value?{focusedIndex:X.value,onFocusedIndexChange:_e=>{ie(_e)},onChange:Be,onPressEnter:me}:{onChange:xe,onPressEnter:ve}),be=F(()=>C.value?{displayIndex:X.value,onDisplayIndexChange:_e=>{ie(_e),ae(_e)}}:{});return{refInput:E,isRange:C,prefixCls:x,panelVisible:j,focusedInputIndex:X,computedPlaceholder:ee,panelValue:P,inputValue:M,computedFormat:_,computedUse12Hours:T,inputProps:ze,panelProps:be,mergedDisabled:S,onPanelVisibleChange:re,onInputClear:Ke,onPanelSelect:Ce,onPanelConfirm:we,onPanelClick:()=>{ae(X.value)}}}});function Aze(e,t,n,r,o,a){const s=Pe("IconClockCircle"),l=Pe("Trigger");return H(),Je(l,zt({trigger:"click","animation-name":"slide-dynamic-origin","auto-fit-transform-origin":"","click-to-close":!1,position:e.position,disabled:e.mergedDisabled||e.readonly,"popup-offset":4,"popup-visible":e.panelVisible,"prevent-focus":!0,"unmount-on-close":e.unmountOnClose,"popup-container":e.popupContainer},{...e.triggerProps},{onPopupVisibleChange:e.onPanelVisibleChange}),{content:de(()=>[L("div",{class:le(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...c)=>e.onPanelClick&&e.onPanelClick(...c))},[(H(),Je(Wa(e.isRange?"RangePanel":"Panel"),zt(e.panelProps,{value:e.panelValue,visible:e.panelVisible,format:e.computedFormat,"use12-hours":e.computedUse12Hours,step:e.step,"disabled-hours":e.disabledHours,"disabled-minutes":e.disabledMinutes,"disabled-seconds":e.disabledSeconds,"hide-disabled-options":e.hideDisabledOptions,"hide-footer":e.disableConfirm,onSelect:e.onPanelSelect,onConfirm:e.onPanelConfirm}),wo({_:2},[e.$slots.extra?{name:"extra-footer",fn:de(()=>[dt(e.$slots,"extra")]),key:"0"}:void 0]),1040,["value","visible","format","use12-hours","step","disabled-hours","disabled-minutes","disabled-seconds","hide-disabled-options","hide-footer","onSelect","onConfirm"]))],2)]),default:de(()=>[(H(),Je(Wa(e.isRange?"DateRangeInput":"DateInput"),zt({...e.$attrs,...e.inputProps},{ref:"refInput","input-value":e.inputValue,value:e.panelValue,size:e.size,focused:e.panelVisible,format:e.computedFormat,visible:e.panelVisible,disabled:e.mergedDisabled,error:e.error,readonly:e.readonly,editable:!e.readonly,"allow-clear":e.allowClear&&!e.readonly,placeholder:e.computedPlaceholder,onClear:e.onInputClear}),wo({"suffix-icon":de(()=>[dt(e.$slots,"suffix-icon",{},()=>[O(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[dt(e.$slots,"prefix")]),key:"0"}:void 0]),1040,["input-value","value","size","focused","format","visible","disabled","error","readonly","editable","allow-clear","placeholder","onClear"]))]),_:3},16,["position","disabled","popup-visible","unmount-on-close","popup-container","onPopupVisibleChange"])}var xM=je(Tze,[["render",Aze]]);const Ize=Object.assign(xM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+xM.name,xM)}}),eve=Symbol("ArcoTimeline"),Lze=(e,t,n,r)=>{let o=["left","right"];n==="horizontal"&&(o=["top","bottom"]);const a=t==="alternate"?r||o[e%2]:t;return o.indexOf(a)>-1?a:o[0]},Dze=ke({name:"TimelineItem",props:{dotColor:{type:String},dotType:{type:String,default:"solid"},lineType:{type:String,default:"solid"},lineColor:{type:String},label:{type:String},position:{type:String}},setup(e){const t=Le("timeline-item"),n=go(),r=Pn(eve,{}),o=F(()=>{var m,g,y;return(y=(g=r.items)==null?void 0:g.indexOf((m=n?.uid)!=null?m:-1))!=null?y:-1}),a=F(()=>{var m;return(m=r?.direction)!=null?m:"vertical"}),s=F(()=>{var m;return(m=r?.labelPosition)!=null?m:"same"}),l=F(()=>{const{items:m=[],reverse:g,labelPosition:y,mode:S="left"}=r,k=a.value,C=Lze(o.value,S,k,e.position);return[t,{[`${t}-${k}-${C}`]:k,[`${t}-label-${y}`]:y,[`${t}-last`]:o.value===(g===!0?0:m.length-1)}]}),c=F(()=>[`${t}-dot-line`,`${t}-dot-line-is-${a.value}`]),d=F(()=>{const{direction:m}=r||{};return{[m==="horizontal"?"borderTopStyle":"borderLeftStyle"]:e.lineType,...e.lineColor?{borderColor:e.lineColor}:{}}}),h=F(()=>[`${t}-dot`,`${t}-dot-${e.dotType}`]),p=F(()=>({[e.dotType==="solid"?"backgroundColor":"borderColor"]:e.dotColor}));return{cls:l,dotLineCls:c,dotTypeCls:h,prefixCls:t,computedDotLineStyle:d,computedDotStyle:p,labelPosition:s}}});function Pze(e,t,n,r,o,a){return H(),J("div",{role:"listitem",class:le(e.cls)},[L("div",{class:le(`${e.prefixCls}-dot-wrapper`)},[L("div",{class:le(e.dotLineCls),style:Ge(e.computedDotLineStyle)},null,6),L("div",{class:le(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(H(),J("div",{key:0,class:le(`${e.prefixCls}-dot-custom`)},[dt(e.$slots,"dot")],2)):(H(),J("div",{key:1,class:le(e.dotTypeCls),style:Ge(e.computedDotStyle)},null,6))],2)],2),L("div",{class:le(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(H(),J("div",{key:0,class:le(`${e.prefixCls}-content`)},[dt(e.$slots,"default")],2)):Me("v-if",!0),e.labelPosition!=="relative"?(H(),J("div",{key:1,class:le(`${e.prefixCls}-label`)},[e.$slots.label?dt(e.$slots,"label",{key:0}):(H(),J(Ft,{key:1},[We(Ve(e.label),1)],64))],2)):Me("v-if",!0)],2),e.labelPosition==="relative"?(H(),J("div",{key:0,class:le(`${e.prefixCls}-label`)},[e.$slots.label?dt(e.$slots,"label",{key:0}):(H(),J(Ft,{key:1},[We(Ve(e.label),1)],64))],2)):Me("v-if",!0)],2)}var iy=je(Dze,[["render",Pze]]),CM=ke({name:"Timeline",components:{Item:iy,Spin:Ld},props:{reverse:{type:Boolean},direction:{type:String,default:"vertical"},mode:{type:String,default:"left"},pending:{type:[Boolean,String]},labelPosition:{type:String,default:"same"}},setup(e,{slots:t}){const n=Le("timeline"),r=F(()=>e.pending||t.pending),{children:o,components:a}=q_("TimelineItem"),{reverse:s,direction:l,labelPosition:c,mode:d}=nn(e),h=Yt({items:a,direction:l,reverse:s,labelPosition:c,mode:d});ti(eve,h);const p=F(()=>[n,`${n}-${e.mode}`,`${n}-direction-${e.direction}`,{[`${n}-is-reverse`]:e.reverse}]);return()=>{var m,g;return r.value?o.value=(m=t.default)==null?void 0:m.call(t).concat(O(iy,{lineType:"dashed"},{default:()=>[e.pending!==!0&&O("div",null,[e.pending])],dot:()=>{var y,S;return(S=(y=t.dot)==null?void 0:y.call(t))!=null?S:O(Ld,{size:12},null)}})):o.value=(g=t.default)==null?void 0:g.call(t),O("div",{role:"list",class:p.value},[o.value])}}});const Rze=Object.assign(CM,{Item:iy,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+CM.name,CM),e.component(n+iy.name,iy)}}),Mze=ke({name:"IconDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-delete`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Oze=["stroke-width","stroke-linecap","stroke-linejoin"];function $ze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15"},null,-1)]),14,Oze)}var wM=je(Mze,[["render",$ze]]);const cc=Object.assign(wM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wM.name,wM)}}),VH=Symbol("ArcoTransfer");var Bze=ke({name:"TransferListItem",props:{type:{type:String},data:{type:Object,required:!0},allowClear:{type:Boolean},disabled:{type:Boolean},draggable:{type:Boolean},simple:Boolean},setup(e){const t=Le("transfer-list-item"),n=Pn(VH,void 0),r=()=>{e.simple&&!e.disabled&&n?.moveTo([e.data.value],e.type==="target"?"source":"target")},o=F(()=>[t,{[`${t}-disabled`]:e.disabled,[`${t}-draggable`]:e.draggable}]),a=()=>{n?.moveTo([e.data.value],"source")};return()=>{var s,l,c;return O("div",{class:o.value,onClick:r},[e.allowClear||e.simple?O("span",{class:`${t}-content`},[(c=(l=n==null?void 0:(s=n.slots).item)==null?void 0:l.call(s,{label:e.data.label,value:e.data.value}))!=null?c:e.data.label]):O(Td,{class:[`${t}-content`,`${t}-checkbox`],modelValue:n?.selected,value:e.data.value,onChange:d=>n?.onSelect(d),uninjectGroupContext:!0,disabled:e.disabled},{default:()=>{var d,h,p;return[(p=(h=n==null?void 0:(d=n.slots).item)==null?void 0:h.call(d,{label:e.data.label,value:e.data.value}))!=null?p:e.data.label]}}),e.allowClear&&!e.disabled&&O(To,{class:`${t}-remove-btn`,onClick:a},{default:()=>[O(ds,null,null)]})])}}});const Nze=ke({name:"TransferView",components:{Empty:qC,Checkbox:Td,IconHover:To,IconDelete:cc,InputSearch:R0.Search,List:D0e,TransferListItem:Bze,Scrollbar:Dd},props:{type:{type:String},dataInfo:{type:Object,required:!0},title:String,data:{type:Array,required:!0},disabled:Boolean,allowClear:Boolean,selected:{type:Array,required:!0},showSearch:Boolean,showSelectAll:Boolean,simple:Boolean,inputSearchProps:{type:Object}},emits:["search"],setup(e,{emit:t}){const n=Le("transfer-view"),r=fe(""),o=Pn(VH,void 0),a=F(()=>e.dataInfo.selected.length),s=F(()=>e.dataInfo.data.length),l=F(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length===e.dataInfo.allValidValues.length),c=F(()=>e.dataInfo.selected.length>0&&e.dataInfo.selected.length{g?o?.onSelect([...e.selected,...e.dataInfo.allValidValues]):o?.onSelect(e.selected.filter(y=>!e.dataInfo.allValidValues.includes(y)))},h=F(()=>e.dataInfo.data.filter(g=>r.value?g.label.includes(r.value):!0));return{prefixCls:n,filteredData:h,filter:r,checked:l,indeterminate:c,countSelected:a,countRendered:s,handleSelectAllChange:d,handleSearch:g=>{t("search",g,e.type)},handleClear:()=>{o?.moveTo(e.dataInfo.allValidValues,"source")},transferCtx:o}}});function Fze(e,t,n,r,o,a){const s=Pe("checkbox"),l=Pe("icon-delete"),c=Pe("icon-hover"),d=Pe("input-search"),h=Pe("transfer-list-item"),p=Pe("list"),m=Pe("Scrollbar"),g=Pe("Empty");return H(),J("div",{class:le(e.prefixCls)},[L("div",{class:le(`${e.prefixCls}-header`)},[dt(e.$slots,"title",{countTotal:e.dataInfo.data.length,countSelected:e.dataInfo.selected.length,searchValue:e.filter,checked:e.checked,indeterminate:e.indeterminate,onSelectAllChange:e.handleSelectAllChange,onClear:e.handleClear},()=>[L("span",{class:le(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(H(),J("span",{key:0,class:le(`${e.prefixCls}-header-title-simple`)},Ve(e.title),3)):(H(),Je(s,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:de(()=>[We(Ve(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(H(),Je(c,{key:0,disabled:e.disabled,class:le(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:de(()=>[O(l)]),_:1},8,["disabled","class","onClick"])):e.simple?Me("v-if",!0):(H(),J("span",{key:1,class:le(`${e.prefixCls}-header-count`)},Ve(e.dataInfo.selected.length)+" / "+Ve(e.dataInfo.data.length),3))])],2),e.showSearch?(H(),J("div",{key:0,class:le(`${e.prefixCls}-search`)},[O(d,zt({modelValue:e.filter,"onUpdate:modelValue":t[0]||(t[0]=y=>e.filter=y),disabled:e.disabled},e.inputSearchProps,{onChange:e.handleSearch}),null,16,["modelValue","disabled","onChange"])],2)):Me("v-if",!0),L("div",{class:le(`${e.prefixCls}-body`)},[e.filteredData.length>0?(H(),Je(m,{key:0},{default:de(()=>{var y,S;return[dt(e.$slots,"default",{data:e.filteredData,selectedKeys:(y=e.transferCtx)==null?void 0:y.selected,onSelect:(S=e.transferCtx)==null?void 0:S.onSelect},()=>[O(p,{class:le(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:de(()=>[(H(!0),J(Ft,null,pn(e.filteredData,k=>(H(),Je(h,{key:k.value,type:e.type,data:k,simple:e.simple,"allow-clear":e.allowClear,disabled:e.disabled||k.disabled},null,8,["type","data","simple","allow-clear","disabled"]))),128))]),_:1},8,["class"])])]}),_:3})):(H(),Je(g,{key:1,class:le(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var jze=je(Nze,[["render",Fze]]);const Vze=ke({name:"Transfer",components:{ArcoButton:Xo,TransferView:jze,IconLeft:Al,IconRight:zi},props:{data:{type:Array,default:()=>[]},modelValue:{type:Array,default:void 0},defaultValue:{type:Array,default:()=>[]},selected:{type:Array,default:void 0},defaultSelected:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},simple:{type:Boolean,default:!1},oneWay:{type:Boolean,default:!1},showSearch:{type:Boolean,default:!1},showSelectAll:{type:Boolean,default:!0},title:{type:Array,default:()=>["Source","Target"]},sourceInputSearchProps:{type:Object},targetInputSearchProps:{type:Object}},emits:{"update:modelValue":e=>!0,"update:selected":e=>!0,change:e=>!0,select:e=>!0,search:(e,t)=>!0},setup(e,{emit:t,slots:n}){const{mergedDisabled:r,eventHandlers:o}=Ao({disabled:Iu(e,"disabled")}),a=Le("transfer"),s=fe(e.defaultValue),l=F(()=>{var x;return(x=e.modelValue)!=null?x:s.value}),c=fe(e.defaultSelected),d=F(()=>{var x;return(x=e.selected)!=null?x:c.value}),h=F(()=>{var x;return(x=e.title)==null?void 0:x[0]}),p=F(()=>{var x;return(x=e.title)==null?void 0:x[1]}),m=F(()=>{const x={data:[],allValidValues:[],selected:[],validSelected:[]},E={data:[],allValidValues:[],selected:[],validSelected:[]};for(const _ of e.data)l.value.includes(_.value)?(E.data.push(_),_.disabled||E.allValidValues.push(_.value),d.value.includes(_.value)&&(E.selected.push(_.value),_.disabled||E.validSelected.push(_.value))):(x.data.push(_),_.disabled||x.allValidValues.push(_.value),d.value.includes(_.value)&&(x.selected.push(_.value),_.disabled||x.validSelected.push(_.value)));return{sourceInfo:x,targetInfo:E}}),g=(x,E)=>{t("search",x,E)},y=(x,E)=>{var _,T;const D=E==="target"?[...l.value,...x]:l.value.filter(P=>!x.includes(P));k(m.value[E==="target"?"targetInfo":"sourceInfo"].selected),s.value=D,t("update:modelValue",D),t("change",D),(T=(_=o.value)==null?void 0:_.onChange)==null||T.call(_)},S=x=>{const E=x==="target"?m.value.sourceInfo.validSelected:m.value.targetInfo.validSelected;y(E,x)},k=x=>{c.value=x,t("update:selected",x),t("select",x)};ti(VH,Yt({selected:d,slots:n,moveTo:y,onSelect:k}));const C=F(()=>[a,{[`${a}-simple`]:e.simple,[`${a}-disabled`]:r.value}]);return{prefixCls:a,cls:C,dataInfo:m,computedSelected:d,mergedDisabled:r,sourceTitle:h,targetTitle:p,handleClick:S,handleSearch:g}}});function zze(e,t,n,r,o,a){const s=Pe("transfer-view"),l=Pe("icon-right"),c=Pe("arco-button"),d=Pe("icon-left");return H(),J("div",{class:le(e.cls)},[O(s,{type:"source",class:le(`${e.prefixCls}-view-source`),title:e.sourceTitle,"data-info":e.dataInfo.sourceInfo,data:e.dataInfo.sourceInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.sourceInputSearchProps,onSearch:e.handleSearch},wo({_:2},[e.$slots.source?{name:"default",fn:de(h=>[dt(e.$slots,"source",Ki(Sa(h)))]),key:"0"}:void 0,e.$slots["source-title"]?{name:"title",fn:de(h=>[dt(e.$slots,"source-title",Ki(Sa(h)))]),key:"1"}:void 0]),1032,["class","title","data-info","data","disabled","selected","show-search","show-select-all","simple","input-search-props","onSearch"]),e.simple?Me("v-if",!0):(H(),J("div",{key:0,class:le([`${e.prefixCls}-operations`])},[O(c,{tabindex:"-1","aria-label":"Move selected right",size:"small",shape:"round",disabled:e.dataInfo.sourceInfo.validSelected.length===0,onClick:t[0]||(t[0]=h=>e.handleClick("target"))},{icon:de(()=>[dt(e.$slots,"to-target-icon",{},()=>[O(l)])]),_:3},8,["disabled"]),e.oneWay?Me("v-if",!0):(H(),Je(c,{key:0,tabindex:"-1","aria-label":"Move selected left",size:"small",shape:"round",disabled:e.dataInfo.targetInfo.validSelected.length===0,onClick:t[1]||(t[1]=h=>e.handleClick("source"))},{icon:de(()=>[dt(e.$slots,"to-source-icon",{},()=>[O(d)])]),_:3},8,["disabled"]))],2)),O(s,{type:"target",class:le(`${e.prefixCls}-view-target`),title:e.targetTitle,"data-info":e.dataInfo.targetInfo,data:e.dataInfo.targetInfo.data,disabled:e.mergedDisabled,selected:e.computedSelected,"allow-clear":e.oneWay,"show-search":e.showSearch,"show-select-all":e.showSelectAll,simple:e.simple,"input-search-props":e.targetInputSearchProps,onSearch:e.handleSearch},wo({_:2},[e.$slots.target?{name:"default",fn:de(h=>[dt(e.$slots,"target",Ki(Sa(h)))]),key:"0"}:void 0,e.$slots["target-title"]?{name:"title",fn:de(h=>[dt(e.$slots,"target-title",Ki(Sa(h)))]),key:"1"}:void 0]),1032,["class","title","data-info","data","disabled","selected","allow-clear","show-search","show-select-all","simple","input-search-props","onSearch"])],2)}var EM=je(Vze,[["render",zze]]);const Uze=Object.assign(EM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+EM.name,EM)}}),tve=Symbol("TreeInjectionKey");function Hze(e){const t=[];function n(r){r&&r.forEach(o=>{t.push(o),n(o.children)})}return n(e),t}function Wze(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function cV(e){return e.selectable&&!e.disabled}function $re(e){return!e.isLeaf&&e.children}function Gze(e){return wl(e.isLeaf)?e.isLeaf:!e.children}function dV(e){return Set.prototype.add.bind(e)}function fV(e){return Set.prototype.delete.bind(e)}function dm(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function zH(e){var t;const n=[];return(t=e.children)==null||t.forEach(r=>{dm(r)&&n.push(r.key,...zH(r))}),n}function nve(e){var t;const{node:n,checkedKeySet:r,indeterminateKeySet:o}=e;let a=n.parent;for(;a;){if(dm(a)){const s=a.key,l=((t=a.children)==null?void 0:t.filter(dm))||[];let c=0;const d=l.length;l.some(({key:h})=>{if(r.has(h))c+=1;else if(o.has(h))return c+=.5,!0;return!1}),c&&c!==d?o.add(s):o.delete(s),c&&c===d?r.add(s):r.delete(s)}a=a.parent}}function hV(e){const{node:t,checked:n,checkedKeys:r,indeterminateKeys:o,checkStrictly:a=!1}=e,{key:s}=t,l=new Set(r),c=new Set(o);if(n?l.add(s):l.delete(s),c.delete(s),!a){const d=zH(t);n?d.forEach(dV(l)):d.forEach(fV(l)),d.forEach(fV(c)),nve({node:t,checkedKeySet:l,indeterminateKeySet:c})}return[[...l],[...c]]}function Kze(e){const{initCheckedKeys:t,key2TreeNode:n,checkStrictly:r,onlyCheckLeaf:o}=e,a=new Set,s=new Set,l=new Set;return r?t.forEach(dV(a)):t.forEach(c=>{var d;const h=n.get(c);if(!h||s.has(c)||o&&((d=h.children)!=null&&d.length))return;const p=zH(h);p.forEach(dV(s)),p.forEach(fV(l)),a.add(c),l.delete(c),nve({node:h,checkedKeySet:a,indeterminateKeySet:l})}),[[...a,...s],[...l]]}function G5(){return Pn(tve)||{}}const qze=ke({name:"IconFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-file`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Yze=["stroke-width","stroke-linecap","stroke-linejoin"];function Xze(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M16 21h16m-16 8h10m11 13H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1)]),14,Yze)}var TM=je(qze,[["render",Xze]]);const K5=Object.assign(TM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TM.name,TM)}});var Zze=ke({name:"TreeNodeSwitcher",components:{IconLoading:Xa,RenderFunction:Xh},props:{prefixCls:String,loading:Boolean,showLine:Boolean,treeNodeData:{type:Object},icons:{type:Object},nodeStatus:{type:Object}},emits:["click"],setup(e,{slots:t,emit:n}){const{icons:r,nodeStatus:o,treeNodeData:a}=nn(e),s=G5(),l=_d(t,"switcher-icon"),c=_d(t,"loading-icon");return{getSwitcherIcon:()=>{var d,h,p;const m=(h=(d=r?.value)==null?void 0:d.switcherIcon)!=null?h:l.value;return m?m(o.value):(p=s.switcherIcon)==null?void 0:p.call(s,a.value,o.value)},getLoadingIcon:()=>{var d,h,p;const m=(h=(d=r?.value)==null?void 0:d.loadingIcon)!=null?h:c.value;return m?m(o.value):(p=s.loadingIcon)==null?void 0:p.call(s,a.value,o.value)},onClick(d){n("click",d)}}},render(){var e,t,n;const{prefixCls:r,getSwitcherIcon:o,getLoadingIcon:a,onClick:s,nodeStatus:l={},loading:c,showLine:d}=this,{expanded:h,isLeaf:p}=l;if(c)return(e=a())!=null?e:da(Xa);let m=null,g=!1;if(p)d&&(m=(n=o())!=null?n:da(K5));else{const S=d?da("span",{class:`${r}-${h?"minus":"plus"}-icon`}):da(NH);m=(t=o())!=null?t:S,g=!d}if(!m)return null;const y=da("span",{class:`${r}-switcher-icon`,onClick:s},m);return g?da(To,{class:`${r}-icon-hover`},()=>y):y}});const rve=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function Jze(e,t){return!!(wn(e)?t:e)}function Qze(e,t){const n={...e};return t&&Object.keys(t).forEach(o=>{const a=t[o];a!==o&&(n[o]=e[a],delete n[a])}),n}function Bre({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:r,level:o}){return wn(e)?xn(t)?t(r,{isLeaf:n,level:o}):t??!1:e}function eUe(e){var t,n;const{treeNodeData:r,parentNode:o,isTail:a=!0,treeProps:s}=e,{fieldNames:l}=s||{},c=Qze(r,l),d=s.loadMore?!!c.isLeaf:!((t=c.children)!=null&&t.length),h=o?o.level+1:0,p={...xa(c,["children"]),key:(n=c.key)!=null?n:rve(),selectable:Bre({subEnable:c.selectable,superEnable:s?.selectable,isLeaf:d,level:h,treeNodeData:r}),disabled:!!c.disabled,disableCheckbox:!!c.disableCheckbox,checkable:Bre({subEnable:c.checkable,superEnable:s?.checkable,isLeaf:d,level:h,treeNodeData:r}),isLeaf:d,isTail:a,blockNode:!!s?.blockNode,showLine:!!s?.showLine,level:h,lineless:o?[...o.lineless,o.isTail]:[],draggable:Jze(c.draggable,s?.draggable)};return{...p,treeNodeProps:p,treeNodeData:r,parent:o,parentKey:o?.key,pathParentKeys:o?[...o.pathParentKeys,o.key]:[]}}function tUe(e,t){function n(r,o){if(!r)return;const{fieldNames:a}=t,s=[];return r.forEach((l,c)=>{const d=eUe({treeNodeData:l,treeProps:t,parentNode:o,isTail:c===r.length-1});d.children=n(l[a?.children||"children"],d),s.push(d)}),s}return n(e)}function ive(){const e=go(),t=()=>{var r;return(r=e?.vnode.key)!=null?r:rve()},n=fe(t());return Qa(()=>{n.value=t()}),n}function nUe(e){const{key:t,refTitle:n}=nn(e),r=G5(),o=fe(!1),a=fe(!1),s=fe(!1),l=fe(0),c=wm(d=>{if(!n.value)return;const h=n.value.getBoundingClientRect(),p=window.pageYOffset+h.top,{pageY:m}=d,g=h.height/4,y=m-p;l.value=y[]}},setup(e){const t=ive(),n=Le("tree-node"),r=G5(),o=F(()=>{var ie;return(ie=r.key2TreeNode)==null?void 0:ie.get(t.value)}),a=F(()=>o.value.treeNodeData),s=F(()=>o.value.children),l=F(()=>{var ie;const ee=(ie=r.treeProps)==null?void 0:ie.actionOnNodeClick;return ee?rUe(ee):[]}),{isLeaf:c,isTail:d,selectable:h,disabled:p,disableCheckbox:m,draggable:g}=nn(e),y=F(()=>{var ie;return[`${n}`,{[`${n}-selected`]:M.value,[`${n}-is-leaf`]:c.value,[`${n}-is-tail`]:d.value,[`${n}-expanded`]:$.value,[`${n}-disabled-selectable`]:!h.value&&!((ie=r.treeProps)!=null&&ie.disableSelectActionOnly),[`${n}-disabled`]:p.value}]}),S=fe(),{isDragOver:k,isDragging:C,isAllowDrop:x,dropPosition:E,setDragStatus:_}=nUe(Yt({key:t,refTitle:S})),T=F(()=>[`${n}-title`,{[`${n}-title-draggable`]:g.value,[`${n}-title-gap-top`]:k.value&&x.value&&E.value<0,[`${n}-title-gap-bottom`]:k.value&&x.value&&E.value>0,[`${n}-title-highlight`]:!C.value&&k.value&&x.value&&E.value===0,[`${n}-title-dragging`]:C.value,[`${n}-title-block`]:o.value.blockNode}]),D=F(()=>{var ie,ee;return(ee=(ie=r.checkedKeys)==null?void 0:ie.includes)==null?void 0:ee.call(ie,t.value)}),P=F(()=>{var ie,ee;return(ee=(ie=r.indeterminateKeys)==null?void 0:ie.includes)==null?void 0:ee.call(ie,t.value)}),M=F(()=>{var ie,ee;return(ee=(ie=r.selectedKeys)==null?void 0:ie.includes)==null?void 0:ee.call(ie,t.value)}),$=F(()=>{var ie,ee;return(ee=(ie=r.expandedKeys)==null?void 0:ie.includes)==null?void 0:ee.call(ie,t.value)}),I=F(()=>{var ie,ee;return(ee=(ie=r.loadingKeys)==null?void 0:ie.includes)==null?void 0:ee.call(ie,t.value)}),N=F(()=>r.dragIcon),j=F(()=>r.nodeIcon);function U(ie){var ee,W;c.value||(!((ee=s.value)!=null&&ee.length)&&xn(r.onLoadMore)?r.onLoadMore(t.value):(W=r?.onExpand)==null||W.call(r,!$.value,t.value,ie))}const z=Yt({loading:I,checked:D,selected:M,indeterminate:P,expanded:$,isLeaf:c}),G=F(()=>r.nodeTitle?()=>{var ie;return(ie=r.nodeTitle)==null?void 0:ie.call(r,a.value,z)}:void 0),X=F(()=>r.nodeExtra?()=>{var ie;return(ie=r.nodeExtra)==null?void 0:ie.call(r,a.value,z)}:void 0);return{nodekey:t,refTitle:S,prefixCls:n,classNames:y,titleClassNames:T,indeterminate:P,checked:D,expanded:$,selected:M,treeTitle:G,treeNodeData:a,loading:I,treeDragIcon:N,treeNodeIcon:j,extra:X,nodeStatus:z,onCheckboxChange(ie,ee){var W;m.value||p.value||(W=r.onCheck)==null||W.call(r,ie,t.value,ee)},onTitleClick(ie){var ee;l.value.includes("expand")&&U(ie),!(!h.value||p.value)&&((ee=r.onSelect)==null||ee.call(r,t.value,ie))},onSwitcherClick:U,onDragStart(ie){var ee;if(g.value){ie.stopPropagation(),_("dragStart",ie);try{(ee=ie.dataTransfer)==null||ee.setData("text/plain","")}catch{}}},onDragEnd(ie){g.value&&(ie.stopPropagation(),_("dragEnd",ie))},onDragOver(ie){g&&(ie.stopPropagation(),ie.preventDefault(),_("dragOver",ie))},onDragLeave(ie){g.value&&(ie.stopPropagation(),_("dragLeave",ie))},onDrop(ie){!g.value||!x.value||(ie.stopPropagation(),ie.preventDefault(),_("drop",ie))}}}}),oUe=["data-level","data-key"],sUe=["draggable"];function aUe(e,t,n,r,o,a){const s=Pe("NodeSwitcher"),l=Pe("Checkbox"),c=Pe("RenderFunction"),d=Pe("IconDragDotVertical");return H(),J("div",{class:le(e.classNames),"data-level":e.level,"data-key":e.nodekey},[Me(" 缩进 "),L("span",{class:le(`${e.prefixCls}-indent`)},[(H(!0),J(Ft,null,pn(e.level,h=>(H(),J("span",{key:h,class:le([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[h-1]}])},null,2))),128))],2),Me(" switcher "),L("span",{class:le([`${e.prefixCls}-switcher`,{[`${e.prefixCls}-switcher-expanded`]:e.expanded}])},[O(s,{"prefix-cls":e.prefixCls,loading:e.loading,"show-line":e.showLine,"tree-node-data":e.treeNodeData,icons:{switcherIcon:e.switcherIcon,loadingIcon:e.loadingIcon},"node-status":e.nodeStatus,onClick:e.onSwitcherClick},wo({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:de(()=>[Me(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),dt(e.$slots,"switcher-icon")]),key:"0"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[Me(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),dt(e.$slots,"loading-icon")]),key:"1"}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),Me(" checkbox "),e.checkable?(H(),Je(l,{key:0,disabled:e.disableCheckbox||e.disabled,"model-value":e.checked,indeterminate:e.indeterminate,"uninject-group-context":"",onChange:e.onCheckboxChange},null,8,["disabled","model-value","indeterminate","onChange"])):Me("v-if",!0),Me(" 内容 "),L("span",{ref:"refTitle",class:le(e.titleClassNames),draggable:e.draggable,onDragstart:t[0]||(t[0]=(...h)=>e.onDragStart&&e.onDragStart(...h)),onDragend:t[1]||(t[1]=(...h)=>e.onDragEnd&&e.onDragEnd(...h)),onDragover:t[2]||(t[2]=(...h)=>e.onDragOver&&e.onDragOver(...h)),onDragleave:t[3]||(t[3]=(...h)=>e.onDragLeave&&e.onDragLeave(...h)),onDrop:t[4]||(t[4]=(...h)=>e.onDrop&&e.onDrop(...h)),onClick:t[5]||(t[5]=(...h)=>e.onTitleClick&&e.onTitleClick(...h))},[e.$slots.icon||e.icon||e.treeNodeIcon?(H(),J("span",{key:0,class:le([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[Me(" 节点图标 "),e.$slots.icon?dt(e.$slots,"icon",Ki(zt({key:0},e.nodeStatus))):e.icon?(H(),Je(c,zt({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(H(),Je(c,zt({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):Me("v-if",!0)],2)):Me("v-if",!0),L("span",{class:le(`${e.prefixCls}-title-text`)},[e.treeTitle?(H(),Je(c,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(H(),J(Ft,{key:1},[Me(" 标题,treeTitle 优先级高于节点的 title "),dt(e.$slots,"title",{title:e.title},()=>[We(Ve(e.title),1)])],2112)),e.draggable?(H(),J("span",{key:2,class:le([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[Me(" 拖拽图标 "),e.$slots["drag-icon"]?dt(e.$slots,"drag-icon",Ki(zt({key:0},e.nodeStatus))):e.dragIcon?(H(),Je(c,zt({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(H(),Je(c,zt({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(H(),Je(d,{key:3}))],2)):Me("v-if",!0)],2)],42,sUe),Me(" 额外 "),e.extra?(H(),Je(c,{key:1,"render-func":e.extra},null,8,["render-func"])):Me("v-if",!0)],10,oUe)}var pV=je(iUe,[["render",aUe]]);const lUe=ke({name:"ExpandTransition",props:{expanded:Boolean},emits:["end"],setup(e,{emit:t}){return{onEnter(n){const r=`${n.scrollHeight}px`;n.style.height=e.expanded?"0":r,n.offsetHeight,n.style.height=e.expanded?r:"0"},onAfterEnter(n){n.style.height=e.expanded?"":"0",t("end")},onBeforeLeave(n){n.style.display="none"}}}});function uUe(e,t,n,r,o,a){return H(),Je(xs,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:de(()=>[dt(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var cUe=je(lUe,[["render",uUe]]);const dUe=ke({name:"TransitionNodeList",components:{ExpandTransition:cUe,BaseTreeNode:pV},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${Le("tree")}-node-list`],r=G5(),{nodeKey:o}=nn(e),a=F(()=>{var c,d;return(d=(c=r.expandedKeys)==null?void 0:c.includes)==null?void 0:d.call(c,o.value)}),s=F(()=>{var c;const d=new Set(r.expandedKeys||[]),h=(c=r.flattenTreeData)==null?void 0:c.filter(p=>{var m,g;return(m=p.pathParentKeys)!=null&&m.includes(o.value)?!r.filterTreeNode||((g=r.filterTreeNode)==null?void 0:g.call(r,p.treeNodeData)):!1});return h?.filter(p=>{var m;if(a.value)return(m=p.pathParentKeys)==null?void 0:m.every(y=>d.has(y));const g=p.pathParentKeys.indexOf(o.value);return p.pathParentKeys.slice(g+1).every(y=>d.has(y))})}),l=F(()=>{var c,d;return((c=r.currentExpandKeys)==null?void 0:c.includes(o.value))&&((d=s.value)==null?void 0:d.length)});return{classNames:n,visibleNodeList:s,show:l,expanded:a,onTransitionEnd(){var c;(c=r.onExpandEnd)==null||c.call(r,o.value)}}}});function fUe(e,t,n,r,o,a){const s=Pe("BaseTreeNode"),l=Pe("ExpandTransition");return H(),Je(l,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:de(()=>[e.show?(H(),J("div",{key:0,class:le(e.classNames)},[(H(!0),J(Ft,null,pn(e.visibleNodeList,c=>(H(),Je(s,zt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)):Me("v-if",!0)]),_:1},8,["expanded","onEnd"])}var hUe=je(dUe,[["render",fUe]]),pUe=ke({name:"TreeNode",inheritAttrs:!1,props:{...pV.props},setup(e,{slots:t,attrs:n}){const r=ive();return()=>O(Ft,null,[O(pV,zt(e,n,{key:r.value}),t),O(hUe,{key:r.value,nodeKey:r.value},null)])}});function vUe(e){const{defaultCheckedKeys:t,checkedKeys:n,key2TreeNode:r,checkStrictly:o,halfCheckedKeys:a,onlyCheckLeaf:s}=nn(e),l=fe(!1),c=fe([]),d=fe([]),h=fe(),p=fe(),m=y=>Kze({initCheckedKeys:y,key2TreeNode:r.value,checkStrictly:o.value,onlyCheckLeaf:s.value}),g=y=>{const S=m(y);[c.value,d.value]=S};return g(n.value||t?.value||[]),Os(()=>{n.value?[h.value,p.value]=m(n.value):l.value&&(h.value=void 0,p.value=void 0,c.value=[],d.value=[]),l.value||(l.value=!0)}),{checkedKeys:F(()=>h.value||c.value),indeterminateKeys:F(()=>o.value&&a.value?a.value:p.value||d.value),setCheckedState(y,S,k=!1){return k?g(y):(c.value=y,d.value=S),[c.value,d.value]}}}function ove(e){const{treeData:t,fieldNames:n,selectable:r,showLine:o,blockNode:a,checkable:s,loadMore:l,draggable:c}=nn(e),d=fe([]);Os(()=>{var m,g;d.value=tUe(t.value||[],{selectable:(m=r?.value)!=null?m:!1,showLine:!!o?.value,blockNode:!!a?.value,checkable:(g=s?.value)!=null?g:!1,fieldNames:n?.value,loadMore:!!l?.value,draggable:!!c?.value})});const h=F(()=>Hze(d.value)),p=F(()=>Wze(h.value));return{treeData:d,flattenTreeData:h,key2TreeNode:p}}const mUe=ke({name:"Tree",components:{VirtualList:o3,TreeNode:pUe},props:{size:{type:String,default:"medium"},blockNode:{type:Boolean},defaultExpandAll:{type:Boolean,default:!0},multiple:{type:Boolean},checkable:{type:[Boolean,String,Function],default:!1},selectable:{type:[Boolean,Function],default:!0},checkStrictly:{type:Boolean},checkedStrategy:{type:String,default:"all"},defaultSelectedKeys:{type:Array},selectedKeys:{type:Array},defaultCheckedKeys:{type:Array},checkedKeys:{type:Array},defaultExpandedKeys:{type:Array},expandedKeys:{type:Array},data:{type:Array,default:()=>[]},fieldNames:{type:Object},showLine:{type:Boolean},loadMore:{type:Function},draggable:{type:Boolean},allowDrop:{type:Function},filterTreeNode:{type:Function},searchValue:{type:String,default:""},virtualListProps:{type:Object},defaultExpandSelected:{type:Boolean},defaultExpandChecked:{type:Boolean},autoExpandParent:{type:Boolean,default:!0},halfCheckedKeys:{type:Array},onlyCheckLeaf:{type:Boolean,default:!1},animation:{type:Boolean,default:!0},actionOnNodeClick:{type:String},disableSelectActionOnly:{type:Boolean,default:!1}},emits:{select:(e,t)=>!0,"update:selectedKeys":e=>!0,check:(e,t)=>!0,"update:checkedKeys":e=>!0,"update:halfCheckedKeys":e=>!0,expand:(e,t)=>!0,"update:expandedKeys":e=>!0,dragStart:(e,t)=>!0,dragEnd:(e,t)=>!0,dragOver:(e,t)=>!0,dragLeave:(e,t)=>!0,drop:e=>!0},setup(e,{emit:t,slots:n}){const{data:r,showLine:o,multiple:a,loadMore:s,checkStrictly:l,checkedKeys:c,defaultCheckedKeys:d,selectedKeys:h,defaultSelectedKeys:p,expandedKeys:m,defaultExpandedKeys:g,checkedStrategy:y,selectable:S,checkable:k,blockNode:C,fieldNames:x,size:E,defaultExpandAll:_,filterTreeNode:T,draggable:D,allowDrop:P,defaultExpandSelected:M,defaultExpandChecked:$,autoExpandParent:I,halfCheckedKeys:N,onlyCheckLeaf:j,animation:U}=nn(e),z=Le("tree"),G=F(()=>[`${z}`,{[`${z}-checkable`]:k.value,[`${z}-show-line`]:o.value},`${z}-size-${E.value}`]),X=_d(n,"switcher-icon"),ie=_d(n,"loading-icon"),ee=_d(n,"drag-icon"),W=_d(n,"icon"),q=_d(n,"title"),Q=_d(n,"extra"),{treeData:ne,flattenTreeData:ae,key2TreeNode:re}=ove(Yt({treeData:r,selectable:S,showLine:o,blockNode:C,checkable:k,fieldNames:x,loadMore:s,draggable:D})),{checkedKeys:Ce,indeterminateKeys:we,setCheckedState:ve}=vUe(Yt({defaultCheckedKeys:d,checkedKeys:c,checkStrictly:l,key2TreeNode:re,halfCheckedKeys:N,onlyCheckLeaf:j})),[me,xe]=fa(p?.value||[],Yt({value:h})),Be=fe([]),Ke=fe();function ze(){if(g?.value){const bt=new Set([]);return g.value.forEach(Fe=>{if(bt.has(Fe))return;const At=re.value.get(Fe);At&&[...I.value?At.pathParentKeys:[],Fe].forEach(tn=>bt.add(tn))}),[...bt]}if(_.value)return ae.value.filter(bt=>bt.children&&bt.children.length).map(bt=>bt.key);if(M.value||$.value){const bt=new Set([]),Fe=At=>{At.forEach(tn=>{const sn=re.value.get(tn);sn&&(sn.pathParentKeys||[]).forEach(Gt=>bt.add(Gt))})};return M.value&&Fe(me.value),$.value&&Fe(Ce.value),[...bt]}return[]}const[be,_e]=fa(ze(),Yt({value:m})),Ne=fe([]),Se=F(()=>{const bt=new Set(be.value),Fe=new Set(Ne.value);return ae.value.filter(At=>{var tn;if(!(!T||!T.value||T?.value(At.treeNodeData)))return!1;const Gt=wn(At.parentKey),Zt=(tn=At.pathParentKeys)==null?void 0:tn.every(nr=>bt.has(nr)&&!Fe.has(nr));return Gt||Zt})});function $e(bt,Fe=y.value){let At=[...bt];return Fe==="parent"?At=bt.filter(tn=>{const sn=re.value.get(tn);return sn&&!(!wn(sn.parentKey)&&bt.includes(sn.parentKey))}):Fe==="child"&&(At=bt.filter(tn=>{var sn,Gt;return!((Gt=(sn=re.value.get(tn))==null?void 0:sn.children)!=null&&Gt.length)})),At}function Xe(bt){return bt.map(Fe=>{var At;return((At=re.value.get(Fe))==null?void 0:At.treeNodeData)||void 0}).filter(Boolean)}function rt(bt){const{targetKey:Fe,targetChecked:At,newCheckedKeys:tn,newIndeterminateKeys:sn,event:Gt}=bt,Zt=Fe?re.value.get(Fe):void 0,nr=$e(tn);t("update:checkedKeys",nr),t("update:halfCheckedKeys",sn),t("check",nr,{checked:At,node:Zt?.treeNodeData,checkedNodes:Xe(nr),halfCheckedKeys:sn,halfCheckedNodes:Xe(sn),e:Gt})}function nt(bt){const{targetKey:Fe,targetSelected:At,newSelectedKeys:tn,event:sn}=bt,Gt=Fe?re.value.get(Fe):void 0;t("update:selectedKeys",tn),t("select",tn,{selected:At,node:Gt?.treeNodeData,selectedNodes:Xe(tn),e:sn})}function gt(bt){const{targetKey:Fe,targetExpanded:At,newExpandedKeys:tn,event:sn}=bt,Gt=Fe?re.value.get(Fe):void 0;t("expand",tn,{expanded:At,node:Gt?.treeNodeData,expandedNodes:Xe(tn),e:sn}),t("update:expandedKeys",tn)}function yt(bt){const[Fe,At]=ve(bt,[],!0);rt({newCheckedKeys:Fe,newIndeterminateKeys:At})}function $t(bt){let Fe=bt;!a.value&&bt.length>1&&(Fe=[bt[0]]),xe(Fe),nt({newSelectedKeys:Fe})}function Ct(bt){Ne.value=[],_e(bt),gt({newExpandedKeys:bt})}function Dt(bt,Fe,At){if(!bt.length)return;let tn=[...Ce.value],sn=[...we.value];bt.forEach(Gt=>{const Zt=re.value.get(Gt);Zt&&([tn,sn]=hV({node:Zt,checked:Fe,checkedKeys:[...tn],indeterminateKeys:[...sn],checkStrictly:l.value}))}),ve(tn,sn),rt({targetKey:At,targetChecked:wn(At)?void 0:Fe,newCheckedKeys:tn,newIndeterminateKeys:sn})}function on(bt,Fe,At){if(!bt.length)return;let tn;if(a.value){const sn=new Set(me.value);bt.forEach(Gt=>{Fe?sn.add(Gt):sn.delete(Gt)}),tn=[...sn]}else tn=Fe?[bt[0]]:[];xe(tn),nt({targetKey:At,targetSelected:wn(At)?void 0:Fe,newSelectedKeys:tn})}function lt(bt,Fe,At){const tn=new Set(be.value);bt.forEach(Gt=>{Fe?tn.add(Gt):tn.delete(Gt),ut(Gt)});const sn=[...tn];_e(sn),gt({targetKey:At,targetExpanded:wn(At)?void 0:Fe,newExpandedKeys:sn})}function xt(bt,Fe,At){const tn=re.value.get(Fe);if(!tn)return;const[sn,Gt]=hV({node:tn,checked:bt,checkedKeys:Ce.value,indeterminateKeys:we.value,checkStrictly:l.value});ve(sn,Gt),rt({targetKey:Fe,targetChecked:bt,newCheckedKeys:sn,newIndeterminateKeys:Gt,event:At})}function Ye(bt,Fe){if(!re.value.get(bt))return;let tn,sn;if(a.value){const Gt=new Set(me.value);sn=!Gt.has(bt),sn?Gt.add(bt):Gt.delete(bt),tn=[...Gt]}else sn=!0,tn=[bt];xe(tn),nt({targetKey:bt,targetSelected:sn,newSelectedKeys:tn,event:Fe})}function Ue(bt,Fe,At){if(Ne.value.includes(Fe)||!re.value.get(Fe))return;const sn=new Set(be.value);bt?sn.add(Fe):sn.delete(Fe);const Gt=[...sn];_e(Gt),U.value&&Ne.value.push(Fe),gt({targetKey:Fe,targetExpanded:bt,newExpandedKeys:Gt,event:At})}function ut(bt){const Fe=Ne.value.indexOf(bt);Ne.value.splice(Fe,1)}const St=F(()=>s?.value?async bt=>{if(!xn(s.value))return;const Fe=re.value.get(bt);if(!Fe)return;const{treeNodeData:At}=Fe;Be.value=[...new Set([...Be.value,bt])];try{await s.value(At),Be.value=Be.value.filter(tn=>tn!==bt),Ue(!0,bt),Ce.value.includes(bt)&&xt(!0,bt)}catch(tn){Be.value=Be.value.filter(sn=>sn!==bt),console.error("[tree]load data error: ",tn)}}:void 0),Ht=Yt({treeProps:e,switcherIcon:X,loadingIcon:ie,dragIcon:ee,nodeIcon:W,nodeTitle:q,nodeExtra:Q,treeData:ne,flattenTreeData:ae,key2TreeNode:re,checkedKeys:Ce,indeterminateKeys:we,selectedKeys:me,expandedKeys:be,loadingKeys:Be,currentExpandKeys:Ne,onLoadMore:St,filterTreeNode:T,onCheck:xt,onSelect:Ye,onExpand:Ue,onExpandEnd:ut,allowDrop(bt,Fe){const At=re.value.get(bt);return At&&xn(P.value)?!!P.value({dropNode:At.treeNodeData,dropPosition:Fe}):!0},onDragStart(bt,Fe){const At=re.value.get(bt);Ke.value=At,At&&t("dragStart",Fe,At.treeNodeData)},onDragEnd(bt,Fe){const At=re.value.get(bt);Ke.value=void 0,At&&t("dragEnd",Fe,At.treeNodeData)},onDragOver(bt,Fe){const At=re.value.get(bt);At&&t("dragOver",Fe,At.treeNodeData)},onDragLeave(bt,Fe){const At=re.value.get(bt);At&&t("dragLeave",Fe,At.treeNodeData)},onDrop(bt,Fe,At){const tn=re.value.get(bt);Ke.value&&tn&&!(tn.key===Ke.value.key||tn.pathParentKeys.includes(Ke.value.key||""))&&t("drop",{e:At,dragNode:Ke.value.treeNodeData,dropNode:tn.treeNodeData,dropPosition:Fe})}});return ti(tve,Ht),{classNames:G,visibleTreeNodeList:Se,treeContext:Ht,virtualListRef:fe(),computedSelectedKeys:me,computedExpandedKeys:be,computedCheckedKeys:Ce,computedIndeterminateKeys:we,getPublicCheckedKeys:$e,getNodes:Xe,internalCheckNodes:Dt,internalSetCheckedKeys:yt,internalSelectNodes:on,internalSetSelectedKeys:$t,internalExpandNodes:lt,internalSetExpandedKeys:Ct}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:r,checkedKeys:o}=this.treeContext,a=!o.includes(e),s=n.get(e);s&&dm(s)&&r(a,e,t)},scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)},getSelectedNodes(){return this.getNodes(this.computedSelectedKeys)},getCheckedNodes(e={}){const{checkedStrategy:t,includeHalfChecked:n}=e,r=this.getPublicCheckedKeys(this.computedCheckedKeys,t);return[...this.getNodes(r),...n?this.getHalfCheckedNodes():[]]},getHalfCheckedNodes(){return this.getNodes(this.computedIndeterminateKeys)},getExpandedNodes(){return this.getNodes(this.computedExpandedKeys)},checkAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const o=t.get(r);return o&&dm(o)}):[];this.internalSetCheckedKeys(n)},checkNode(e,t=!0,n=!1){const{checkStrictly:r,treeContext:o}=this,{key2TreeNode:a}=o,s=tr(e),l=(s?e:[e]).filter(c=>{const d=a.get(c);return d&&dm(d)&&(r||!n||Gze(d))});this.internalCheckNodes(l,t,s?void 0:e)},selectAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const o=t.get(r);return o&&cV(o)}):[];this.internalSetSelectedKeys(n)},selectNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=tr(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&cV(s)});this.internalSelectNodes(o,t,r?void 0:e)},expandAll(e=!0){const{key2TreeNode:t}=this.treeContext,n=e?[...t.keys()].filter(r=>{const o=t.get(r);return o&&$re(o)}):[];this.internalSetExpandedKeys(n)},expandNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=tr(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&$re(s)});this.internalExpandNodes(o,t,r?void 0:e)}}});function gUe(e,t,n,r,o,a){const s=Pe("TreeNode"),l=Pe("VirtualList");return H(),J("div",{class:le(e.classNames)},[e.virtualListProps?(H(),Je(l,zt({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:de(({item:c})=>[(H(),Je(s,zt({key:`${e.searchValue}-${c.key}`},c.treeNodeProps),null,16))]),_:1},16,["data"])):(H(!0),J(Ft,{key:1},pn(e.visibleTreeNodeList,c=>(H(),Je(s,zt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)}var AM=je(mUe,[["render",gUe]]);const vV=Object.assign(AM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+AM.name,AM)}}),yUe=ke({name:"Typography",setup(){return{classNames:[Le("typography")]}}});function bUe(e,t,n,r,o,a){return H(),J("article",{class:le(e.classNames)},[dt(e.$slots,"default")],2)}var IM=je(yUe,[["render",bUe]]);const _Ue=ke({name:"TypographyEditContent",components:{Input:R0},props:{text:{type:String,required:!0}},emits:["change","end","update:text"],setup(e,{emit:t}){const r=[`${Le("typography")}-edit-content`],o=fe();function a(l){t("update:text",l),t("change",l)}function s(){t("end")}return vn(()=>{if(!o.value||!o.value.$el)return;const l=o.value.$el.querySelector("input");if(!l)return;l.focus&&l.focus();const{length:c}=l.value;l.setSelectionRange(c,c)}),{classNames:r,inputRef:o,onBlur:s,onChange:a,onEnd:s}}});function SUe(e,t,n,r,o,a){const s=Pe("Input");return H(),J("div",{class:le(e.classNames)},[O(s,{ref:"inputRef","auto-size":"","model-value":e.text,onBlur:e.onBlur,onInput:e.onChange,onKeydown:Ch(e.onEnd,["enter"])},null,8,["model-value","onBlur","onInput","onKeydown"])],2)}var kUe=je(_Ue,[["render",SUe]]);const xUe=ke({name:"IconCopy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-copy`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CUe=["stroke-width","stroke-linecap","stroke-linejoin"];function wUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M20 6h18a2 2 0 0 1 2 2v22M8 16v24c0 1.105.891 2 1.996 2h20.007A1.99 1.99 0 0 0 32 40.008V15.997A1.997 1.997 0 0 0 30 14H10a2 2 0 0 0-2 2Z"},null,-1)]),14,CUe)}var LM=je(xUe,[["render",wUe]]);const q5=Object.assign(LM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LM.name,LM)}}),EUe=ke({name:"IconEdit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-edit`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TUe=["stroke-width","stroke-linecap","stroke-linejoin"];function AUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m30.48 19.038 5.733-5.734a1 1 0 0 0 0-1.414l-5.586-5.586a1 1 0 0 0-1.414 0l-5.734 5.734m7 7L15.763 33.754a1 1 0 0 1-.59.286l-6.048.708a1 1 0 0 1-1.113-1.069l.477-6.31a1 1 0 0 1 .29-.631l14.7-14.7m7 7-7-7M6 42h36"},null,-1)]),14,TUe)}var DM=je(EUe,[["render",AUe]]);const UH=Object.assign(DM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DM.name,DM)}}),IUe=ke({name:"TypographyOperations",components:{Tooltip:qc,IconCheckCircleFill:Kh,IconCopy:q5,IconEdit:UH},props:{editable:Boolean,copyable:Boolean,expandable:Boolean,isCopied:Boolean,isEllipsis:Boolean,expanded:Boolean,forceRenderExpand:Boolean,editTooltipProps:Object,copyTooltipProps:Object},emits:{edit:()=>!0,copy:()=>!0,expand:()=>!0},setup(e,{emit:t}){const n=Le("typography"),r=F(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:o}=$o();return{prefixCls:n,showExpand:r,t:o,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function LUe(e,t,n,r,o,a){const s=Pe("IconEdit"),l=Pe("Tooltip"),c=Pe("IconCheckCircleFill"),d=Pe("IconCopy");return H(),J(Ft,null,[e.editable?(H(),Je(l,zt({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:de(()=>[L("span",{class:le(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=us((...h)=>e.onEditClick&&e.onEditClick(...h),["stop"]))},[O(s)],2)]),_:1},16,["content"])):Me("v-if",!0),e.copyable?(H(),Je(l,Ki(zt({key:1},e.copyTooltipProps)),{content:de(()=>[dt(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[We(Ve(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:de(()=>[L("span",{class:le({[`${e.prefixCls}-operation-copied`]:e.isCopied,[`${e.prefixCls}-operation-copy`]:!e.isCopied}),onClick:t[1]||(t[1]=us((...h)=>e.onCopyClick&&e.onCopyClick(...h),["stop"]))},[dt(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(H(),Je(c,{key:0})):(H(),Je(d,{key:1}))])],2)]),_:3},16)):Me("v-if",!0),e.showExpand?(H(),J("a",{key:2,class:le(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=us((...h)=>e.onExpandClick&&e.onExpandClick(...h),["stop"]))},[dt(e.$slots,"expand-node",{expanded:e.expanded},()=>[We(Ve(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):Me("v-if",!0)],64)}var Nre=je(IUe,[["render",LUe]]);let Ws;function DUe(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function PM(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var PUe=(e,t,n,r)=>{Ws||(Ws=document.createElement("div"),document.body.appendChild(Ws));const{rows:o,suffix:a,ellipsisStr:s}=t,l=window.getComputedStyle(e),c=DUe(l),d=PM(l.lineHeight),h=Math.round(d*o+PM(l.paddingTop)+PM(l.paddingBottom));Ws.setAttribute("style",c),Ws.setAttribute("aria-hidden","true"),Ws.style.height="auto",Ws.style.minHeight="auto",Ws.style.maxHeight="auto",Ws.style.position="fixed",Ws.style.left="0",Ws.style.top="-99999999px",Ws.style.zIndex="-200",Ws.style.whiteSpace="normal";const p=Ey({render(){return O("span",null,[n])}});p.mount(Ws);const m=Array.prototype.slice.apply(Ws.childNodes[0].cloneNode(!0).childNodes);p.unmount(),Ws.innerHTML="";const g=document.createTextNode(`${s}${a}`);Ws.appendChild(g),m.forEach(C=>{Ws.appendChild(C)});const y=document.createTextNode(r);Ws.insertBefore(y,g);function S(){return Ws.offsetHeight<=h}if(S())return{ellipsis:!1,text:r};function k(C,x=0,E=r.length,_=0){const T=Math.floor((x+E)/2),D=r.slice(0,T);if(C.textContent=D,x>=E-1)for(let P=E;P>=x;P-=1){const M=r.slice(0,P);if(C.textContent=M,S()||!M)return}S()?k(C,T,E,T):k(C,x,T,_)}return k(y),{text:y.textContent,ellipsis:!0}};const RUe=async e=>{var t;if((t=navigator.clipboard)!=null&&t.writeText)try{await navigator.clipboard.writeText(e);return}catch(a){console.error(a??new DOMException("The request is not allowed","NotAllowedError"))}const n=document.createElement("span");n.textContent=e,n.style.whiteSpace="pre",document.body.appendChild(n);const r=window.getSelection(),o=window.document.createRange();r?.removeAllRanges(),o.selectNode(n),r?.addRange(o);try{window.document.execCommand("copy")}catch(a){console.error(`execCommand Error: ${a}`)}r?.removeAllRanges(),window.document.body.removeChild(n)};let n1;function MUe(e){if(!e)return"";n1||(n1=document.createElement("div"),n1.setAttribute("aria-hidden","true"),document.body.appendChild(n1));const t=Ey({render(){return O("div",null,[e])}});t.mount(n1);const n=n1.innerText;return t.unmount(),n}function sve(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}function OUe(e){const{bold:t,mark:n,underline:r,delete:o,code:a}=e,s=[];return t&&s.push("b"),r&&s.push("u"),o&&s.push("del"),a&&s.push("code"),n&&s.push("mark"),s}function Fre(e,t){const{mark:n}=e,r=OUe(e),o=mr(n)&&n.color?{backgroundColor:n.color}:{};return r.reduce((a,s)=>O(s,s==="mark"?{style:o}:{},sve(a)?a:{default:()=>[a]}),t)}function $Ue(e){const t=!!e.showTooltip,n=mr(e.showTooltip)&&e.showTooltip.type==="popover"?cH:qc,r=mr(e.showTooltip)&&e.showTooltip.props||{};return{rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1,...xa(e,["showTooltip"]),showTooltip:t,TooltipComponent:n,tooltipProps:r}}var HH=ke({name:"TypographyBase",inheritAttrs:!1,props:{component:{type:String,required:!0},type:{type:String},bold:{type:Boolean},mark:{type:[Boolean,Object],default:!1},underline:{type:Boolean},delete:{type:Boolean},code:{type:Boolean},disabled:{type:Boolean},editable:{type:Boolean},editing:{type:Boolean,default:void 0},defaultEditing:{type:Boolean},editText:{type:String},copyable:{type:Boolean},copyText:{type:String},copyDelay:{type:Number,default:3e3},ellipsis:{type:[Boolean,Object],default:!1},editTooltipProps:{type:Object},copyTooltipProps:{type:Object}},emits:{editStart:()=>!0,change:e=>!0,"update:editText":e=>!0,editEnd:()=>!0,"update:editing":e=>!0,copy:e=>!0,ellipsis:e=>!0,expand:e=>!0},setup(e,{slots:t,emit:n,attrs:r}){const{editing:o,defaultEditing:a,ellipsis:s,copyable:l,editable:c,copyText:d,editText:h,copyDelay:p,component:m}=nn(e),g=Le("typography"),y=F(()=>[g,{[`${g}-${e.type}`]:e.type,[`${g}-disabled`]:e.disabled}]),S=fe(),k=fe(""),[C,x]=fa(a.value,Yt({value:o})),E=F(()=>c.value&&C.value);function _(){n("update:editing",!0),n("editStart"),x(!0)}function T(Ce){n("update:editText",Ce),n("change",Ce)}function D(){C.value&&(n("update:editing",!1),n("editEnd"),x(!1))}const P=fe(!1);let M=null;function $(){var Ce;const we=(Ce=d.value)!=null?Ce:k.value;RUe(we||""),P.value=!0,n("copy",we),M=setTimeout(()=>{P.value=!1},p.value)}vi(()=>{M&&clearTimeout(M),M=null});const I=fe(!1),N=fe(!1),j=fe(""),U=F(()=>$Ue(mr(s.value)&&s.value||{}));let z=null;function G(){const Ce=!N.value;N.value=Ce,n("expand",Ce)}function X(Ce=!1){return U.value.css?O(Nre,{editable:c.value,copyable:l.value,expandable:U.value.expandable,isCopied:P.value,isEllipsis:ne.value,expanded:N.value,forceRenderExpand:Ce||N.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:$,onExpand:G},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):O(Nre,{editable:c.value,copyable:l.value,expandable:U.value.expandable,isCopied:P.value,isEllipsis:I.value,expanded:N.value,forceRenderExpand:Ce,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:$,onExpand:G},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function ie(){if(!S.value)return;const{ellipsis:Ce,text:we}=PUe(S.value,U.value,X(!!U.value.expandable),k.value);I.value!==Ce&&(I.value=Ce,U.value.css||n("ellipsis",Ce)),j.value!==we&&(j.value=we||"")}function ee(){s.value&&!N.value&&(O8(z),z=Ghe(()=>{ie()}))}vi(()=>{O8(z)}),Pt(()=>U.value.rows,()=>{ee()}),Pt(s,Ce=>{Ce?ee():I.value=!1});let W=[];const q=()=>{if(s.value||l.value||c.value){const Ce=MUe(W);Ce!==k.value&&(k.value=Ce,ee())}};vn(q),Qa(q);const Q=fe(),ne=fe(!1),ae=()=>{if(S.value&&Q.value){const Ce=Q.value.offsetHeight>S.value.offsetHeight;Ce!==ne.value&&(ne.value=Ce,n("ellipsis",Ce))}},re=F(()=>N.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":U.value.rows,"-webkit-box-orient":"vertical"});return()=>{var Ce,we;if(W=((Ce=t.default)==null?void 0:Ce.call(t))||[],E.value){const Se=(we=h.value)!=null?we:k.value;return O(kUe,{text:Se,onChange:$e=>{$e!==Se&&T($e)},onEnd:D},null)}const{suffix:ve,ellipsisStr:me,showTooltip:xe,tooltipProps:Be,TooltipComponent:Ke}=U.value,ze=I.value&&!N.value,be=ze&&!xe?{title:k.value}:{},_e=m.value;if(U.value.css){const Se=Fre(e,W),$e=O(_e,zt({class:y.value,ref:S,style:re.value},be,r),{default:()=>[O("span",{ref:Q},[Se])]});return ne.value?O(Ke,zt(Be,{onResize:()=>ae()}),{default:()=>[$e],content:()=>k.value}):O(Id,{onResize:()=>{ae()}},sve($e)?$e:{default:()=>[$e]})}const Ne=Fre(e,ze?j.value:W);return O(Id,{onResize:()=>ee()},{default:()=>[O(_e,zt({class:y.value,ref:S},be,r),{default:()=>[ze&&xe?O(Ke,Be,{default:()=>[O("span",null,[Ne])],content:()=>k.value}):Ne,ze?me:null,ve,X()]})]})}}}),Gw=ke({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=nn(e),r=Le("typography"),o=F(()=>t?.value?"blockquote":"div"),a=F(()=>[{[`${r}-spacing-close`]:n?.value==="close"}]);return{component:o,classNames:a}},render(){const{component:e,classNames:t}=this;return O(HH,zt({class:t},this.$attrs,{component:e}),this.$slots)}}),Kw=ke({name:"TypographyTitle",inheritAttrs:!1,props:{heading:{type:Number,default:1}},setup(e){const{heading:t}=nn(e);return{component:F(()=>`h${t?.value}`)}},render(){const{component:e}=this;return O(HH,zt(this.$attrs,{component:e}),this.$slots)}}),qw=ke({name:"TypographyText",inheritAttrs:!1,props:{ellipsis:{type:[Boolean,Object],default:!1}},setup(e){const{ellipsis:t}=nn(e);return{component:F(()=>t?.value?"div":"span")}},render(){const{ellipsis:e,component:t}=this;return O(HH,zt(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const BUe=Object.assign(IM,{Paragraph:Gw,Title:Kw,Text:qw,install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+IM.name,IM),e.component(n+Gw.name,Gw),e.component(n+Kw.name,Kw),e.component(n+qw.name,qw)}}),jre=e=>{const t=e.responseText||e.response;if(!t)return;const n=e.getResponseHeader("Content-Type");if(n&&n.includes("json"))try{return JSON.parse(t)}catch{return t}return t},NUe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},Vre=(e,t)=>xn(e)?e(t):e,FUe=({fileItem:e,action:t,name:n,data:r,headers:o={},withCredentials:a=!1,onProgress:s=Q1,onSuccess:l=Q1,onError:c=Q1})=>{const d=Vre(n,e)||"file",h=Vre(r,e),p=new XMLHttpRequest;a&&(p.withCredentials=!0),p.upload.onprogress=g=>{const y=g.total>0?Yl.round(g.loaded/g.total,2):0;s(y,g)},p.onerror=function(y){c(y)},p.onload=()=>{if(p.status<200||p.status>=300){c(jre(p));return}l(jre(p))};const m=new FormData;if(h)for(const g of Object.keys(h))m.append(g,h[g]);e.file&&m.append(d,e.file),p.open("post",t??"",!0);for(const g of Object.keys(o))p.setRequestHeader(g,o[g]);return p.send(m),{abort(){p.abort()}}},ave=(e,t)=>{if(t&&e){const n=tr(t)?t:t.split(",").map(o=>o.trim()).filter(o=>o),r=(e.name.indexOf(".")>-1?`.${e.name.split(".").pop()}`:"").toLowerCase();return n.some(o=>{const a=o&&o.toLowerCase(),s=(e.type||"").toLowerCase(),l=s.split("/")[0];if(a===s||`${l}${r.replace(".","/")}`===a||/^\*(\/\*)?$/.test(a))return!0;if(/\/\*/.test(a))return s.replace(/\/.*$/,"")===a.replace(/\/.*$/,"");if(/\..*/.test(a)){let c=[a];return(a===".jpg"||a===".jpeg")&&(c=[".jpg",".jpeg"]),c.indexOf(r)>-1}return!1})}return!!e},jUe=(e,t,n)=>{const r=[];let o=0;const a=()=>{!o&&n(r)},s=l=>{if(o+=1,l?.isFile){l.file(c=>{o-=1,ave(c,t)&&(Object.defineProperty(c,"webkitRelativePath",{value:l.fullPath.replace(/^\//,"")}),r.push(c)),a()});return}if(l?.isDirectory){const c=l.createReader();let d=!1;const h=()=>{c.readEntries(p=>{d||(o-=1,d=!0),p.length===0?a():(h(),p.forEach(s))})};h();return}o-=1,a()};[].slice.call(e).forEach(l=>l.webkitGetAsEntry&&s(l.webkitGetAsEntry()))},VUe=e=>{var t;return(t=e.type)==null?void 0:t.includes("image")},RM=(e,t)=>{if(!e)return[];const n=Array.from(e);return t?n.filter(r=>ave(r,t)):n},zUe=ke({name:"IconUpload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-upload`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UUe=["stroke-width","stroke-linecap","stroke-linejoin"];function HUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1)]),14,UUe)}var MM=je(zUe,[["render",HUe]]);const _0=Object.assign(MM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MM.name,MM)}});var WUe=ke({name:"UploadButton",props:{disabled:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},accept:String,listType:{type:String},tip:String,draggable:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},uploadFiles:{type:Function,required:!0},hide:Boolean,onButtonClick:{type:Function}},setup(e,{slots:t}){const n=Le("upload"),{t:r}=$o(),o=fe(!1),a=fe(null),s=fe(null),l=fe(0),c=k=>{k==="subtract"?l.value-=1:k==="add"?l.value+=1:k==="reset"&&(l.value=0)},d=k=>{if(!e.disabled){if(xn(e.onButtonClick)){const C=e.onButtonClick(k);if(Cm(C)){C.then(x=>{e.uploadFiles(RM(x))});return}}a.value&&a.value.click()}},h=k=>{const C=k.target;C.files&&e.uploadFiles(RM(C.files)),C.value=""},p=k=>{var C,x;if(k.preventDefault(),o.value=!1,c("reset"),!e.disabled)if(e.directory&&((C=k.dataTransfer)!=null&&C.items))jUe(k.dataTransfer.items,e.accept,E=>{e.uploadFiles(E)});else{const E=RM((x=k.dataTransfer)==null?void 0:x.files,e.accept);e.uploadFiles(e.multiple?E:E.slice(0,1))}},m=k=>{k.preventDefault(),c("subtract"),l.value===0&&(o.value=!1,c("reset"))},g=k=>{k.preventDefault(),!e.disabled&&!o.value&&(o.value=!0)},y=()=>t.default?O("span",null,[t.default()]):e.listType==="picture-card"?O("div",{class:`${n}-picture-card`},[O("div",{class:`${n}-picture-card-text`},[O(Cf,null,null)]),e.tip&&O("div",{class:`${n}-tip`},[e.tip])]):e.draggable?O("div",{class:[`${n}-drag`,{[`${n}-drag-active`]:o.value}]},[O("div",null,[O(Cf,null,null)]),O("div",{class:`${n}-drag-text`},[o.value?r("upload.dragHover"):r("upload.drag")]),e.tip&&O("div",{class:`${n}-tip`},[e.tip])]):O(Xo,{type:"primary",disabled:e.disabled},{default:()=>[r("upload.buttonText")],icon:()=>O(_0,null,null)}),S=F(()=>[n,{[`${n}-type-picture-card`]:e.listType==="picture-card",[`${n}-draggable`]:e.draggable,[`${n}-disabled`]:e.disabled,[`${n}-hide`]:e.hide}]);return()=>O("span",{ref:s,class:S.value,onClick:d,onDragenter:()=>{c("add")},onDrop:p,onDragover:g,onDragleave:m},[O("input",zt({ref:a,type:"file",style:{display:"none"},disabled:e.disabled,accept:e.accept,multiple:e.multiple},e.directory?{webkitdirectory:"webkitdirectory"}:{},{onChange:h}),null),y()])}});const GUe=ke({name:"IconPause",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-pause`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KUe=["stroke-width","stroke-linecap","stroke-linejoin"];function qUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1)]),14,KUe)}var OM=je(GUe,[["render",qUe]]);const lve=Object.assign(OM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OM.name,OM)}}),YUe=ke({name:"IconPlayArrowFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-play-arrow-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),XUe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZUe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17.533 10.974a1 1 0 0 0-1.537.844v24.356a1 1 0 0 0 1.537.844L36.67 24.84a1 1 0 0 0 0-1.688L17.533 10.974Z",fill:"currentColor",stroke:"none"},null,-1)]),14,XUe)}var $M=je(YUe,[["render",ZUe]]);const uve=Object.assign($M,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$M.name,$M)}}),Y5=Symbol("ArcoUpload");var cve=ke({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Le("upload-progress"),{t:n}=$o(),r=Pn(Y5,void 0),o=()=>{var s,l,c,d,h,p,m,g,y,S,k;return e.file.status==="error"?O("span",{class:[r?.iconCls,`${r?.iconCls}-upload`],onClick:()=>r?.onUpload(e.file)},[r?.showRetryButton&&((h=(l=r==null?void 0:(s=r.slots)["retry-icon"])==null?void 0:l.call(s))!=null?h:(d=(c=r?.customIcon)==null?void 0:c.retryIcon)!=null&&d.call(c))||e.listType==="picture-card"?O(_0,null,null):n("upload.retry")]):e.file.status==="done"?O("span",{class:[r?.iconCls,`${r?.iconCls}-success`]},[(k=(S=(m=r==null?void 0:(p=r.slots)["success-icon"])==null?void 0:m.call(p))!=null?S:(y=(g=r?.customIcon)==null?void 0:g.successIcon)==null?void 0:y.call(g))!=null?k:O(Ym,null,null)]):e.file.status==="init"?O(qc,{content:n("upload.start")},{default:()=>{var C,x,E,_,T,D;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-start`],onClick:()=>r?.onUpload(e.file)},[(D=(T=(x=r==null?void 0:(C=r.slots)["start-icon"])==null?void 0:x.call(C))!=null?T:(_=(E=r?.customIcon)==null?void 0:E.startIcon)==null?void 0:_.call(E))!=null?D:O(uve,null,null)])]}}):r?.showCancelButton&&O(qc,{content:n("upload.cancel")},{default:()=>{var C,x,E,_,T,D;return[O("span",{class:[r?.iconCls,`${r?.iconCls}-cancel`],onClick:()=>r?.onAbort(e.file)},[(D=(T=(x=r==null?void 0:(C=r.slots)["cancel-icon"])==null?void 0:x.call(C))!=null?T:(_=(E=r?.customIcon)==null?void 0:E.cancelIcon)==null?void 0:_.call(E))!=null?D:O(lve,null,null)])]}})},a=()=>{var s;if(["init","uploading"].includes((s=e.file.status)!=null?s:"")){const l=NUe(e.file.status);return O(F0e,{type:"circle",size:"mini",showText:!1,status:l,percent:e.file.percent},null)}return null};return()=>O("span",{class:t},[a(),o()])}});const JUe=ke({name:"IconFilePdf",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-file-pdf`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QUe=["stroke-width","stroke-linecap","stroke-linejoin"];function eHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11 42h26a2 2 0 0 0 2-2V13.828a2 2 0 0 0-.586-1.414l-5.828-5.828A2 2 0 0 0 31.172 6H11a2 2 0 0 0-2 2v32a2 2 0 0 0 2 2Z"},null,-1),L("path",{d:"M22.305 21.028c.874 1.939 3.506 6.265 4.903 8.055 1.747 2.237 3.494 2.685 4.368 2.237.873-.447 1.21-4.548-7.425-2.685-7.523 1.623-7.424 3.58-6.988 4.476.728 1.193 2.522 2.627 5.678-6.266C25.699 18.79 24.489 17 23.277 17c-1.409 0-2.538.805-.972 4.028Z"},null,-1)]),14,QUe)}var BM=je(JUe,[["render",eHe]]);const dve=Object.assign(BM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BM.name,BM)}}),tHe=ke({name:"IconFileImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-file-image`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),nHe=["stroke-width","stroke-linecap","stroke-linejoin"];function rHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m26 33 5-6v6h-5Zm0 0-3-4-4 4h7Zm11 9H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2ZM17 19h1v1h-1v-1Z"},null,-1)]),14,nHe)}var NM=je(tHe,[["render",rHe]]);const fve=Object.assign(NM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NM.name,NM)}}),iHe=ke({name:"IconFileVideo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-file-video`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oHe=["stroke-width","stroke-linecap","stroke-linejoin"];function sHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),L("path",{d:"M22 27.796v-6l5 3-5 3Z"},null,-1)]),14,oHe)}var FM=je(iHe,[["render",sHe]]);const hve=Object.assign(FM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FM.name,FM)}}),aHe=ke({name:"IconFileAudio",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-file-audio`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lHe=["stroke-width","stroke-linecap","stroke-linejoin"];function uHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M37 42H11a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h21l7 7v27a2 2 0 0 1-2 2Z"},null,-1),L("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm0 0-.951-12.363a.5.5 0 0 1 .58-.532L30 18"},null,-1)]),14,lHe)}var jM=je(aHe,[["render",uHe]]);const pve=Object.assign(jM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jM.name,jM)}});var zre=ke({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${Le("upload-list")}-item`,{t:r}=$o(),o=Pn(Y5,void 0),a=()=>{var s,l;let c="";if(e.file.file&&e.file.file.type)c=e.file.file.type;else{const d=(l=(s=e.file.name)==null?void 0:s.split(".")[1])!=null?l:"";["png","jpg","jpeg","bmp","gif","webp"].includes(d)?c="image":["mp4","m2v","mkv","m4v","mov"].includes(d)?c="video":["mp3","wav","wmv","m4a","acc","flac"].includes(d)&&(c="audio")}return c.includes("image")?O(fve,null,null):c.includes("pdf")?O(dve,null,null):c.includes("audio")?O(pve,null,null):c.includes("video")?O(hve,null,null):O(K5,null,null)};return()=>{var s,l,c,d,h,p,m,g,y,S,k,C,x,E,_,T,D,P,M,$,I,N,j;return O("div",{class:[n,`${n}-${e.file.status}`]},[O("div",{class:`${n}-content`},[o?.listType==="picture"&&O("span",{class:`${n}-thumbnail`},[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",zt({src:e.file.url,alt:e.file.name},o?.imageLoading?{loading:o.imageLoading}:void 0),null)]),O("div",{class:`${n}-name`},[o?.listType==="text"&&O("span",{class:`${n}-file-icon`},[(y=(g=(h=o==null?void 0:(d=o.slots)["file-icon"])==null?void 0:h.call(d,{fileItem:e.file}))!=null?g:(m=(p=o?.customIcon)==null?void 0:p.fileIcon)==null?void 0:m.call(p,e.file))!=null?y:a()]),o?.showLink&&e.file.url?O("a",zt({class:`${n}-name-link`,target:"_blank",href:e.file.url},o?.download?{download:e.file.name}:void 0),[(_=(E=(k=o==null?void 0:(S=o.slots)["file-name"])==null?void 0:k.call(S,{fileItem:e.file}))!=null?E:(x=(C=o?.customIcon)==null?void 0:C.fileName)==null?void 0:x.call(C,e.file))!=null?_:e.file.name]):O("span",{class:`${n}-name-text`,onClick:()=>o?.onPreview(e.file)},[(I=($=(D=o==null?void 0:(T=o.slots)["file-name"])==null?void 0:D.call(T,{fileItem:e.file}))!=null?$:(M=(P=o?.customIcon)==null?void 0:P.fileName)==null?void 0:M.call(P,e.file))!=null?I:e.file.name]),e.file.status==="error"&&O(qc,{content:r("upload.error")},{default:()=>{var U,z,G,X,ie,ee;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(ee=(ie=(z=o==null?void 0:(U=o.slots)["error-icon"])==null?void 0:z.call(U))!=null?ie:(X=(G=o?.customIcon)==null?void 0:G.errorIcon)==null?void 0:X.call(G))!=null?ee:O(If,null,null)])]}})]),O(cve,{file:e.file,listType:e.listType},null)]),o?.showRemoveButton&&O("span",{class:`${n}-operation`},[O(To,{onClick:()=>{var U;return(U=o?.onRemove)==null?void 0:U.call(o,e.file)}},{default:()=>{var U,z,G,X,ie,ee;return[O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`]},[(ee=(ie=(z=o==null?void 0:(U=o.slots)["remove-icon"])==null?void 0:z.call(U))!=null?ie:(X=(G=o?.customIcon)==null?void 0:G.removeIcon)==null?void 0:X.call(G))!=null?ee:O(cc,null,null)])]}})]),(j=o==null?void 0:(N=o.slots)["extra-button"])==null?void 0:j.call(N,{fileItem:e.file})])}}}),Ure=ke({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${Le("upload-list")}-picture`,r=F(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),o=Pn(Y5,void 0),a=()=>{var s,l,c,d,h,p,m,g,y,S,k,C,x,E,_,T,D,P,M,$,I,N,j,U,z,G,X,ie,ee;return e.file.status==="uploading"?O(cve,{file:e.file,listType:"picture-card"},null):O(Ft,null,[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:O("img",zt({src:e.file.url,alt:e.file.name},o?.imageLoading?{loading:o.imageLoading}:void 0),null),O("div",{class:`${n}-mask`},[e.file.status==="error"&&o?.showCancelButton&&O("div",{class:`${n}-error-tip`},[O("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(y=(g=(h=o==null?void 0:(d=o.slots)["error-icon"])==null?void 0:h.call(d))!=null?g:(m=(p=o?.customIcon)==null?void 0:p.errorIcon)==null?void 0:m.call(p))!=null?y:O(P5,null,null)])]),O("div",{class:`${n}-operation`},[e.file.status!=="error"&&o?.showPreviewButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-preview`],onClick:()=>o?.onPreview(e.file)},[(_=(E=(k=o==null?void 0:(S=o.slots)["preview-icon"])==null?void 0:k.call(S))!=null?E:(x=(C=o?.customIcon)==null?void 0:C.previewIcon)==null?void 0:x.call(C))!=null?_:O(g0,null,null)]),["init","error"].includes(e.file.status)&&o?.showRetryButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-upload`],onClick:()=>o?.onUpload(e.file)},[(I=($=(D=o==null?void 0:(T=o.slots)["retry-icon"])==null?void 0:D.call(T))!=null?$:(M=(P=o?.customIcon)==null?void 0:P.retryIcon)==null?void 0:M.call(P))!=null?I:O(_0,null,null)]),!o?.disabled&&o?.showRemoveButton&&O("span",{class:[o?.iconCls,`${o?.iconCls}-remove`],onClick:()=>o?.onRemove(e.file)},[(X=(G=(j=o==null?void 0:(N=o.slots)["remove-icon"])==null?void 0:j.call(N))!=null?G:(z=(U=o?.customIcon)==null?void 0:U.removeIcon)==null?void 0:z.call(U))!=null?X:O(cc,null,null)]),(ee=o==null?void 0:(ie=o.slots)["extra-button"])==null?void 0:ee.call(ie,e.file)])])])};return()=>O("span",{class:r.value},[a()])}}),cHe=ke({name:"UploadList",components:{UploadListItem:zre,UploadPictureItem:Ure},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=Le("upload"),r=F(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),o=(a,s)=>xn(t["upload-item"])?t["upload-item"]({fileItem:a,index:s}):e.listType==="picture-card"?O(Ure,{file:a,key:`item-${s}`},null):O(zre,{file:a,listType:e.listType,key:`item-${s}`},null);return()=>O(t3,{tag:"div",class:r.value},{default:()=>{var a;return[...e.fileList.map((s,l)=>o(s,l)),e.listType==="picture-card"&&((a=t["upload-button"])==null?void 0:a.call(t))]}})}}),VM=ke({name:"Upload",props:{fileList:{type:Array,default:void 0},defaultFileList:{type:Array,default:()=>[]},accept:String,action:String,disabled:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},directory:{type:Boolean,default:!1},draggable:{type:Boolean,default:!1},tip:String,headers:{type:Object},data:{type:[Object,Function]},name:{type:[String,Function]},withCredentials:{type:Boolean,default:!1},customRequest:{type:Function},limit:{type:Number,default:0},autoUpload:{type:Boolean,default:!0},showFileList:{type:Boolean,default:!0},showRemoveButton:{type:Boolean,default:!0},showRetryButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},showUploadButton:{type:[Boolean,Object],default:!0},showPreviewButton:{type:Boolean,default:!0},download:{type:Boolean,default:!1},showLink:{type:Boolean,default:!0},imageLoading:{type:String},listType:{type:String,default:"text"},responseUrlKey:{type:[String,Function]},customIcon:{type:Object},imagePreview:{type:Boolean,default:!1},onBeforeUpload:{type:Function},onBeforeRemove:{type:Function},onButtonClick:{type:Function}},emits:{"update:fileList":e=>!0,exceedLimit:(e,t)=>!0,change:(e,t)=>!0,progress:(e,t)=>!0,preview:e=>!0,success:e=>!0,error:e=>!0},setup(e,{emit:t,slots:n}){const{fileList:r,disabled:o,listType:a,customIcon:s,showRetryButton:l,showCancelButton:c,showRemoveButton:d,showPreviewButton:h,imageLoading:p,download:m,showLink:g}=nn(e),y=Le("upload"),{mergedDisabled:S,eventHandlers:k}=Ao({disabled:o}),C=fe([]),x=new Map,E=new Map,_=F(()=>e.limit>0&&C.value.length>=e.limit),T=re=>{x.clear();const Ce=re?.map((we,ve)=>{var me,xe,Be;const Ke=(me=we.status)!=null?me:"done",ze=Yt({...we,uid:(xe=we.uid)!=null?xe:`${Date.now()}${ve}`,status:Ke,percent:(Be=we.percent)!=null?Be:["error","init"].indexOf(Ke)>-1?0:1});return x.set(ze.uid,ze),ze});C.value=Ce??[]};T(e.defaultFileList),Pt(r,re=>{re&&T(re)},{immediate:!0,deep:!0});const D=re=>{var Ce,we;t("update:fileList",C.value),t("change",C.value,re),(we=(Ce=k.value)==null?void 0:Ce.onChange)==null||we.call(Ce)},P=(re,Ce)=>{for(const we of C.value)if(we.uid===re){we.file=Ce,D(we);break}},M=re=>{const Ce=(Be,Ke)=>{const ze=x.get(re.uid);ze&&(ze.status="uploading",ze.percent=Be,t("progress",ze,Ke),D(ze))},we=Be=>{const Ke=x.get(re.uid);Ke&&(Ke.status="done",Ke.percent=1,Ke.response=Be,e.responseUrlKey&&(xn(e.responseUrlKey)?Ke.url=e.responseUrlKey(Ke):Be[e.responseUrlKey]&&(Ke.url=Be[e.responseUrlKey])),E.delete(Ke.uid),t("success",Ke),D(Ke))},ve=Be=>{const Ke=x.get(re.uid);Ke&&(Ke.status="error",Ke.percent=0,Ke.response=Be,E.delete(Ke.uid),t("error",Ke),D(Ke))},me={fileItem:re,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:Ce,onSuccess:we,onError:ve};re.status="uploading",re.percent=0;const xe=xn(e.customRequest)?e.customRequest(me):FUe(me);E.set(re.uid,xe),D(re)},$=re=>{var Ce;const we=E.get(re.uid);if(we){(Ce=we.abort)==null||Ce.call(we),E.delete(re.uid);const ve=x.get(re.uid);ve&&(ve.status="error",ve.percent=0,D(ve))}},I=re=>{if(re){const Ce=x.get(re.uid);Ce&&M(Ce)}else for(const Ce of C.value)Ce.status==="init"&&M(Ce)},N=async(re,Ce)=>{const we=`${Date.now()}-${Ce}`,ve=VUe(re)?URL.createObjectURL(re):void 0,me=Yt({uid:we,file:re,url:ve,name:re.name,status:"init",percent:0});x.set(we,me),C.value=[...C.value,me],D(me),e.autoUpload&&M(me)},j=re=>{if(e.limit>0&&C.value.length+re.length>e.limit){t("exceedLimit",C.value,re);return}for(let Ce=0;Ce{ve&&N(wl(ve)?we:ve,Ce)}).catch(ve=>{console.error(ve)}):N(we,Ce)}},U=re=>{C.value=C.value.filter(Ce=>Ce.uid!==re.uid),D(re)},z=re=>{xn(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(re)).then(Ce=>{Ce&&U(re)}).catch(Ce=>{console.error(Ce)}):U(re)},G=re=>{if(e.imagePreview&&re.url){const Ce=ne.value.indexOf(re.url);Ce>-1&&(W.value=Ce,ee.value=!0)}t("preview",re)};ti(Y5,Yt({disabled:S,listType:a,iconCls:`${y}-icon`,showRemoveButton:d,showRetryButton:l,showCancelButton:c,showPreviewButton:h,showLink:g,imageLoading:p,download:m,customIcon:s,slots:n,onUpload:M,onAbort:$,onRemove:z,onPreview:G}));const X=F(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),ie=()=>{const re=O(WUe,{key:"arco-upload-button",disabled:S.value,draggable:e.draggable,listType:e.listType,uploadFiles:j,multiple:e.multiple,directory:e.directory,tip:e.tip,hide:!e.showUploadButton||_.value&&!(mr(e.showUploadButton)&&e.showUploadButton.showOnExceedLimit),accept:X.value,onButtonClick:e.onButtonClick},{default:n["upload-button"]});return e.tip&&e.listType!=="picture-card"&&!e.draggable?O("span",null,[re,O("div",{class:`${y}-tip`},[e.tip])]):re},ee=fe(!1),W=fe(0),q=re=>{W.value=re},Q=re=>{ee.value=re},ne=F(()=>C.value.filter(re=>!!re.url).map(re=>re.url));return{prefixCls:y,render:()=>e.showFileList?O("div",{class:[`${y}-wrapper`,`${y}-wrapper-type-${e.listType}`]},[e.imagePreview&&ne.value.length>0&&O(nb,{srcList:ne.value,visible:ee.value,current:W.value,onChange:q,onVisibleChange:Q},null),e.listType!=="picture-card"&&e.showUploadButton&&ie(),O(cHe,{fileList:C.value,listType:e.listType},{"upload-button":ie,"upload-item":n["upload-item"]})]):e.showUploadButton&&ie(),innerSubmit:I,innerAbort:$,innerUpdateFile:P,innerUpload:j}},methods:{submit(e){return this.innerSubmit(e)},abort(e){return this.innerAbort(e)},updateFile(e,t){return this.innerUpdateFile(e,t)},upload(e){return this.innerUpload(e)}},render(){return this.render()}});const dHe=Object.assign(VM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+VM.name,VM)}});var zM=ke({name:"OverflowList",props:{min:{type:Number,default:0},margin:{type:Number,default:8},from:{type:String,default:"end"}},emits:{change:e=>!0},setup(e,{emit:t,slots:n}){const r=Le("overflow-list"),o=fe(),a=fe(),s=fe(),l={},c=[],d=fe(0),h=fe(0),p=F(()=>h.value>0),m=fe(0),g=F(()=>e.from==="start");Pt(d,(k,C)=>{h.value>0&&(h.value+=k-C,h.value<0&&(h.value=0))}),Pt(h,k=>{t("change",k)});const y=()=>{var k,C,x;if(o.value&&l.value&&s.value){const E=s.value.offsetWidth;if(E>1&&(h.value===0||Ey(),{flush:"post"}),vn(()=>{s.value&&s.value.offsetWidth<1&&y()});const S=()=>{var k,C;const x=g.value?{marginRight:`${e.margin}px`}:void 0;return O("div",{ref:a,class:`${r}-overflow`,style:x},[(C=(k=n.overflow)==null?void 0:k.call(n,{number:h.value}))!=null?C:O(hH,null,{default:()=>[We("+"),h.value]})])};return()=>{var k,C;l.value=yf((k=n.default)==null?void 0:k.call(n)),d.value!==l.value.length&&(d.value=l.value.length,c.length=d.value);let x=l.value;h.value>0&&(x=g.value?l.value.slice(h.value):l.value.slice(0,-h.value));const E=h.value===0||g.value?x.length-1:x.length;for(let _=0;_0&&S(),x,!g.value&&h.value>0&&S(),O(y0,{onResize:y},{default:()=>[O("div",{ref:s,class:`${r}-spacer`},null)]})])}}});const fHe=Object.assign(zM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+zM.name,zM)}});var UM=ke({name:"VerificationCode",props:{modelValue:String,defaultValue:{type:String,default:""},length:{type:Number,default:6},size:{type:String},disabled:Boolean,masked:Boolean,readonly:Boolean,error:{type:Boolean,default:!1},separator:{type:Function},formatter:{type:Function}},emits:{"update:modelValue":e=>!0,change:e=>!0,finish:e=>!0,input:(e,t,n)=>!0},setup(e,{emit:t}){const n=Le("verification-code"),r=Le("input"),o=fe([]),a=F(()=>{var k;return(k=e.modelValue)!=null?k:e.defaultValue}),s=F(()=>e.masked?"password":"text"),l=F(()=>[r,{[`${r}-size-${e.size}`]:e.size}]),c=F(()=>{const k=String(a.value).split("");return new Array(e.length).fill("").map((C,x)=>Nne(k[x])?String(k[x]):"")}),d=fe(c.value);Pt(a,()=>{d.value=c.value});const h=()=>{const k=d.value.join("").trim();t("update:modelValue",k),t("change",k),k.length===e.length&&t("finish",k),m()},p=k=>o?.value[k].focus(),m=k=>{if(!(Nne(k)&&d.value[k])){for(let C=0;C{k.preventDefault();const{clipboardData:x}=k,E=x?.getData("text");E&&(E.split("").forEach((_,T)=>{if(!(C+T>=e.length)){if(xn(e.formatter)){const D=e.formatter(_,C+T,d.value.join(""));if(D===!1){C-=1;return}cs(D)&&(_=D.charAt(0))}d.value[C+T]=_}}),h())},y=(k,C)=>{const x=C.code||C.key;x===Jhe.code&&!d.value[k]?(C.preventDefault(),d.value[Math.max(k-1,0)]="",h()):x===dDe.code&&k>0?(C.preventDefault(),p(k-1)):x===fDe.code&&d.value[k]&&k{let E=(C||"").trim().charAt(C.length-1);if(t("input",E,k,x),xn(e.formatter)){const _=e.formatter(E,k,d.value.join(""));if(_===!1)return;cs(_)&&(E=_.charAt(0))}d.value[k]=E,h()};return()=>O("div",{class:n},[d.value.map((k,C)=>{var x;return O(Ft,null,[O(R0,{key:C,ref:E=>o.value[C]=E,type:s.value,class:l.value,modelValue:k,size:e.size,error:e.error,disabled:e.disabled,readonly:e.readonly,onFocus:()=>m(C),onInput:(E,_)=>S(C,E,_),onKeydown:E=>y(C,E),onPaste:E=>g(E,C)},null),(x=e.separator)==null?void 0:x.call(e,C,k)])})])}});const hHe=Object.assign(UM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+UM.name,UM)}}),pHe=typeof window<"u"?window:void 0;function vHe(e){var t;const n=et(e);return(t=n?.$el)!=null?t:n}function mHe(e){return i5()?(AU(e),!0):!1}function vve(e,t,n={}){const{window:r=pHe,...o}=n,a=r&&"MutationObserver"in r;let s;const l=()=>{s&&(s.disconnect(),s=void 0)},c=Pt(()=>vHe(e),h=>{l(),a&&r&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),d=()=>{l(),c()};return mHe(d),{isSupported:a,stop:d}}const HM="arco-theme",yx={Dark:"dark",Light:"light"},gHe=e=>{const t=fe(yx.Light),n=o=>{t.value=o},r=o=>o.getAttribute(HM)===yx.Dark?yx.Dark:yx.Light;return vve(document.body,o=>{for(const a of o)if(a.type==="attributes"&&a.attributeName===HM){n(r(a.target)),e?.();break}},{attributes:!0,attributeFilter:[HM],subtree:!1,childList:!1,characterData:!1}),n(r(document.body)),{theme:t,setTheme:n}};function yHe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function bHe(e){return Object.entries(e).map(([t,n])=>`${yHe(t)}:${n}`).join(";")}function _He(e){const t=e.getContext("2d");if(!t)return;const n=t.getImageData(0,0,e.width,e.height),{data:r}=n;for(let o=0;o[90,90]},offset:{type:Array},rotate:{type:Number,default:-22},font:{type:Object},zIndex:{type:Number,default:6},alpha:{type:Number,default:1},antiTamper:{type:Boolean,default:!0},grayscale:{type:Boolean,default:!1},repeat:{type:Boolean,default:!0},staggered:{type:Boolean,default:!0}},setup(e,{slots:t,attrs:n}){const{width:r,height:o,image:a,rotate:s,alpha:l,repeat:c,grayscale:d}=nn(e),h=Le("watermark"),p=window.devicePixelRatio||1,m=a0(),g=fe(new Map),y=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.fontSize)!=null?q:16}),S=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.fontWeight)!=null?q:"normal"}),k=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.fontStyle)!=null?q:"normal"}),C=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.fontFamily)!=null?q:"sans-serif"}),x=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.textAlign)!=null?q:"center"}),E=F(()=>tr(e.content)?e.content:[e.content]),_=F(()=>{var W,q;return(q=(W=e.font)==null?void 0:W.color)!=null?q:ee.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),T=F(()=>{var W,q;return(q=(W=e.gap)==null?void 0:W[0])!=null?q:90}),D=F(()=>{var W,q;return(q=(W=e.gap)==null?void 0:W[1])!=null?q:90}),P=F(()=>T.value/2),M=F(()=>D.value/2),$=F(()=>{var W,q;return(q=(W=e.offset)==null?void 0:W[0])!=null?q:P.value}),I=F(()=>{var W,q;return(q=(W=e.offset)==null?void 0:W[1])!=null?q:M.value}),N=F(()=>{var W;const q=$.value-P.value,Q=I.value-M.value;return{position:"absolute",left:q>0?`${q}px`:0,top:Q>0?`${Q}px`:0,width:q>0?`calc(100% - ${q}px)`:"100%",height:Q>0?`calc(100% - ${Q}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${q>0?0:q}px ${Q>0?0:Q}px`,zIndex:(W=e.zIndex)!=null?W:6}}),j=F(()=>e.repeat&&e.staggered),U=(W,q)=>{var Q;if(m.value){const ne=g.value.get(m.value);ne&&(m.value.contains(ne)&&m.value.removeChild(ne),g.value.delete(m.value));const ae=document.createElement("div");ae.setAttribute("style",bHe({...N.value,backgroundImage:`url('${W}')`,backgroundSize:`${q}px`})),(Q=m.value)==null||Q.append(ae),g.value.set(m.value,ae)}},z=W=>{var q,Q;let ne=120,ae=28;if(!a.value&&W.measureText){W.font=`${y.value}px ${C.value}`;const re=E.value.map(Ce=>W.measureText(Ce).width);ne=Math.ceil(Math.max(...re)),ae=y.value*E.value.length+(E.value.length-1)*3}return[(q=r.value)!=null?q:ne,(Q=o.value)!=null?Q:ae]},G=()=>{var W;const q=document.createElement("canvas"),Q=q.getContext("2d");if(!Q)return;const[ne,ae]=z(Q),re=ne*p,Ce=ae*p,we=(T.value+ne)*p,ve=(D.value+ae)*p,me=T.value/2*p,xe=D.value/2*p,Be=we/2,Ke=ve/2,ze=j.value?2:1,be=(T.value+ne)*ze;q.width=we*ze,q.height=ve*ze,Q.globalAlpha=l.value,Q.save(),Q.translate(Be,Ke),Q.rotate(Math.PI/180*s.value),Q.translate(-Be,-Ke);const _e=()=>{Q.restore(),j.value&&Q.drawImage(q,0,0,we,ve,we,ve,we,ve),d.value&&_He(q),U(q.toDataURL(),be)};if(a.value){const Ne=new Image;Ne.onload=()=>{Q.drawImage(Ne,me,xe,re,Ce),_e()},Ne.crossOrigin="anonymous",Ne.referrerPolicy="no-referrer",Ne.src=a.value}else{const Ne=Number(y.value)*p;Q.font=`${k.value} normal ${S.value} ${Ne}px/${ae}px ${C.value}`,Q.fillStyle=_.value,Q.textAlign=x.value,Q.textBaseline="top",Q.translate(re/2,0),(W=E.value)==null||W.forEach((Se,$e)=>{Q.fillText(Se??"",me,xe+$e*(Ne+3*p))}),_e()}},X=W=>Array.from(g.value.values()).includes(W),ie=W=>{if(e.antiTamper)for(const q of W){const Q=Array.from(q.removedNodes).some(ae=>X(ae)),ne=q.type==="attributes"&&X(q.target);if(Q||ne){G();break}}},{theme:ee}=gHe(G);return vn(()=>{G(),vve(m.value,ie,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),Pt(e,G,{deep:!0,flush:"post"}),()=>{var W;return O("div",zt({ref:m,class:h,style:{position:"relative",overflow:"hidden"}},n),[(W=t.default)==null?void 0:W.call(t)])}}});const SHe=Object.assign(WM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+WM.name,WM)}});function kHe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Ui(e)}var xHe=ke({name:"TreeSelectPanel",components:{Tree:vV},props:{treeProps:{type:Object,default:()=>({})},selectedKeys:{type:Array},showCheckable:{type:Boolean},treeSlots:{type:Object,default:()=>({})},scrollbar:{type:[Boolean,Object],default:!0}},emits:["change"],setup(e,{emit:t}){const{showCheckable:n,selectedKeys:r,treeProps:o,scrollbar:a}=nn(e),{displayScrollbar:s,scrollbarProps:l}=I5(a),c=Le("tree-select"),d=fe(),h=F(()=>({...o.value,disableSelectActionOnly:!0,checkedKeys:n.value?r.value:[],selectedKeys:n.value?[]:r.value})),p=(y,S)=>{var k,C;n.value?(C=(k=d.value)==null?void 0:k.toggleCheck)==null||C.call(k,y[0],S):t("change",y)},m=y=>{t("change",y)},g=()=>O(vV,zt({ref:d},h.value,{onSelect:p,onCheck:m}),e.treeSlots);return()=>{if(s.value){let y;return O(Dd,zt({class:`${c}-tree-wrapper`},l.value),kHe(y=g())?y:{default:()=>[y]})}return O("div",{class:`${c}-tree-wrapper`},[g()])}}});function WH(e){return mr(e)}function mve(e){return e!=null&&e!==""}function GH(e){return WH(e)?e.value:e}function CHe(e){return WH(e)?e.label:void 0}function Hre(e){const t=GH(e);return mve(t)}function Wre(e){return e.map(GH).filter(mve)}function wHe(e){var t;const{defaultValue:n,modelValue:r,key2TreeNode:o,multiple:a,treeCheckable:s,fallbackOption:l,fieldNames:c}=nn(e);function d(_){const T=(tr(_)?_:[_]).filter(Hre);return a?.value||s?.value?T:T.slice(0,1)}function h(_,T){const D=[],P=_?_.filter(Hre):[];if(P.length){const M=new Map;T?.forEach($=>{M.set($.value,$)}),P.forEach($=>{var I,N,j,U,z;const G=GH($),X=M.get(G),ie=o.value.get(G);let ee=null;const W=((I=c?.value)==null?void 0:I.title)||"title";if(!ie){const q=xn(l?.value)?l?.value(G):l?.value;if(q===!1)return;mr(q)&&(ee=q)}D.push({...WH($)?$:{},...X||{},value:G,label:(z=(U=(j=(N=CHe($))!=null?N:ie?.title)!=null?j:X?.label)!=null?U:ee?.[W])!=null?z:G})})}return D}const p=fe(),m=fe();Os(()=>{var _;const T=r?.value!==void 0,D=d((_=r?.value)!=null?_:[]),P=Wre(D);m.value=T?h(P,h(D)):void 0,p.value=T?P:void 0});const g=d((t=n?.value)!=null?t:[]),y=Wre(g),S=h(y,h(g)),k=fe(y||[]),C=fe(S);Pt(k,()=>{C.value=h(k.value,S)}),Pt([p,m],([_,T])=>{k.value=_||[],C.value=T||[]});const x=F(()=>{var _;return(_=p.value)!=null?_:k.value}),E=F(()=>{var _;return(_=m.value)!=null?_:C.value});return{selectedKeys:x,selectedValue:E,setLocalSelectedKeys(_){k.value=_},localSelectedKeys:k,localSelectedValue:C}}function EHe(e){const{searchValue:t,flattenTreeData:n,filterMethod:r,disableFilter:o,fieldNames:a}=nn(e),s=F(()=>{var y;return((y=a.value)==null?void 0:y.key)||"key"}),l=(y,S)=>{const k=S[s.value];return!wn(k)&&String(k).indexOf(y)>-1},c=F(()=>r?.value||l),d=fe(),h=F(()=>!!t.value),p=F(()=>!o?.value&&h.value&&d.value&&d.value.size===0),m=F(()=>o?.value?void 0:y=>{var S,k;if(!h.value)return!0;const C=y[s.value];return(k=(S=d.value)==null?void 0:S.has(C||""))!=null?k:!1}),g=Qb((y,S)=>{const k=y.filter(x=>c.value(S,x.treeNodeData)),C=new Set;k.forEach(x=>{C.add(x.key),x.pathParentKeys.forEach(E=>{C.add(E)})}),d.value=C},100);return Os(()=>{o?.value?d.value=void 0:g(n.value,t.value)}),{isEmptyFilterResult:p,filterTreeNode:m}}function THe(e,t){const n=`${t}-slot-`;return Object.keys(e).reduce((o,a)=>{if(a.startsWith(n)){const s=a.slice(n.length);s&&(o[s]=e[a])}return o},{})}const AHe=ke({name:"TreeSelect",components:{Trigger:ha,SelectView:B8,Panel:xHe,Empty:qh,Spin:Ld},inheritAttrs:!1,props:{disabled:{type:Boolean},loading:{type:Boolean},error:{type:Boolean},size:{type:String},border:{type:Boolean,default:!0},allowSearch:{type:[Boolean,Object],default:e=>!!e.multiple},allowClear:{type:Boolean},placeholder:{type:String},maxTagCount:{type:Number},multiple:{type:Boolean},defaultValue:{type:[String,Number,Array,Object]},modelValue:{type:[String,Number,Array,Object]},fieldNames:{type:Object},data:{type:Array,default:()=>[]},labelInValue:{type:Boolean},treeCheckable:{type:Boolean},treeCheckStrictly:{type:Boolean},treeCheckedStrategy:{type:String,default:"all"},treeProps:{type:Object},triggerProps:{type:Object},popupVisible:{type:Boolean,default:void 0},defaultPopupVisible:{type:Boolean},dropdownStyle:{type:Object},dropdownClassName:{type:[String,Array]},filterTreeNode:{type:Function},loadMore:{type:Function},disableFilter:{type:Boolean},popupContainer:{type:[String,Object]},fallbackOption:{type:[Boolean,Function],default:!0},selectable:{type:[Boolean,String,Function],default:!0},scrollbar:{type:[Boolean,Object],default:!0},showHeaderOnEmpty:{type:Boolean,default:!1},showFooterOnEmpty:{type:Boolean,default:!1},inputValue:{type:String},defaultInputValue:{type:String,default:""}},emits:{change:e=>!0,"update:modelValue":e=>!0,"update:inputValue":e=>!0,"popup-visible-change":e=>!0,"update:popupVisible":e=>!0,search:e=>!0,clear:()=>!0,inputValueChange:e=>!0},setup(e,{emit:t,slots:n}){var r,o,a;const{defaultValue:s,modelValue:l,multiple:c,popupVisible:d,defaultPopupVisible:h,treeCheckable:p,treeCheckStrictly:m,data:g,fieldNames:y,disabled:S,labelInValue:k,filterTreeNode:C,disableFilter:x,dropdownStyle:E,treeProps:_,fallbackOption:T,selectable:D,dropdownClassName:P}=nn(e),{mergedDisabled:M,eventHandlers:$}=Ao({disabled:S}),I=Le("tree-select"),N=Pn(Ya,void 0),j=(a=(o=N==null?void 0:(r=N.slots).empty)==null?void 0:o.call(r,{component:"tree-select"}))==null?void 0:a[0],U=F(()=>c.value||p.value),z=(nt,gt)=>{var yt;return D.value==="leaf"?gt.isLeaf:xn(D.value)?D.value(nt,gt):(yt=D.value)!=null?yt:!1},G=F(()=>p.value?z:!1),X=F(()=>mr(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:ie,key2TreeNode:ee}=ove(Yt({treeData:g,fieldNames:y,selectable:z,checkable:G})),{selectedKeys:W,selectedValue:q,setLocalSelectedKeys:Q,localSelectedKeys:ne,localSelectedValue:ae}=wHe(Yt({defaultValue:s,modelValue:l,key2TreeNode:ee,multiple:c,treeCheckable:p,treeCheckStrictly:m,fallbackOption:T,fieldNames:y}));function re(nt){return p.value?dm(nt):cV(nt)}const Ce=F(()=>wn(q.value)?[]:U.value&&!M.value?q.value.map(nt=>{const gt=ee.value.get(nt.value);return{...nt,closable:!gt||re(gt)}}):q.value),we=nt=>{Q(nt),_n(()=>{var gt,yt;const $t=(k.value?ae.value:ne.value)||[],Ct=U.value?$t:$t[0];t("update:modelValue",Ct),t("change",Ct),(yt=(gt=$.value)==null?void 0:gt.onChange)==null||yt.call(gt)})},ve=fe(e.defaultInputValue),me=F(()=>{var nt;return(nt=e.inputValue)!=null?nt:ve.value}),xe=nt=>{ve.value=nt,t("update:inputValue",nt),t("inputValueChange",nt)},Be=nt=>{nt!==me.value&&(be(!0),xe(nt),e.allowSearch&&t("search",nt))},[Ke,ze]=fa(h.value,Yt({value:d})),be=nt=>{nt!==Ke.value&&(ze(nt),t("popup-visible-change",nt),t("update:popupVisible",nt)),nt||$e.value&&$e.value.blur&&$e.value.blur()},{isEmptyFilterResult:_e,filterTreeNode:Ne}=EHe(Yt({searchValue:me,flattenTreeData:ie,filterMethod:C,disableFilter:x,fieldNames:y})),Se=F(()=>!ie.value.length||_e.value),$e=fe(),Xe=F(()=>{var nt;return[E?.value||{},(nt=_?.value)!=null&&nt.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:$e,prefixCls:I,TreeSelectEmpty:j,selectedValue:q,selectedKeys:W,mergedDisabled:M,searchValue:me,panelVisible:Ke,isEmpty:Se,computedFilterTreeNode:Ne,isMultiple:U,selectViewValue:Ce,computedDropdownStyle:Xe,onSearchValueChange:Be,onSelectChange(nt){we(nt),!X.value&&me.value&&xe(""),U.value||be(!1)},onVisibleChange:be,onInnerClear(){we([]),t("clear")},pickSubCompSlots:THe,isSelectable:z,isCheckable:G,onBlur:()=>{!X.value&&me.value&&xe("")},onItemRemove(nt){if(M.value)return;const gt=ee.value.get(nt);if(p.value&>){if(re(gt)){const[yt]=hV({node:gt,checked:!1,checkedKeys:W.value,indeterminateKeys:[],checkStrictly:m.value});we(yt)}}else{const yt=W.value.filter($t=>$t!==nt);we(yt)}}}}});function IHe(e,t,n,r,o,a){const s=Pe("SelectView"),l=Pe("Spin"),c=Pe("Panel"),d=Pe("Trigger");return H(),Je(d,zt({class:`${e.prefixCls}-trigger`,"auto-fit-popup-min-width":"",trigger:"click",position:"bl","popup-offset":4,"animation-name":"slide-dynamic-origin","prevent-focus":!0},e.triggerProps,{disabled:e.mergedDisabled,"popup-visible":e.panelVisible,"popup-container":e.popupContainer,"click-to-close":!e.allowSearch,"auto-fit-transform-origin":"",onPopupVisibleChange:e.onVisibleChange}),{content:de(()=>[L("div",{class:le([`${e.prefixCls}-popup`,{[`${e.prefixCls}-has-header`]:!!e.$slots.header,[`${e.prefixCls}-has-footer`]:!!e.$slots.footer},e.dropdownClassName]),style:Ge(e.computedDropdownStyle)},[e.$slots.header&&(!e.isEmpty||e.showHeaderOnEmpty)?(H(),J("div",{key:0,class:le(`${e.prefixCls}-header`)},[dt(e.$slots,"header")],2)):Me("v-if",!0),e.loading?dt(e.$slots,"loader",{key:1},()=>[O(l)]):e.isEmpty?dt(e.$slots,"empty",{key:2},()=>[(H(),Je(Wa(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(H(),Je(c,{key:3,"selected-keys":e.selectedKeys,"show-checkable":e.treeCheckable,scrollbar:e.scrollbar,"tree-props":{actionOnNodeClick:e.selectable==="leaf"?"expand":void 0,blockNode:!0,...e.treeProps,data:e.data,checkStrictly:e.treeCheckStrictly,checkedStrategy:e.treeCheckedStrategy,fieldNames:e.fieldNames,multiple:e.multiple,loadMore:e.loadMore,filterTreeNode:e.computedFilterTreeNode,size:e.size,checkable:e.isCheckable,selectable:e.isSelectable,searchValue:e.searchValue},"tree-slots":e.pickSubCompSlots(e.$slots,"tree"),onChange:e.onSelectChange},null,8,["selected-keys","show-checkable","scrollbar","tree-props","tree-slots","onChange"])),e.$slots.footer&&(!e.isEmpty||e.showFooterOnEmpty)?(H(),J("div",{key:4,class:le(`${e.prefixCls}-footer`)},[dt(e.$slots,"footer")],2)):Me("v-if",!0)],6)]),default:de(()=>[dt(e.$slots,"trigger",{},()=>[O(s,zt({ref:"refSelectView","model-value":e.selectViewValue,"input-value":e.searchValue,"allow-search":!!e.allowSearch,"allow-clear":e.allowClear,loading:e.loading,size:e.size,"max-tag-count":e.maxTagCount,disabled:e.mergedDisabled,opened:e.panelVisible,error:e.error,bordered:e.border,placeholder:e.placeholder,multiple:e.isMultiple},e.$attrs,{onInputValueChange:e.onSearchValueChange,onClear:e.onInnerClear,onRemove:e.onItemRemove,onBlur:e.onBlur}),wo({_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[dt(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.label?{name:"label",fn:de(h=>[dt(e.$slots,"label",Ki(Sa(h)))]),key:"1"}:void 0]),1040,["model-value","input-value","allow-search","allow-clear","loading","size","max-tag-count","disabled","opened","error","bordered","placeholder","multiple","onInputValueChange","onClear","onRemove","onBlur"])])]),_:3},16,["class","disabled","popup-visible","popup-container","click-to-close","onPopupVisibleChange"])}var GM=je(AHe,[["render",IHe]]);const LHe=Object.assign(GM,{install:(e,t)=>{Kn(e,t);const n=Gn(t);e.component(n+GM.name,GM)}}),mV={Button:Xo,Link:Xpe,Typography:BUe,Divider:QOe,Grid:E4,Layout:bNe,Space:hVe,Avatar:TPe,Badge:BPe,Calendar:kpe,Card:sMe,Carousel:_Me,Collapse:NMe,Comment:m9e,ColorPicker:u9e,Descriptions:JOe,Empty:qh,Image:qBe,Scrollbar:Dd,List:D0e,Popover:cH,Statistic:CVe,Table:dze,Tabs:Cze,Tag:hH,Timeline:Rze,Tooltip:qc,AutoComplete:gPe,Cascader:IMe,Checkbox:Td,DatePicker:qOe,Form:X$e,Input:R0,InputNumber:Y_,InputTag:_pe,Mention:HNe,Radio:Ly,Rate:Lje,Select:e_,Slider:fVe,Switch:RVe,Textarea:P0e,TimePicker:Ize,Transfer:Uze,Tree:vV,Upload:dHe,TreeSelect:LHe,Alert:Yhe,Drawer:rV,Message:wt,Modal:Lu,Notification:lV,Popconfirm:VFe,Progress:F0e,Result:jje,Spin:Ld,Skeleton:Kje,Breadcrumb:lRe,Dropdown:dpe,Menu:yFe,PageHeader:NFe,Pagination:LH,Steps:IVe,Affix:p7e,Anchor:oDe,BackTop:RPe,ConfigProvider:b9e,ResizeBox:A0e,Trigger:ha,Split:gVe,Icon:tBe,OverflowList:fHe,Watermark:SHe,VerificationCode:hHe},DHe=(e,t)=>{for(const n of Object.keys(mV))e.use(mV[n],t)},PHe={...mV,Alter:Yhe,AnchorLink:WC,AvatarGroup:JC,BreadcrumbItem:J4,ButtonGroup:Z4,Calendar:kpe,CardMeta:pw,CardGrid:vw,CarouselItem:mw,CascaderPanel:gw,CheckboxGroup:XC,CollapseItem:yw,DescriptionsItem:ww,WeekPicker:_w,MonthPicker:Sw,YearPicker:kw,QuarterPicker:xw,RangePicker:Cw,Doption:ty,Dgroup:ew,Dsubmenu:tw,DropdownButton:nw,FormItem:Aw,Row:eb,Col:tb,GridItem:Tw,ImagePreview:ny,ImagePreviewAction:W8,ImagePreviewGroup:nb,InputGroup:ey,InputSearch:GC,InputPassword:KC,LayoutHeader:Lw,LayoutContent:Dw,LayoutFooter:Pw,LayoutSider:Rw,ListItem:Mw,ListItemMeta:Ow,MenuItem:$w,MenuItemGroup:Bw,SubMenu:rb,RadioGroup:hw,Option:am,Optgroup:Q4,SkeletonLine:jw,SkeletonShape:Vw,Countdown:zw,Step:Uw,Thead:ob,Td:e0,Th:ab,Tr:kh,Tbody:sb,TableColumn:Hw,TabPane:Ww,TimelineItem:iy,TypographyParagraph:Gw,TypographyTitle:Kw,TypographyText:qw,install:DHe,addI18nMessages:OLe,useLocale:$Le,getLocale:BLe,useFormItem:Ao},RHe=ke({name:"IconArrowDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-arrow-down`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MHe=["stroke-width","stroke-linecap","stroke-linejoin"];function OHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1)]),14,MHe)}var KM=je(RHe,[["render",OHe]]);const gV=Object.assign(KM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KM.name,KM)}}),$He=ke({name:"IconArrowFall",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-arrow-fall`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BHe=["stroke-width","stroke-linecap","stroke-linejoin"];function NHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.008 41.99a.01.01 0 0 1-.016 0l-9.978-11.974A.01.01 0 0 1 14.02 30H33.98a.01.01 0 0 1 .007.016l-9.978 11.975Z"},null,-1),L("path",{d:"M24 42 14 30h20L24 42Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M22 6h4v26h-4z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M22 6h4v26h-4z"},null,-1)]),14,BHe)}var qM=je($He,[["render",NHe]]);const FHe=Object.assign(qM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qM.name,qM)}}),jHe=ke({name:"IconArrowLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-arrow-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VHe=["stroke-width","stroke-linecap","stroke-linejoin"];function zHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M20.272 11.27 7.544 23.998l12.728 12.728M43 24H8.705"},null,-1)]),14,VHe)}var YM=je(jHe,[["render",zHe]]);const KH=Object.assign(YM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YM.name,YM)}}),UHe=ke({name:"IconArrowRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-arrow-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HHe=["stroke-width","stroke-linecap","stroke-linejoin"];function WHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m27.728 11.27 12.728 12.728-12.728 12.728M5 24h34.295"},null,-1)]),14,HHe)}var XM=je(UHe,[["render",WHe]]);const GHe=Object.assign(XM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XM.name,XM)}}),KHe=ke({name:"IconArrowRise",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-arrow-rise`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qHe=["stroke-width","stroke-linecap","stroke-linejoin"];function YHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M23.992 6.01a.01.01 0 0 1 .016 0l9.978 11.974a.01.01 0 0 1-.007.016H14.02a.01.01 0 0 1-.007-.016l9.978-11.975Z"},null,-1),L("path",{d:"m24 6 10 12H14L24 6Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M26 42h-4V16h4z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M26 42h-4V16h4z"},null,-1)]),14,qHe)}var ZM=je(KHe,[["render",YHe]]);const XHe=Object.assign(ZM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZM.name,ZM)}}),ZHe=ke({name:"IconArrowUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-arrow-up`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JHe=["stroke-width","stroke-linecap","stroke-linejoin"];function QHe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11.27 20.272 23.997 7.544l12.728 12.728M24 43V8.705"},null,-1)]),14,JHe)}var JM=je(ZHe,[["render",QHe]]);const yV=Object.assign(JM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JM.name,JM)}}),eWe=ke({name:"IconDoubleDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-double-down`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tWe=["stroke-width","stroke-linecap","stroke-linejoin"];function nWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m9.9 11.142 14.143 14.142 14.142-14.142M9.9 22.456l14.143 14.142 14.142-14.142"},null,-1)]),14,tWe)}var QM=je(eWe,[["render",nWe]]);const rWe=Object.assign(QM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QM.name,QM)}}),iWe=ke({name:"IconDoubleUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-double-up`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oWe=["stroke-width","stroke-linecap","stroke-linejoin"];function sWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38.1 36.858 23.957 22.716 9.816 36.858M38.1 25.544 23.957 11.402 9.816 25.544"},null,-1)]),14,oWe)}var e9=je(iWe,[["render",sWe]]);const aWe=Object.assign(e9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e9.name,e9)}}),lWe=ke({name:"IconDownCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-down-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uWe=["stroke-width","stroke-linecap","stroke-linejoin"];function cWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"18",transform:"rotate(-180 24 24)"},null,-1),L("path",{d:"M32.484 20.515 24 29l-8.485-8.485"},null,-1)]),14,uWe)}var t9=je(lWe,[["render",cWe]]);const dWe=Object.assign(t9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t9.name,t9)}}),fWe=ke({name:"IconDragArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-drag-arrow`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hWe=["stroke-width","stroke-linecap","stroke-linejoin"];function pWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 24h34M24 7v34M30 12l-6-6-6 6M36 30l6-6-6-6M12 30l-6-6 6-6M18 36l6 6 6-6"},null,-1)]),14,hWe)}var n9=je(fWe,[["render",pWe]]);const gve=Object.assign(n9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n9.name,n9)}}),vWe=ke({name:"IconExpand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-expand`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mWe=["stroke-width","stroke-linecap","stroke-linejoin"];function gWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 26v14c0 .552.444 1 .996 1H22m19-19V8c0-.552-.444-1-.996-1H26"},null,-1)]),14,mWe)}var r9=je(vWe,[["render",gWe]]);const yWe=Object.assign(r9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r9.name,r9)}}),bWe=ke({name:"IconLeftCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-left-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_We=["stroke-width","stroke-linecap","stroke-linejoin"];function SWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"18"},null,-1),L("path",{d:"M28.485 32.485 20 24l8.485-8.485"},null,-1)]),14,_We)}var i9=je(bWe,[["render",SWe]]);const kWe=Object.assign(i9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i9.name,i9)}}),xWe=ke({name:"IconRightCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-right-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CWe=["stroke-width","stroke-linecap","stroke-linejoin"];function wWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"18"},null,-1),L("path",{d:"M19.485 15.515 27.971 24l-8.486 8.485"},null,-1)]),14,CWe)}var o9=je(xWe,[["render",wWe]]);const EWe=Object.assign(o9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o9.name,o9)}}),TWe=ke({name:"IconShrink",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-shrink`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AWe=["stroke-width","stroke-linecap","stroke-linejoin"];function IWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M20 44V29c0-.552-.444-1-.996-1H4M28 4v15c0 .552.444 1 .996 1H44"},null,-1)]),14,AWe)}var s9=je(TWe,[["render",IWe]]);const LWe=Object.assign(s9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s9.name,s9)}}),DWe=ke({name:"IconSwap",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-swap`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),PWe=["stroke-width","stroke-linecap","stroke-linejoin"];function RWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 17h35.586c.89 0 1.337-1.077.707-1.707L33 7M43 31H7.414c-.89 0-1.337 1.077-.707 1.707L15 41"},null,-1)]),14,PWe)}var a9=je(DWe,[["render",RWe]]);const yve=Object.assign(a9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a9.name,a9)}}),MWe=ke({name:"IconToBottom",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-to-bottom`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),OWe=["stroke-width","stroke-linecap","stroke-linejoin"];function $We(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 41h38M24 28V5M24 34.04 17.547 27h12.907L24 34.04Zm-.736.803v.001Z"},null,-1),L("path",{d:"m24 34 6-7H18l6 7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,OWe)}var l9=je(MWe,[["render",$We]]);const BWe=Object.assign(l9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l9.name,l9)}}),NWe=ke({name:"IconToLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-to-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FWe=["stroke-width","stroke-linecap","stroke-linejoin"];function jWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 5v38M20 24h23M20.999 17.547v12.907L13.959 24l7.04-6.453Z"},null,-1),L("path",{d:"m14 24 7 6V18l-7 6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,FWe)}var u9=je(NWe,[["render",jWe]]);const VWe=Object.assign(u9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u9.name,u9)}}),zWe=ke({name:"IconToRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-to-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UWe=["stroke-width","stroke-linecap","stroke-linejoin"];function HWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 43V5M28 24H5M34.04 24 27 30.453V17.546L34.04 24Zm.803.736h.001Z"},null,-1),L("path",{d:"m34 24-7-6v12l7-6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,UWe)}var c9=je(zWe,[["render",HWe]]);const WWe=Object.assign(c9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c9.name,c9)}}),GWe=ke({name:"IconUpCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-up-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KWe=["stroke-width","stroke-linecap","stroke-linejoin"];function qWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"18"},null,-1),L("path",{d:"M15.516 28.485 24 20l8.485 8.485"},null,-1)]),14,KWe)}var d9=je(GWe,[["render",qWe]]);const YWe=Object.assign(d9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d9.name,d9)}}),XWe=ke({name:"IconExclamationPolygonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-exclamation-polygon-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZWe=["stroke-width","stroke-linecap","stroke-linejoin"];function JWe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.553 4a1 1 0 0 0-.74.327L4.26 15.937a1 1 0 0 0-.26.672V31.39a1 1 0 0 0 .26.673l10.553 11.609a1 1 0 0 0 .74.327h16.893a1 1 0 0 0 .74-.327l10.554-11.61a1 1 0 0 0 .26-.672V16.61a1 1 0 0 0-.26-.673L33.187 4.327a1 1 0 0 0-.74-.327H15.553ZM22 33a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2Zm4-18a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V15Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ZWe)}var f9=je(XWe,[["render",JWe]]);const QWe=Object.assign(f9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f9.name,f9)}}),eGe=ke({name:"IconMinusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-minus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tGe=["stroke-width","stroke-linecap","stroke-linejoin"];function nGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-7-22a1 1 0 0 0-1 1v2a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1H17Z",fill:"currentColor",stroke:"none"},null,-1)]),14,tGe)}var h9=je(eGe,[["render",nGe]]);const rGe=Object.assign(h9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h9.name,h9)}}),iGe=ke({name:"IconPlusCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-plus-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oGe=["stroke-width","stroke-linecap","stroke-linejoin"];function sGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm2-28v6h6a1 1 0 0 1 1 1v2a1 1 0 0 1-1 1h-6v6a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1v-6h-6a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6v-6a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,oGe)}var p9=je(iGe,[["render",sGe]]);const aGe=Object.assign(p9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p9.name,p9)}}),lGe=ke({name:"IconQuestionCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-question-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uGe=["stroke-width","stroke-linecap","stroke-linejoin"];function cGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-3.862-24.021a.461.461 0 0 0 .462-.462 2.37 2.37 0 0 1 .636-1.615C21.64 17.48 22.43 17 23.988 17c1.465 0 2.483.7 3.002 1.493.555.848.446 1.559.182 1.914-.328.444-.736.853-1.228 1.296-.15.135-.335.296-.533.468-.354.308-.75.654-1.067.955C23.22 24.195 22 25.686 22 28v.013a1 1 0 0 0 1.006.993l2.008-.012a.993.993 0 0 0 .986-1c.002-.683.282-1.19 1.101-1.97.276-.262.523-.477.806-.722.21-.18.439-.379.713-.626.57-.513 1.205-1.13 1.767-1.888 1.516-2.047 1.161-4.634-.05-6.485C29.092 14.398 26.825 13 23.988 13c-2.454 0-4.357.794-5.642 2.137-1.25 1.307-1.742 2.954-1.746 4.37 0 .26.21.472.47.472h3.068Zm1.868 14.029a1 1 0 0 0 1 1h2a1 1 0 0 0 1-1V32a1 1 0 0 0-1-1h-2a1 1 0 0 0-1 1v2.008Z",fill:"currentColor",stroke:"none"},null,-1)]),14,uGe)}var v9=je(lGe,[["render",cGe]]);const dGe=Object.assign(v9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v9.name,v9)}}),fGe=ke({name:"IconCheckCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-check-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hGe=["stroke-width","stroke-linecap","stroke-linejoin"];function pGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m15 22 7 7 11.5-11.5M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,hGe)}var m9=je(fGe,[["render",pGe]]);const Pc=Object.assign(m9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m9.name,m9)}}),vGe=ke({name:"IconCheckSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-check-square`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mGe=["stroke-width","stroke-linecap","stroke-linejoin"];function gGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M34.603 16.672 21.168 30.107l-7.778-7.779M8 41h32a1 1 0 0 0 1-1V8a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v32a1 1 0 0 0 1 1Z"},null,-1)]),14,mGe)}var g9=je(vGe,[["render",gGe]]);const yGe=Object.assign(g9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g9.name,g9)}}),bGe=ke({name:"IconCloseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-close-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_Ge=["stroke-width","stroke-linecap","stroke-linejoin"];function SGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m17.643 17.643 6.364 6.364m0 0 6.364 6.364m-6.364-6.364 6.364-6.364m-6.364 6.364-6.364 6.364M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,_Ge)}var y9=je(bGe,[["render",SGe]]);const kGe=Object.assign(y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y9.name,y9)}}),xGe=ke({name:"IconExclamationCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-exclamation-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),CGe=["stroke-width","stroke-linecap","stroke-linejoin"];function wGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 28V14m0 16v4M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18S6 33.941 6 24Z"},null,-1)]),14,CGe)}var b9=je(xGe,[["render",wGe]]);const rf=Object.assign(b9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b9.name,b9)}}),EGe=ke({name:"IconInfoCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-info-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),TGe=["stroke-width","stroke-linecap","stroke-linejoin"];function AGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 20v14m0-16v-4m18 10c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,TGe)}var _9=je(EGe,[["render",AGe]]);const yd=Object.assign(_9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_9.name,_9)}}),IGe=ke({name:"IconMinusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-minus-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),LGe=["stroke-width","stroke-linecap","stroke-linejoin"];function DGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32 24H16m26 0c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,LGe)}var S9=je(IGe,[["render",DGe]]);const PGe=Object.assign(S9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S9.name,S9)}}),RGe=ke({name:"IconPlusCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-plus-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MGe=["stroke-width","stroke-linecap","stroke-linejoin"];function OGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32 24h-8m-8 0h8m0 0v8m0-8v-8m18 8c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,MGe)}var k9=je(RGe,[["render",OGe]]);const $Ge=Object.assign(k9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k9.name,k9)}}),BGe=ke({name:"IconQuestion",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-question`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),NGe=["stroke-width","stroke-linecap","stroke-linejoin"];function FGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 17c0-5.523 4.925-10 11-10s11 4.477 11 10c0 3.607-2.1 6.767-5.25 8.526C26.857 27.142 24 29.686 24 33v3m0 5h.02v.02H24V41Z"},null,-1)]),14,NGe)}var x9=je(BGe,[["render",FGe]]);const jGe=Object.assign(x9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x9.name,x9)}}),VGe=ke({name:"IconStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-stop`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zGe=["stroke-width","stroke-linecap","stroke-linejoin"];function UGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M36.728 36.728c7.03-7.03 7.03-18.427 0-25.456-7.03-7.03-18.427-7.03-25.456 0m25.456 25.456c-7.03 7.03-18.427 7.03-25.456 0-7.03-7.03-7.03-18.427 0-25.456m25.456 25.456L11.272 11.272"},null,-1)]),14,zGe)}var C9=je(VGe,[["render",UGe]]);const HGe=Object.assign(C9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C9.name,C9)}}),WGe=ke({name:"IconHeartFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-heart-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GGe=["stroke-width","stroke-linecap","stroke-linejoin"];function KGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 10.541c4.35-4.522 11.405-4.814 15.756-.292 4.35 4.522 4.15 11.365.448 17.135C36.153 33.7 28 41.5 24 42c-4-.5-12.152-8.3-16.204-14.616-3.702-5.77-3.902-12.613.448-17.135C12.595 5.727 19.65 6.019 24 10.54Z",fill:"currentColor",stroke:"none"},null,-1)]),14,GGe)}var w9=je(WGe,[["render",KGe]]);const qH=Object.assign(w9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w9.name,w9)}}),qGe=ke({name:"IconThumbDownFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-thumb-down-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YGe=["stroke-width","stroke-linecap","stroke-linejoin"];function XGe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 5v26h-4V5h4Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M20.9 43.537a2 2 0 0 0 2.83-.364L32.964 31H36V5H12.424a2 2 0 0 0-1.89 1.346L4.838 25.692C3.938 28.29 5.868 31 8.618 31h10.568l-2.421 5.448a4 4 0 0 0 1.184 4.77l2.951 2.32Z",fill:"currentColor",stroke:"none"},null,-1)]),14,YGe)}var E9=je(qGe,[["render",XGe]]);const ZGe=Object.assign(E9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E9.name,E9)}}),JGe=ke({name:"IconThumbUpFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-thumb-up-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QGe=["stroke-width","stroke-linecap","stroke-linejoin"];function eKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 43V17h4v26H5Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M27.1 4.463a2 2 0 0 0-2.83.364L15.036 17H12v26h23.576a2 2 0 0 0 1.89-1.346l5.697-19.346c.899-2.598-1.03-5.308-3.78-5.308h-10.57l2.422-5.448a4 4 0 0 0-1.184-4.77L27.1 4.462Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QGe)}var T9=je(JGe,[["render",eKe]]);const tKe=Object.assign(T9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T9.name,T9)}}),nKe=ke({name:"IconAt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-at`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rKe=["stroke-width","stroke-linecap","stroke-linejoin"];function iKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M31 23a7 7 0 1 1-14 0 7 7 0 0 1 14 0Zm0 0c0 3.038 2.462 6.5 5.5 6.5A5.5 5.5 0 0 0 42 24c0-9.941-8.059-18-18-18S6 14.059 6 24s8.059 18 18 18c4.244 0 8.145-1.469 11.222-3.925"},null,-1)]),14,rKe)}var A9=je(nKe,[["render",iKe]]);const oKe=Object.assign(A9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A9.name,A9)}}),sKe=ke({name:"IconCloudDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-cloud-download`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aKe=["stroke-width","stroke-linecap","stroke-linejoin"];function lKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43 22c0-7.732-6.492-14-14.5-14S14 14.268 14 22v.055A9.001 9.001 0 0 0 15 40h13m16.142-5.929-7.07 7.071L30 34.072M37.07 26v15"},null,-1)]),14,aKe)}var I9=je(sKe,[["render",lKe]]);const uKe=Object.assign(I9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I9.name,I9)}}),cKe=ke({name:"IconCodeBlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-code-block`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dKe=["stroke-width","stroke-linecap","stroke-linejoin"];function fKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19 6h-4a3 3 0 0 0-3 3v10c0 3-4.343 5-6 5 1.657 0 6 2 6 5v10a3 3 0 0 0 3 3h4M29 6h4a3 3 0 0 1 3 3v10c0 3 4.343 5 6 5-1.657 0-6 2-6 5v10a3 3 0 0 1-3 3h-4"},null,-1)]),14,dKe)}var L9=je(cKe,[["render",fKe]]);const bve=Object.assign(L9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L9.name,L9)}}),hKe=ke({name:"IconCodeSquare",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-code-square`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pKe=["stroke-width","stroke-linecap","stroke-linejoin"];function vKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M23.071 17 16 24.071l7.071 7.071m9.001-14.624-4.14 15.454M9 42h30a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H9a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1Z"},null,-1)]),14,pKe)}var D9=je(hKe,[["render",vKe]]);const mKe=Object.assign(D9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D9.name,D9)}}),gKe=ke({name:"IconCode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-code`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yKe=["stroke-width","stroke-linecap","stroke-linejoin"];function bKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M16.734 12.686 5.42 24l11.314 11.314m14.521-22.628L42.57 24 31.255 35.314M27.2 6.28l-6.251 35.453"},null,-1)]),14,yKe)}var P9=je(gKe,[["render",bKe]]);const S0=Object.assign(P9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P9.name,P9)}}),_Ke=ke({name:"IconCustomerService",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-customer-service`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SKe=["stroke-width","stroke-linecap","stroke-linejoin"];function kKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11 31V20c0-7.18 5.82-13 13-13s13 5.82 13 13v8c0 5.784-3.778 10.686-9 12.373m0 0A12.99 12.99 0 0 1 24 41h-3a1 1 0 0 1-1-1v-2a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1v2.373Zm0 0V41m9-20h3a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1h-3v-8Zm-26 0H8a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h3v-8Z"},null,-1)]),14,SKe)}var R9=je(_Ke,[["render",kKe]]);const xKe=Object.assign(R9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R9.name,R9)}}),CKe=ke({name:"IconDownload",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-download`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wKe=["stroke-width","stroke-linecap","stroke-linejoin"];function EKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1)]),14,wKe)}var M9=je(CKe,[["render",EKe]]);const fm=Object.assign(M9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M9.name,M9)}}),TKe=ke({name:"IconExport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-export`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),AKe=["stroke-width","stroke-linecap","stroke-linejoin"];function IKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"},null,-1)]),14,AKe)}var O9=je(TKe,[["render",IKe]]);const X5=Object.assign(O9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O9.name,O9)}}),LKe=ke({name:"IconHeart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-heart`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),DKe=["stroke-width","stroke-linecap","stroke-linejoin"];function PKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38.083 12.912a9.929 9.929 0 0 1 .177 13.878l-.177.18L25.76 39.273c-.972.97-2.548.97-3.52 0L9.917 26.971l-.177-.181a9.929 9.929 0 0 1 .177-13.878c3.889-3.883 10.194-3.883 14.083 0 3.889-3.883 10.194-3.883 14.083 0Z"},null,-1)]),14,DKe)}var $9=je(LKe,[["render",PKe]]);const Z5=Object.assign($9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$9.name,$9)}}),RKe=ke({name:"IconHistory",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-history`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),MKe=["stroke-width","stroke-linecap","stroke-linejoin"];function OKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 24c0-9.941 8.059-18 18-18s18 8.059 18 18-8.059 18-18 18c-6.26 0-11.775-3.197-15-8.047M6 24l-.5-.757h1L6 24Zm26 2h-9v-9"},null,-1)]),14,MKe)}var B9=je(RKe,[["render",OKe]]);const Py=Object.assign(B9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B9.name,B9)}}),$Ke=ke({name:"IconHome",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-home`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BKe=["stroke-width","stroke-linecap","stroke-linejoin"];function NKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 17 24 7l17 10v24H7V17Z"},null,-1),L("path",{d:"M20 28h8v13h-8V28Z"},null,-1)]),14,BKe)}var N9=je($Ke,[["render",NKe]]);const l3=Object.assign(N9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N9.name,N9)}}),FKe=ke({name:"IconImport",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-import`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jKe=["stroke-width","stroke-linecap","stroke-linejoin"];function VKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m27.929 33.072-9.071-9.07 9.07-9.072M43 24H19m12 17H7V7h24"},null,-1)]),14,jKe)}var F9=je(FKe,[["render",VKe]]);const J5=Object.assign(F9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F9.name,F9)}}),zKe=ke({name:"IconLaunch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-launch`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UKe=["stroke-width","stroke-linecap","stroke-linejoin"];function HKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 26v14a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1h14M19.822 28.178 39.899 8.1M41 20V7H28"},null,-1)]),14,UKe)}var j9=je(zKe,[["render",HKe]]);const _ve=Object.assign(j9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j9.name,j9)}}),WKe=ke({name:"IconList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-list`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),GKe=["stroke-width","stroke-linecap","stroke-linejoin"];function KKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 24h30M5 12h4m4 24h30M13 12h30M5 24h4M5 36h4"},null,-1)]),14,GKe)}var V9=je(WKe,[["render",KKe]]);const YH=Object.assign(V9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V9.name,V9)}}),qKe=ke({name:"IconMessageBanned",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-message-banned`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YKe=["stroke-width","stroke-linecap","stroke-linejoin"];function XKe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M40.527 20C38.727 12.541 32.01 7 24 7 14.611 7 7 14.611 7 24v17h14m19.364-.636a9 9 0 0 0-12.728-12.728m12.728 12.728a9 9 0 0 1-12.728-12.728m12.728 12.728L27.636 27.636M13 20h12m-12 9h6"},null,-1)]),14,YKe)}var z9=je(qKe,[["render",XKe]]);const ZKe=Object.assign(z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z9.name,z9)}}),JKe=ke({name:"IconMessage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-message`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QKe=["stroke-width","stroke-linecap","stroke-linejoin"];function eqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M15 20h18m-18 9h9M7 41h17.63C33.67 41 41 33.67 41 24.63V24c0-9.389-7.611-17-17-17S7 14.611 7 24v17Z"},null,-1)]),14,QKe)}var U9=je(JKe,[["render",eqe]]);const tqe=Object.assign(U9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U9.name,U9)}}),nqe=ke({name:"IconMoreVertical",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-more-vertical`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rqe=["stroke-width","stroke-linecap","stroke-linejoin"];function iqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z"},null,-1)]),14,rqe)}var H9=je(nqe,[["render",iqe]]);const oqe=Object.assign(H9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H9.name,H9)}}),sqe=ke({name:"IconPoweroff",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-poweroff`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aqe=["stroke-width","stroke-linecap","stroke-linejoin"];function lqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M15.5 9.274C10.419 12.214 7 17.708 7 24c0 9.389 7.611 17 17 17s17-7.611 17-17c0-6.292-3.419-11.786-8.5-14.726M24 5v22"},null,-1)]),14,aqe)}var W9=je(sqe,[["render",lqe]]);const uqe=Object.assign(W9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W9.name,W9)}}),cqe=ke({name:"IconRefresh",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-refresh`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dqe=["stroke-width","stroke-linecap","stroke-linejoin"];function fqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38.837 18C36.463 12.136 30.715 8 24 8 15.163 8 8 15.163 8 24s7.163 16 16 16c7.455 0 13.72-5.1 15.496-12M40 8v10H30"},null,-1)]),14,dqe)}var G9=je(cqe,[["render",fqe]]);const df=Object.assign(G9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G9.name,G9)}}),hqe=ke({name:"IconReply",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-reply`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pqe=["stroke-width","stroke-linecap","stroke-linejoin"];function vqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m6.642 24.684 14.012 14.947a.2.2 0 0 0 .346-.137v-8.949A23.077 23.077 0 0 1 26 30c6.208 0 11.84 2.459 15.978 6.456a.01.01 0 0 0 .017-.007C42 36.299 42 36.15 42 36c0-10.493-8.506-19-19-19-.675 0-1.342.035-2 .104V8.506a.2.2 0 0 0-.346-.137L6.642 23.316a1 1 0 0 0 0 1.368Z"},null,-1)]),14,pqe)}var K9=je(hqe,[["render",vqe]]);const mqe=Object.assign(K9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K9.name,K9)}}),gqe=ke({name:"IconSave",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-save`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yqe=["stroke-width","stroke-linecap","stroke-linejoin"];function bqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M21 13v9m18 20H9a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h22.55a1 1 0 0 1 .748.336l7.45 8.38a1 1 0 0 1 .252.664V41a1 1 0 0 1-1 1ZM14 6h14v15a1 1 0 0 1-1 1H15a1 1 0 0 1-1-1V6Z"},null,-1)]),14,yqe)}var q9=je(gqe,[["render",bqe]]);const Fv=Object.assign(q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q9.name,q9)}}),_qe=ke({name:"IconScan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-scan`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Sqe=["stroke-width","stroke-linecap","stroke-linejoin"];function kqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1)]),14,Sqe)}var Y9=je(_qe,[["render",kqe]]);const xqe=Object.assign(Y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y9.name,Y9)}}),Cqe=ke({name:"IconSelectAll",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-select-all`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Eqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m17.314 7.243-7.071 7.07L6 10.072m11.314 10.172-7.071 7.07L6 23.072m11.314 10.172-7.071 7.07L6 36.072M21 11h22M21 25h22M21 39h22"},null,-1)]),14,wqe)}var X9=je(Cqe,[["render",Eqe]]);const Tqe=Object.assign(X9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X9.name,X9)}}),Aqe=ke({name:"IconSend",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-send`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Iqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Lqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m14 24-7-5V7l34 17L7 41V29l7-5Zm0 0h25","stroke-miterlimit":"3.864"},null,-1)]),14,Iqe)}var Z9=je(Aqe,[["render",Lqe]]);const Dqe=Object.assign(Z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z9.name,Z9)}}),Pqe=ke({name:"IconSettings",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-settings`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Mqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M18.797 6.732A1 1 0 0 1 19.76 6h8.48a1 1 0 0 1 .964.732l1.285 4.628a1 1 0 0 0 1.213.7l4.651-1.2a1 1 0 0 1 1.116.468l4.24 7.344a1 1 0 0 1-.153 1.2L38.193 23.3a1 1 0 0 0 0 1.402l3.364 3.427a1 1 0 0 1 .153 1.2l-4.24 7.344a1 1 0 0 1-1.116.468l-4.65-1.2a1 1 0 0 0-1.214.7l-1.285 4.628a1 1 0 0 1-.964.732h-8.48a1 1 0 0 1-.963-.732L17.51 36.64a1 1 0 0 0-1.213-.7l-4.65 1.2a1 1 0 0 1-1.116-.468l-4.24-7.344a1 1 0 0 1 .153-1.2L9.809 24.7a1 1 0 0 0 0-1.402l-3.364-3.427a1 1 0 0 1-.153-1.2l4.24-7.344a1 1 0 0 1 1.116-.468l4.65 1.2a1 1 0 0 0 1.213-.7l1.286-4.628Z"},null,-1),L("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,Rqe)}var J9=je(Pqe,[["render",Mqe]]);const Lf=Object.assign(J9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J9.name,J9)}}),Oqe=ke({name:"IconShareAlt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-share-alt`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$qe=["stroke-width","stroke-linecap","stroke-linejoin"];function Bqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32.442 21.552a4.5 4.5 0 1 1 .065 4.025m-.065-4.025-16.884-8.104m16.884 8.104A4.483 4.483 0 0 0 32 23.5c0 .75.183 1.455.507 2.077m-16.95-12.13a4.5 4.5 0 1 1-8.113-3.895 4.5 4.5 0 0 1 8.114 3.896Zm-.064 20.977A4.5 4.5 0 1 0 11.5 41c3.334-.001 5.503-3.68 3.993-6.578Zm0 0 17.014-8.847"},null,-1)]),14,$qe)}var Q9=je(Oqe,[["render",Bqe]]);const Nqe=Object.assign(Q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q9.name,Q9)}}),Fqe=ke({name:"IconShareExternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-share-external`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Vqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M18 20h-7a1 1 0 0 0-1 1v20a1 1 0 0 0 1 1h26a1 1 0 0 0 1-1V21a1 1 0 0 0-1-1h-7m2.368-5.636L24.004 6l-8.364 8.364M24.003 28V6.604","stroke-miterlimit":"16"},null,-1)]),14,jqe)}var eO=je(Fqe,[["render",Vqe]]);const zqe=Object.assign(eO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eO.name,eO)}}),Uqe=ke({name:"IconShareInternal",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-share-internal`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Hqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Wqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M40 35v6H8v-6m1.108-4c1.29-8.868 13.917-15.85 29.392-15.998M30 6l9 9-9 9"},null,-1)]),14,Hqe)}var tO=je(Uqe,[["render",Wqe]]);const Gqe=Object.assign(tO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tO.name,tO)}}),Kqe=ke({name:"IconStar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-star`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Yqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M22.552 6.908a.5.5 0 0 1 .896 0l5.02 10.17a.5.5 0 0 0 .376.274l11.224 1.631a.5.5 0 0 1 .277.853l-8.122 7.916a.5.5 0 0 0-.143.443l1.917 11.178a.5.5 0 0 1-.726.527l-10.038-5.278a.5.5 0 0 0-.466 0L12.73 39.9a.5.5 0 0 1-.726-.527l1.918-11.178a.5.5 0 0 0-.144-.443l-8.122-7.916a.5.5 0 0 1 .278-.853l11.223-1.63a.5.5 0 0 0 .376-.274l5.02-10.17Z"},null,-1)]),14,qqe)}var nO=je(Kqe,[["render",Yqe]]);const Q5=Object.assign(nO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nO.name,nO)}}),Xqe=ke({name:"IconSync",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-sync`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Zqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Jqe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11.98 11.703c-6.64 6.64-6.64 17.403 0 24.042a16.922 16.922 0 0 0 8.942 4.7M34.603 37.156l1.414-1.415c6.64-6.639 6.64-17.402 0-24.041A16.922 16.922 0 0 0 27.075 7M14.81 11.982l-1.414-1.414-1.414-1.414h2.829v2.828ZM33.192 36.02l1.414 1.414 1.414 1.415h-2.828V36.02Z"},null,-1)]),14,Zqe)}var rO=je(Xqe,[["render",Jqe]]);const Qqe=Object.assign(rO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rO.name,rO)}}),eYe=ke({name:"IconThumbDown",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-thumb-down`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tYe=["stroke-width","stroke-linecap","stroke-linejoin"];function nYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 31V5M5.83 26.394l5.949-18.697A1 1 0 0 1 12.732 7H34v22h-3l-9.403 12.223a1 1 0 0 1-1.386.196l-2.536-1.87a6 6 0 0 1-2.043-6.974L17 29H7.736a2 2 0 0 1-1.906-2.606Z"},null,-1)]),14,tYe)}var iO=je(eYe,[["render",nYe]]);const rYe=Object.assign(iO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iO.name,iO)}}),iYe=ke({name:"IconThumbUp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-thumb-up`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oYe=["stroke-width","stroke-linecap","stroke-linejoin"];function sYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 17v26m35.17-21.394-5.948 18.697a1 1 0 0 1-.953.697H14V19h3l9.403-12.223a1 1 0 0 1 1.386-.196l2.535 1.87a6 6 0 0 1 2.044 6.974L31 19h9.265a2 2 0 0 1 1.906 2.606Z"},null,-1)]),14,oYe)}var oO=je(iYe,[["render",sYe]]);const aYe=Object.assign(oO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oO.name,oO)}}),lYe=ke({name:"IconTranslate",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-translate`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uYe=["stroke-width","stroke-linecap","stroke-linejoin"];function cYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 25c0 9.941-8.059 18-18 18-6.867 0-12.836-3.845-15.87-9.5M28.374 27 25 18h-2l-3.375 9m8.75 0L31 34m-2.625-7h-8.75m0 0L17 34M6 25c0-9.941 8.059-18 18-18 6.867 0 12.836 3.845 15.87 9.5M43 25h-2l1-1 1 1ZM5 25h2l-1 1-1-1Z"},null,-1)]),14,uYe)}var sO=je(lYe,[["render",cYe]]);const dYe=Object.assign(sO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sO.name,sO)}}),fYe=ke({name:"IconVoice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-voice`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hYe=["stroke-width","stroke-linecap","stroke-linejoin"];function pYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 21v1c0 8.837-7.163 16-16 16h-2c-8.837 0-16-7.163-16-16v-1m17 17v6m0-14a9 9 0 0 1-9-9v-6a9 9 0 1 1 18 0v6a9 9 0 0 1-9 9Z"},null,-1)]),14,hYe)}var aO=je(fYe,[["render",pYe]]);const vYe=Object.assign(aO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aO.name,aO)}}),mYe=ke({name:"IconAlignCenter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-align-center`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gYe=["stroke-width","stroke-linecap","stroke-linejoin"];function yYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M44 9H4m38 20H6m28-10H14m20 20H14"},null,-1)]),14,gYe)}var lO=je(mYe,[["render",yYe]]);const bYe=Object.assign(lO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lO.name,lO)}}),_Ye=ke({name:"IconAlignLeft",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-align-left`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SYe=["stroke-width","stroke-linecap","stroke-linejoin"];function kYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M44 9H4m36 20H4m21-10H4m21 20H4"},null,-1)]),14,SYe)}var uO=je(_Ye,[["render",kYe]]);const xYe=Object.assign(uO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uO.name,uO)}}),CYe=ke({name:"IconAlignRight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-align-right`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wYe=["stroke-width","stroke-linecap","stroke-linejoin"];function EYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M4 9h40M8 29h36M23 19h21M23 39h21"},null,-1)]),14,wYe)}var cO=je(CYe,[["render",EYe]]);const TYe=Object.assign(cO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cO.name,cO)}}),AYe=ke({name:"IconAttachment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-attachment`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IYe=["stroke-width","stroke-linecap","stroke-linejoin"];function LYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M29.037 15.236s-9.174 9.267-11.48 11.594c-2.305 2.327-1.646 4.987-.329 6.316 1.317 1.33 3.994 1.953 6.258-.332L37.32 18.851c3.623-3.657 2.092-8.492 0-10.639-2.093-2.147-6.916-3.657-10.54 0L11.3 23.838c-3.623 3.657-3.953 10.638.329 14.96 4.282 4.322 11.115 4.105 14.821.333 3.706-3.773 8.74-8.822 11.224-11.33"},null,-1)]),14,IYe)}var dO=je(AYe,[["render",LYe]]);const DYe=Object.assign(dO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dO.name,dO)}}),PYe=ke({name:"IconBgColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-bg-colors`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RYe=["stroke-width","stroke-linecap","stroke-linejoin"];function MYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m9.442 25.25 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25H9.442Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M19 5.25 22.75 9m0 0 12.043 12.043a1 1 0 0 1 0 1.414L32 25.25M22.75 9 8.693 23.057a1 1 0 0 0-.013 1.4l.762.793m0 0 10.351 10.765a1 1 0 0 0 1.428.014L32 25.25m-22.558 0H32M6 42h36"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M40.013 29.812 37.201 27l-2.812 2.812a4 4 0 1 0 5.624 0Z",fill:"currentColor",stroke:"none"},null,-1)]),14,RYe)}var fO=je(PYe,[["render",MYe]]);const Sve=Object.assign(fO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fO.name,fO)}}),OYe=ke({name:"IconBold",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-bold`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Ye=["stroke-width","stroke-linecap","stroke-linejoin"];function BYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 24h12a8 8 0 1 0 0-16H13.2a.2.2 0 0 0-.2.2V24Zm0 0h16a8 8 0 1 1 0 16H13.2a.2.2 0 0 1-.2-.2V24Z"},null,-1)]),14,$Ye)}var hO=je(OYe,[["render",BYe]]);const NYe=Object.assign(hO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hO.name,hO)}}),FYe=ke({name:"IconBrush",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-brush`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jYe=["stroke-width","stroke-linecap","stroke-linejoin"];function VYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M33 13h7a1 1 0 0 1 1 1v12.14a1 1 0 0 1-.85.99l-21.3 3.24a1 1 0 0 0-.85.99V43M33 8v10.002A.998.998 0 0 1 32 19H8a1 1 0 0 1-1-1V8c0-.552.444-1 .997-1H32.01c.552 0 .99.447.99 1Z"},null,-1)]),14,jYe)}var pO=je(FYe,[["render",VYe]]);const zYe=Object.assign(pO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pO.name,pO)}}),UYe=ke({name:"IconEraser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-eraser`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),HYe=["stroke-width","stroke-linecap","stroke-linejoin"];function WYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25.5 40.503 14.914 40.5a1 1 0 0 1-.707-.293l-9-9a1 1 0 0 1 0-1.414L13.5 21.5m12 19.003L44 40.5m-18.5.003L29 37M13.5 21.5 26.793 8.207a1 1 0 0 1 1.414 0l14.086 14.086a1 1 0 0 1 0 1.414L29 37M13.5 21.5 29 37"},null,-1)]),14,HYe)}var vO=je(UYe,[["render",WYe]]);const GYe=Object.assign(vO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vO.name,vO)}}),KYe=ke({name:"IconFindReplace",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-find-replace`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qYe=["stroke-width","stroke-linecap","stroke-linejoin"];function YYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42.353 40.854 36.01 34.51m0 0a9 9 0 0 1-15.364-6.364c0-5 4-9 9-9s9 4 9 9a8.972 8.972 0 0 1-2.636 6.364Zm5.636-26.365h-36m10 16h-10m10 16h-10"},null,-1)]),14,qYe)}var mO=je(KYe,[["render",YYe]]);const XYe=Object.assign(mO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mO.name,mO)}}),ZYe=ke({name:"IconFontColors",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-font-colors`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),JYe=["stroke-width","stroke-linecap","stroke-linejoin"];function QYe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M9 41h30M16.467 22 11.5 34m20.032-12L24.998 7h-2l-6.532 15h15.065Zm0 0H16.467h15.065Zm0 0L36.5 34l-4.968-12Z"},null,-1)]),14,JYe)}var gO=je(ZYe,[["render",QYe]]);const kve=Object.assign(gO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gO.name,gO)}}),eXe=ke({name:"IconFormula",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-formula`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tXe=["stroke-width","stroke-linecap","stroke-linejoin"];function nXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M40 8H10a1 1 0 0 0-1 1v.546a1 1 0 0 0 .341.753L24.17 23.273a1 1 0 0 1 .026 1.482l-.195.183L9.343 37.7a1 1 0 0 0-.343.754V39a1 1 0 0 0 1 1h30"},null,-1)]),14,tXe)}var yO=je(eXe,[["render",nXe]]);const rXe=Object.assign(yO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yO.name,yO)}}),iXe=ke({name:"IconH1",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-h1`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oXe=["stroke-width","stroke-linecap","stroke-linejoin"];function sXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M40 42V21h-1l-6 3"},null,-1)]),14,oXe)}var bO=je(iXe,[["render",sXe]]);const aXe=Object.assign(bO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bO.name,bO)}}),lXe=ke({name:"IconH2",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-h2`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uXe=["stroke-width","stroke-linecap","stroke-linejoin"];function cXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M44 40H32v-.5l7.5-9c.914-1.117 2.5-3 2.5-5 0-2.485-2.239-4.5-5-4.5s-5 2.515-5 5"},null,-1)]),14,uXe)}var _O=je(lXe,[["render",cXe]]);const dXe=Object.assign(_O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_O.name,_O)}}),fXe=ke({name:"IconH3",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-h3`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hXe=["stroke-width","stroke-linecap","stroke-linejoin"];function pXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M37.001 30h-2m2 0a5 5 0 0 0 0-10h-.556a4.444 4.444 0 0 0-4.444 4.444m5 5.556a5 5 0 0 1 0 10h-.556a4.444 4.444 0 0 1-4.444-4.444"},null,-1)]),14,hXe)}var SO=je(fXe,[["render",pXe]]);const vXe=Object.assign(SO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SO.name,SO)}}),mXe=ke({name:"IconH4",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-h4`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gXe=["stroke-width","stroke-linecap","stroke-linejoin"];function yXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m14.5-6H31v-1l8-15h1.5v16Zm0 0H44m-3.5 0v6"},null,-1)]),14,gXe)}var kO=je(mXe,[["render",yXe]]);const bXe=Object.assign(kO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kO.name,kO)}}),_Xe=ke({name:"IconH5",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-h5`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SXe=["stroke-width","stroke-linecap","stroke-linejoin"];function kXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M43 21H32.5v9h.5s1.5-1 4-1a5 5 0 0 1 5 5v1a5 5 0 0 1-5 5c-2.05 0-4.728-1.234-5.5-3"},null,-1)]),14,SXe)}var xO=je(_Xe,[["render",kXe]]);const xXe=Object.assign(xO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xO.name,xO)}}),CXe=ke({name:"IconH6",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-h6`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wXe=["stroke-width","stroke-linecap","stroke-linejoin"];function EXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M32 34.5c0 3.038 2.239 5.5 5 5.5s5-2.462 5-5.5-2.239-5.5-5-5.5-5 2.462-5 5.5Zm0 0v-5.73c0-4.444 3.867-7.677 8-7.263.437.044.736.08.952.115"},null,-1)]),14,wXe)}var CO=je(CXe,[["render",EXe]]);const TXe=Object.assign(CO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CO.name,CO)}}),AXe=ke({name:"IconH7",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-h7`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IXe=["stroke-width","stroke-linecap","stroke-linejoin"];function LXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m4-21h12v1l-4.4 16-1.1 3.5"},null,-1)]),14,IXe)}var wO=je(AXe,[["render",LXe]]);const DXe=Object.assign(wO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wO.name,wO)}}),PXe=ke({name:"IconHighlight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-highlight`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RXe=["stroke-width","stroke-linecap","stroke-linejoin"];function MXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19 18V9.28a1 1 0 0 1 .758-.97l8-2A1 1 0 0 1 29 7.28V18m-10 0h-4a1 1 0 0 0-1 1v8h-4a1 1 0 0 0-1 1v15m10-25h10m0 0h4a1 1 0 0 1 1 1v8h4a1 1 0 0 1 1 1v15"},null,-1)]),14,RXe)}var EO=je(PXe,[["render",MXe]]);const OXe=Object.assign(EO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EO.name,EO)}}),$Xe=ke({name:"IconItalic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-italic`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BXe=["stroke-width","stroke-linecap","stroke-linejoin"];function NXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M18 8h9m8 0h-8m0 0-6 32m0 0h-8m8 0h9"},null,-1)]),14,BXe)}var TO=je($Xe,[["render",NXe]]);const FXe=Object.assign(TO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TO.name,TO)}}),jXe=ke({name:"IconLineHeight",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-line-height`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VXe=["stroke-width","stroke-linecap","stroke-linejoin"];function zXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M4 8h14.5M33 8H18.5m0 0v34"},null,-1),L("path",{d:"M39 9.5 37 13h4l-2-3.5ZM39 38.5 37 35h4l-2 3.5Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z"},null,-1)]),14,VXe)}var AO=je(jXe,[["render",zXe]]);const UXe=Object.assign(AO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AO.name,AO)}}),HXe=ke({name:"IconOrderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-ordered-list`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WXe=["stroke-width","stroke-linecap","stroke-linejoin"];function GXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 24h30M13 37h30M13 11h30"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.578 13.06v1.695h5.041V13.06H9.164V7.555H7.748L5.255 8.968l.763 1.513 1.114-.636v3.215H5.578ZM5.37 26.205v1.49h5.07V26H7.964l.94-.94c.454-.44.783-.86.982-1.258.199-.404.298-.826.298-1.266 0-.686-.224-1.225-.683-1.6-.45-.372-1.093-.55-1.912-.55-.473 0-.933.072-1.38.214a3.63 3.63 0 0 0-1.133.582l-.066.053.652 1.533.113-.085c.263-.199.524-.345.783-.44.266-.094.524-.141.774-.141.309 0 .52.06.652.165.128.1.198.252.198.477 0 .177-.05.356-.154.54l-.001.002c-.099.186-.274.416-.528.69L5.37 26.205ZM10.381 38.344c0-.443-.118-.826-.358-1.145a1.702 1.702 0 0 0-.713-.56 1.652 1.652 0 0 0 .586-.52 1.73 1.73 0 0 0 .307-1.022c0-.404-.108-.763-.327-1.074a2.076 2.076 0 0 0-.918-.71c-.386-.166-.833-.247-1.34-.247-.48 0-.952.071-1.417.213-.459.134-.836.318-1.127.554l-.065.053.652 1.486.11-.076c.275-.193.563-.34.863-.442h.002c.3-.109.581-.162.844-.162.266 0 .454.065.579.18l.004.002c.128.107.198.262.198.48 0 .201-.07.33-.197.412-.138.089-.376.141-.733.141h-1.01v1.626h1.188c.371 0 .614.056.75.15.127.085.2.23.2.463 0 .254-.078.412-.21.503l-.002.002c-.136.097-.386.157-.777.157-.595 0-1.194-.199-1.8-.605l-.11-.073-.65 1.483.064.053c.285.236.662.424 1.127.565h.002c.465.136.95.203 1.456.203.852 0 1.538-.178 2.045-.546.517-.377.777-.896.777-1.544Z",fill:"currentColor",stroke:"none"},null,-1)]),14,WXe)}var IO=je(HXe,[["render",GXe]]);const KXe=Object.assign(IO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IO.name,IO)}}),qXe=ke({name:"IconPaste",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-paste`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YXe=["stroke-width","stroke-linecap","stroke-linejoin"];function XXe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("rect",{x:"8",y:"14",width:"24",height:"28",rx:"1"},null,-1),L("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z"},null,-1)]),14,YXe)}var LO=je(qXe,[["render",XXe]]);const ZXe=Object.assign(LO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LO.name,LO)}}),JXe=ke({name:"IconQuote",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-quote`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QXe=["stroke-width","stroke-linecap","stroke-linejoin"];function eZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M18.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6ZM39.08 33.093a6 6 0 0 1-12 0c-.212-3.593 2.686-6 6-6a6 6 0 0 1 6 6Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M6.08 33.093a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24m6 24a6 6 0 1 0 6-6c-3.314 0-6.212 2.407-6 6Zm0 0c-.5-8.5 1-25.5 15-24"},null,-1)]),14,QXe)}var DO=je(JXe,[["render",eZe]]);const tZe=Object.assign(DO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DO.name,DO)}}),nZe=ke({name:"IconRedo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-redo`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rZe=["stroke-width","stroke-linecap","stroke-linejoin"];function iZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m32.678 23.78 7.778-7.778-7.778-7.778M39.19 16H18.5C12.149 16 7 21.15 7 27.5 7 33.852 12.149 39 18.5 39H31"},null,-1)]),14,rZe)}var PO=je(nZe,[["render",iZe]]);const oZe=Object.assign(PO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PO.name,PO)}}),sZe=ke({name:"IconScissor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-scissor`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aZe=["stroke-width","stroke-linecap","stroke-linejoin"];function lZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m40.293 7.707-23.05 23.05m0 0a6 6 0 1 0-8.485 8.485 6 6 0 0 0 8.485-8.485Zm13.514 0a6 6 0 1 0 8.485 8.485 6 6 0 0 0-8.485-8.485Zm0 0L7.707 7.707"},null,-1)]),14,aZe)}var RO=je(sZe,[["render",lZe]]);const uZe=Object.assign(RO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RO.name,RO)}}),cZe=ke({name:"IconSortAscending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-sort-ascending`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dZe=["stroke-width","stroke-linecap","stroke-linejoin"];function fZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M15 6v33.759a.1.1 0 0 1-.17.07L8 33m17-6h10.4v.65L27 39.35V40h11m-1-19L31.4 8h-.8L25 21"},null,-1)]),14,dZe)}var MO=je(cZe,[["render",fZe]]);const xve=Object.assign(MO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MO.name,MO)}}),hZe=ke({name:"IconSortDescending",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-sort-descending`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pZe=["stroke-width","stroke-linecap","stroke-linejoin"];function vZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25 27h10.4v.65L27 39.35V40h11m-21.999 2V7.24a.1.1 0 0 0-.17-.07L9 14m28 7L31.4 8h-.8L25 21"},null,-1)]),14,pZe)}var OO=je(hZe,[["render",vZe]]);const Cve=Object.assign(OO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OO.name,OO)}}),mZe=ke({name:"IconSort",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-sort`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gZe=["stroke-width","stroke-linecap","stroke-linejoin"];function yZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43 9H5m0 30h14m15.5-15H5"},null,-1)]),14,gZe)}var $O=je(mZe,[["render",yZe]]);const bZe=Object.assign($O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$O.name,$O)}}),_Ze=ke({name:"IconStrikethrough",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-strikethrough`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SZe=["stroke-width","stroke-linecap","stroke-linejoin"];function kZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 32c0 5.246 5.149 9 11.5 9S36 36.746 36 31.5c0-1.708-.5-4.5-3.5-5.695m0 0H43m-10.5 0H5M34 14.5C34 10.358 29.523 7 24 7s-10 3.358-10 7.5c0 1.794 1.6 4.21 3 5.5"},null,-1)]),14,SZe)}var BO=je(_Ze,[["render",kZe]]);const xZe=Object.assign(BO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BO.name,BO)}}),CZe=ke({name:"IconUnderline",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-underline`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wZe=["stroke-width","stroke-linecap","stroke-linejoin"];function EZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 5v17.5C13 27 15.5 33 24 33s11-5 11-10.5V5M9 41h30"},null,-1)]),14,wZe)}var NO=je(CZe,[["render",EZe]]);const TZe=Object.assign(NO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NO.name,NO)}}),AZe=ke({name:"IconUndo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-undo`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IZe=["stroke-width","stroke-linecap","stroke-linejoin"];function LZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m15.322 23.78-7.778-7.778 7.778-7.778M8.81 16H29.5C35.851 16 41 21.15 41 27.5 41 33.852 35.851 39 29.5 39H17"},null,-1)]),14,IZe)}var FO=je(AZe,[["render",LZe]]);const DZe=Object.assign(FO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FO.name,FO)}}),PZe=ke({name:"IconUnorderedList",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-unordered-list`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RZe=["stroke-width","stroke-linecap","stroke-linejoin"];function MZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 24h30M5 11h4m4 26h30M13 11h30M5 24h4M5 37h4"},null,-1)]),14,RZe)}var jO=je(PZe,[["render",MZe]]);const OZe=Object.assign(jO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jO.name,jO)}}),$Ze=ke({name:"IconMuteFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-mute-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BZe=["stroke-width","stroke-linecap","stroke-linejoin"];function NZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5.931 13.001A2 2 0 0 0 4 15v18a2 2 0 0 0 2 2h7.37l9.483 6.639A2 2 0 0 0 26 40v-6.93L5.931 13.001ZM35.27 28.199l-3.311-3.313a7.985 7.985 0 0 0-1.96-6.107.525.525 0 0 1 .011-.718l2.122-2.122a.485.485 0 0 1 .7.008c3.125 3.393 3.938 8.15 2.439 12.252ZM41.13 34.059l-2.936-2.937c3.07-5.89 2.226-13.288-2.531-18.348a.513.513 0 0 1 .004-.713l2.122-2.122a.492.492 0 0 1 .703.006c6.322 6.64 7.202 16.56 2.639 24.114ZM26 18.928l-8.688-8.688 5.541-3.878A2 2 0 0 1 26 8v10.928Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"m7.012 4.184 35.272 35.272-2.828 2.828L4.184 7.012l2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,BZe)}var VO=je($Ze,[["render",NZe]]);const FZe=Object.assign(VO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VO.name,VO)}}),jZe=ke({name:"IconPauseCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-pause-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VZe=["stroke-width","stroke-linecap","stroke-linejoin"];function zZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 44c11.046 0 20-8.954 20-20S35.046 4 24 4 4 12.954 4 24s8.954 20 20 20Zm-6-27a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Zm9 0a1 1 0 0 0-1 1v12a1 1 0 0 0 1 1h3a1 1 0 0 0 1-1V18a1 1 0 0 0-1-1h-3Z",fill:"currentColor",stroke:"none"},null,-1)]),14,VZe)}var zO=je(jZe,[["render",zZe]]);const UZe=Object.assign(zO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zO.name,zO)}}),HZe=ke({name:"IconPlayCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-play-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WZe=["stroke-width","stroke-linecap","stroke-linejoin"];function GZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M44 24c0 11.046-8.954 20-20 20S4 35.046 4 24 12.954 4 24 4s20 8.954 20 20Zm-23.662-7.783C19.302 15.605 18 16.36 18 17.575v12.85c0 1.214 1.302 1.97 2.338 1.358l10.89-6.425c1.03-.607 1.03-2.11 0-2.716l-10.89-6.425Z",fill:"currentColor",stroke:"none"},null,-1)]),14,WZe)}var UO=je(HZe,[["render",GZe]]);const KZe=Object.assign(UO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UO.name,UO)}}),qZe=ke({name:"IconSkipNextFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-skip-next-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YZe=["stroke-width","stroke-linecap","stroke-linejoin"];function XZe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13.585 12.145a1 1 0 0 0-1.585.81v22.09a1 1 0 0 0 1.585.81L28.878 24.81a1 1 0 0 0 0-1.622L13.585 12.145Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M33 36a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,YZe)}var HO=je(qZe,[["render",XZe]]);const ZZe=Object.assign(HO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HO.name,HO)}}),JZe=ke({name:"IconSkipPreviousFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-skip-previous-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QZe=["stroke-width","stroke-linecap","stroke-linejoin"];function eJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M34.414 35.855a1 1 0 0 0 1.586-.81v-22.09a1 1 0 0 0-1.586-.81L19.122 23.19a1 1 0 0 0 0 1.622l15.292 11.044Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15 12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1V13a1 1 0 0 1 1-1h2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QZe)}var WO=je(JZe,[["render",eJe]]);const tJe=Object.assign(WO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WO.name,WO)}}),nJe=ke({name:"IconSoundFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-sound-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rJe=["stroke-width","stroke-linecap","stroke-linejoin"];function iJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m14 15 10-7v32l-10-7H6V15h8Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M24.924 6.226A2 2 0 0 1 26 8v32a2 2 0 0 1-3.147 1.639L13.37 35H6a2 2 0 0 1-2-2V15a2 2 0 0 1 2-2h7.37l9.483-6.638a2 2 0 0 1 2.07-.136ZM35.314 35.042c6.248-6.249 6.248-16.38 0-22.628l2.828-2.828c7.81 7.81 7.81 20.474 0 28.284l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M29.657 29.728a8 8 0 0 0 0-11.314l2.828-2.828c4.687 4.686 4.687 12.284 0 16.97l-2.828-2.828Z",fill:"currentColor",stroke:"none"},null,-1)]),14,rJe)}var GO=je(nJe,[["render",iJe]]);const oJe=Object.assign(GO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GO.name,GO)}}),sJe=ke({name:"IconBackward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-backward`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aJe=["stroke-width","stroke-linecap","stroke-linejoin"];function lJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38.293 36.293 26.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707v23.172c0 .89-1.077 1.337-1.707.707ZM21 12.414v23.172c0 .89-1.077 1.337-1.707.707L7.707 24.707a1 1 0 0 1 0-1.414l11.586-11.586c.63-.63 1.707-.184 1.707.707Z"},null,-1)]),14,aJe)}var KO=je(sJe,[["render",lJe]]);const uJe=Object.assign(KO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KO.name,KO)}}),cJe=ke({name:"IconForward",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-forward`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dJe=["stroke-width","stroke-linecap","stroke-linejoin"];function fJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m9.707 11.707 11.586 11.586a1 1 0 0 1 0 1.414L9.707 36.293c-.63.63-1.707.184-1.707-.707V12.414c0-.89 1.077-1.337 1.707-.707ZM27 35.586V12.414c0-.89 1.077-1.337 1.707-.707l11.586 11.586a1 1 0 0 1 0 1.414L28.707 36.293c-.63.63-1.707.184-1.707-.707Z"},null,-1)]),14,dJe)}var qO=je(cJe,[["render",fJe]]);const hJe=Object.assign(qO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qO.name,qO)}}),pJe=ke({name:"IconFullscreenExit",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-fullscreen-exit`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vJe=["stroke-width","stroke-linecap","stroke-linejoin"];function mJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M35 6v8a1 1 0 0 0 1 1h8M13 6v8a1 1 0 0 1-1 1H4m31 27v-8a1 1 0 0 1 1-1h8m-31 9v-8a1 1 0 0 0-1-1H4"},null,-1)]),14,vJe)}var YO=je(pJe,[["render",mJe]]);const XH=Object.assign(YO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YO.name,YO)}}),gJe=ke({name:"IconLiveBroadcast",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-live-broadcast`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),yJe=["stroke-width","stroke-linecap","stroke-linejoin"];function bJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M29 16h12a1 1 0 0 1 1 1v22a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V17a1 1 0 0 1 1-1h12m10 0 8-9m-8 9H19m0 0-8-9m17.281 21.88-6.195 4.475a1 1 0 0 1-1.586-.81v-8.262a1 1 0 0 1 1.521-.853l6.196 3.786a1 1 0 0 1 .064 1.664Z"},null,-1)]),14,yJe)}var XO=je(gJe,[["render",bJe]]);const n_=Object.assign(XO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XO.name,XO)}}),_Je=ke({name:"IconMusic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-music`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SJe=["stroke-width","stroke-linecap","stroke-linejoin"];function kJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M15 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V18.5M41 37a4 4 0 1 0-8 0 4 4 0 0 0 8 0Zm0 0V16.5m-26 2V9.926a1 1 0 0 1 .923-.997l24-1.846A1 1 0 0 1 41 8.08v8.42m-26 2 26-2"},null,-1)]),14,SJe)}var ZO=je(_Je,[["render",kJe]]);const xJe=Object.assign(ZO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZO.name,ZO)}}),CJe=ke({name:"IconMute",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-mute`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wJe=["stroke-width","stroke-linecap","stroke-linejoin"];function EJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m19 11.5 4.833-4.35a.1.1 0 0 1 .167.075V17m-14-1H7.1a.1.1 0 0 0-.1.1v15.8a.1.1 0 0 0 .1.1H14l9.833 8.85a.1.1 0 0 0 .167-.075V31m6.071-14.071C32.535 19.393 34 23 32.799 26m2.929-14.728C41.508 17.052 42.5 25 39.123 32M6.5 6.5l35 35"},null,-1)]),14,wJe)}var JO=je(CJe,[["render",EJe]]);const TJe=Object.assign(JO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JO.name,JO)}}),AJe=ke({name:"IconPauseCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-pause-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IJe=["stroke-width","stroke-linecap","stroke-linejoin"];function LJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),L("path",{d:"M19 19v10h1V19h-1ZM28 19v10h1V19h-1Z"},null,-1)]),14,IJe)}var QO=je(AJe,[["render",LJe]]);const DJe=Object.assign(QO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QO.name,QO)}}),PJe=ke({name:"IconPlayArrow",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-play-arrow`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RJe=["stroke-width","stroke-linecap","stroke-linejoin"];function MJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M12.533 7.965A1 1 0 0 0 11 8.81v30.377a1 1 0 0 0 1.533.846L36.656 24.84a1 1 0 0 0 0-1.692L12.533 7.965Z"},null,-1)]),14,RJe)}var e$=je(PJe,[["render",MJe]]);const qa=Object.assign(e$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e$.name,e$)}}),OJe=ke({name:"IconPlayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-play-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$Je=["stroke-width","stroke-linecap","stroke-linejoin"];function BJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 42c9.941 0 18-8.059 18-18S33.941 6 24 6 6 14.059 6 24s8.059 18 18 18Z"},null,-1),L("path",{d:"M19 17v14l12-7-12-7Z"},null,-1)]),14,$Je)}var t$=je(OJe,[["render",BJe]]);const Ry=Object.assign(t$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t$.name,t$)}}),NJe=ke({name:"IconRecordStop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-record-stop`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),FJe=["stroke-width","stroke-linecap","stroke-linejoin"];function jJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),L("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M19 20a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-8a1 1 0 0 1-1-1v-8Z"},null,-1)]),14,FJe)}var n$=je(NJe,[["render",jJe]]);const VJe=Object.assign(n$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n$.name,n$)}}),zJe=ke({name:"IconRecord",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-record`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),UJe=["stroke-width","stroke-linecap","stroke-linejoin"];function HJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"clip-rule":"evenodd",d:"M24 6c9.941 0 18 8.059 18 18s-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6Z"},null,-1),L("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,UJe)}var r$=je(zJe,[["render",HJe]]);const WJe=Object.assign(r$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r$.name,r$)}}),GJe=ke({name:"IconSkipNext",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-skip-next`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),KJe=["stroke-width","stroke-linecap","stroke-linejoin"];function qJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M34 24 10 40V8l24 16Z"},null,-1),L("path",{d:"M38 6v36"},null,-1)]),14,KJe)}var i$=je(GJe,[["render",qJe]]);const YJe=Object.assign(i$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i$.name,i$)}}),XJe=ke({name:"IconSkipPrevious",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-skip-previous`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ZJe=["stroke-width","stroke-linecap","stroke-linejoin"];function JJe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m14 24 24 16V8L14 24Z"},null,-1),L("path",{d:"M10 6v36"},null,-1)]),14,ZJe)}var o$=je(XJe,[["render",JJe]]);const QJe=Object.assign(o$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o$.name,o$)}}),eQe=ke({name:"IconSound",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-sound`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),tQe=["stroke-width","stroke-linecap","stroke-linejoin"];function nQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m14 16 10-9v34l-10-9H6V16h8Z"},null,-1),L("path",{d:"M31.071 16.929c3.905 3.905 3.905 10.237 0 14.142M36.727 11.272c7.03 7.03 7.03 18.426 0 25.456"},null,-1)]),14,tQe)}var s$=je(eQe,[["render",nQe]]);const rQe=Object.assign(s$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s$.name,s$)}}),iQe=ke({name:"IconBytedanceColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-bytedance-color`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),oQe=["stroke-width","stroke-linecap","stroke-linejoin"];function sQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M280.416 794.112 128 829.952v-636.32l152.416 35.84z",fill:"#325AB4"},null,-1),L("path",{d:"M928 828.48 800 864V160l128 35.52z",fill:"#78E6DC"},null,-1),L("path",{d:"M480 798.304 352 832V480l128 33.696z",fill:"#3C8CFF"},null,-1),L("path",{d:"M576 449.696 704 416v352l-128-33.696z",fill:"#00C8D2"},null,-1)]),14,oQe)}var a$=je(iQe,[["render",sQe]]);const aQe=Object.assign(a$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a$.name,a$)}}),lQe=ke({name:"IconLarkColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-lark-color`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),uQe=["stroke-width","stroke-linecap","stroke-linejoin"];function cQe(e,t,n,r,o,a){return H(),J("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{fill:"#00d6b9",d:"m273.46 264.31 1.01-1.01c.65-.65 1.36-1.36 2.06-2.01l1.41-1.36 4.17-4.12 5.73-5.58 4.88-4.83 4.57-4.52 4.78-4.73 4.37-4.32 6.13-6.03c1.16-1.16 2.36-2.26 3.57-3.37 2.21-2.01 4.52-3.97 6.84-5.88 2.16-1.71 4.37-3.37 6.64-4.98 3.17-2.26 6.43-4.32 9.75-6.33 3.27-1.91 6.64-3.72 10.05-5.43 3.22-1.56 6.54-3.02 9.9-4.32 1.86-.75 3.77-1.41 5.68-2.06.96-.3 1.91-.65 2.92-.96a241.19 241.19 0 0 0-45.6-91.5c-4.17-5.18-10.51-8.19-17.14-8.19H128.97c-1.81 0-3.32 1.46-3.32 3.32 0 1.06.5 2.01 1.36 2.66 60.13 44.09 110 100.75 146.04 166l.4-.45Z"},null,-1),L("path",{fill:"#133c9a",d:"M203.43 419.4c90.99 0 170.27-50.22 211.6-124.43 1.46-2.61 2.87-5.23 4.22-7.89a96.374 96.374 0 0 1-6.94 11.41c-.9 1.26-1.81 2.51-2.77 3.77-1.21 1.56-2.41 3.02-3.67 4.47a98.086 98.086 0 0 1-3.07 3.37 85.486 85.486 0 0 1-6.64 6.28c-1.31 1.11-2.56 2.16-3.92 3.17a76.24 76.24 0 0 1-4.78 3.42c-1.01.7-2.06 1.36-3.12 2.01-1.06.65-2.16 1.31-3.32 1.96a91.35 91.35 0 0 1-6.99 3.52c-2.06.9-4.17 1.76-6.28 2.56a82.5 82.5 0 0 1-7.04 2.26 86.613 86.613 0 0 1-10.81 2.31c-2.61.4-5.33.7-7.99.9-2.82.2-5.68.25-8.55.25-3.17-.05-6.33-.25-9.55-.6-2.36-.25-4.73-.6-7.09-1.01-2.06-.35-4.12-.8-6.18-1.31-1.11-.25-2.16-.55-3.27-.85-3.02-.8-6.03-1.66-9.05-2.51-1.51-.45-3.02-.85-4.47-1.31-2.26-.65-4.47-1.36-6.69-2.06-1.81-.55-3.62-1.16-5.43-1.76-1.71-.55-3.47-1.11-5.18-1.71l-3.52-1.21c-1.41-.5-2.87-1.01-4.27-1.51l-3.02-1.11c-2.01-.7-4.02-1.46-5.98-2.21-1.16-.45-2.31-.85-3.47-1.31-1.56-.6-3.07-1.21-4.63-1.81-1.61-.65-3.27-1.31-4.88-1.96l-3.17-1.31-3.92-1.61-3.02-1.26-3.12-1.36-2.71-1.21-2.46-1.11-2.51-1.16-2.56-1.21-3.27-1.51-3.42-1.61c-1.21-.6-2.41-1.16-3.62-1.76l-3.07-1.51A508.746 508.746 0 0 1 65.6 190.35c-1.26-1.31-3.32-1.41-4.68-.15-.65.6-1.06 1.51-1.06 2.41l.1 155.49v12.62c0 7.34 3.62 14.18 9.7 18.25 39.56 26.44 86.12 40.47 133.73 40.37"},null,-1),L("path",{fill:"#3370ff",d:"M470.83 200.21c-30.72-15.03-65.86-18.25-98.79-9-1.41.4-2.77.8-4.12 1.21-.96.3-1.91.6-2.92.96-1.91.65-3.82 1.36-5.68 2.06-3.37 1.31-6.64 2.77-9.9 4.32-3.42 1.66-6.79 3.47-10.05 5.38-3.37 1.96-6.59 4.07-9.75 6.33-2.26 1.61-4.47 3.27-6.64 4.98-2.36 1.91-4.63 3.82-6.84 5.88-1.21 1.11-2.36 2.21-3.57 3.37l-6.13 6.03-4.37 4.32-4.78 4.73-4.57 4.52-4.88 4.83-5.68 5.63-4.17 4.12-1.41 1.36c-.65.65-1.36 1.36-2.06 2.01l-1.01 1.01-1.56 1.46-1.76 1.61c-15.13 13.93-32.02 25.84-50.17 35.54l3.27 1.51 2.56 1.21 2.51 1.16 2.46 1.11 2.71 1.21 3.12 1.36 3.02 1.26 3.92 1.61 3.17 1.31c1.61.65 3.27 1.31 4.88 1.96 1.51.6 3.07 1.21 4.63 1.81 1.16.45 2.31.85 3.47 1.31 2.01.75 4.02 1.46 5.98 2.21l3.02 1.11c1.41.5 2.82 1.01 4.27 1.51l3.52 1.21c1.71.55 3.42 1.16 5.18 1.71 1.81.6 3.62 1.16 5.43 1.76 2.21.7 4.47 1.36 6.69 2.06 1.51.45 3.02.9 4.47 1.31 3.02.85 6.03 1.71 9.05 2.51 1.11.3 2.16.55 3.27.85 2.06.5 4.12.9 6.18 1.31 2.36.4 4.73.75 7.09 1.01 3.22.35 6.38.55 9.55.6 2.87.05 5.73-.05 8.55-.25 2.71-.2 5.38-.5 7.99-.9 3.62-.55 7.24-1.36 10.81-2.31 2.36-.65 4.73-1.41 7.04-2.26a75.16 75.16 0 0 0 6.28-2.56 91.35 91.35 0 0 0 6.99-3.52c1.11-.6 2.21-1.26 3.32-1.96 1.11-.65 2.11-1.36 3.12-2.01 1.61-1.11 3.22-2.21 4.78-3.42 1.36-1.01 2.66-2.06 3.92-3.17 2.26-1.96 4.47-4.07 6.59-6.28 1.06-1.11 2.06-2.21 3.07-3.37 1.26-1.46 2.51-2.97 3.67-4.47a73.33 73.33 0 0 0 2.77-3.77c2.51-3.62 4.83-7.39 6.89-11.31l2.36-4.68 21.01-41.88.25-.5c6.94-14.98 16.39-28.45 28-39.97Z"},null,-1)]),14,uQe)}var l$=je(lQe,[["render",cQe]]);const dQe=Object.assign(l$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l$.name,l$)}}),fQe=ke({name:"IconTiktokColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-tiktok-color`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),hQe=["stroke-width","stroke-linecap","stroke-linejoin"];function pQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',5)]),14,hQe)}var u$=je(fQe,[["render",pQe]]);const vQe=Object.assign(u$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u$.name,u$)}}),mQe=ke({name:"IconXiguaColor",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-xigua-color`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gQe=["stroke-width","stroke-linecap","stroke-linejoin"];function yQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M381.968 38.684c-202.85 54.614-351.085 232.757-371.89 446.01C-.326 590.018 28.281 630.328 140.108 668.037c104.026 33.808 176.843 101.425 209.351 189.846 40.31 115.729 44.211 122.23 91.023 144.336 40.31 19.504 58.514 19.504 131.332 7.802 211.951-36.41 362.788-171.642 416.101-374.492C1059.434 368.965 882.59 90.697 605.623 32.183 517.2 13.978 470.39 15.279 381.968 38.684zm176.843 322.48c158.64 74.117 201.55 158.638 119.63 237.957-102.725 97.524-240.56 136.534-291.271 80.62-20.806-23.406-24.707-48.112-24.707-161.24s3.901-137.833 24.707-161.239c32.507-36.409 88.421-35.108 171.641 3.901z",fill:"#FE163E"},null,-1)]),14,gQe)}var c$=je(mQe,[["render",yQe]]);const bQe=Object.assign(c$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c$.name,c$)}}),_Qe=ke({name:"IconFaceBookCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-faceBook-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),SQe=["stroke-width","stroke-linecap","stroke-linejoin"];function kQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 1C11.29 1 1 11.29 1 24s10.29 23 23 23 23-10.29 23-23S36.71 1 24 1Zm6.172 22.88H26.18v14.404h-5.931V23.88H17.22v-4.962h3.027V15.89c0-3.993 1.695-6.414 6.414-6.414h3.993v4.962h-2.421c-1.815 0-1.936.727-1.936 1.936v2.421h4.478l-.605 5.084h.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,SQe)}var d$=je(_Qe,[["render",kQe]]);const xQe=Object.assign(d$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d$.name,d$)}}),CQe=ke({name:"IconFacebookSquareFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-facebook-square-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wQe=["stroke-width","stroke-linecap","stroke-linejoin"];function EQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43.125 2.475c.6 0 1.2.225 1.688.713.524.487.75 1.012.75 1.612v38.363c0 .6-.263 1.2-.75 1.612-.526.488-1.088.713-1.688.713H32.138V28.913h5.625l.825-6.563h-6.45v-4.275c0-2.137 1.087-3.225 3.3-3.225h3.374V9.263c-1.2-.225-2.85-.338-5.024-.338-2.513 0-4.5.75-6.038 2.25-1.538 1.5-2.288 3.675-2.288 6.375v4.8h-5.625v6.563h5.625v16.575h-20.7c-.6 0-1.2-.225-1.612-.713-.487-.487-.712-1.012-.712-1.612V4.8c0-.6.224-1.2.712-1.612.488-.488 1.012-.713 1.613-.713h38.362Z",fill:"currentColor",stroke:"none"},null,-1)]),14,wQe)}var f$=je(CQe,[["render",EQe]]);const TQe=Object.assign(f$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f$.name,f$)}}),AQe=ke({name:"IconGoogleCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-google-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),IQe=["stroke-width","stroke-linecap","stroke-linejoin"];function LQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32.571 33.526c-2.084 1.92-4.927 3.05-8.322 3.05a12.568 12.568 0 0 1-12.572-12.577A12.58 12.58 0 0 1 24.25 11.416a12.103 12.103 0 0 1 8.414 3.277L29.061 18.3a6.787 6.787 0 0 0-4.807-1.88c-3.277 0-6.045 2.213-7.037 5.186a7.567 7.567 0 0 0-.394 2.392c0 .833.144 1.638.394 2.391.992 2.973 3.763 5.187 7.032 5.187 1.696 0 3.133-.449 4.254-1.202a5.778 5.778 0 0 0 2.513-3.8h-6.767V21.71h11.844c.15.825.227 1.682.227 2.57 0 3.835-1.371 7.055-3.749 9.246ZM24 1A23 23 0 1 0 24 47 23 23 0 0 0 24 1Z",fill:"currentColor",stroke:"none"},null,-1)]),14,IQe)}var h$=je(AQe,[["render",LQe]]);const DQe=Object.assign(h$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h$.name,h$)}}),PQe=ke({name:"IconQqCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-qq-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),RQe=["stroke-width","stroke-linecap","stroke-linejoin"];function MQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.007 1C11.281 1 1 11.281 1 24.007c0 13.23 11.216 23.87 24.733 22.936 11.288-.791 20.49-9.994 21.21-21.354C47.877 12.144 37.237 1 24.007 1Zm11.36 29.262s-.79 2.23-2.3 4.242c0 0 2.66.935 2.444 3.236 0 0 .072 2.66-5.68 2.444 0 0-4.026-.287-5.248-2.013h-1.079c-1.222 1.726-5.248 2.013-5.248 2.013-5.752.216-5.68-2.444-5.68-2.444-.216-2.373 2.444-3.236 2.444-3.236-1.51-2.013-2.3-4.241-2.3-4.241-3.596 5.895-3.236-.791-3.236-.791.647-3.955 3.523-6.543 3.523-6.543-.431-3.595 1.078-4.242 1.078-4.242.216-11.072 9.707-10.929 9.922-10.929.216 0 9.707-.215 9.994 10.929 0 0 1.51.647 1.079 4.242 0 0 2.876 2.588 3.523 6.543 0 0 .36 6.686-3.236.79Z",fill:"currentColor",stroke:"none"},null,-1)]),14,RQe)}var p$=je(PQe,[["render",MQe]]);const OQe=Object.assign(p$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p$.name,p$)}}),$Qe=ke({name:"IconTwitterCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-twitter-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),BQe=["stroke-width","stroke-linecap","stroke-linejoin"];function NQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 1C11.296 1 1 11.297 1 24s10.296 23 23 23c12.703 0 23-10.297 23-23S36.703 1 24 1Zm11.698 18.592c-.13 9.818-6.408 16.542-15.78 16.965-3.864.176-6.664-1.072-9.1-2.62 2.855.456 6.397-.686 8.292-2.307-2.8-.273-4.458-1.698-5.233-3.991.808.14 1.66.103 2.43-.06-2.527-.846-4.331-2.407-4.424-5.68.709.323 1.448.626 2.43.686-1.891-1.075-3.29-5.007-1.688-7.607 2.806 3.076 6.182 5.586 11.724 5.926-1.391-5.949 6.492-9.175 9.791-5.177 1.395-.27 2.53-.799 3.622-1.374-.45 1.381-1.315 2.347-2.37 3.119 1.158-.157 2.184-.44 3.06-.872-.544 1.128-1.732 2.14-2.754 2.992Z",fill:"currentColor",stroke:"none"},null,-1)]),14,BQe)}var v$=je($Qe,[["render",NQe]]);const FQe=Object.assign(v$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v$.name,v$)}}),jQe=ke({name:"IconWeiboCircleFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-weibo-circle-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),VQe=["stroke-width","stroke-linecap","stroke-linejoin"];function zQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 47a23 23 0 1 1 23-23 22.988 22.988 0 0 1-23 23Zm1.276-26.994c-.544.063-2.259 1.171-1.297-1.108C25 15 20.235 15.293 17.874 16.16A23.776 23.776 0 0 0 7.649 27.283c-2.007 6.419 5.018 10.329 10.246 11.123 5.227.795 13.068-.502 16.622-4.85 2.635-3.179 3.137-7.507-1.84-8.761-1.651-.398-.69-1.088-.271-2.259a2.775 2.775 0 0 0-2.175-3.24 2.092 2.092 0 0 0-.335-.042 12.468 12.468 0 0 0-4.62.752Zm7.004-3.889a2.326 2.326 0 0 0-1.903.544c-.377.339-.418 1.338.962 1.652.458.021.913.084 1.36.188a1.836 1.836 0 0 1 1.233 2.07c-.21 1.924.878 2.237 1.652 1.714a1.647 1.647 0 0 0 .627-1.338 4.117 4.117 0 0 0-3.325-4.767c-.042-.008-.61-.063-.606-.063Zm7.423.084a8.408 8.408 0 0 0-6.838-4.6c-1.129-.126-3.512-.397-3.784 1.15a1.17 1.17 0 0 0 .857 1.4c.042 0 .084.022.126.022.523.02 1.048 0 1.568-.063a6.481 6.481 0 0 1 6.524 6.44c0 .3-.02.601-.063.9-.063.355-.105.71-.147 1.066A1.277 1.277 0 0 0 38.93 24a1.255 1.255 0 0 0 1.338-.648c.71-2.373.501-4.926-.585-7.151h.02ZM21.616 36.44c-5.457.69-10.245-1.673-10.684-5.27-.44-3.595 3.575-7.066 9.033-7.756 5.457-.69 10.245 1.672 10.705 5.269.46 3.596-3.617 7.088-9.075 7.757h.021Zm-1.484-10.266a5.181 5.181 0 0 0-5.353 4.913 4.662 4.662 0 0 0 4.935 4.391c.14-.004.28-.017.418-.042a5.503 5.503 0 0 0 5.185-5.143 4.472 4.472 0 0 0-4.746-4.182l-.44.063Zm1.003 4.244a.669.669 0 0 1-.773-.544v-.083a.76.76 0 0 1 .774-.711.642.642 0 0 1 .731.544.076.076 0 0 1 .021.062.807.807 0 0 1-.753.732Zm-2.78 2.781a1.65 1.65 0 0 1-1.861-1.422.266.266 0 0 1-.021-.125 1.844 1.844 0 0 1 1.882-1.736 1.562 1.562 0 0 1 1.819 1.297.46.46 0 0 1 .02.167 1.96 1.96 0 0 1-1.84 1.819Z",fill:"currentColor",stroke:"none"},null,-1)]),14,VQe)}var m$=je(jQe,[["render",zQe]]);const UQe=Object.assign(m$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m$.name,m$)}}),HQe=ke({name:"IconAlipayCircle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-alipay-circle`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),WQe=["stroke-width","stroke-linecap","stroke-linejoin"];function GQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M10.8 27.025c-.566.456-1.174 1.122-1.35 1.968-.24 1.156-.05 2.604 1.065 3.739 1.352 1.376 3.405 1.753 4.292 1.818 2.41.174 4.978-1.02 6.913-2.384.759-.535 2.058-1.61 3.3-3.268-2.783-1.437-6.257-3.026-9.97-2.87-1.898.079-3.256.472-4.25.997Zm35.29 6.354A23.872 23.872 0 0 0 48 24C48 10.767 37.234 0 24 0S0 10.767 0 24c0 13.234 10.766 24 24 24 7.987 0 15.07-3.925 19.436-9.943a2688.801 2688.801 0 0 0-15.11-7.467c-1.999 2.277-4.953 4.56-8.29 5.554-2.097.623-3.986.86-5.963.457-1.956-.4-3.397-1.317-4.237-2.235-.428-.469-.92-1.064-1.275-1.773.033.09.056.143.056.143s-.204-.353-.361-.914a4.03 4.03 0 0 1-.157-.85 4.383 4.383 0 0 1-.009-.612 4.409 4.409 0 0 1 .078-1.128c.197-.948.601-2.054 1.649-3.08 2.3-2.251 5.38-2.372 6.976-2.363 2.363.014 6.47 1.048 9.928 2.27.958-2.04 1.573-4.221 1.97-5.676H14.31v-1.555h7.384V15.72h-8.938v-1.555h8.938v-3.108c0-.427.084-.778.777-.778h3.498v3.886h9.717v1.555H25.97v3.11h7.773s-.78 4.35-3.221 8.64c5.416 1.934 13.037 4.914 15.568 5.91Z",fill:"currentColor",stroke:"none"},null,-1)]),14,WQe)}var g$=je(HQe,[["render",GQe]]);const KQe=Object.assign(g$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g$.name,g$)}}),qQe=ke({name:"IconCodeSandbox",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-code-sandbox`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),YQe=["stroke-width","stroke-linecap","stroke-linejoin"];function XQe(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m25.002 1.6 17.9 10.3c.6.4 1 1 1 1.7v20.7c0 .7-.4 1.4-1 1.7l-17.9 10.4c-.6.4-1.4.4-2 0l-17.9-10.3c-.6-.4-1-1-1-1.7V13.7c0-.7.4-1.4 1-1.7l17.9-10.4c.6-.4 1.4-.4 2 0Zm13.5 12.4-7.9-4.5-6.6 4.5-6.5-4-7.3 4.3 13.8 8.7 14.5-9Zm-16.5 26.4V26.3l-14-8.9v7.9l8 5.5V37l6 3.4Zm4 0 6-3.5v-5.2l8-5.5v-8.9l-14 8.9v14.2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,YQe)}var y$=je(qQe,[["render",XQe]]);const ZQe=Object.assign(y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y$.name,y$)}}),JQe=ke({name:"IconCodepen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-codepen`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),QQe=["stroke-width","stroke-linecap","stroke-linejoin"];function eet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M45 15.7v17.1L24.5 44.7c-.3.2-.7.2-1 0l-20-11.5c-.3-.2-.5-.5-.5-.9V15.7c0-.4.2-.7.5-.9l20-11.6c.3-.2.7-.2 1 0l20 11.6c.3.2.5.5.5.9ZM26 9v9.8l5.5 3.2 8.5-4.9L26 9Zm-4 0L8 17.1l8.4 4.9 5.6-3.2V9Zm0 21.2L16.5 27 9 31.4 22 39v-8.8Zm17 1.2L31.4 27 26 30.2V39l13-7.6Zm2-3.4v-6l-5 3 5 3Zm-29-3-5-3v6l5-3Zm8 0 4 2 4-2-4-2-4 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,QQe)}var b$=je(JQe,[["render",eet]]);const tet=Object.assign(b$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b$.name,b$)}}),net=ke({name:"IconFacebook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-facebook`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ret=["stroke-width","stroke-linecap","stroke-linejoin"];function iet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M35.184 15.727 34.312 24h-6.613v24h-9.933V24h-4.95v-8.273h4.95v-4.98C17.766 4.016 20.564 0 28.518 0h6.61v8.273H30.99c-3.086 0-3.292 1.166-3.292 3.32v4.134h7.485Z",fill:"currentColor",stroke:"none"},null,-1)]),14,ret)}var _$=je(net,[["render",iet]]);const oet=Object.assign(_$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_$.name,_$)}}),set=ke({name:"IconGithub",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-github`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aet=["stroke-width","stroke-linecap","stroke-linejoin"];function uet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M.056 24.618c0 10.454 6.7 19.344 16.038 22.608 1.259.32 1.067-.582 1.067-1.19v-4.148c-7.265.853-7.553-3.957-8.043-4.758-.987-1.686-3.312-2.112-2.62-2.912 1.654-.853 3.34.213 5.291 3.1 1.413 2.09 4.166 1.738 5.562 1.385a6.777 6.777 0 0 1 1.856-3.253C11.687 34.112 8.55 29.519 8.55 24.057c0-2.646.874-5.082 2.586-7.045-1.088-3.243.102-6.01.26-6.422 3.11-.282 6.337 2.225 6.587 2.421 1.766-.474 3.782-.73 6.038-.73 2.266 0 4.293.26 6.069.74.603-.458 3.6-2.608 6.49-2.345.155.41 1.317 3.12.294 6.315 1.734 1.968 2.62 4.422 2.62 7.077 0 5.472-3.158 10.07-10.699 11.397a6.82 6.82 0 0 1 2.037 4.875v6.02c.042.48 0 .96.806.96 9.477-3.194 16.299-12.15 16.299-22.697C47.938 11.396 37.218.68 23.996.68 10.77.675.055 11.391.055 24.617l.001.001Z",fill:"currentColor",stroke:"none"},null,-1)]),14,aet)}var S$=je(set,[["render",uet]]);const wve=Object.assign(S$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S$.name,S$)}}),cet=ke({name:"IconGitlab",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-gitlab`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),det=["stroke-width","stroke-linecap","stroke-linejoin"];function fet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M45.53 26.154 39.694 6.289v-.005c-.407-1.227-1.377-1.955-2.587-1.955-1.254 0-2.277.723-2.663 1.885L30.62 17.625H17.4l-3.825-11.41c-.386-1.163-1.41-1.886-2.663-1.886-1.237 0-2.276.792-2.592 1.96l-5.83 19.865a2.047 2.047 0 0 0 .724 2.18l19.741 14.807c.14.193.332.338.557.418l.461.343.455-.343c.263-.091.483-.252.638-.477L44.8 28.33a2.03 2.03 0 0 0 .728-2.175ZM36.84 6.932c.053-.096.155-.102.187-.102.06 0 .134.016.182.161l3.183 10.704H33.24l3.6-10.763Zm-26.11.054c.047-.14.122-.156.181-.156.145 0 .156.006.183.091L14.699 17.7H7.633l3.096-10.714ZM5.076 26.502l1.511-5.213 10.843 14.475-12.354-9.262Zm3.96-6.236h6.54l4.865 15.23-11.406-15.23Zm15.01 17.877-5.743-17.877h11.48l-5.737 17.877Zm8.459-17.877h6.402L27.642 35.31l4.864-15.043Zm-2.18 15.745L41.43 21.187l1.58 5.315-12.685 9.509Z",fill:"currentColor",stroke:"none"},null,-1)]),14,det)}var k$=je(cet,[["render",fet]]);const het=Object.assign(k$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k$.name,k$)}}),pet=ke({name:"IconGoogle",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-google`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vet=["stroke-width","stroke-linecap","stroke-linejoin"];function met(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M23.997 21.054h19.42a19.46 19.46 0 0 1 .321 3.428c0 3.875-.812 7.335-2.437 10.38-1.625 3.044-3.942 5.424-6.951 7.138-3.01 1.714-6.46 2.572-10.353 2.572-2.803 0-5.473-.54-8.009-1.621-2.535-1.08-4.723-2.54-6.562-4.38-1.84-1.839-3.3-4.026-4.38-6.562A20.223 20.223 0 0 1 3.426 24c0-2.803.54-5.473 1.62-8.009 1.08-2.535 2.54-4.723 4.38-6.562 1.84-1.84 4.027-3.3 6.562-4.38a20.223 20.223 0 0 1 8.01-1.62c5.356 0 9.955 1.794 13.794 5.384l-5.598 5.384c-2.197-2.125-4.929-3.188-8.197-3.188-2.303 0-4.433.58-6.388 1.741a12.83 12.83 0 0 0-4.648 4.728c-1.142 1.99-1.714 4.165-1.714 6.522s.572 4.531 1.714 6.523a12.83 12.83 0 0 0 4.648 4.727c1.955 1.16 4.085 1.741 6.388 1.741 1.554 0 2.982-.214 4.286-.643 1.303-.428 2.375-.964 3.214-1.607a11.63 11.63 0 0 0 2.197-2.196c.625-.822 1.084-1.598 1.38-2.33a9.84 9.84 0 0 0 .602-2.09H23.997v-7.071Z",fill:"currentColor",stroke:"none"},null,-1)]),14,vet)}var x$=je(pet,[["render",met]]);const get=Object.assign(x$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x$.name,x$)}}),yet=ke({name:"IconQqZone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-qq-zone`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bet=["stroke-width","stroke-linecap","stroke-linejoin"];function _et(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25.1 3.9c.2.1.4.3.5.5l6.8 10L44 17.8c1.1.3 1.7 1.4 1.4 2.5-.1.2-.2.5-.3.7l-7.4 9.5.4 12c0 1.1-.8 2-1.9 2.1-.2 0-.5 0-.7-.1L24 40.4l-11.3 4.1c-1 .4-2.2-.2-2.6-1.2-.1-.3-.1-.6-.1-.8l.4-12L3 20.9c-.7-.9-.5-2.1.4-2.8.2-.2.4-.3.7-.3l11.6-3.4 6.8-10c.5-.9 1.7-1.1 2.6-.5ZM24 9.1l-5.9 8.7-10.1 3 6.5 8.3-.3 10.5 9.9-3.6 9.9 3.6-.3-10.5 6.5-8.3-10.1-3L24 9.1Zm5 11.5c.8 0 1.5.5 1.8 1.2.3.7.1 1.6-.5 2.1L24 29.6h5c1 0 1.9.9 1.9 1.9 0 1-.9 1.9-1.9 1.9H19c-.8 0-1.5-.5-1.8-1.2-.3-.7-.1-1.6.5-2.1l6.3-5.7h-5c-1 0-1.9-.9-1.9-1.9 0-1 .9-1.9 1.9-1.9h10Z",fill:"currentColor",stroke:"none"},null,-1)]),14,bet)}var C$=je(yet,[["render",_et]]);const ket=Object.assign(C$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C$.name,C$)}}),xet=ke({name:"IconQq",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-qq`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Cet=["stroke-width","stroke-linecap","stroke-linejoin"];function wet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7.85 32.825s1.153 3.136 3.264 5.955c0 0-3.779 1.281-3.458 4.61 0 0-.128 3.714 8.069 3.458 0 0 5.764-.45 7.494-2.88h1.52c1.73 2.432 7.494 2.88 7.494 2.88 8.193.256 8.068-3.457 8.068-3.457.318-3.33-3.458-4.611-3.458-4.611 2.11-2.82 3.264-5.955 3.264-5.955 5.122 8.259 4.611-1.154 4.611-1.154-.96-5.57-4.995-9.221-4.995-9.221.576-5.058-1.537-5.955-1.537-5.955C37.742.844 24.26 1.12 23.978 1.126 23.694 1.12 10.21.846 9.767 16.495c0 0-2.113.897-1.537 5.955 0 0-4.034 3.65-4.995 9.221.005 0-.51 9.413 4.615 1.154Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Cet)}var w$=je(xet,[["render",wet]]);const Eet=Object.assign(w$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w$.name,w$)}}),Tet=ke({name:"IconTwitter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-twitter`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Aet=["stroke-width","stroke-linecap","stroke-linejoin"];function Iet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43.277 13.575c0 16.613-10.912 28.575-26.962 29.1-6.788.525-11.438-1.537-15.6-4.65 4.65.525 10.912-1.012 13.987-4.163-4.65 0-7.275-2.625-8.812-6.187h4.162C5.89 26.1 2.74 22.987 2.74 17.812c1.012.525 2.062 1.013 4.162 1.013-3.637-2.063-5.7-8.813-3.112-12.975 4.65 5.175 10.35 9.863 19.762 10.35C20.927 5.85 34.465.6 40.165 7.388c2.625-.525 4.162-1.538 6.187-2.625-.525 2.625-2.062 4.162-4.162 5.175 2.062 0 3.637-.525 5.175-1.538-.488 2.063-2.55 4.162-4.088 5.175Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Aet)}var E$=je(Tet,[["render",Iet]]);const Let=Object.assign(E$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E$.name,E$)}}),Det=ke({name:"IconWechat",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-wechat`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Pet=["stroke-width","stroke-linecap","stroke-linejoin"];function Ret(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M32.09 16.362a14.39 14.39 0 0 0-6.927 1.716 13.087 13.087 0 0 0-5.008 4.676 11.936 11.936 0 0 0-1.856 6.473c.01 1.137.185 2.273.517 3.36h-1.505a26.653 26.653 0 0 1-4.766-.593l-.925-.166-5.665 2.93 1.55-4.848C3.179 26.783 1.018 23.077 1 18.792a11.951 11.951 0 0 1 2.188-6.927 14.943 14.943 0 0 1 5.938-5.027 18.579 18.579 0 0 1 8.248-1.837A18.82 18.82 0 0 1 24.8 6.506a16.863 16.863 0 0 1 5.893 4.128 11.963 11.963 0 0 1 2.992 5.817 17.922 17.922 0 0 0-1.595-.09Zm-20.152-.414a2.167 2.167 0 0 0 1.505-.471c.405-.378.62-.908.593-1.46a1.881 1.881 0 0 0-.592-1.46 2.025 2.025 0 0 0-1.506-.535 2.778 2.778 0 0 0-1.67.535c-.454.323-.728.849-.728 1.401a1.708 1.708 0 0 0 .727 1.523 2.925 2.925 0 0 0 1.671.467ZM47 28.99a9.573 9.573 0 0 1-1.59 5.193c-1.128 1.6-2.52 3-4.129 4.128l1.258 4.129-4.51-2.413h-.243a20.758 20.758 0 0 1-4.6.76 15.538 15.538 0 0 1-7.03-1.59 13.089 13.089 0 0 1-5.008-4.313 10.501 10.501 0 0 1-1.838-5.939 10.29 10.29 0 0 1 1.838-5.92c1.266-1.847 3-3.334 5.008-4.313a15.579 15.579 0 0 1 7.03-1.59 14.919 14.919 0 0 1 6.761 1.59 13.286 13.286 0 0 1 5.09 4.312 10.004 10.004 0 0 1 1.94 5.966H47ZM23.407 11.955a2.77 2.77 0 0 0-1.747.534 1.65 1.65 0 0 0-.76 1.46c-.017.584.27 1.146.76 1.46.498.36 1.1.544 1.716.535a2.083 2.083 0 0 0 1.505-.472c.368-.404.561-.925.534-1.46a1.834 1.834 0 0 0-.534-1.532 1.887 1.887 0 0 0-1.532-.534h.063v.009h-.005Zm5.256 15.03a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.612 1.612 0 0 0-.534-1.136 2.062 2.062 0 0 0-1.46-.499 1.58 1.58 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.288.305.679.48 1.092.499Zm8.953 0a2.016 2.016 0 0 0 1.46-.498c.332-.288.525-.7.534-1.137a1.558 1.558 0 0 0-.593-1.136 2.12 2.12 0 0 0-1.401-.499 1.493 1.493 0 0 0-1.092.499c-.305.296-.49.71-.498 1.136.009.427.184.84.498 1.137.279.305.674.49 1.092.499Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Pet)}var T$=je(Det,[["render",Ret]]);const Met=Object.assign(T$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T$.name,T$)}}),Oet=ke({name:"IconWechatpay",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-wechatpay`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),$et=["stroke-width","stroke-linecap","stroke-linejoin"];function Bet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17.514 29.52a1.502 1.502 0 0 1-.715.165c-.608 0-1.104-.33-1.38-.826l-.113-.219-4.357-9.493c-.054-.112-.054-.219-.054-.33 0-.444.331-.774.774-.774.165 0 .33.053.496.165l5.13 3.643c.384.218.827.384 1.323.384.277 0 .55-.054.827-.166l24.058-10.704C39.2 6.288 32.085 2.976 24.026 2.976 10.896 2.976.191 11.861.191 22.837c0 5.958 3.2 11.366 8.22 15.008.383.278.66.774.66 1.27 0 .165-.053.33-.112.496-.384 1.488-1.05 3.92-1.05 4.026a2.025 2.025 0 0 0-.112.608c0 .443.33.774.773.774.165 0 .33-.054.443-.166l5.184-3.034c.384-.219.826-.384 1.27-.384.218 0 .495.053.714.112a27.712 27.712 0 0 0 7.781 1.104c13.13 0 23.835-8.886 23.835-19.862 0-3.312-.992-6.453-2.704-9.216L17.679 29.408l-.165.112Z",fill:"currentColor",stroke:"none"},null,-1)]),14,$et)}var A$=je(Oet,[["render",Bet]]);const Net=Object.assign(A$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A$.name,A$)}}),Fet=ke({name:"IconWeibo",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-weibo`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),jet=["stroke-width","stroke-linecap","stroke-linejoin"];function Vet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M31.82 5.6c-1.445.635-1.776 2.144-.727 3.192.515.516.993.608 3.11.608 2.952 0 4.94.781 6.448 2.53 1.84 2.079 2.052 2.714 2.052 6.513 0 3.377 0 3.441.782 3.892 1.812 1.021 3.017-.24 3.44-3.616.544-4.397-2.078-9.531-6.025-11.877-2.595-1.509-7.029-2.116-9.08-1.242Zm-14.831 5.612c-3.376 1.205-6.633 3.524-10.13 7.268-8.288 8.804-7.746 17.186 1.39 21.648 9.494 4.636 22.282 3.1 29.247-3.533 5.216-4.94 4.581-11.16-1.353-13.267-1.058-.358-1.389-.634-1.232-.966.542-1.324.726-2.86.423-3.772-.939-2.86-4.343-3.523-9.403-1.812l-2.024.69.184-2.024c.212-2.383-.303-3.68-1.72-4.398-1.187-.588-3.45-.524-5.382.166Zm8.381 11.666c4.49 1.232 7.231 3.946 7.231 7.176 0 3.588-3.192 6.817-8.38 8.528-2.77.902-7.931 1.086-10.461.396-4.793-1.353-7.507-4.012-7.507-7.416 0-1.867.81-3.496 2.594-5.152 1.656-1.564 2.926-2.318 5.364-3.137 3.689-1.242 7.636-1.389 11.16-.395Zm-9.494 2.925c-3.045 1.417-4.674 3.588-4.674 6.302 0 2.475 1.086 4.159 3.469 5.428 1.84.994 5.216.902 7.268-.147 2.622-1.39 4.342-3.947 4.342-6.45-.028-2.05-1.84-4.489-3.984-5.363-1.72-.736-4.609-.616-6.421.23Zm2.199 5.667c.211.212.358.727.358 1.178 0 1.509-2.53 2.742-3.56 1.72-.57-.57-.423-1.987.24-2.65.662-.662 2.391-.818 2.962-.248Zm14.26-19.688c-1.39 1.39-.451 3.046 1.748 3.046 1.895 0 2.741.966 2.741 3.137 0 1.352.12 1.748.663 2.107 1.628 1.15 2.953-.12 2.953-2.806 0-3.285-2.355-5.76-5.695-5.999-1.509-.12-1.868-.027-2.41.515Z",fill:"currentColor",stroke:"none"},null,-1)]),14,jet)}var I$=je(Fet,[["render",Vet]]);const zet=Object.assign(I$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I$.name,I$)}}),Uet=ke({name:"IconChineseFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-chinese-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Het=["stroke-width","stroke-linecap","stroke-linejoin"];function Wet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M22 21h-5v4.094h5V21ZM26 25.094V21h5v4.094h-5Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M24 4C12.954 4 4 12.954 4 24s8.954 20 20 20 20-8.954 20-20S35.046 4 24 4Zm2 13v-5h-4v5h-6.5a2.5 2.5 0 0 0-2.5 2.5v7.094a2.5 2.5 0 0 0 2.5 2.5H22V36h4v-6.906h6.5a2.5 2.5 0 0 0 2.5-2.5V19.5a2.5 2.5 0 0 0-2.5-2.5H26Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Het)}var L$=je(Uet,[["render",Wet]]);const Get=Object.assign(L$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L$.name,L$)}}),Ket=ke({name:"IconEnglishFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-english-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qet=["stroke-width","stroke-linecap","stroke-linejoin"];function Yet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M23.2 4C12.596 4 4 12.596 4 23.2v1.6C4 35.404 12.596 44 23.2 44h1.6C35.404 44 44 35.404 44 24.8v-1.6C44 12.596 35.404 4 24.8 4h-1.6Zm-9.086 10A2.114 2.114 0 0 0 12 16.114v15.772c0 1.167.947 2.114 2.114 2.114H25v-4h-9v-4h7.778v-4H16v-4h9v-4H14.114ZM32.4 22a5.4 5.4 0 0 0-5.4 5.4V34h4v-6.6a1.4 1.4 0 0 1 2.801 0V34h4v-6.6a5.4 5.4 0 0 0-5.4-5.4Z",fill:"currentColor",stroke:"none"},null,-1)]),14,qet)}var D$=je(Ket,[["render",Yet]]);const Xet=Object.assign(D$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D$.name,D$)}}),Zet=ke({name:"IconMoonFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-moon-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jet=["stroke-width","stroke-linecap","stroke-linejoin"];function Qet(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42.108 29.769c.124-.387-.258-.736-.645-.613A17.99 17.99 0 0 1 36 30c-9.941 0-18-8.059-18-18 0-1.904.296-3.74.844-5.463.123-.387-.226-.768-.613-.645C10.558 8.334 5 15.518 5 24c0 10.493 8.507 19 19 19 8.482 0 15.666-5.558 18.108-13.231Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Jet)}var P$=je(Zet,[["render",Qet]]);const ett=Object.assign(P$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P$.name,P$)}}),ttt=ke({name:"IconPenFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-pen-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ntt=["stroke-width","stroke-linecap","stroke-linejoin"];function rtt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{fill:"currentColor",stroke:"none",d:"m31.07 8.444 8.485 8.485L19.05 37.435l-8.485-8.485zM33.9 5.615a2 2 0 0 1 2.829 0l5.657 5.657a2 2 0 0 1 0 2.829l-1.415 1.414-8.485-8.486L33.9 5.615ZM17.636 38.85 9.15 30.363l-3.61 10.83a1 1 0 0 0 1.265 1.265l10.83-3.61Z"},null,-1)]),14,ntt)}var R$=je(ttt,[["render",rtt]]);const itt=Object.assign(R$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R$.name,R$)}}),ott=ke({name:"IconSunFill",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-sun-fill`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),stt=["stroke-width","stroke-linecap","stroke-linejoin"];function att(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"9",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M21 5.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM21 37.5a.5.5 0 0 1 .5-.5h5a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5ZM42.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM10.5 21a.5.5 0 0 1 .5.5v5a.5.5 0 0 1-.5.5h-5a.5.5 0 0 1-.5-.5v-5a.5.5 0 0 1 .5-.5h5ZM39.203 34.96a.5.5 0 0 1 0 .707l-3.536 3.536a.5.5 0 0 1-.707 0l-3.535-3.536a.5.5 0 0 1 0-.707l3.535-3.535a.5.5 0 0 1 .707 0l3.536 3.535ZM16.575 12.333a.5.5 0 0 1 0 .707l-3.535 3.535a.5.5 0 0 1-.707 0L8.797 13.04a.5.5 0 0 1 0-.707l3.536-3.536a.5.5 0 0 1 .707 0l3.535 3.536ZM13.04 39.203a.5.5 0 0 1-.707 0l-3.536-3.536a.5.5 0 0 1 0-.707l3.536-3.535a.5.5 0 0 1 .707 0l3.536 3.535a.5.5 0 0 1 0 .707l-3.536 3.536ZM35.668 16.575a.5.5 0 0 1-.708 0l-3.535-3.535a.5.5 0 0 1 0-.707l3.535-3.536a.5.5 0 0 1 .708 0l3.535 3.536a.5.5 0 0 1 0 .707l-3.535 3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,stt)}var M$=je(ott,[["render",att]]);const ltt=Object.assign(M$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M$.name,M$)}}),utt=ke({name:"IconApps",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-apps`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ctt=["stroke-width","stroke-linecap","stroke-linejoin"];function dtt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 7h13v13H7zM28 7h13v13H28zM7 28h13v13H7zM28 28h13v13H28z"},null,-1)]),14,ctt)}var O$=je(utt,[["render",dtt]]);const Eve=Object.assign(O$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O$.name,O$)}}),ftt=ke({name:"IconArchive",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-archive`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),htt=["stroke-width","stroke-linecap","stroke-linejoin"];function ptt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("rect",{x:"9",y:"18",width:"30",height:"22",rx:"1"},null,-1),L("path",{d:"M6 9a1 1 0 0 1 1-1h34a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V9ZM19 27h10"},null,-1)]),14,htt)}var $$=je(ftt,[["render",ptt]]);const vtt=Object.assign($$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$$.name,$$)}}),mtt=ke({name:"IconBarChart",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-bar-chart`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),gtt=["stroke-width","stroke-linecap","stroke-linejoin"];function ytt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 7H29v34h12V7ZM29 18H18v23h11V18ZM18 29H7v12h11V29Z"},null,-1)]),14,gtt)}var B$=je(mtt,[["render",ytt]]);const Tve=Object.assign(B$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B$.name,B$)}}),btt=ke({name:"IconBook",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-book`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_tt=["stroke-width","stroke-linecap","stroke-linejoin"];function Stt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 13 7 7v28l17 6 17-6V7l-17 6Zm0 0v27.5M29 18l7-2.5M29 25l7-2.5M29 32l7-2.5M19 18l-7-2.5m7 9.5-7-2.5m7 9.5-7-2.5"},null,-1)]),14,_tt)}var N$=je(btt,[["render",Stt]]);const eA=Object.assign(N$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N$.name,N$)}}),ktt=ke({name:"IconBookmark",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-bookmark`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ctt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M16 16h16M16 24h8"},null,-1),L("path",{d:"M24 41H8V6h32v17"},null,-1),L("path",{d:"M30 29h11v13l-5.5-3.5L30 42V29Z"},null,-1)]),14,xtt)}var F$=je(ktt,[["render",Ctt]]);const wtt=Object.assign(F$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F$.name,F$)}}),Ett=ke({name:"IconBranch",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-branch`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ttt=["stroke-width","stroke-linecap","stroke-linejoin"];function Att(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM38 10a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM19 38a4 4 0 1 1-8 0 4 4 0 0 1 8 0ZM15 15v15m0 3.5V30m0 0c0-5 19-7 19-15"},null,-1)]),14,Ttt)}var j$=je(Ett,[["render",Att]]);const Itt=Object.assign(j$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j$.name,j$)}}),Ltt=ke({name:"IconBug",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-bug`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Dtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ptt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 42c-6.075 0-11-4.925-11-11V18h22v13c0 6.075-4.925 11-11 11Zm0 0V23m11 4h8M5 27h8M7 14a4 4 0 0 0 4 4h26a4 4 0 0 0 4-4m0 28v-.5a6.5 6.5 0 0 0-6.5-6.5M7 42v-.5a6.5 6.5 0 0 1 6.5-6.5M17 14a7 7 0 1 1 14 0"},null,-1)]),14,Dtt)}var V$=je(Ltt,[["render",Ptt]]);const My=Object.assign(V$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V$.name,V$)}}),Rtt=ke({name:"IconBulb",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-bulb`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Mtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ott(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17 42h14m6-24c0 2.823-.9 5.437-2.43 7.568-1.539 2.147-3.185 4.32-3.77 6.897l-.623 2.756A1 1 0 0 1 29.2 36H18.8a1 1 0 0 1-.976-.779l-.624-2.756c-.584-2.576-2.23-4.75-3.77-6.897A12.94 12.94 0 0 1 11 18c0-7.18 5.82-13 13-13s13 5.82 13 13Z"},null,-1)]),14,Mtt)}var z$=je(Rtt,[["render",Ott]]);const $tt=Object.assign(z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z$.name,z$)}}),Btt=ke({name:"IconCalendarClock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-calendar-clock`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ntt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ftt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 22h34V10a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v30a1 1 0 0 0 1 1h18M34 5v8M14 5v8"},null,-1),L("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M36 44a9 9 0 1 0 0-18 9 9 0 0 0 0 18Zm1.5-9.75V29h-3v8.25H42v-3h-4.5Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Ntt)}var U$=je(Btt,[["render",Ftt]]);const jtt=Object.assign(U$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U$.name,U$)}}),Vtt=ke({name:"IconCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-camera`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ztt=["stroke-width","stroke-linecap","stroke-linejoin"];function Utt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m33 12-1.862-3.724A.5.5 0 0 0 30.691 8H17.309a.5.5 0 0 0-.447.276L15 12m16 14a7 7 0 1 1-14 0 7 7 0 0 1 14 0ZM7 40h34a1 1 0 0 0 1-1V13a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v26a1 1 0 0 0 1 1Z"},null,-1)]),14,ztt)}var H$=je(Vtt,[["render",Utt]]);const Htt=Object.assign(H$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H$.name,H$)}}),Wtt=ke({name:"IconCloud",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-cloud`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Gtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ktt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 29a9 9 0 0 0 9 9h19c5.523 0 10-4.477 10-10 0-5.312-4.142-9.657-9.373-9.98C32.3 12.833 27.598 9 22 9c-6.606 0-11.965 5.338-12 11.935A9 9 0 0 0 5 29Z"},null,-1)]),14,Gtt)}var W$=je(Wtt,[["render",Ktt]]);const qtt=Object.assign(W$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W$.name,W$)}}),Ytt=ke({name:"IconCommand",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-command`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Xtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ztt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M29 19v-6a6 6 0 1 1 6 6h-6Zm0 0v10m0-10H19m10 10v6a6 6 0 1 0 6-6h-6Zm0 0H19m0-10v10m0-10v-6a6 6 0 1 0-6 6h6Zm0 10v6a6 6 0 1 1-6-6h6Z"},null,-1)]),14,Xtt)}var G$=je(Ytt,[["render",Ztt]]);const Jtt=Object.assign(G$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G$.name,G$)}}),Qtt=ke({name:"IconCommon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-common`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ent=["stroke-width","stroke-linecap","stroke-linejoin"];function tnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 23 7.652 14.345M24 23l16.366-8.664M24 23v19.438M7 14v20l17 9 17-9V14L24 5 7 14Z"},null,-1)]),14,ent)}var K$=je(Qtt,[["render",tnt]]);const nnt=Object.assign(K$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K$.name,K$)}}),rnt=ke({name:"IconCompass",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-compass`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),int=["stroke-width","stroke-linecap","stroke-linejoin"];function ont(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1),L("path",{d:"m21.177 21.183 10.108-4.717a.2.2 0 0 1 .266.265L26.834 26.84l-10.109 4.717a.2.2 0 0 1-.266-.266l4.718-10.108Z"},null,-1)]),14,int)}var q$=je(rnt,[["render",ont]]);const snt=Object.assign(q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q$.name,q$)}}),ant=ke({name:"IconComputer",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-computer`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lnt=["stroke-width","stroke-linecap","stroke-linejoin"];function unt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41 7H7v22h34V7Z"},null,-1),L("path",{d:"M23.778 29v10"},null,-1),L("path",{d:"M16 39h16"},null,-1),L("path",{d:"m20.243 14.657 5.657 5.657M15.414 22.314l7.071-7.071M24.485 21.728l7.071-7.071"},null,-1)]),14,lnt)}var Y$=je(ant,[["render",unt]]);const ZH=Object.assign(Y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y$.name,Y$)}}),cnt=ke({name:"IconCopyright",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-copyright`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dnt=["stroke-width","stroke-linecap","stroke-linejoin"];function fnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M29.292 18a8 8 0 1 0 0 12M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,dnt)}var X$=je(cnt,[["render",fnt]]);const Ave=Object.assign(X$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X$.name,X$)}}),hnt=ke({name:"IconDashboard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-dashboard`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),pnt=["stroke-width","stroke-linecap","stroke-linejoin"];function vnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M41.808 24c.118 4.63-1.486 9.333-5.21 13m5.21-13h-8.309m8.309 0c-.112-4.38-1.767-8.694-4.627-12M24 6c5.531 0 10.07 2.404 13.18 6M24 6c-5.724 0-10.384 2.574-13.5 6.38M24 6v7.5M37.18 12 31 17.5m-20.5-5.12L17 17.5m-6.5-5.12C6.99 16.662 5.44 22.508 6.53 28m4.872 9c-2.65-2.609-4.226-5.742-4.873-9m0 0 8.97-3.5"},null,-1),L("path",{d:"M24 32a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 0V19"},null,-1)]),14,pnt)}var Z$=je(hnt,[["render",vnt]]);const mnt=Object.assign(Z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z$.name,Z$)}}),gnt=ke({name:"IconDesktop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-desktop`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ynt=["stroke-width","stroke-linecap","stroke-linejoin"];function bnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 32v8m0 0h-9m9 0h9M7 32h34a1 1 0 0 0 1-1V9a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v22a1 1 0 0 0 1 1Z"},null,-1)]),14,ynt)}var J$=je(gnt,[["render",bnt]]);const G8=Object.assign(J$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J$.name,J$)}}),_nt=ke({name:"IconDice",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-dice`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Snt=["stroke-width","stroke-linecap","stroke-linejoin"];function knt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',11)]),14,Snt)}var Q$=je(_nt,[["render",knt]]);const xnt=Object.assign(Q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q$.name,Q$)}}),Cnt=ke({name:"IconDriveFile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-drive-file`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),wnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ent(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M38.5 17H29a1 1 0 0 1-1-1V6.5m0-.5H10a1 1 0 0 0-1 1v34a1 1 0 0 0 1 1h28a1 1 0 0 0 1-1V17L28 6Z"},null,-1)]),14,wnt)}var eB=je(Cnt,[["render",Ent]]);const Tnt=Object.assign(eB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eB.name,eB)}}),Ant=ke({name:"IconEar",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-ear`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Int=["stroke-width","stroke-linecap","stroke-linejoin"];function Lnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13 15.528C14.32 12.386 18.403 6.977 23.556 7c7.944.036 14.514 8.528 10.116 15.71-4.399 7.181-5.718 10.323-6.598 14.363-.82 3.766-9.288 7.143-11.498-1.515M20 18.5c1-3.083 4.5-4.5 6.5-2 2.85 3.562-3.503 8.312-5.5 12.5"},null,-1)]),14,Int)}var tB=je(Ant,[["render",Lnt]]);const Dnt=Object.assign(tB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tB.name,tB)}}),Pnt=ke({name:"IconEmail",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-email`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Rnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("rect",{x:"6",y:"8",width:"36",height:"32",rx:"1"},null,-1),L("path",{d:"m37 17-12.43 8.606a1 1 0 0 1-1.14 0L11 17"},null,-1)]),14,Rnt)}var nB=je(Pnt,[["render",Mnt]]);const Ont=Object.assign(nB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nB.name,nB)}}),$nt=ke({name:"IconExperiment",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-experiment`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Bnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Nnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M10.5 7h6m0 0v10.5l-5.25 14M16.5 7h15m0 0h6m-6 0v10.5L37 32.167M11.25 31.5l-2.344 6.853A2 2 0 0 0 10.8 41h26.758a2 2 0 0 0 1.86-2.737L37 32.167M11.25 31.5c1.916 1.833 7.05 4.4 12.25 0s11.166-1.389 13.5.667M26 22.5v.01"},null,-1)]),14,Bnt)}var rB=je($nt,[["render",Nnt]]);const Fnt=Object.assign(rB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rB.name,rB)}}),jnt=ke({name:"IconFire",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-fire`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Vnt=["stroke-width","stroke-linecap","stroke-linejoin"];function znt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17.577 27.477C20.022 22.579 17.041 12.98 24.546 6c0 0-1.156 15.55 5.36 17.181 2.145.537 2.68-5.369 4.289-8.59 0 0 .536 4.832 2.68 8.59 3.217 7.517-1 14.117-5.896 17.182-4.289 2.684-14.587 2.807-19.835-5.37-4.824-7.516 0-15.57 0-15.57s4.289 12.35 6.433 8.054Z"},null,-1)]),14,Vnt)}var iB=je(jnt,[["render",znt]]);const Ive=Object.assign(iB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iB.name,iB)}}),Unt=ke({name:"IconFolderAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-folder-add`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Hnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Wnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 19v14m-7-7h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,Hnt)}var oB=je(Unt,[["render",Wnt]]);const Gnt=Object.assign(oB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oB.name,oB)}}),Knt=ke({name:"IconFolderDelete",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-folder-delete`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),qnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ynt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17 26h14M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,qnt)}var sB=je(Knt,[["render",Ynt]]);const Xnt=Object.assign(sB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sB.name,sB)}}),Znt=ke({name:"IconFolder",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-folder`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Jnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Qnt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 13h18l-2.527-3.557a1.077 1.077 0 0 0-.88-.443H7.06C6.474 9 6 9.448 6 10v3Zm0 0h33.882c1.17 0 2.118.895 2.118 2v21c0 1.105-.948 3-2.118 3H8.118C6.948 39 6 38.105 6 37V13Z"},null,-1)]),14,Jnt)}var aB=je(Znt,[["render",Qnt]]);const Lve=Object.assign(aB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aB.name,aB)}}),ert=ke({name:"IconGift",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-gift`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),trt=["stroke-width","stroke-linecap","stroke-linejoin"];function nrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M13.45 14.043H8a1 1 0 0 0-1 1v8a1 1 0 0 0 1 1h32a1 1 0 0 0 1-1v-8a1 1 0 0 0-1-1h-4.893m-21.657 0c-1.036-2.833-.615-5.6 1.182-6.637 2.152-1.243 5.464.464 7.397 3.812.539.933.914 1.896 1.127 2.825m-9.706 0h9.706m0 0H25.4m0 0a10.31 10.31 0 0 1 1.128-2.825c1.933-3.348 5.244-5.055 7.397-3.812 1.797 1.037 2.217 3.804 1.182 6.637m-9.707 0h9.707M10 26.043a2 2 0 0 1 2-2h24a2 2 0 0 1 2 2v13a2 2 0 0 1-2 2H12a2 2 0 0 1-2-2v-13Z"},null,-1)]),14,trt)}var lB=je(ert,[["render",nrt]]);const rrt=Object.assign(lB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lB.name,lB)}}),irt=ke({name:"IconIdcard",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-idcard`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ort=["stroke-width","stroke-linecap","stroke-linejoin"];function srt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11 17h9m-9 7h9m-9 7h5m-8 9h32a2 2 0 0 0 2-2V10a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2Z"},null,-1),L("path",{d:"M36 33a7 7 0 1 0-14 0"},null,-1),L("circle",{cx:"29",cy:"20",r:"4"},null,-1)]),14,ort)}var uB=je(irt,[["render",srt]]);const art=Object.assign(uB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uB.name,uB)}}),lrt=ke({name:"IconImage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-image`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),urt=["stroke-width","stroke-linecap","stroke-linejoin"];function crt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m24 33 9-9v9h-9Zm0 0-3.5-4.5L17 33h7Zm15 8H9a2 2 0 0 1-2-2V9a2 2 0 0 1 2-2h30a2 2 0 0 1 2 2v30a2 2 0 0 1-2 2ZM15 15h2v2h-2v-2Z"},null,-1),L("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1)]),14,urt)}var cB=je(lrt,[["render",crt]]);const tA=Object.assign(cB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cB.name,cB)}}),drt=ke({name:"IconInteraction",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-interaction`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),frt=["stroke-width","stroke-linecap","stroke-linejoin"];function hrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M8 19h16m16 0H24m0 0v23m14 0H10a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h28a2 2 0 0 1 2 2v32a2 2 0 0 1-2 2Z"},null,-1)]),14,frt)}var dB=je(drt,[["render",hrt]]);const prt=Object.assign(dB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dB.name,dB)}}),vrt=ke({name:"IconLanguage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-language`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mrt=["stroke-width","stroke-linecap","stroke-linejoin"];function grt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m42 43-2.385-6M26 43l2.384-6m11.231 0-.795-2-4.18-10h-1.28l-4.181 10-.795 2m11.231 0h-11.23M17 5l1 5M5 11h26M11 11s1.889 7.826 6.611 12.174C22.333 27.522 30 31 30 31"},null,-1),L("path",{d:"M25 11s-1.889 7.826-6.611 12.174C13.667 27.522 6 31 6 31"},null,-1)]),14,mrt)}var fB=je(vrt,[["render",grt]]);const Dve=Object.assign(fB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fB.name,fB)}}),yrt=ke({name:"IconLayers",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-layers`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),brt=["stroke-width","stroke-linecap","stroke-linejoin"];function _rt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.015 7.017 41 14.62l-16.985 7.605L7.03 14.62l16.985-7.604Z"},null,-1),L("path",{d:"m41 23.255-16.985 7.604L7.03 23.255M40.97 33.412l-16.985 7.605L7 33.412"},null,-1)]),14,brt)}var hB=je(yrt,[["render",_rt]]);const Srt=Object.assign(hB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hB.name,hB)}}),krt=ke({name:"IconLayout",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-layout`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Crt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19 40V8m23 2a2 2 0 0 0-2-2H8a2 2 0 0 0-2 2v28a2 2 0 0 0 2 2h32a2 2 0 0 0 2-2V10Z"},null,-1)]),14,xrt)}var pB=je(krt,[["render",Crt]]);const wrt=Object.assign(pB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pB.name,pB)}}),Ert=ke({name:"IconLocation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-location`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Trt=["stroke-width","stroke-linecap","stroke-linejoin"];function Art(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"19",r:"5"},null,-1),L("path",{d:"M39 20.405C39 28.914 24 43 24 43S9 28.914 9 20.405C9 11.897 15.716 5 24 5c8.284 0 15 6.897 15 15.405Z"},null,-1)]),14,Trt)}var vB=je(Ert,[["render",Art]]);const Irt=Object.assign(vB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vB.name,vB)}}),Lrt=ke({name:"IconLock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-lock`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Drt=["stroke-width","stroke-linecap","stroke-linejoin"];function Prt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),L("path",{d:"M15 21v-6a9 9 0 1 1 18 0v6M24 35v-8"},null,-1)]),14,Drt)}var mB=je(Lrt,[["render",Prt]]);const Rrt=Object.assign(mB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mB.name,mB)}}),Mrt=ke({name:"IconLoop",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-loop`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Ort=["stroke-width","stroke-linecap","stroke-linejoin"];function $rt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 38c-7.732 0-14-6.268-14-14 0-3.815 1.526-7.273 4-9.798M24 10c7.732 0 14 6.268 14 14 0 3.815-1.526 7.273-4 9.798M24 7v6l-4-3 4-3Zm0 33v-6l4 3-4 3Z"},null,-1)]),14,Ort)}var gB=je(Mrt,[["render",$rt]]);const Brt=Object.assign(gB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gB.name,gB)}}),Nrt=ke({name:"IconMan",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-man`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Frt=["stroke-width","stroke-linecap","stroke-linejoin"];function jrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M40 8 29.68 18.321M31 8h9v9m-7 10c0 7.18-5.82 13-13 13S7 34.18 7 27s5.82-13 13-13 13 5.82 13 13Z"},null,-1)]),14,Frt)}var yB=je(Nrt,[["render",jrt]]);const Vrt=Object.assign(yB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yB.name,yB)}}),zrt=ke({name:"IconMenu",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-menu`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Urt=["stroke-width","stroke-linecap","stroke-linejoin"];function Hrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M5 10h38M5 24h38M5 38h38"},null,-1)]),14,Urt)}var bB=je(zrt,[["render",Hrt]]);const Pve=Object.assign(bB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bB.name,bB)}}),Wrt=ke({name:"IconMindMapping",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-mind-mapping`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Grt=["stroke-width","stroke-linecap","stroke-linejoin"];function Krt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M20 10h23M20 24h23M20 38h23M9 12v28m0-28a2 2 0 1 0 0-4 2 2 0 0 0 0 4Zm0 26h7M9 24h7"},null,-1)]),14,Grt)}var _B=je(Wrt,[["render",Krt]]);const qrt=Object.assign(_B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_B.name,_B)}}),Yrt=ke({name:"IconMobile",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-mobile`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Xrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Zrt(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17 14h14m6.125 28h-26.25C9.839 42 9 41.105 9 40V8c0-1.105.84-2 1.875-2h26.25C38.16 6 39 6.895 39 8v32c0 1.105-.84 2-1.875 2ZM22 33a2 2 0 1 1 4 0 2 2 0 0 1-4 0Z"},null,-1),L("circle",{cx:"24",cy:"33",r:"2",fill:"currentColor",stroke:"none"},null,-1)]),14,Xrt)}var SB=je(Yrt,[["render",Zrt]]);const Rve=Object.assign(SB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SB.name,SB)}}),Jrt=ke({name:"IconMoon",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-moon`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Qrt=["stroke-width","stroke-linecap","stroke-linejoin"];function eit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M39.979 29.241c.11-.344-.23-.654-.574-.544-1.53.487-3.162.75-4.855.75-8.834 0-15.997-7.163-15.997-15.997 0-1.693.263-3.324.75-4.855.11-.344-.2-.684-.544-.574C11.939 10.19 7 16.576 7 24.114 7 33.44 14.56 41 23.886 41c7.538 0 13.923-4.94 16.093-11.759Z"},null,-1)]),14,Qrt)}var kB=je(Jrt,[["render",eit]]);const tit=Object.assign(kB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kB.name,kB)}}),nit=ke({name:"IconMosaic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-mosaic`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),rit=["stroke-width","stroke-linecap","stroke-linejoin"];function iit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M6 7h4v4H6V7ZM6 23h4v4H6v-4ZM6 38h4v4H6v-4ZM14 15h4v4h-4v-4ZM14 31h4v4h-4v-4ZM22 7h4v4h-4V7ZM22 23h4v4h-4v-4ZM22 38h4v4h-4v-4ZM30 15h4v4h-4v-4ZM30 31h4v4h-4v-4ZM38 7h4v4h-4V7ZM38 23h4v4h-4v-4ZM38 38h4v4h-4v-4Z"},null,-1)]),14,rit)}var xB=je(nit,[["render",iit]]);const oit=Object.assign(xB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xB.name,xB)}}),sit=ke({name:"IconNav",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-nav`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ait=["stroke-width","stroke-linecap","stroke-linejoin"];function lit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1)]),14,ait)}var CB=je(sit,[["render",lit]]);const uit=Object.assign(CB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CB.name,CB)}}),cit=ke({name:"IconNotificationClose",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-notification-close`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dit=["stroke-width","stroke-linecap","stroke-linejoin"];function fit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M11 35V22c0-1.835.38-3.58 1.066-5.163M11 35H6m5 0h15.5M24 9c7.18 0 13 5.82 13 13v7.5M24 9V4m0 5a12.94 12.94 0 0 0-6.5 1.74M17 42h14M6 4l36 40"},null,-1)]),14,dit)}var wB=je(cit,[["render",fit]]);const hit=Object.assign(wB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wB.name,wB)}}),pit=ke({name:"IconNotification",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-notification`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vit=["stroke-width","stroke-linecap","stroke-linejoin"];function mit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 9c7.18 0 13 5.82 13 13v13H11V22c0-7.18 5.82-13 13-13Zm0 0V4M6 35h36m-25 7h14"},null,-1)]),14,vit)}var EB=je(pit,[["render",mit]]);const git=Object.assign(EB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EB.name,EB)}}),yit=ke({name:"IconPalette",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-palette`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bit=["stroke-width","stroke-linecap","stroke-linejoin"];function _it(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[xh('',5)]),14,bit)}var TB=je(yit,[["render",_it]]);const JH=Object.assign(TB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TB.name,TB)}}),Sit=ke({name:"IconPen",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-pen`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),kit=["stroke-width","stroke-linecap","stroke-linejoin"];function xit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m28.364 11.565 7.07 7.071M7.15 32.778 33.313 6.615l7.071 7.071L14.221 39.85h-7.07v-7.07Z"},null,-1)]),14,kit)}var AB=je(Sit,[["render",xit]]);const Cit=Object.assign(AB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AB.name,AB)}}),wit=ke({name:"IconPhone",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-phone`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Eit=["stroke-width","stroke-linecap","stroke-linejoin"];function Tit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M6.707 34.284a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l4.95 4.95s3.535-1.414 7.778-5.657c4.243-4.243 5.657-7.778 5.657-7.778l-4.95-4.95a1 1 0 0 1 0-1.414l5.657-5.657a1 1 0 0 1 1.414 0l6.01 6.01s3.183 7.425-8.485 19.092c-11.667 11.668-19.092 8.485-19.092 8.485l-6.01-6.01Z"},null,-1)]),14,Eit)}var IB=je(wit,[["render",Tit]]);const Ait=Object.assign(IB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IB.name,IB)}}),Iit=ke({name:"IconPrinter",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-printer`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Lit=["stroke-width","stroke-linecap","stroke-linejoin"];function Dit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M14 15V8a1 1 0 0 1 1-1h18a1 1 0 0 1 1 1v7m-20 0H7a1 1 0 0 0-1 1v17a1 1 0 0 0 1 1h6m1-19h20m0 0h7a1 1 0 0 1 1 1v17a1 1 0 0 1-1 1h-6m-22 0v6a1 1 0 0 0 1 1h20a1 1 0 0 0 1-1v-6m-22 0v-5a1 1 0 0 1 1-1h20a1 1 0 0 1 1 1v5"},null,-1)]),14,Lit)}var LB=je(Iit,[["render",Dit]]);const Pit=Object.assign(LB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LB.name,LB)}}),Rit=ke({name:"IconPublic",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-public`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Mit=["stroke-width","stroke-linecap","stroke-linejoin"];function Oit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M15 21.5 6.704 19M15 21.5l4.683 5.152a1 1 0 0 1 .25.814L18 40.976l10.918-16.117a1 1 0 0 0-.298-1.409L21.5 19 15 21.5Zm0 0 6.062-6.995a1 1 0 0 0 .138-1.103L18 7.024M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6s18 8.059 18 18Z"},null,-1)]),14,Mit)}var DB=je(Rit,[["render",Oit]]);const $it=Object.assign(DB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DB.name,DB)}}),Bit=ke({name:"IconPushpin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-pushpin`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Nit=["stroke-width","stroke-linecap","stroke-linejoin"];function Fit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19.921 28.163 7.193 40.89m12.728-12.728 8.884 8.883c.17.17.447.17.617 0l5.12-5.12a7.862 7.862 0 0 0 1.667-8.655.093.093 0 0 1 .02-.102l4.906-4.906a2 2 0 0 0 0-2.828L32.648 6.95a2 2 0 0 0-2.828 0l-4.89 4.889a.126.126 0 0 1-.139.027 7.828 7.828 0 0 0-8.618 1.66l-5.027 5.026a.591.591 0 0 0 0 .836l8.774 8.775Z"},null,-1)]),14,Nit)}var PB=je(Bit,[["render",Fit]]);const jit=Object.assign(PB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PB.name,PB)}}),Vit=ke({name:"IconQrcode",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-qrcode`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zit=["stroke-width","stroke-linecap","stroke-linejoin"];function Uit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 30v4m0 3v6m19-19h-6m-3 0h-4M7 7h17v17H7V7Zm0 25h9v9H7v-9Zm25 0h9v9h-9v-9Zm0-25h9v9h-9V7Zm-18 7h3v3h-3v-3Z"},null,-1)]),14,zit)}var RB=je(Vit,[["render",Uit]]);const Hit=Object.assign(RB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RB.name,RB)}}),Wit=ke({name:"IconRelation",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-relation`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Git=["stroke-width","stroke-linecap","stroke-linejoin"];function Kit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19.714 14C15.204 15.784 12 20.302 12 25.593c0 1.142.15 2.247.429 3.298m16.285-14.712C32.998 16.073 36 20.471 36 25.593c0 1.07-.131 2.11-.378 3.102m-18.32 7.194a11.676 11.676 0 0 0 13.556-.112"},null,-1),L("path",{d:"M24 19a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM36 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12ZM12 40a6 6 0 1 0 0-12 6 6 0 0 0 0 12Z"},null,-1)]),14,Git)}var MB=je(Wit,[["render",Kit]]);const qit=Object.assign(MB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MB.name,MB)}}),Yit=ke({name:"IconRobotAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-robot-add`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Xit=["stroke-width","stroke-linecap","stroke-linejoin"];function Zit(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m25 8H9V13h30v11m-7 11h14m-7-7v14M18 26h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,Xit)}var OB=je(Yit,[["render",Zit]]);const Jit=Object.assign(OB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OB.name,OB)}}),Qit=ke({name:"IconRobot",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-robot`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),eot=["stroke-width","stroke-linecap","stroke-linejoin"];function tot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M18 26h1v1h-1v-1ZM29 26h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m36 8H9V13h30v29m6-21v11m-27-6h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,eot)}var $B=je(Qit,[["render",tot]]);const not=Object.assign($B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$B.name,$B)}}),rot=ke({name:"IconSafe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-safe`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),iot=["stroke-width","stroke-linecap","stroke-linejoin"];function oot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m16.825 22.165 6 6 10-10M24 6c7 4 16 5 16 5v15s-2 12-16 16.027C10 38 8 26 8 26V11s9-1 16-5Z"},null,-1)]),14,iot)}var BB=je(rot,[["render",oot]]);const bf=Object.assign(BB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BB.name,BB)}}),sot=ke({name:"IconSchedule",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-schedule`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),aot=["stroke-width","stroke-linecap","stroke-linejoin"];function lot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"18"},null,-1),L("path",{d:"M24 13v10l6.5 7"},null,-1)]),14,aot)}var NB=je(sot,[["render",lot]]);const uot=Object.assign(NB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NB.name,NB)}}),cot=ke({name:"IconShake",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-shake`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),dot=["stroke-width","stroke-linecap","stroke-linejoin"];function fot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M43.092 27.536 31.778 38.849M20.465 4.91 9.15 16.221m9.192 14.85a1 1 0 1 1-1.414-1.415 1 1 0 0 1 1.414 1.414ZM6.323 28.95 19.05 41.678a1 1 0 0 0 1.415 0l21.213-21.213a1 1 0 0 0 0-1.415L28.95 6.322a1 1 0 0 0-1.415 0L6.322 27.536a1 1 0 0 0 0 1.414Z"},null,-1),L("circle",{cx:"17.637",cy:"30.364",r:"1",transform:"rotate(45 17.637 30.364)",fill:"currentColor",stroke:"none"},null,-1)]),14,dot)}var FB=je(cot,[["render",fot]]);const hot=Object.assign(FB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FB.name,FB)}}),pot=ke({name:"IconSkin",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-skin`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),vot=["stroke-width","stroke-linecap","stroke-linejoin"];function mot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M17.936 6H7a1 1 0 0 0-1 1v17.559a1 1 0 0 0 1 1h4V40a1 1 0 0 0 1 1h24a1 1 0 0 0 1-1V25.559h4a1 1 0 0 0 1-1V7a1 1 0 0 0-1-1H30.064C28.854 7.23 26.59 9.059 24 9.059S19.147 7.23 17.936 6Z"},null,-1)]),14,vot)}var jB=je(pot,[["render",mot]]);const got=Object.assign(jB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jB.name,jB)}}),yot=ke({name:"IconStamp",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-stamp`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),bot=["stroke-width","stroke-linecap","stroke-linejoin"];function _ot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 33a1 1 0 0 1 1-1h32a1 1 0 0 1 1 1v7a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-7ZM29.081 21.18a8 8 0 1 0-10.163 0L14 32h20l-4.919-10.82Z"},null,-1)]),14,bot)}var VB=je(yot,[["render",_ot]]);const Sot=Object.assign(VB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VB.name,VB)}}),kot=ke({name:"IconStorage",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-storage`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),xot=["stroke-width","stroke-linecap","stroke-linejoin"];function Cot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 18h34v12H7V18ZM40 6H8a1 1 0 0 0-1 1v11h34V7a1 1 0 0 0-1-1ZM7 30h34v11a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1V30Z"},null,-1),L("path",{d:"M13.02 36H13v.02h.02V36Z"},null,-1),L("path",{d:"M13 12v-2h-2v2h2Zm.02 0h2v-2h-2v2Zm0 .02v2h2v-2h-2Zm-.02 0h-2v2h2v-2ZM13 14h.02v-4H13v4Zm-1.98-2v.02h4V12h-4Zm2-1.98H13v4h.02v-4Zm1.98 2V12h-4v.02h4Z",fill:"currentColor",stroke:"none"},null,-1),L("path",{d:"M13.02 24H13v.02h.02V24Z"},null,-1)]),14,xot)}var zB=je(kot,[["render",Cot]]);const bV=Object.assign(zB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zB.name,zB)}}),wot=ke({name:"IconSubscribeAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-subscribe-add`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Eot=["stroke-width","stroke-linecap","stroke-linejoin"];function Tot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.53 6.007H9.97c-.535 0-.97.449-.97 1.003V41.8c0 .148.152.245.28.179l15.25-7.881 14.248 7.88c.129.067.28-.03.28-.179V22.06M27.413 11.023h6.794m0 0H41m-6.794 0V4m0 7.023v7.023"},null,-1)]),14,Eot)}var UB=je(wot,[["render",Tot]]);const Aot=Object.assign(UB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UB.name,UB)}}),Iot=ke({name:"IconSubscribe",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-subscribe`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Lot=["stroke-width","stroke-linecap","stroke-linejoin"];function Dot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M9 7v34.667a.2.2 0 0 0 .294.176L24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1Z"},null,-1)]),14,Lot)}var HB=je(Iot,[["render",Dot]]);const Pot=Object.assign(HB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HB.name,HB)}}),Rot=ke({name:"IconSubscribed",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-subscribed`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Mot=["stroke-width","stroke-linecap","stroke-linejoin"];function Oot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m31.289 15.596-9.193 9.193-4.95-4.95M24 34l14.706 7.843a.2.2 0 0 0 .294-.176V7a1 1 0 0 0-1-1H10a1 1 0 0 0-1 1v34.667a.2.2 0 0 0 .294.176L24 34Z"},null,-1)]),14,Mot)}var WB=je(Rot,[["render",Oot]]);const $ot=Object.assign(WB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WB.name,WB)}}),Bot=ke({name:"IconSun",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-sun`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Not=["stroke-width","stroke-linecap","stroke-linejoin"];function Fot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"24",cy:"24",r:"7"},null,-1),L("path",{d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1),L("path",{fill:"currentColor",stroke:"none",d:"M23 7h2v2h-2zM23 39h2v2h-2zM41 23v2h-2v-2zM9 23v2H7v-2zM36.73 35.313l-1.415 1.415-1.414-1.415 1.414-1.414zM14.099 12.686l-1.414 1.415-1.414-1.415 1.414-1.414zM12.687 36.728l-1.414-1.415 1.414-1.414 1.414 1.414zM35.314 14.1 33.9 12.686l1.414-1.414 1.415 1.414z"},null,-1)]),14,Not)}var GB=je(Bot,[["render",Fot]]);const jot=Object.assign(GB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GB.name,GB)}}),Vot=ke({name:"IconTag",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-tag`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),zot=["stroke-width","stroke-linecap","stroke-linejoin"];function Uot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24.835 6.035a1 1 0 0 1 .903-.273l12.964 2.592a1 1 0 0 1 .784.785l2.593 12.963a1 1 0 0 1-.274.904L21.678 43.133a1 1 0 0 1-1.415 0L4.708 27.577a1 1 0 0 1 0-1.414L24.835 6.035Z"},null,-1),L("path",{d:"M31.577 17.346a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},null,-1),L("path",{d:"M31.582 17.349a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",fill:"currentColor",stroke:"none"},null,-1)]),14,zot)}var KB=je(Vot,[["render",Uot]]);const Hot=Object.assign(KB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KB.name,KB)}}),Wot=ke({name:"IconTags",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-tags`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Got=["stroke-width","stroke-linecap","stroke-linejoin"];function Kot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"m37.581 28.123-14.849 14.85a1 1 0 0 1-1.414 0L8.59 30.243m25.982-22.68-10.685-.628a1 1 0 0 0-.766.291L9.297 21.052a1 1 0 0 0 0 1.414L20.61 33.78a1 1 0 0 0 1.415 0l13.824-13.825a1 1 0 0 0 .291-.765l-.628-10.686a1 1 0 0 0-.94-.94Zm-6.874 7.729a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z"},null,-1),L("path",{d:"M27.697 15.292a1 1 0 1 1 1.414-1.414 1 1 0 0 1-1.414 1.414Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Got)}var qB=je(Wot,[["render",Kot]]);const qot=Object.assign(qB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qB.name,qB)}}),Yot=ke({name:"IconThunderbolt",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-thunderbolt`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Xot=["stroke-width","stroke-linecap","stroke-linejoin"];function Zot(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M27.824 5.203A.1.1 0 0 1 28 5.27V21h10.782a.1.1 0 0 1 .075.165L20.176 42.797A.1.1 0 0 1 20 42.73V27H9.219a.1.1 0 0 1-.076-.165L27.824 5.203Z"},null,-1)]),14,Xot)}var YB=je(Yot,[["render",Zot]]);const Jot=Object.assign(YB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YB.name,YB)}}),Qot=ke({name:"IconTool",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-tool`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),est=["stroke-width","stroke-linecap","stroke-linejoin"];function tst(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M19.994 11.035c3.66-3.659 9.094-4.46 13.531-2.405a.1.1 0 0 1 .028.16l-6.488 6.488a1 1 0 0 0 0 1.414l4.243 4.243a1 1 0 0 0 1.414 0l6.488-6.488a.1.1 0 0 1 .16.028c2.056 4.437 1.254 9.872-2.405 13.53-3.695 3.696-9.2 4.477-13.66 2.347L12.923 40.733a1 1 0 0 1-1.414 0L7.266 36.49a1 1 0 0 1 0-1.414l10.382-10.382c-2.13-4.46-1.349-9.965 2.346-13.66Z"},null,-1)]),14,est)}var XB=je(Qot,[["render",tst]]);const nst=Object.assign(XB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XB.name,XB)}}),rst=ke({name:"IconTrophy",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-trophy`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),ist=["stroke-width","stroke-linecap","stroke-linejoin"];function ost(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 33c-6.075 0-11-4.925-11-11m11 11c6.075 0 11-4.925 11-11M24 33v8M13 22V7h22v15m-22 0V9H7v7a6 6 0 0 0 6 6Zm22 0V9h6v7a6 6 0 0 1-6 6ZM12 41h24"},null,-1)]),14,ist)}var ZB=je(rst,[["render",ost]]);const sst=Object.assign(ZB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZB.name,ZB)}}),ast=ke({name:"IconUnlock",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-unlock`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),lst=["stroke-width","stroke-linecap","stroke-linejoin"];function ust(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),L("path",{d:"M44 15a9 9 0 1 0-18 0v6M24 35v-8"},null,-1)]),14,lst)}var JB=je(ast,[["render",ust]]);const cst=Object.assign(JB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JB.name,JB)}}),dst=ke({name:"IconUserAdd",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-user-add`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),fst=["stroke-width","stroke-linecap","stroke-linejoin"];function hst(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M25 27h-8c-5.523 0-10 4.477-10 10v4h18m11-14v8m0 0v8m0-8h8m-8 0h-8m3-21a7 7 0 1 1-14 0 7 7 0 0 1 14 0Z"},null,-1)]),14,fst)}var QB=je(dst,[["render",hst]]);const pst=Object.assign(QB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QB.name,QB)}}),vst=ke({name:"IconUserGroup",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-user-group`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),mst=["stroke-width","stroke-linecap","stroke-linejoin"];function gst(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("circle",{cx:"18",cy:"15",r:"7"},null,-1),L("circle",{cx:"34",cy:"19",r:"4"},null,-1),L("path",{d:"M6 34a6 6 0 0 1 6-6h12a6 6 0 0 1 6 6v6H6v-6ZM34 30h4a4 4 0 0 1 4 4v4h-8"},null,-1)]),14,mst)}var eN=je(vst,[["render",gst]]);const yst=Object.assign(eN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eN.name,eN)}}),bst=ke({name:"IconUser",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-user`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),_st=["stroke-width","stroke-linecap","stroke-linejoin"];function Sst(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M7 37c0-4.97 4.03-8 9-8h16c4.97 0 9 3.03 9 8v3a1 1 0 0 1-1 1H8a1 1 0 0 1-1-1v-3Z"},null,-1),L("circle",{cx:"24",cy:"15",r:"8"},null,-1)]),14,_st)}var tN=je(bst,[["render",Sst]]);const kst=Object.assign(tN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tN.name,tN)}}),xst=ke({name:"IconVideoCamera",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-video-camera`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Cst=["stroke-width","stroke-linecap","stroke-linejoin"];function wst(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M33 18v12m0-12v-6a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1v24a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1v-6m0-12 8.713-2.614a1 1 0 0 1 1.287.958v15.312a1 1 0 0 1-1.287.958L33 30M11 19h6"},null,-1)]),14,Cst)}var nN=je(xst,[["render",wst]]);const Mve=Object.assign(nN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nN.name,nN)}}),Est=ke({name:"IconWifi",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-wifi`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Tst=["stroke-width","stroke-linecap","stroke-linejoin"];function Ast(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M31.587 31.485A9.978 9.978 0 0 0 24 28a9.977 9.977 0 0 0-7.586 3.485M37.255 25.822A17.953 17.953 0 0 0 24 20a17.953 17.953 0 0 0-13.256 5.822M43.618 19.449C38.696 14.246 31.728 11 24 11c-7.727 0-14.696 3.246-19.617 8.449"},null,-1),L("path",{d:"M27.535 35.465a5 5 0 0 0-7.07 0L24 39l3.535-3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Tst)}var rN=je(Est,[["render",Ast]]);const Ist=Object.assign(rN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rN.name,rN)}}),Lst=ke({name:"IconWoman",props:{size:{type:[Number,String]},strokeWidth:{type:Number,default:4},strokeLinecap:{type:String,default:"butt",validator:e=>["butt","round","square"].includes(e)},strokeLinejoin:{type:String,default:"miter",validator:e=>["arcs","bevel","miter","miter-clip","round"].includes(e)},rotate:Number,spin:Boolean},emits:{click:e=>!0},setup(e,{emit:t}){const n=Le("icon"),r=F(()=>[n,`${n}-woman`,{[`${n}-spin`]:e.spin}]),o=F(()=>{const s={};return e.size&&(s.fontSize=Ze(e.size)?`${e.size}px`:e.size),e.rotate&&(s.transform=`rotate(${e.rotate}deg)`),s});return{cls:r,innerStyle:o,onClick:s=>{t("click",s)}}}}),Dst=["stroke-width","stroke-linecap","stroke-linejoin"];function Pst(e,t,n,r,o,a){return H(),J("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:le(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[L("path",{d:"M24 29c6.075 0 11-4.925 11-11S30.075 7 24 7s-11 4.925-11 11 4.925 11 11 11Zm0 0v15M15 36h18"},null,-1)]),14,Dst)}var iN=je(Lst,[["render",Pst]]);const Rst=Object.assign(iN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iN.name,iN)}}),_V={IconArrowDown:gV,IconArrowFall:FHe,IconArrowLeft:KH,IconArrowRight:GHe,IconArrowRise:XHe,IconArrowUp:yV,IconCaretDown:NH,IconCaretLeft:_H,IconCaretRight:bH,IconCaretUp:J0e,IconDoubleDown:rWe,IconDoubleLeft:zpe,IconDoubleRight:Upe,IconDoubleUp:aWe,IconDownCircle:dWe,IconDown:Yh,IconDragArrow:gve,IconExpand:yWe,IconLeftCircle:kWe,IconLeft:Al,IconMenuFold:M0e,IconMenuUnfold:O0e,IconRightCircle:EWe,IconRight:zi,IconRotateLeft:m0e,IconRotateRight:g0e,IconShrink:LWe,IconSwap:yve,IconToBottom:BWe,IconToLeft:VWe,IconToRight:WWe,IconToTop:ape,IconUpCircle:YWe,IconUp:K_,IconCheckCircleFill:Kh,IconCloseCircleFill:Gm,IconExclamationCircleFill:If,IconExclamationPolygonFill:QWe,IconInfoCircleFill:n3,IconMinusCircleFill:rGe,IconPlusCircleFill:aGe,IconQuestionCircleFill:dGe,IconCheckCircle:Pc,IconCheckSquare:yGe,IconCheck:Ym,IconClockCircle:N5,IconCloseCircle:kGe,IconClose:ds,IconExclamationCircle:rf,IconExclamation:MH,IconInfoCircle:yd,IconInfo:z0e,IconMinusCircle:PGe,IconMinus:Am,IconPlusCircle:$Ge,IconPlus:Cf,IconQuestionCircle:TH,IconQuestion:jGe,IconStop:HGe,IconHeartFill:qH,IconStarFill:OH,IconThumbDownFill:ZGe,IconThumbUpFill:tKe,IconAt:oKe,IconCloudDownload:uKe,IconCodeBlock:bve,IconCodeSquare:mKe,IconCode:S0,IconCustomerService:xKe,IconDownload:fm,IconExport:X5,IconEyeInvisible:tpe,IconEye:g0,IconHeart:Z5,IconHistory:Py,IconHome:l3,IconImport:J5,IconLaunch:_ve,IconList:YH,IconMessageBanned:ZKe,IconMessage:tqe,IconMoreVertical:oqe,IconMore:M0,IconPoweroff:uqe,IconRefresh:df,IconReply:mqe,IconSave:Fv,IconScan:xqe,IconSearch:Em,IconSelectAll:Tqe,IconSend:Dqe,IconSettings:Lf,IconShareAlt:Nqe,IconShareExternal:zqe,IconShareInternal:Gqe,IconStar:Q5,IconSync:Qqe,IconThumbDown:rYe,IconThumbUp:aYe,IconTranslate:dYe,IconUpload:_0,IconVoice:vYe,IconAlignCenter:bYe,IconAlignLeft:xYe,IconAlignRight:TYe,IconAttachment:DYe,IconBgColors:Sve,IconBold:NYe,IconBrush:zYe,IconCopy:q5,IconDelete:cc,IconEdit:UH,IconEraser:GYe,IconFilter:FH,IconFindReplace:XYe,IconFontColors:kve,IconFormula:rXe,IconH1:aXe,IconH2:dXe,IconH3:vXe,IconH4:bXe,IconH5:xXe,IconH6:TXe,IconH7:DXe,IconHighlight:OXe,IconItalic:FXe,IconLineHeight:UXe,IconLink:Dc,IconObliqueLine:upe,IconOrderedList:KXe,IconOriginalSize:y0e,IconPaste:ZXe,IconQuote:tZe,IconRedo:oZe,IconScissor:uZe,IconSortAscending:xve,IconSortDescending:Cve,IconSort:bZe,IconStrikethrough:xZe,IconUnderline:TZe,IconUndo:DZe,IconUnorderedList:OZe,IconZoomIn:v0e,IconZoomOut:p0e,IconMuteFill:FZe,IconPauseCircleFill:UZe,IconPlayArrowFill:uve,IconPlayCircleFill:KZe,IconSkipNextFill:ZZe,IconSkipPreviousFill:tJe,IconSoundFill:oJe,IconBackward:uJe,IconForward:hJe,IconFullscreenExit:XH,IconFullscreen:V5,IconLiveBroadcast:n_,IconMusic:xJe,IconMute:TJe,IconPauseCircle:DJe,IconPause:lve,IconPlayArrow:qa,IconPlayCircle:Ry,IconRecordStop:VJe,IconRecord:WJe,IconSkipNext:YJe,IconSkipPrevious:QJe,IconSound:rQe,IconBytedanceColor:aQe,IconLarkColor:dQe,IconTiktokColor:vQe,IconXiguaColor:bQe,IconFaceBookCircleFill:xQe,IconFacebookSquareFill:TQe,IconGoogleCircleFill:DQe,IconQqCircleFill:OQe,IconTwitterCircleFill:FQe,IconWeiboCircleFill:UQe,IconAlipayCircle:KQe,IconCodeSandbox:ZQe,IconCodepen:tet,IconFacebook:oet,IconGithub:wve,IconGitlab:het,IconGoogle:get,IconQqZone:ket,IconQq:Eet,IconTwitter:Let,IconWechat:Met,IconWechatpay:Net,IconWeibo:zet,IconChineseFill:Get,IconEnglishFill:Xet,IconFaceFrownFill:V0e,IconFaceMehFill:uV,IconFaceSmileFill:j0e,IconMoonFill:ett,IconPenFill:itt,IconSunFill:ltt,IconApps:Eve,IconArchive:vtt,IconBarChart:Tve,IconBook:eA,IconBookmark:wtt,IconBranch:Itt,IconBug:My,IconBulb:$tt,IconCalendarClock:jtt,IconCalendar:Z_,IconCamera:Htt,IconCloud:qtt,IconCommand:Jtt,IconCommon:nnt,IconCompass:snt,IconComputer:ZH,IconCopyright:Ave,IconDashboard:mnt,IconDesktop:G8,IconDice:xnt,IconDragDotVertical:z5,IconDragDot:C0e,IconDriveFile:Tnt,IconEar:Dnt,IconEmail:Ont,IconEmpty:sH,IconExperiment:Fnt,IconFileAudio:pve,IconFileImage:fve,IconFilePdf:dve,IconFileVideo:hve,IconFile:K5,IconFire:Ive,IconFolderAdd:Gnt,IconFolderDelete:Xnt,IconFolder:Lve,IconGift:rrt,IconIdcard:art,IconImageClose:P5,IconImage:tA,IconInteraction:prt,IconLanguage:Dve,IconLayers:Srt,IconLayout:wrt,IconLoading:Xa,IconLocation:Irt,IconLock:Rrt,IconLoop:Brt,IconMan:Vrt,IconMenu:Pve,IconMindMapping:qrt,IconMobile:Rve,IconMoon:tit,IconMosaic:oit,IconNav:uit,IconNotificationClose:hit,IconNotification:git,IconPalette:JH,IconPen:Cit,IconPhone:Ait,IconPrinter:Pit,IconPublic:$it,IconPushpin:jit,IconQrcode:Hit,IconRelation:qit,IconRobotAdd:Jit,IconRobot:not,IconSafe:bf,IconSchedule:uot,IconShake:hot,IconSkin:got,IconStamp:Sot,IconStorage:bV,IconSubscribeAdd:Aot,IconSubscribe:Pot,IconSubscribed:$ot,IconSun:jot,IconTag:Hot,IconTags:qot,IconThunderbolt:Jot,IconTool:nst,IconTrophy:sst,IconUnlock:cst,IconUserAdd:pst,IconUserGroup:yst,IconUser:kst,IconVideoCamera:Mve,IconWifi:Ist,IconWoman:Rst},Mst=(e,t)=>{for(const n of Object.keys(_V))e.use(_V[n],t)},Ost={..._V,install:Mst},_r=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},$st=ke({components:{},setup(){const e=fe(!1),t=()=>{try{const o=localStorage.getItem("appSettings");if(o)return JSON.parse(o).searchAggregation||!1}catch(o){console.error("获取聚搜状态失败:",o)}return!1},n=fe(t()),r=()=>{n.value=t()};return window.addEventListener("storage",r),setInterval(r,1e3),{showConfirmModal:e,searchAggregationEnabled:n}},methods:{goBack(){wt.info("前进按钮")},goForward(){wt.info("后退按钮")},refreshPage(){wt.info("刷新页面"),window.location.reload()},onSearch(e){wt.info(`搜索内容: ${e}`)},minimize(){wt.info("最小化窗口"),this.exitFullScreen()},maximize(){wt.info("最大化窗口"),this.enterFullScreen()},showCloseConfirm(){this.showConfirmModal=!0},hideCloseConfirm(){this.showConfirmModal=!1},confirmClose(){this.showConfirmModal=!1,wt.info("正在关闭应用...");try{window.opener||window.open("about:blank","_self"),window.close(),setTimeout(()=>{window.closed||(wt.warning("无法自动关闭窗口,请手动关闭浏览器标签页"),window.location.href="about:blank")},500)}catch(e){console.error("关闭窗口失败:",e),wt.error("关闭失败,请手动关闭浏览器标签页")}},enterFullScreen(){let e=document.documentElement;e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen():e.msRequestFullscreen&&e.msRequestFullscreen()},exitFullScreen(){document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitExitFullscreen?document.webkitExitFullscreen():document.msExitFullscreen&&document.msExitFullscreen()}}}),Bst={class:"header-left"},Nst={key:0,class:"header-center"},Fst={class:"header-right"},jst={class:"modal-header"},Vst={class:"modal-footer"};function zst(e,t,n,r,o,a){const s=Pe("icon-left"),l=Pe("a-button"),c=Pe("icon-right"),d=Pe("icon-refresh"),h=Pe("a-input-search"),p=Pe("icon-shrink"),m=Pe("icon-expand"),g=Pe("icon-close"),y=Pe("icon-exclamation-circle-fill"),S=Pe("a-layout-header");return H(),Je(S,{class:"header"},{default:de(()=>[L("div",Bst,[O(l,{shape:"circle",onClick:e.goBack},{icon:de(()=>[O(s)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.goForward},{icon:de(()=>[O(c)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.refreshPage},{icon:de(()=>[O(d)]),_:1},8,["onClick"])]),e.searchAggregationEnabled?(H(),J("div",Nst,[O(h,{placeholder:"搜索内容...","enter-button":"搜索",onSearch:e.onSearch},null,8,["onSearch"])])):Me("",!0),L("div",Fst,[O(l,{shape:"circle",onClick:e.minimize},{icon:de(()=>[O(p)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.maximize},{icon:de(()=>[O(m)]),_:1},8,["onClick"]),O(l,{shape:"circle",onClick:e.showCloseConfirm},{icon:de(()=>[O(g)]),_:1},8,["onClick"])]),e.showConfirmModal?(H(),J("div",{key:1,class:"confirm-modal-overlay",onClick:t[1]||(t[1]=(...k)=>e.hideCloseConfirm&&e.hideCloseConfirm(...k))},[L("div",{class:"confirm-modal",onClick:t[0]||(t[0]=us(()=>{},["stop"]))},[L("div",jst,[O(y,{class:"warning-icon"}),t[2]||(t[2]=L("h3",{class:"modal-title"},"确认关闭",-1))]),t[5]||(t[5]=L("div",{class:"modal-content"},[L("p",{class:"modal-message"},"你确认要关闭当前应用吗?"),L("p",{class:"modal-submessage"},"关闭后将退出应用程序")],-1)),L("div",Vst,[O(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:de(()=>[...t[3]||(t[3]=[We(" 取消 ",-1)])]),_:1},8,["onClick"]),O(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:de(()=>[...t[4]||(t[4]=[We(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):Me("",!0)]),_:1})}const Ust=_r($st,[["render",zst],["__scopeId","data-v-98f3d1c0"]]);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Ove;const nA=e=>Ove=e,$ve=Symbol();function SV(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var lb;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(lb||(lb={}));function Hst(){const e=TU(!0),t=e.run(()=>fe({}));let n=[],r=[];const o=c5({install(a){nA(o),o._a=a,a.provide($ve,o),a.config.globalProperties.$pinia=o,r.forEach(s=>n.push(s)),r=[]},use(a){return this._a?n.push(a):r.push(a),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return o}const Bve=()=>{};function Gre(e,t,n,r=Bve){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&i5()&&AU(o),o}function r1(e,...t){e.slice().forEach(n=>{n(...t)})}const Wst=e=>e(),Kre=Symbol(),oN=Symbol();function kV(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],o=e[n];SV(o)&&SV(r)&&e.hasOwnProperty(n)&&!Mo(r)&&!gf(r)?e[n]=kV(o,r):e[n]=r}return e}const Gst=Symbol();function Kst(e){return!SV(e)||!e.hasOwnProperty(Gst)}const{assign:jp}=Object;function qst(e){return!!(Mo(e)&&e.effect)}function Yst(e,t,n,r){const{state:o,actions:a,getters:s}=t,l=n.state.value[e];let c;function d(){l||(n.state.value[e]=o?o():{});const h=nn(n.state.value[e]);return jp(h,a,Object.keys(s||{}).reduce((p,m)=>(p[m]=c5(F(()=>{nA(n);const g=n._s.get(e);return s[m].call(g,g)})),p),{}))}return c=Nve(e,d,t,n,r,!0),c}function Nve(e,t,n={},r,o,a){let s;const l=jp({actions:{}},n),c={deep:!0};let d,h,p=[],m=[],g;const y=r.state.value[e];!a&&!y&&(r.state.value[e]={}),fe({});let S;function k(M){let $;d=h=!1,typeof M=="function"?(M(r.state.value[e]),$={type:lb.patchFunction,storeId:e,events:g}):(kV(r.state.value[e],M),$={type:lb.patchObject,payload:M,storeId:e,events:g});const I=S=Symbol();_n().then(()=>{S===I&&(d=!0)}),h=!0,r1(p,$,r.state.value[e])}const C=a?function(){const{state:$}=n,I=$?$():{};this.$patch(N=>{jp(N,I)})}:Bve;function x(){s.stop(),p=[],m=[],r._s.delete(e)}const E=(M,$="")=>{if(Kre in M)return M[oN]=$,M;const I=function(){nA(r);const N=Array.from(arguments),j=[],U=[];function z(ie){j.push(ie)}function G(ie){U.push(ie)}r1(m,{args:N,name:I[oN],store:T,after:z,onError:G});let X;try{X=M.apply(this&&this.$id===e?this:T,N)}catch(ie){throw r1(U,ie),ie}return X instanceof Promise?X.then(ie=>(r1(j,ie),ie)).catch(ie=>(r1(U,ie),Promise.reject(ie))):(r1(j,X),X)};return I[Kre]=!0,I[oN]=$,I},_={_p:r,$id:e,$onAction:Gre.bind(null,m),$patch:k,$reset:C,$subscribe(M,$={}){const I=Gre(p,M,$.detached,()=>N()),N=s.run(()=>Pt(()=>r.state.value[e],j=>{($.flush==="sync"?h:d)&&M({storeId:e,type:lb.direct,events:g},j)},jp({},c,$)));return I},$dispose:x},T=Yt(_);r._s.set(e,T);const P=(r._a&&r._a.runWithContext||Wst)(()=>r._e.run(()=>(s=TU()).run(()=>t({action:E}))));for(const M in P){const $=P[M];if(Mo($)&&!qst($)||gf($))a||(y&&Kst($)&&(Mo($)?$.value=y[M]:kV($,y[M])),r.state.value[e][M]=$);else if(typeof $=="function"){const I=E($,M);P[M]=I,l.actions[M]=$}}return jp(T,P),jp(Mi(T),P),Object.defineProperty(T,"$state",{get:()=>r.state.value[e],set:M=>{k($=>{jp($,M)})}}),r._p.forEach(M=>{jp(T,s.run(()=>M({store:T,app:r._a,pinia:r,options:l})))}),y&&a&&n.hydrate&&n.hydrate(T.$state,y),d=!0,h=!0,T}/*! #__NO_SIDE_EFFECTS__ */function Xm(e,t,n){let r,o;const a=typeof t=="function";typeof e=="string"?(r=e,o=a?n:t):(o=e,r=e.id);function s(l,c){const d=Cfe();return l=l||(d?Pn($ve,null):null),l&&nA(l),l=Ove,l._s.has(r)||(a?Nve(r,t,o,l):Yst(r,o,l)),l._s.get(r)}return s.$id=r,s}const eS=Xm("pagination",{state:()=>({statsText:"",isVisible:!1,currentRoute:""}),actions:{updateStats(e){this.statsText=e,this.isVisible=!!e},clearStats(){this.statsText="",this.isVisible=!1},setCurrentRoute(e){this.currentRoute=e,e!=="/video"&&this.clearStats()}},getters:{shouldShow:e=>e.isVisible&&e.currentRoute==="/video"}}),Xst={class:"footer-content"},Zst={key:0,class:"pagination-stats"},Jst={class:"stats-text"},Qst={key:1,class:"default-footer"},eat={class:"footer-info"},tat={class:"copyright-section"},nat={class:"copyright-text"},rat={class:"project-section"},iat={class:"license-section"},oat={__name:"Footer",setup(e){const t=eS(),n=F(()=>new Date().getFullYear()),r=()=>{wt.success("正在跳转到项目主页...")};return(o,a)=>(H(),J("div",Xst,[et(t).shouldShow?(H(),J("div",Zst,[L("span",Jst,Ve(et(t).statsText),1)])):(H(),J("div",Qst,[L("div",eat,[L("div",tat,[O(et(Ave),{class:"footer-icon"}),L("span",nat,Ve(n.value)+" DrPlayer",1)]),a[1]||(a[1]=L("div",{class:"separator"},"|",-1)),L("div",rat,[O(et(wve),{class:"footer-icon"}),L("a",{href:"https://github.com/hjdhnx/DrPlayer",target:"_blank",class:"project-link",onClick:r}," GitHub ")]),a[2]||(a[2]=L("div",{class:"separator"},"|",-1)),L("div",iat,[O(et(bf),{class:"footer-icon"}),a[0]||(a[0]=L("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},sat=_r(oat,[["__scopeId","data-v-3b2cc39c"]]),aat="/apps/drplayer/assets/logo-5LtmOeIe.png";window._iconfont_svg_string_5032989='',(e=>{var t=(n=(n=document.getElementsByTagName("script"))[n.length-1]).getAttribute("data-injectcss"),n=n.getAttribute("data-disable-injectsvg");if(!n){var r,o,a,s,l,c=function(p,m){m.parentNode.insertBefore(p,m)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(p){console&&console.log(p)}}r=function(){var p,m=document.createElement("div");m.innerHTML=e._iconfont_svg_string_5032989,(m=m.getElementsByTagName("svg")[0])&&(m.setAttribute("aria-hidden","true"),m.style.position="absolute",m.style.width=0,m.style.height=0,m.style.overflow="hidden",m=m,(p=document.body).firstChild?c(m,p.firstChild):p.appendChild(m))},document.addEventListener?~["complete","loaded","interactive"].indexOf(document.readyState)?setTimeout(r,0):(o=function(){document.removeEventListener("DOMContentLoaded",o,!1),r()},document.addEventListener("DOMContentLoaded",o,!1)):document.attachEvent&&(a=r,s=e.document,l=!1,h(),s.onreadystatechange=function(){s.readyState=="complete"&&(s.onreadystatechange=null,d())})}function d(){l||(l=!0,a())}function h(){try{s.documentElement.doScroll("left")}catch{return void setTimeout(h,50)}d()}})(window);const lat=ke({components:{IconCaretRight:bH,IconCaretLeft:_H,IconHome:l3,IconCalendar:Z_,Header:Ust,Footer:sat},setup(){const e=_5(),t=eS(),n=fe(!1),r=fe([{id:1,name:"主页",icon:"icon-zhuye",route:"/"},{id:2,name:"点播",icon:"icon-dianbo",route:"/video"},{id:4,name:"直播",icon:"icon-shipinzhibo",route:"/live"},{id:5,name:"书画柜",icon:"icon-shugui",route:"/book-gallery"},{id:6,name:"解析",icon:"icon-jiexi",route:"/parser"},{id:7,name:"收藏",icon:"icon-shoucang",route:"/collection"},{id:8,name:"历史",icon:"icon-lishi",route:"/history"},{id:10,name:"测试",icon:"icon-ceshi",route:"/action-test"},{id:9,name:"设置",icon:"icon-shezhi",route:"/settings"}]),o=fe(aat),a=fe("欢迎使用DrPlayer");return Pt(()=>e.path,c=>{t.setCurrentRoute(c)},{immediate:!0}),{siderCollapsed:n,menuItems:r,logoSrc:o,logoDesc:a,onClickMenuItem:c=>{let d=r.value.find(p=>p.id===c).name,h=`You select ${c},${d}`;console.log(h)},onSiderCollapse:c=>{n.value=c,console.log("侧边栏折叠状态:",c)}}}}),uat={class:"app-container"},cat={class:"fixed-header"},dat={class:"logo"},fat={style:{width:"20px",height:"20px","margin-right":"8px"}},hat=["href"],pat={class:"content-wrapper"},vat={class:"fixed-footer"};function mat(e,t,n,r,o,a){const s=Pe("Header"),l=Pe("a-image"),c=Pe("a-popover"),d=Pe("a-menu-item"),h=Pe("router-link"),p=Pe("a-menu"),m=Pe("IconCaretRight"),g=Pe("IconCaretLeft"),y=Pe("a-layout-sider"),S=Pe("Footer"),k=Pe("a-layout");return H(),J("div",uat,[L("div",cat,[O(s)]),O(k,{class:"layout-demo"},{default:de(()=>[O(y,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:de(({collapsed:C})=>[C?(H(),Je(m,{key:0})):(H(),Je(g,{key:1}))]),default:de(()=>[L("div",dat,[O(c,{title:"道长: 您好!"},{content:de(()=>[L("p",null,Ve(e.logoDesc),1)]),default:de(()=>[O(l,{width:"100%",src:e.logoSrc,alt:e.logoDesc,preview:!1,onClick:t[0]||(t[0]=()=>this.$message.success("欢迎使用Hipy定制版壳子"))},null,8,["src","alt"])]),_:1})]),O(p,{"default-open-keys":["1"],"default-selected-keys":["1"],style:{width:"100%"},onMenuItemClick:e.onClickMenuItem},{default:de(()=>[(H(!0),J(Ft,null,pn(e.menuItems,(C,x)=>(H(),Je(h,{key:x,to:C.route,class:"menu-item"},{default:de(()=>[(H(),Je(d,{key:C.id},{default:de(()=>[(H(),J("svg",fat,[L("use",{href:`#${C.icon}`},null,8,hat)])),We(" "+Ve(C.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),L("div",{class:le(["main-content",{"sider-collapsed":e.siderCollapsed}])},[L("div",pat,[dt(e.$slots,"default",{},void 0,!0)]),L("div",vat,[O(S)])],2)]),_:3})])}const gat=_r(lat,[["render",mat],["__scopeId","data-v-7cb7a4e5"]]),ub=fe({show:!1,message:"",type:"success",duration:3e3});function ir(e,t="success",n=3e3){ub.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{yat()},n)}function yat(){ub.value.show=!1}const bat={__name:"GlobalToast",setup(e){return(t,n)=>(H(),Je(Um,{to:"body"},[O(xs,{name:"action-toast"},{default:de(()=>[et(ub).show?(H(),J("div",{key:0,class:le(["action-toast",et(ub).type])},Ve(et(ub).message),3)):Me("",!0)]),_:1})]))}},_at=_r(bat,[["__scopeId","data-v-0de7c39c"]]),rA=Xm("visited",{state:()=>({lastClickedVideoId:null,lastClickedVideoName:null}),getters:{isLastClicked:e=>t=>e.lastClickedVideoId===t},actions:{setLastClicked(e,t){e&&(this.lastClickedVideoId=e,this.lastClickedVideoName=t,this.saveToStorage())},clear(){this.lastClickedVideoId=null,this.lastClickedVideoName=null,localStorage.removeItem("last-clicked-video")},saveToStorage(){try{const e={videoId:this.lastClickedVideoId,videoName:this.lastClickedVideoName};localStorage.setItem("last-clicked-video",JSON.stringify(e))}catch(e){console.warn("保存最后点击视频失败:",e)}},loadFromStorage(){try{const e=localStorage.getItem("last-clicked-video");if(e){const t=JSON.parse(e);this.lastClickedVideoId=t.videoId,this.lastClickedVideoName=t.videoName}}catch(e){console.warn("加载最后点击视频失败:",e),this.clear()}}}}),Sat={name:"App",components:{Layout:gat,GlobalToast:_at},setup(){const e=rA();return vn(()=>{e.loadFromStorage()}),{}}};function kat(e,t,n,r,o,a){const s=Pe("router-view"),l=Pe("Layout"),c=Pe("GlobalToast");return H(),J(Ft,null,[O(l,null,{default:de(()=>[O(s)]),_:1}),O(c)],64)}const xat=_r(Sat,[["render",kat]]);/*! ***************************************************************************** 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 xV=function(e,t){return xV=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])},xV(e,t)};function Nn(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");xV(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Cat=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),wat=(function(){function e(){this.browser=new Cat,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})(),Vr=new wat;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(Vr.wxa=!0,Vr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?Vr.worker=!0:!Vr.hasGlobalWindow||"Deno"in window?(Vr.node=!0,Vr.svgSupported=!0):Eat(navigator.userAgent,Vr);function Eat(e,t){var n=t.browser,r=e.match(/Firefox\/([\d.]+)/),o=e.match(/MSIE\s([\d.]+)/)||e.match(/Trident\/.+?rv:(([\d.]+))/),a=e.match(/Edge?\/([\d.]+)/),s=/micromessenger/i.test(e);r&&(n.firefox=!0,n.version=r[1]),o&&(n.ie=!0,n.version=o[1]),a&&(n.edge=!0,n.version=a[1],n.newEdge=+a[1].split(".")[0]>18),s&&(n.weChat=!0),t.svgSupported=typeof SVGRect<"u",t.touchEventsSupported="ontouchstart"in window&&!n.ie&&!n.edge,t.pointerEventsSupported="onpointerdown"in window&&(n.edge||n.ie&&+n.version>=11),t.domSupported=typeof document<"u";var l=document.documentElement.style;t.transform3dSupported=(n.ie&&"transition"in l||n.edge||"WebKitCSSMatrix"in window&&"m11"in new WebKitCSSMatrix||"MozPerspective"in l)&&!("OTransition"in l),t.transformSupported=t.transform3dSupported||n.ie&&+n.version>=9}var QH=12,Tat="sans-serif",Im=QH+"px "+Tat,Aat=20,Iat=100,Lat="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Dat(e){var t={};if(typeof JSON>"u")return t;for(var n=0;n=0)l=s*n.length;else for(var c=0;c>1)%2;l.cssText=["position: absolute","visibility: hidden","padding: 0","margin: 0","border-width: 0","user-select: none","width:0","height:0",r[c]+":0",o[d]+":0",r[1-c]+":auto",o[1-d]+":auto",""].join("!important;"),e.appendChild(s),n.push(s)}return n}function tlt(e,t,n){for(var r=n?"invTrans":"trans",o=t[r],a=t.srcCoords,s=[],l=[],c=!0,d=0;d<4;d++){var h=e[d].getBoundingClientRect(),p=2*d,m=h.left,g=h.top;s.push(m,g),c=c&&a&&m===a[p]&&g===a[p+1],l.push(e[d].offsetLeft,e[d].offsetTop)}return c&&o?o:(t.srcCoords=s,t[r]=n?Zre(l,s):Zre(s,l))}function Gve(e){return e.nodeName.toUpperCase()==="CANVAS"}var nlt=/([&<>"'])/g,rlt={"&":"&","<":"<",">":">",'"':""","'":"'"};function gu(e){return e==null?"":(e+"").replace(nlt,function(t,n){return rlt[n]})}var ilt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,uN=[],olt=Vr.browser.firefox&&+Vr.browser.version.split(".")[0]<39;function LV(e,t,n,r){return n=n||{},r?Qre(e,t,n):olt&&t.layerX!=null&&t.layerX!==t.offsetX?(n.zrX=t.layerX,n.zrY=t.layerY):t.offsetX!=null?(n.zrX=t.offsetX,n.zrY=t.offsetY):Qre(e,t,n),n}function Qre(e,t,n){if(Vr.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(Gve(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=o-a.top;return}else if(IV(uN,e,r,o)){n.zrX=uN[0],n.zrY=uN[1];return}}n.zrX=n.zrY=0}function iW(e){return e||window.event}function Ac(e,t,n){if(t=iW(t),t.zrX!=null)return t;var r=t.type,o=r&&r.indexOf("touch")>=0;if(o){var s=r!=="touchend"?t.targetTouches[0]:t.changedTouches[0];s&&LV(e,s,t,n)}else{LV(e,t,t,n);var a=slt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&ilt.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function slt(e){var t=e.wheelDelta;if(t)return t;var n=e.deltaX,r=e.deltaY;if(n==null||r==null)return t;var o=Math.abs(r!==0?r:n),a=r>0?-1:r<0?1:n>0?-1:1;return 3*o*a}function alt(e,t,n,r){e.addEventListener(t,n,r)}function llt(e,t,n,r){e.removeEventListener(t,n,r)}var Kve=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},ult=(function(){function e(){this._track=[]}return e.prototype.recognize=function(t,n,r){return this._doTrack(t,n,r),this._recognize(t)},e.prototype.clear=function(){return this._track.length=0,this},e.prototype._doTrack=function(t,n,r){var o=t.touches;if(o){for(var a={points:[],touches:[],target:n,event:t},s=0,l=o.length;s1&&r&&r.length>1){var a=eie(r)/eie(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=clt(r);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function sy(){return[1,0,0,1,0,0]}function oW(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function dlt(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 ay(e,t,n){var r=t[0]*n[0]+t[2]*n[1],o=t[1]*n[0]+t[3]*n[1],a=t[0]*n[2]+t[2]*n[3],s=t[1]*n[2]+t[3]*n[3],l=t[0]*n[4]+t[2]*n[5]+t[4],c=t[1]*n[4]+t[3]*n[5]+t[5];return e[0]=r,e[1]=o,e[2]=a,e[3]=s,e[4]=l,e[5]=c,e}function DV(e,t,n){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e[4]=t[4]+n[0],e[5]=t[5]+n[1],e}function sW(e,t,n,r){r===void 0&&(r=[0,0]);var o=t[0],a=t[2],s=t[4],l=t[1],c=t[3],d=t[5],h=Math.sin(n),p=Math.cos(n);return e[0]=o*p+l*h,e[1]=-o*h+l*p,e[2]=a*p+c*h,e[3]=-a*h+p*c,e[4]=p*(s-r[0])+h*(d-r[1])+r[0],e[5]=p*(d-r[1])-h*(s-r[0])+r[1],e}function flt(e,t,n){var r=n[0],o=n[1];return e[0]=t[0]*r,e[1]=t[1]*o,e[2]=t[2]*r,e[3]=t[3]*o,e[4]=t[4]*r,e[5]=t[5]*o,e}function aW(e,t){var n=t[0],r=t[2],o=t[4],a=t[1],s=t[3],l=t[5],c=n*s-a*r;return c?(c=1/c,e[0]=s*c,e[1]=-a*c,e[2]=-r*c,e[3]=n*c,e[4]=(r*l-s*o)*c,e[5]=(a*o-n*l)*c,e):null}var Hr=(function(){function e(t,n){this.x=t||0,this.y=n||0}return e.prototype.copy=function(t){return this.x=t.x,this.y=t.y,this},e.prototype.clone=function(){return new e(this.x,this.y)},e.prototype.set=function(t,n){return this.x=t,this.y=n,this},e.prototype.equal=function(t){return t.x===this.x&&t.y===this.y},e.prototype.add=function(t){return this.x+=t.x,this.y+=t.y,this},e.prototype.scale=function(t){this.x*=t,this.y*=t},e.prototype.scaleAndAdd=function(t,n){this.x+=t.x*n,this.y+=t.y*n},e.prototype.sub=function(t){return this.x-=t.x,this.y-=t.y,this},e.prototype.dot=function(t){return this.x*t.x+this.y*t.y},e.prototype.len=function(){return Math.sqrt(this.x*this.x+this.y*this.y)},e.prototype.lenSquare=function(){return this.x*this.x+this.y*this.y},e.prototype.normalize=function(){var t=this.len();return this.x/=t,this.y/=t,this},e.prototype.distance=function(t){var n=this.x-t.x,r=this.y-t.y;return Math.sqrt(n*n+r*r)},e.prototype.distanceSquare=function(t){var n=this.x-t.x,r=this.y-t.y;return n*n+r*r},e.prototype.negate=function(){return this.x=-this.x,this.y=-this.y,this},e.prototype.transform=function(t){if(t){var n=this.x,r=this.y;return this.x=t[0]*n+t[2]*r+t[4],this.y=t[1]*n+t[3]*r+t[5],this}},e.prototype.toArray=function(t){return t[0]=this.x,t[1]=this.y,t},e.prototype.fromArray=function(t){this.x=t[0],this.y=t[1]},e.set=function(t,n,r){t.x=n,t.y=r},e.copy=function(t,n){t.x=n.x,t.y=n.y},e.len=function(t){return Math.sqrt(t.x*t.x+t.y*t.y)},e.lenSquare=function(t){return t.x*t.x+t.y*t.y},e.dot=function(t,n){return t.x*n.x+t.y*n.y},e.add=function(t,n,r){t.x=n.x+r.x,t.y=n.y+r.y},e.sub=function(t,n,r){t.x=n.x-r.x,t.y=n.y-r.y},e.scale=function(t,n,r){t.x=n.x*r,t.y=n.y*r},e.scaleAndAdd=function(t,n,r,o){t.x=n.x+r.x*o,t.y=n.y+r.y*o},e.lerp=function(t,n,r,o){var a=1-o;t.x=a*n.x+o*r.x,t.y=a*n.y+o*r.y},e})(),_x=Math.min,Sx=Math.max,fv=new Hr,hv=new Hr,pv=new Hr,vv=new Hr,G2=new Hr,K2=new Hr,so=(function(){function e(t,n,r,o){r<0&&(t=t+r,r=-r),o<0&&(n=n+o,o=-o),this.x=t,this.y=n,this.width=r,this.height=o}return e.prototype.union=function(t){var n=_x(t.x,this.x),r=_x(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Sx(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Sx(t.y+t.height,this.y+this.height)-r:this.height=t.height,this.x=n,this.y=r},e.prototype.applyTransform=function(t){e.applyTransform(this,this,t)},e.prototype.calculateTransform=function(t){var n=this,r=t.width/n.width,o=t.height/n.height,a=sy();return DV(a,a,[-n.x,-n.y]),flt(a,a,[r,o]),DV(a,a,[t.x,t.y]),a},e.prototype.intersect=function(t,n){if(!t)return!1;t instanceof e||(t=e.create(t));var r=this,o=r.x,a=r.x+r.width,s=r.y,l=r.y+r.height,c=t.x,d=t.x+t.width,h=t.y,p=t.y+t.height,m=!(ay&&(y=E,Sy&&(y=_,C=r.x&&t<=r.x+r.width&&n>=r.y&&n<=r.y+r.height},e.prototype.clone=function(){return new e(this.x,this.y,this.width,this.height)},e.prototype.copy=function(t){e.copy(this,t)},e.prototype.plain=function(){return{x:this.x,y:this.y,width:this.width,height:this.height}},e.prototype.isFinite=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},e.prototype.isZero=function(){return this.width===0||this.height===0},e.create=function(t){return new e(t.x,t.y,t.width,t.height)},e.copy=function(t,n){t.x=n.x,t.y=n.y,t.width=n.width,t.height=n.height},e.applyTransform=function(t,n,r){if(!r){t!==n&&e.copy(t,n);return}if(r[1]<1e-5&&r[1]>-1e-5&&r[2]<1e-5&&r[2]>-1e-5){var o=r[0],a=r[3],s=r[4],l=r[5];t.x=n.x*o+s,t.y=n.y*a+l,t.width=n.width*o,t.height=n.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}fv.x=pv.x=n.x,fv.y=vv.y=n.y,hv.x=vv.x=n.x+n.width,hv.y=pv.y=n.y+n.height,fv.transform(r),vv.transform(r),hv.transform(r),pv.transform(r),t.x=_x(fv.x,hv.x,pv.x,vv.x),t.y=_x(fv.y,hv.y,pv.y,vv.y);var c=Sx(fv.x,hv.x,pv.x,vv.x),d=Sx(fv.y,hv.y,pv.y,vv.y);t.width=c-t.x,t.height=d-t.y},e})(),qve="silent";function hlt(e,t,n){return{type:e,event:n,target:t.target,topTarget:t.topTarget,cancelBubble:!1,offsetX:n.zrX,offsetY:n.zrY,gestureEvent:n.gestureEvent,pinchX:n.pinchX,pinchY:n.pinchY,pinchScale:n.pinchScale,wheelDelta:n.zrDelta,zrByTouch:n.zrByTouch,which:n.which,stop:plt}}function plt(){Kve(this.event)}var vlt=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.handler=null,n}return t.prototype.dispose=function(){},t.prototype.setCursor=function(){},t})(Pf),q2=(function(){function e(t,n){this.x=t,this.y=n}return e})(),mlt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],dN=new so(0,0,0,0),Yve=(function(e){Nn(t,e);function t(n,r,o,a,s){var l=e.call(this)||this;return l._hovered=new q2(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=s,o=o||new vlt,l.proxy=null,l.setHandlerProxy(o),l._draggingMgr=new Zat(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(Et(mlt,function(r){n.on&&n.on(r,this[r],this)},this),n.handler=this),this.proxy=n},t.prototype.mousemove=function(n){var r=n.zrX,o=n.zrY,a=Xve(this,r,o),s=this._hovered,l=s.target;l&&!l.__zr&&(s=this.findHover(s.x,s.y),l=s.target);var c=this._hovered=a?new q2(r,o):this.findHover(r,o),d=c.target,h=this.proxy;h.setCursor&&h.setCursor(d?d.cursor:"default"),l&&d!==l&&this.dispatchToElement(s,"mouseout",n),this.dispatchToElement(c,"mousemove",n),d&&d!==l&&this.dispatchToElement(c,"mouseover",n)},t.prototype.mouseout=function(n){var r=n.zrEventControl;r!=="only_globalout"&&this.dispatchToElement(this._hovered,"mouseout",n),r!=="no_globalout"&&this.trigger("globalout",{type:"globalout",event:n})},t.prototype.resize=function(){this._hovered=new q2(0,0)},t.prototype.dispatch=function(n,r){var o=this[n];o&&o.call(this,r)},t.prototype.dispose=function(){this.proxy.dispose(),this.storage=null,this.proxy=null,this.painter=null},t.prototype.setCursorStyle=function(n){var r=this.proxy;r.setCursor&&r.setCursor(n)},t.prototype.dispatchToElement=function(n,r,o){n=n||{};var a=n.target;if(!(a&&a.silent)){for(var s="on"+r,l=hlt(r,n,o);a&&(a[s]&&(l.cancelBubble=!!a[s].call(a,l)),a.trigger(r,l),a=a.__hostTarget?a.__hostTarget:a.parent,!l.cancelBubble););l.cancelBubble||(this.trigger(r,l),this.painter&&this.painter.eachOtherLayer&&this.painter.eachOtherLayer(function(c){typeof c[s]=="function"&&c[s].call(c,l),c.trigger&&c.trigger(r,l)}))}},t.prototype.findHover=function(n,r,o){var a=this.storage.getDisplayList(),s=new q2(n,r);if(tie(a,s,n,r,o),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,d=c/2,h=new so(n-d,r-d,c,c),p=a.length-1;p>=0;p--){var m=a[p];m!==o&&!m.ignore&&!m.ignoreCoarsePointer&&(!m.parent||!m.parent.ignoreCoarsePointer)&&(dN.copy(m.getBoundingRect()),m.transform&&dN.applyTransform(m.transform),dN.intersect(h)&&l.push(m))}if(l.length)for(var g=4,y=Math.PI/12,S=Math.PI*2,k=0;k4)return;this._downPoint=null}this.dispatchToElement(a,e,t)}});function glt(e,t,n){if(e[e.rectHover?"rectContain":"contain"](t,n)){for(var r=e,o=void 0,a=!1;r;){if(r.ignoreClip&&(a=!0),!a){var s=r.getClipPath();if(s&&!s.contain(t,n))return!1}r.silent&&(o=!0);var l=r.__hostTarget;r=l||r.parent}return o?qve:!0}return!1}function tie(e,t,n,r,o){for(var a=e.length-1;a>=0;a--){var s=e[a],l=void 0;if(s!==o&&!s.ignore&&(l=glt(s,n,r))&&(!t.topTarget&&(t.topTarget=s),l!==qve)){t.target=s;break}}}function Xve(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var Zve=32,Y2=7;function ylt(e){for(var t=0;e>=Zve;)t|=e&1,e>>=1;return e+t}function nie(e,t,n,r){var o=t+1;if(o===n)return 1;if(r(e[o++],e[t])<0){for(;o=0;)o++;return o-t}function blt(e,t,n){for(n--;t>>1,o(a,e[c])<0?l=c:s=c+1;var d=r-s;switch(d){case 3:e[s+3]=e[s+2];case 2:e[s+2]=e[s+1];case 1:e[s+1]=e[s];break;default:for(;d>0;)e[s+d]=e[s+d-1],d--}e[s]=a}}function fN(e,t,n,r,o,a){var s=0,l=0,c=1;if(a(e,t[n+o])>0){for(l=r-o;c0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=o,c+=o}else{for(l=o+1;cl&&(c=l);var d=s;s=o-c,c=o-d}for(s++;s>>1);a(e,t[n+h])>0?s=h+1:c=h}return c}function hN(e,t,n,r,o,a){var s=0,l=0,c=1;if(a(e,t[n+o])<0){for(l=o+1;cl&&(c=l);var d=s;s=o-c,c=o-d}else{for(l=r-o;c=0;)s=c,c=(c<<1)+1,c<=0&&(c=l);c>l&&(c=l),s+=o,c+=o}for(s++;s>>1);a(e,t[n+h])<0?c=h:s=h+1}return c}function _lt(e,t){var n=Y2,r,o,a=0,s=[];r=[],o=[];function l(g,y){r[a]=g,o[a]=y,a+=1}function c(){for(;a>1;){var g=a-2;if(g>=1&&o[g-1]<=o[g]+o[g+1]||g>=2&&o[g-2]<=o[g]+o[g-1])o[g-1]o[g+1])break;h(g)}}function d(){for(;a>1;){var g=a-2;g>0&&o[g-1]=Y2||P>=Y2);if(M)break;T<0&&(T=0),T+=2}if(n=T,n<1&&(n=1),y===1){for(C=0;C=0;C--)e[D+C]=e[T+C];e[_]=s[E];return}for(var P=n;;){var M=0,$=0,I=!1;do if(t(s[E],e[x])<0){if(e[_--]=e[x--],M++,$=0,--y===0){I=!0;break}}else if(e[_--]=s[E--],$++,M=0,--k===1){I=!0;break}while((M|$)=0;C--)e[D+C]=e[T+C];if(y===0){I=!0;break}}if(e[_--]=s[E--],--k===1){I=!0;break}if($=k-fN(e[x],s,0,k,k-1,t),$!==0){for(_-=$,E-=$,k-=$,D=_+1,T=E+1,C=0;C<$;C++)e[D+C]=s[T+C];if(k<=1){I=!0;break}}if(e[_--]=e[x--],--y===0){I=!0;break}P--}while(M>=Y2||$>=Y2);if(I)break;P<0&&(P=0),P+=2}if(n=P,n<1&&(n=1),k===1){for(_-=y,x-=y,D=_+1,T=x+1,C=y-1;C>=0;C--)e[D+C]=e[T+C];e[_]=s[E]}else{if(k===0)throw new Error;for(T=_-(k-1),C=0;Cl&&(c=l),rie(e,n,n+c,n+a,t),a=c}s.pushRun(n,a),s.mergeRuns(),o-=a,n+=a}while(o!==0);s.forceMergeRuns()}}var rc=1,T4=2,P1=4,iie=!1;function pN(){iie||(iie=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function oie(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var Slt=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=oie}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(pN(),h.z=0),isNaN(h.z2)&&(pN(),h.z2=0),isNaN(h.zlevel)&&(pN(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,n,r);var m=t.getTextGuideLine();m&&this._updateAndAddDisplayable(m,n,r);var g=t.getTextContent();g&&this._updateAndAddDisplayable(g,n,r)}},e.prototype.addRoot=function(t){t.__zr&&t.__zr.storage===this||this._roots.push(t)},e.prototype.delRoot=function(t){if(t instanceof Array){for(var n=0,r=t.length;n=0&&this._roots.splice(o,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})(),q8;q8=Vr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var fb={linear:function(e){return e},quadraticIn:function(e){return e*e},quadraticOut:function(e){return e*(2-e)},quadraticInOut:function(e){return(e*=2)<1?.5*e*e:-.5*(--e*(e-2)-1)},cubicIn:function(e){return e*e*e},cubicOut:function(e){return--e*e*e+1},cubicInOut:function(e){return(e*=2)<1?.5*e*e*e:.5*((e-=2)*e*e+2)},quarticIn:function(e){return e*e*e*e},quarticOut:function(e){return 1- --e*e*e*e},quarticInOut:function(e){return(e*=2)<1?.5*e*e*e*e:-.5*((e-=2)*e*e*e-2)},quinticIn:function(e){return e*e*e*e*e},quinticOut:function(e){return--e*e*e*e*e+1},quinticInOut:function(e){return(e*=2)<1?.5*e*e*e*e*e:.5*((e-=2)*e*e*e*e+2)},sinusoidalIn:function(e){return 1-Math.cos(e*Math.PI/2)},sinusoidalOut:function(e){return Math.sin(e*Math.PI/2)},sinusoidalInOut:function(e){return .5*(1-Math.cos(Math.PI*e))},exponentialIn:function(e){return e===0?0:Math.pow(1024,e-1)},exponentialOut:function(e){return e===1?1:1-Math.pow(2,-10*e)},exponentialInOut:function(e){return e===0?0:e===1?1:(e*=2)<1?.5*Math.pow(1024,e-1):.5*(-Math.pow(2,-10*(e-1))+2)},circularIn:function(e){return 1-Math.sqrt(1-e*e)},circularOut:function(e){return Math.sqrt(1- --e*e)},circularInOut:function(e){return(e*=2)<1?-.5*(Math.sqrt(1-e*e)-1):.5*(Math.sqrt(1-(e-=2)*e)+1)},elasticIn:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),-(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)))},elasticOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),n*Math.pow(2,-10*e)*Math.sin((e-t)*(2*Math.PI)/r)+1)},elasticInOut:function(e){var t,n=.1,r=.4;return e===0?0:e===1?1:(!n||n<1?(n=1,t=r/4):t=r*Math.asin(1/n)/(2*Math.PI),(e*=2)<1?-.5*(n*Math.pow(2,10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)):n*Math.pow(2,-10*(e-=1))*Math.sin((e-t)*(2*Math.PI)/r)*.5+1)},backIn:function(e){var t=1.70158;return e*e*((t+1)*e-t)},backOut:function(e){var t=1.70158;return--e*e*((t+1)*e+t)+1},backInOut:function(e){var t=2.5949095;return(e*=2)<1?.5*(e*e*((t+1)*e-t)):.5*((e-=2)*e*((t+1)*e+t)+2)},bounceIn:function(e){return 1-fb.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?fb.bounceIn(e*2)*.5:fb.bounceOut(e*2-1)*.5+.5}},kx=Math.pow,c0=Math.sqrt,Y8=1e-8,Jve=1e-4,sie=c0(3),xx=1/3,af=c3(),Rc=c3(),ly=c3();function t0(e){return e>-Y8&&eY8||e<-Y8}function Va(e,t,n,r,o){var a=1-o;return a*a*(a*e+3*o*t)+o*o*(o*r+3*a*n)}function aie(e,t,n,r,o){var a=1-o;return 3*(((t-e)*a+2*(n-t)*o)*a+(r-n)*o*o)}function X8(e,t,n,r,o,a){var s=r+3*(t-n)-e,l=3*(n-t*2+e),c=3*(t-e),d=e-o,h=l*l-3*s*c,p=l*c-9*s*d,m=c*c-3*l*d,g=0;if(t0(h)&&t0(p))if(t0(l))a[0]=0;else{var y=-c/l;y>=0&&y<=1&&(a[g++]=y)}else{var S=p*p-4*h*m;if(t0(S)){var k=p/h,y=-l/s+k,C=-k/2;y>=0&&y<=1&&(a[g++]=y),C>=0&&C<=1&&(a[g++]=C)}else if(S>0){var x=c0(S),E=h*l+1.5*s*(-p+x),_=h*l+1.5*s*(-p-x);E<0?E=-kx(-E,xx):E=kx(E,xx),_<0?_=-kx(-_,xx):_=kx(_,xx);var y=(-l-(E+_))/(3*s);y>=0&&y<=1&&(a[g++]=y)}else{var T=(2*h*l-3*s*p)/(2*c0(h*h*h)),D=Math.acos(T)/3,P=c0(h),M=Math.cos(D),y=(-l-2*P*M)/(3*s),C=(-l+P*(M+sie*Math.sin(D)))/(3*s),$=(-l+P*(M-sie*Math.sin(D)))/(3*s);y>=0&&y<=1&&(a[g++]=y),C>=0&&C<=1&&(a[g++]=C),$>=0&&$<=1&&(a[g++]=$)}}return g}function eme(e,t,n,r,o){var a=6*n-12*t+6*e,s=9*t+3*r-3*e-9*n,l=3*t-3*e,c=0;if(t0(s)){if(Qve(a)){var d=-l/a;d>=0&&d<=1&&(o[c++]=d)}}else{var h=a*a-4*s*l;if(t0(h))o[0]=-a/(2*s);else if(h>0){var p=c0(h),d=(-a+p)/(2*s),m=(-a-p)/(2*s);d>=0&&d<=1&&(o[c++]=d),m>=0&&m<=1&&(o[c++]=m)}}return c}function Z8(e,t,n,r,o,a){var s=(t-e)*o+e,l=(n-t)*o+t,c=(r-n)*o+n,d=(l-s)*o+s,h=(c-l)*o+l,p=(h-d)*o+d;a[0]=e,a[1]=s,a[2]=d,a[3]=p,a[4]=p,a[5]=h,a[6]=c,a[7]=r}function klt(e,t,n,r,o,a,s,l,c,d,h){var p,m=.005,g=1/0,y,S,k,C;af[0]=c,af[1]=d;for(var x=0;x<1;x+=.05)Rc[0]=Va(e,n,o,s,x),Rc[1]=Va(t,r,a,l,x),k=oy(af,Rc),k=0&&k=0&&d<=1&&(o[c++]=d)}}else{var h=s*s-4*a*l;if(t0(h)){var d=-s/(2*a);d>=0&&d<=1&&(o[c++]=d)}else if(h>0){var p=c0(h),d=(-s+p)/(2*a),m=(-s-p)/(2*a);d>=0&&d<=1&&(o[c++]=d),m>=0&&m<=1&&(o[c++]=m)}}return c}function tme(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function J8(e,t,n,r,o){var a=(t-e)*r+e,s=(n-t)*r+t,l=(s-a)*r+a;o[0]=e,o[1]=a,o[2]=l,o[3]=l,o[4]=s,o[5]=n}function wlt(e,t,n,r,o,a,s,l,c){var d,h=.005,p=1/0;af[0]=s,af[1]=l;for(var m=0;m<1;m+=.05){Rc[0]=yu(e,n,o,m),Rc[1]=yu(t,r,a,m);var g=oy(af,Rc);g=0&&g=1?1:X8(0,r,a,1,c,l)&&Va(0,o,s,1,l[0])}}}var Alt=(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||Eu,this.ondestroy=t.ondestroy||Eu,this.onrestart=t.onrestart||Eu,t.easing&&this.setEasing(t.easing)}return e.prototype.step=function(t,n){if(this._inited||(this._startTime=t+this._delay,this._inited=!0),this._paused){this._pausedTime+=n;return}var r=this._life,o=t-this._startTime-this._pausedTime,a=o/r;a<0&&(a=0),a=Math.min(a,1);var s=this.easingFunc,l=s?s(a):a;if(this.onframe(l),a===1)if(this.loop){var c=o%r;this._startTime=t-c,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=ei(t)?t:fb[t]||nme(t)},e})(),rme=(function(){function e(t){this.value=t}return e})(),Ilt=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new rme(t);return this.insertEntry(n),n},e.prototype.insertEntry=function(t){this.head?(this.tail.next=t,t.prev=this.tail,t.next=null,this.tail=t):this.head=this.tail=t,this._len++},e.prototype.remove=function(t){var n=t.prev,r=t.next;n?n.next=r:this.head=r,r?r.prev=n:this.tail=n,t.next=t.prev=null,this._len--},e.prototype.len=function(){return this._len},e.prototype.clear=function(){this.head=this.tail=null,this._len=0},e})(),nS=(function(){function e(t){this._list=new Ilt,this._maxSize=10,this._map={},this._maxSize=t}return e.prototype.put=function(t,n){var r=this._list,o=this._map,a=null;if(o[t]==null){var s=r.len(),l=this._lastRemovedEntry;if(s>=this._maxSize&&s>0){var c=r.head;r.remove(c),delete o[c.key],a=c.value,this._lastRemovedEntry=c}l?l.value=n:l=new rme(n),l.key=t,r.insertEntry(l),o[t]=l}return a},e.prototype.get=function(t){var n=this._map[t],r=this._list;if(n!=null)return n!==r.tail&&(r.remove(n),r.insertEntry(n)),n.value},e.prototype.clear=function(){this._list.clear(),this._map={}},e.prototype.len=function(){return this._list.len()},e})(),uie={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 d0(e){return e=Math.round(e),e<0?0:e>255?255:e}function PV(e){return e<0?0:e>1?1:e}function vN(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?d0(parseFloat(t)/100*255):d0(parseInt(t,10))}function hb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?PV(parseFloat(t)/100):PV(parseFloat(t))}function mN(e,t,n){return n<0?n+=1:n>1&&(n-=1),n*6<1?e+(t-e)*n*6:n*2<1?t:n*3<2?e+(t-e)*(2/3-n)*6:e}function Cx(e,t,n){return e+(t-e)*n}function Tc(e,t,n,r,o){return e[0]=t,e[1]=n,e[2]=r,e[3]=o,e}function RV(e,t){return e[0]=t[0],e[1]=t[1],e[2]=t[2],e[3]=t[3],e}var ime=new nS(20),Ex=null;function o1(e,t){Ex&&RV(Ex,t),Ex=ime.put(e,Ex||t.slice())}function Dh(e,t){if(e){t=t||[];var n=ime.get(e);if(n)return RV(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in uie)return RV(t,uie[r]),o1(e,t),t;var o=r.length;if(r.charAt(0)==="#"){if(o===4||o===5){var a=parseInt(r.slice(1,4),16);if(!(a>=0&&a<=4095)){Tc(t,0,0,0,1);return}return Tc(t,(a&3840)>>4|(a&3840)>>8,a&240|(a&240)>>4,a&15|(a&15)<<4,o===5?parseInt(r.slice(4),16)/15:1),o1(e,t),t}else if(o===7||o===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Tc(t,0,0,0,1);return}return Tc(t,(a&16711680)>>16,(a&65280)>>8,a&255,o===9?parseInt(r.slice(7),16)/255:1),o1(e,t),t}return}var s=r.indexOf("("),l=r.indexOf(")");if(s!==-1&&l+1===o){var c=r.substr(0,s),d=r.substr(s+1,l-(s+1)).split(","),h=1;switch(c){case"rgba":if(d.length!==4)return d.length===3?Tc(t,+d[0],+d[1],+d[2],1):Tc(t,0,0,0,1);h=hb(d.pop());case"rgb":if(d.length>=3)return Tc(t,vN(d[0]),vN(d[1]),vN(d[2]),d.length===3?h:hb(d[3])),o1(e,t),t;Tc(t,0,0,0,1);return;case"hsla":if(d.length!==4){Tc(t,0,0,0,1);return}return d[3]=hb(d[3]),cie(d,t),o1(e,t),t;case"hsl":if(d.length!==3){Tc(t,0,0,0,1);return}return cie(d,t),o1(e,t),t;default:return}}Tc(t,0,0,0,1)}}function cie(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=hb(e[1]),o=hb(e[2]),a=o<=.5?o*(r+1):o+r-o*r,s=o*2-a;return t=t||[],Tc(t,d0(mN(s,a,n+1/3)*255),d0(mN(s,a,n)*255),d0(mN(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function die(e,t){var n=Dh(e);if(n){for(var r=0;r<3;r++)n[r]=n[r]*(1-t)|0,n[r]>255?n[r]=255:n[r]<0&&(n[r]=0);return aA(n,n.length===4?"rgba":"rgb")}}function Llt(e,t,n){if(!(!(t&&t.length)||!(e>=0&&e<=1))){var r=e*(t.length-1),o=Math.floor(r),a=Math.ceil(r),s=Dh(t[o]),l=Dh(t[a]),c=r-o,d=aA([d0(Cx(s[0],l[0],c)),d0(Cx(s[1],l[1],c)),d0(Cx(s[2],l[2],c)),PV(Cx(s[3],l[3],c))],"rgba");return n?{color:d,leftIndex:o,rightIndex:a,value:r}:d}}function aA(e,t){if(!(!e||!e.length)){var n=e[0]+","+e[1]+","+e[2];return(t==="rgba"||t==="hsva"||t==="hsla")&&(n+=","+e[3]),t+"("+n+")"}}function Q8(e,t){var n=Dh(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var fie=new nS(100);function hie(e){if(yr(e)){var t=fie.get(e);return t||(t=die(e,-.1),fie.put(e,t)),t}else if(oA(e)){var n=bn({},e);return n.colorStops=xr(e.colorStops,function(r){return{offset:r.offset,color:die(r.color,-.1)}}),n}return e}function Dlt(e){return e.type==="linear"}function Plt(e){return e.type==="radial"}(function(){return Vr.hasGlobalWindow&&ei(window.btoa)?function(e){return window.btoa(unescape(encodeURIComponent(e)))}:typeof Buffer<"u"?function(e){return Buffer.from(e).toString("base64")}:function(e){return null}})();var MV=Array.prototype.slice;function vh(e,t,n){return(t-e)*n+e}function gN(e,t,n,r){for(var o=t.length,a=0;ar?t:e,a=Math.min(n,r),s=o[a-1]||{color:[0,0,0,0],offset:0},l=a;ls;if(l)r.length=s;else for(var c=a;c=1},e.prototype.getAdditiveTrack=function(){return this._additiveTrack},e.prototype.addKeyframe=function(t,n,r){this._needsSort=!0;var o=this.keyframes,a=o.length,s=!1,l=vie,c=n;if(Du(n)){var d=$lt(n);l=d,(d===1&&!Eo(n[0])||d===2&&!Eo(n[0][0]))&&(s=!0)}else if(Eo(n)&&!K8(n))l=Ax;else if(yr(n))if(!isNaN(+n))l=Ax;else{var h=Dh(n);h&&(c=h,l=A4)}else if(oA(n)){var p=bn({},c);p.colorStops=xr(n.colorStops,function(g){return{offset:g.offset,color:Dh(g.color)}}),Dlt(n)?l=OV:Plt(n)&&(l=$V),c=p}a===0?this.valType=l:(l!==this.valType||l===vie)&&(s=!0),this.discrete=this.discrete||s;var m={time:t,value:c,rawValue:n,percent:0};return r&&(m.easing=r,m.easingFunc=ei(r)?r:fb[r]||nme(r)),o.push(m),m},e.prototype.prepare=function(t,n){var r=this.keyframes;this._needsSort&&r.sort(function(S,k){return S.time-k.time});for(var o=this.valType,a=r.length,s=r[a-1],l=this.discrete,c=Ix(o),d=mie(o),h=0;h=0&&!(s[h].percent<=n);h--);h=m(h,l-2)}else{for(h=p;hn);h++);h=m(h-1,l-2)}y=s[h+1],g=s[h]}if(g&&y){this._lastFr=h,this._lastFrP=n;var k=y.percent-g.percent,C=k===0?1:m((n-g.percent)/k,1);y.easingFunc&&(C=y.easingFunc(C));var x=r?this._additiveValue:d?X2:t[c];if((Ix(a)||d)&&!x&&(x=this._additiveValue=[]),this.discrete)t[c]=C<1?g.rawValue:y.rawValue;else if(Ix(a))a===Jw?gN(x,g[o],y[o],C):Rlt(x,g[o],y[o],C);else if(mie(a)){var E=g[o],_=y[o],T=a===OV;t[c]={type:T?"linear":"radial",x:vh(E.x,_.x,C),y:vh(E.y,_.y,C),colorStops:xr(E.colorStops,function(P,M){var $=_.colorStops[M];return{offset:vh(P.offset,$.offset,C),color:Zw(gN([],P.color,$.color,C))}}),global:_.global},T?(t[c].x2=vh(E.x2,_.x2,C),t[c].y2=vh(E.y2,_.y2,C)):t[c].r=vh(E.r,_.r,C)}else if(d)gN(x,g[o],y[o],C),r||(t[c]=Zw(x));else{var D=vh(g[o],y[o],C);r?this._additiveValue=D:t[c]=D}r&&this._addToTarget(t)}}},e.prototype._addToTarget=function(t){var n=this.valType,r=this.propName,o=this._additiveValue;n===Ax?t[r]=t[r]+o:n===A4?(Dh(t[r],X2),Tx(X2,X2,o,1),t[r]=Zw(X2)):n===Jw?Tx(t[r],t[r],o,1):n===ome&&pie(t[r],t[r],o,1)},e})(),lW=(function(){function e(t,n,r,o){if(this._tracks={},this._trackKeys=[],this._maxTime=0,this._started=0,this._clip=null,this._target=t,this._loop=n,n&&o){nW("Can' use additive animation on looped animation.");return}this._additiveAnimators=o,this._allowDiscrete=r}return e.prototype.getMaxTime=function(){return this._maxTime},e.prototype.getDelay=function(){return this._delay},e.prototype.getLoop=function(){return this._loop},e.prototype.getTarget=function(){return this._target},e.prototype.changeTarget=function(t){this._target=t},e.prototype.when=function(t,n,r){return this.whenWithKeys(t,n,es(n),r)},e.prototype.whenWithKeys=function(t,n,r,o){for(var a=this._tracks,s=0;s0&&c.addKeyframe(0,Xw(d),o),this._trackKeys.push(l)}c.addKeyframe(t,Xw(n[l]),o)}return this._maxTime=Math.max(this._maxTime,t),this},e.prototype.pause=function(){this._clip.pause(),this._paused=!0},e.prototype.resume=function(){this._clip.resume(),this._paused=!1},e.prototype.isPaused=function(){return!!this._paused},e.prototype.duration=function(t){return this._maxTime=t,this._force=!0,this},e.prototype._doneCallback=function(){this._setTracksFinished(),this._clip=null;var t=this._doneCbs;if(t)for(var n=t.length,r=0;r0)){this._started=1;for(var n=this,r=[],o=this._maxTime||0,a=0;a1){var l=s.pop();a.addKeyframe(l.time,t[o]),a.prepare(this._maxTime,a.getAdditiveTrack())}}}},e})();function V1(){return new Date().getTime()}var Nlt=(function(e){Nn(t,e);function t(n){var r=e.call(this)||this;return r._running=!1,r._time=0,r._pausedTime=0,r._pauseStart=0,r._paused=!1,n=n||{},r.stage=n.stage||{},r}return t.prototype.addClip=function(n){n.animation&&this.removeClip(n),this._head?(this._tail.next=n,n.prev=this._tail,n.next=null,this._tail=n):this._head=this._tail=n,n.animation=this},t.prototype.addAnimator=function(n){n.animation=this;var r=n.getClip();r&&this.addClip(r)},t.prototype.removeClip=function(n){if(n.animation){var r=n.prev,o=n.next;r?r.next=o:this._head=o,o?o.prev=r:this._tail=r,n.next=n.prev=n.animation=null}},t.prototype.removeAnimator=function(n){var r=n.getClip();r&&this.removeClip(r),n.animation=null},t.prototype.update=function(n){for(var r=V1()-this._pausedTime,o=r-this._time,a=this._head;a;){var s=a.next,l=a.step(r,o);l&&(a.ondestroy(),this.removeClip(a)),a=s}this._time=r,n||(this.trigger("frame",o),this.stage.update&&this.stage.update())},t.prototype._startLoop=function(){var n=this;this._running=!0;function r(){n._running&&(q8(r),!n._paused&&n.update())}q8(r)},t.prototype.start=function(){this._running||(this._time=V1(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=V1(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=V1()-this._pauseStart,this._paused=!1)},t.prototype.clear=function(){for(var n=this._head;n;){var r=n.next;n.prev=n.next=n.animation=null,n=r}this._head=this._tail=null},t.prototype.isFinished=function(){return this._head==null},t.prototype.animate=function(n,r){r=r||{},this.start();var o=new lW(n,r.loop);return this.addAnimator(o),o},t})(Pf),Flt=300,yN=Vr.domSupported,bN=(function(){var e=["click","dblclick","mousewheel","wheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],t=["touchstart","touchend","touchmove"],n={pointerdown:1,pointerup:1,pointermove:1,pointerout:1},r=xr(e,function(o){var a=o.replace("mouse","pointer");return n.hasOwnProperty(a)?a:o});return{mouse:e,touch:t,pointer:r}})(),gie={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},yie=!1;function BV(e){var t=e.pointerType;return t==="pen"||t==="touch"}function jlt(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 _N(e){e&&(e.zrByTouch=!0)}function Vlt(e,t){return Ac(e.dom,new zlt(e,t),!0)}function sme(e,t){for(var n=t,r=!1;n&&n.nodeType!==9&&!(r=n.domBelongToZr||n!==t&&n===e.painterRoot);)n=n.parentNode;return r}var zlt=(function(){function e(t,n){this.stopPropagation=Eu,this.stopImmediatePropagation=Eu,this.preventDefault=Eu,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),pd={mousedown:function(e){e=Ac(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Ac(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=Ac(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Ac(this.dom,e);var t=e.toElement||e.relatedTarget;sme(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){yie=!0,e=Ac(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){yie||(e=Ac(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Ac(this.dom,e),_N(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),pd.mousemove.call(this,e),pd.mousedown.call(this,e)},touchmove:function(e){e=Ac(this.dom,e),_N(e),this.handler.processGesture(e,"change"),pd.mousemove.call(this,e)},touchend:function(e){e=Ac(this.dom,e),_N(e),this.handler.processGesture(e,"end"),pd.mouseup.call(this,e),+new Date-+this.__lastTouchMomentSie||e<-Sie}var gv=[],s1=[],kN=sy(),xN=Math.abs,uW=(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 mv(this.rotation)||mv(this.x)||mv(this.y)||mv(this.scaleX-1)||mv(this.scaleY-1)||mv(this.skewX)||mv(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(_ie(r),this.invTransform=null);return}r=r||sy(),n?this.getLocalTransform(r):_ie(r),t&&(n?ay(r,t,r):dlt(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(gv);var r=gv[0]<0?-1:1,o=gv[1]<0?-1:1,a=((gv[0]-r)*n+r)/gv[0]||0,s=((gv[1]-o)*n+o)/gv[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||sy(),aW(this.invTransform,t)},e.prototype.getComputedTransform=function(){for(var t=this,n=[];t;)n.push(t),t=t.parent;for(;t=n.pop();)t.updateTransform();return this.transform},e.prototype.setLocalTransform=function(t){if(t){var n=t[0]*t[0]+t[1]*t[1],r=t[2]*t[2]+t[3]*t[3],o=Math.atan2(t[1],t[0]),a=Math.PI/2+o-Math.atan2(t[3],t[2]);r=Math.sqrt(r)*Math.cos(a),n=Math.sqrt(n),this.skewX=a,this.skewY=0,this.rotation=-o,this.x=+t[4],this.y=+t[5],this.scaleX=n,this.scaleY=r,this.originX=0,this.originY=0}},e.prototype.decomposeTransform=function(){if(this.transform){var t=this.parent,n=this.transform;t&&t.transform&&(t.invTransform=t.invTransform||sy(),ay(s1,t.invTransform,n),n=s1);var r=this.originX,o=this.originY;(r||o)&&(kN[4]=r,kN[5]=o,ay(s1,n,kN),s1[4]-=r,s1[5]-=o,n=s1),this.setLocalTransform(n)}},e.prototype.getGlobalScale=function(t){var n=this.transform;return t=t||[],n?(t[0]=Math.sqrt(n[0]*n[0]+n[1]*n[1]),t[1]=Math.sqrt(n[2]*n[2]+n[3]*n[3]),n[0]<0&&(t[0]=-t[0]),n[3]<0&&(t[1]=-t[1]),t):(t[0]=1,t[1]=1,t)},e.prototype.transformCoordToLocal=function(t,n){var r=[t,n],o=this.invTransform;return o&&Vc(r,r,o),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],o=this.transform;return o&&Vc(r,r,o),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&xN(t[0]-1)>1e-10&&xN(t[3]-1)>1e-10?Math.sqrt(xN(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Klt(this,t)},e.getLocalTransform=function(t,n){n=n||[];var r=t.originX||0,o=t.originY||0,a=t.scaleX,s=t.scaleY,l=t.anchorX,c=t.anchorY,d=t.rotation||0,h=t.x,p=t.y,m=t.skewX?Math.tan(t.skewX):0,g=t.skewY?Math.tan(-t.skewY):0;if(r||o||l||c){var y=r+l,S=o+c;n[4]=-y*a-m*S*s,n[5]=-S*s-g*y*a}else n[4]=n[5]=0;return n[0]=a,n[3]=s,n[1]=g*a,n[2]=m*s,d&&sW(n,n,d),n[4]+=r+h,n[5]+=o+p,n},e.initDefaultProps=(function(){var t=e.prototype;t.scaleX=t.scaleY=t.globalScaleRatio=1,t.x=t.y=t.originX=t.originY=t.skewX=t.skewY=t.rotation=t.anchorX=t.anchorY=0})(),e})(),o_=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Klt(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function tT(e,t,n){var r=t.position||"inside",o=t.distance!=null?t.distance:5,a=n.height,s=n.width,l=a/2,c=n.x,d=n.y,h="left",p="top";if(r instanceof Array)c+=x0(r[0],n.width),d+=x0(r[1],n.height),h=null,p=null;else switch(r){case"left":c-=o,d+=l,h="right",p="middle";break;case"right":c+=o+s,d+=l,p="middle";break;case"top":c+=s/2,d-=o,h="center",p="bottom";break;case"bottom":c+=s/2,d+=a+o,h="center";break;case"inside":c+=s/2,d+=l,h="center",p="middle";break;case"insideLeft":c+=o,d+=l,p="middle";break;case"insideRight":c+=s-o,d+=l,h="right",p="middle";break;case"insideTop":c+=s/2,d+=o,h="center";break;case"insideBottom":c+=s/2,d+=a-o,h="center",p="bottom";break;case"insideTopLeft":c+=o,d+=o;break;case"insideTopRight":c+=s-o,d+=o,h="right";break;case"insideBottomLeft":c+=o,d+=a-o,p="bottom";break;case"insideBottomRight":c+=s-o,d+=a-o,h="right",p="bottom";break}return e=e||{},e.x=c,e.y=d,e.align=h,e.verticalAlign=p,e}var CN="__zr_normal__",wN=o_.concat(["ignore"]),qlt=k0(o_,function(e,t){return e[t]=!0,e},{ignore:!1}),a1={},Ylt=new so(0,0,0,0),lA=(function(){function e(t){this.id=Vve(),this.animators=[],this.currentStates=[],this.states={},this._init(t)}return e.prototype._init=function(t){this.attr(t)},e.prototype.drift=function(t,n,r){switch(this.draggable){case"horizontal":n=0;break;case"vertical":t=0;break}var o=this.transform;o||(o=this.transform=[1,0,0,1,0,0]),o[4]+=t,o[5]+=n,this.decomposeTransform(),this.markRedraw()},e.prototype.beforeUpdate=function(){},e.prototype.afterUpdate=function(){},e.prototype.update=function(){this.updateTransform(),this.__dirty&&this.updateInnerText()},e.prototype.updateInnerText=function(t){var n=this._textContent;if(n&&(!n.ignore||t)){this.textConfig||(this.textConfig={});var r=this.textConfig,o=r.local,a=n.innerTransformable,s=void 0,l=void 0,c=!1;a.parent=o?this:null;var d=!1;if(a.copyTransform(n),r.position!=null){var h=Ylt;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(a1,r,h):tT(a1,r,h),a.x=a1.x,a.y=a1.y,s=a1.align,l=a1.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var m=void 0,g=void 0;p==="center"?(m=h.width*.5,g=h.height*.5):(m=x0(p[0],h.width),g=x0(p[1],h.height)),d=!0,a.originX=-a.x+m+(o?0:h.x),a.originY=-a.y+g+(o?0:h.y)}}r.rotation!=null&&(a.rotation=r.rotation);var y=r.offset;y&&(a.x+=y[0],a.y+=y[1],d||(a.originX=-y[0],a.originY=-y[1]));var S=r.inside==null?typeof r.position=="string"&&r.position.indexOf("inside")>=0:r.inside,k=this._innerTextDefaultStyle||(this._innerTextDefaultStyle={}),C=void 0,x=void 0,E=void 0;S&&this.canBeInsideText()?(C=r.insideFill,x=r.insideStroke,(C==null||C==="auto")&&(C=this.getInsideTextFill()),(x==null||x==="auto")&&(x=this.getInsideTextStroke(C),E=!0)):(C=r.outsideFill,x=r.outsideStroke,(C==null||C==="auto")&&(C=this.getOutsideFill()),(x==null||x==="auto")&&(x=this.getOutsideStroke(C),E=!0)),C=C||"#000",(C!==k.fill||x!==k.stroke||E!==k.autoStroke||s!==k.align||l!==k.verticalAlign)&&(c=!0,k.fill=C,k.stroke=x,k.autoStroke=E,k.align=s,k.verticalAlign=l,n.setDefaultTextStyle(k)),n.__dirty|=rc,c&&n.dirtyStyle(!0)}},e.prototype.canBeInsideText=function(){return!0},e.prototype.getInsideTextFill=function(){return"#fff"},e.prototype.getInsideTextStroke=function(t){return"#000"},e.prototype.getOutsideFill=function(){return this.__zr&&this.__zr.isDarkMode()?VV:jV},e.prototype.getOutsideStroke=function(t){var n=this.__zr&&this.__zr.getBackgroundColor(),r=typeof n=="string"&&Dh(n);r||(r=[255,255,255,1]);for(var o=r[3],a=this.__zr.isDarkMode(),s=0;s<3;s++)r[s]=r[s]*o+(a?0:255)*(1-o);return r[3]=1,aA(r,"rgba")},e.prototype.traverse=function(t,n){},e.prototype.attrKV=function(t,n){t==="textConfig"?this.setTextConfig(n):t==="textContent"?this.setTextContent(n):t==="clipPath"?this.setClipPath(n):t==="extra"?(this.extra=this.extra||{},bn(this.extra,n)):this[t]=n},e.prototype.hide=function(){this.ignore=!0,this.markRedraw()},e.prototype.show=function(){this.ignore=!1,this.markRedraw()},e.prototype.attr=function(t,n){if(typeof t=="string")this.attrKV(t,n);else if(Tr(t))for(var r=t,o=es(r),a=0;a0},e.prototype.getState=function(t){return this.states[t]},e.prototype.ensureState=function(t){var n=this.states;return n[t]||(n[t]={}),n[t]},e.prototype.clearStates=function(t){this.useState(CN,!1,t)},e.prototype.useState=function(t,n,r,o){var a=t===CN,s=this.hasState();if(!(!s&&a)){var l=this.currentStates,c=this.stateTransition;if(!(vo(l,t)>=0&&(n||l.length===1))){var d;if(this.stateProxy&&!a&&(d=this.stateProxy(t)),d||(d=this.states&&this.states[t]),!d&&!a){nW("State "+t+" not exists.");return}a||this.saveCurrentToNormalState(d);var h=!!(d&&d.hoverLayer||o);h&&this._toggleHoverLayerFlag(!0),this._applyStateObj(t,d,this._normalState,n,!r&&!this.__inHover&&c&&c.duration>0,c);var p=this._textContent,m=this._textGuide;return p&&p.useState(t,n,r,h),m&&m.useState(t,n,r,h),a?(this.currentStates=[],this._normalState={}):n?this.currentStates.push(t):this.currentStates=[t],this._updateAnimationTargets(),this.markRedraw(),!h&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rc),d}}},e.prototype.useStates=function(t,n,r){if(!t.length)this.clearStates();else{var o=[],a=this.currentStates,s=t.length,l=s===a.length;if(l){for(var c=0;c0,y);var S=this._textContent,k=this._textGuide;S&&S.useStates(t,n,m),k&&k.useStates(t,n,m),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!m&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~rc)}},e.prototype.isSilent=function(){for(var t=this.silent,n=this.parent;!t&&n;){if(n.silent){t=!0;break}n=n.parent}return t},e.prototype._updateAnimationTargets=function(){for(var t=0;t=0){var r=this.currentStates.slice();r.splice(n,1),this.useStates(r)}},e.prototype.replaceState=function(t,n,r){var o=this.currentStates.slice(),a=vo(o,t),s=vo(o,n)>=0;a>=0?s?o.splice(a,1):o[a]=n:r&&!s&&o.push(n),this.useStates(o)},e.prototype.toggleState=function(t,n){n?this.useState(t,!0):this.removeState(t)},e.prototype._mergeStates=function(t){for(var n={},r,o=0;o=0&&a.splice(s,1)}),this.animators.push(t),r&&r.animation.addAnimator(t),r&&r.wakeUp()},e.prototype.updateDuringAnimation=function(t){this.markRedraw()},e.prototype.stopAnimation=function(t,n){for(var r=this.animators,o=r.length,a=[],s=0;s0&&n.during&&a[0].during(function(y,S){n.during(S)});for(var m=0;m0||o.force&&!s.length){var M=void 0,$=void 0,I=void 0;if(l){$={},m&&(M={});for(var _=0;_=0&&(o.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var o=vo(this._children,n);return o>=0&&this.replaceAt(r,o),this},t.prototype.replaceAt=function(n,r){var o=this._children,a=o[r];if(n&&n!==this&&n.parent!==this&&n!==a){o[r]=n,a.parent=null;var s=this.__zr;s&&a.removeSelfFromZr(s),this._doAdd(n)}return this},t.prototype._doAdd=function(n){n.parent&&n.parent.remove(n),n.parent=this;var r=this.__zr;r&&r!==n.__zr&&n.addSelfToZr(r),r&&r.refresh()},t.prototype.remove=function(n){var r=this.__zr,o=this._children,a=vo(o,n);return a<0?this:(o.splice(a,1),n.parent=null,r&&n.removeSelfFromZr(r),r&&r.refresh(),this)},t.prototype.removeAll=function(){for(var n=this._children,r=this.__zr,o=0;o0&&(this._stillFrameAccum++,this._stillFrameAccum>this._sleepAfterStill&&this.animation.stop())},e.prototype.setSleepAfterStill=function(t){this._sleepAfterStill=t},e.prototype.wakeUp=function(){this._disposed||(this.animation.start(),this._stillFrameAccum=0)},e.prototype.refreshHover=function(){this._needsRefreshHover=!0},e.prototype.refreshHoverImmediately=function(){this._disposed||(this._needsRefreshHover=!1,this.painter.refreshHover&&this.painter.getType()==="canvas"&&this.painter.refreshHover())},e.prototype.resize=function(t){this._disposed||(t=t||{},this.painter.resize(t.width,t.height),this.handler.resize())},e.prototype.clearAnimation=function(){this._disposed||this.animation.clear()},e.prototype.getWidth=function(){if(!this._disposed)return this.painter.getWidth()},e.prototype.getHeight=function(){if(!this._disposed)return this.painter.getHeight()},e.prototype.setCursorStyle=function(t){this._disposed||this.handler.setCursorStyle(t)},e.prototype.findHover=function(t,n){if(!this._disposed)return this.handler.findHover(t,n)},e.prototype.on=function(t,n,r){return this._disposed||this.handler.on(t,n,r),this},e.prototype.off=function(t,n){this._disposed||this.handler.off(t,n)},e.prototype.trigger=function(t,n){this._disposed||this.handler.trigger(t,n)},e.prototype.clear=function(){if(!this._disposed){for(var t=this.storage.getRoots(),n=0;n0){if(e<=o)return s;if(e>=a)return l}else{if(e>=o)return s;if(e<=a)return l}else{if(e===o)return s;if(e===a)return l}return(e-o)/c*d+s}function Jo(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 yr(e)?iut(e).match(/%$/)?parseFloat(e)/100*t:parseFloat(e):e==null?NaN:+e}function Xs(e,t,n){return t==null&&(t=10),t=Math.min(Math.max(0,t),cme),e=(+e).toFixed(t),n?e:+e}function wh(e){if(e=+e,isNaN(e))return 0;if(e>1e-14){for(var t=1,n=0;n<15;n++,t*=10)if(Math.round(e*t)/t===e)return n}return out(e)}function out(e){var t=e.toString().toLowerCase(),n=t.indexOf("e"),r=n>0?+t.slice(n+1):0,o=n>0?n:t.length,a=t.indexOf("."),s=a<0?0:o-1-a;return Math.max(0,s-r)}function sut(e,t){var n=Math.log,r=Math.LN10,o=Math.floor(n(e[1]-e[0])/r),a=Math.round(n(Math.abs(t[1]-t[0]))/r),s=Math.min(Math.max(-o+a,0),20);return isFinite(s)?s:20}function aut(e,t){var n=k0(e,function(g,y){return g+(isNaN(y)?0:y)},0);if(n===0)return[];for(var r=Math.pow(10,t),o=xr(e,function(g){return(isNaN(g)?0:g)/n*r*100}),a=r*100,s=xr(o,function(g){return Math.floor(g)}),l=k0(s,function(g,y){return g+y},0),c=xr(o,function(g,y){return g-s[y]});ld&&(d=c[p],h=p);++s[h],c[h]=0,++l}return xr(s,function(g){return g/r})}function lut(e,t){var n=Math.max(wh(e),wh(t)),r=e+t;return n>cme?r:Xs(r,n)}function dme(e){var t=Math.PI*2;return(e%t+t)%t}function nT(e){return e>-wie&&e=10&&t++,t}function fme(e,t){var n=fW(e),r=Math.pow(10,n),o=e/r,a;return o<1.5?a=1:o<2.5?a=2:o<4?a=3:o<7?a=5:a=10,e=a*r,n>=-20?+e.toFixed(n<0?-n:0):e}function rT(e){var t=parseFloat(e);return t==e&&(t!==0||!yr(e)||e.indexOf("x")<=0)?t:NaN}function dut(e){return!isNaN(rT(e))}function hme(){return Math.round(Math.random()*9)}function pme(e,t){return t===0?e:pme(t,e%t)}function Eie(e,t){return e==null?t:t==null?e:e*t/pme(e,t)}function bu(e){throw new Error(e)}function Tie(e,t,n){return(t-e)*n+e}var vme="series\0",fut="\0_ec_\0";function Xl(e){return e instanceof Array?e:e==null?[]:[e]}function UV(e,t,n){if(e){e[t]=e[t]||{},e.emphasis=e.emphasis||{},e.emphasis[t]=e.emphasis[t]||{};for(var r=0,o=n.length;r=0||a&&vo(a,c)<0)){var d=r.getShallow(c,t);d!=null&&(s[e[l][0]]=d)}}return s}}var Out=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],$ut=a_(Out),But=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return $ut(this,t,n)},e})(),HV=new nS(50);function Nut(e){if(typeof e=="string"){var t=HV.get(e);return t&&t.image}else return e}function _me(e,t,n,r,o){if(e)if(typeof e=="string"){if(t&&t.__zrImageSrc===e||!n)return t;var a=HV.get(e),s={hostEl:n,cb:r,cbPayload:o};return a?(t=a.image,!cA(t)&&a.pending.push(s)):(t=u3.loadImage(e,Iie,Iie),t.__zrImageSrc=e,HV.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Iie(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;c++)l-=s;var d=ac(n,t);return d>l&&(n="",d=0),l=e-d,o.ellipsis=n,o.ellipsisWidth=d,o.contentWidth=l,o.containerWidth=e,o}function kme(e,t,n){var r=n.containerWidth,o=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var s=ac(t,o);if(s<=r){e.textLine=t,e.isTruncated=!1;return}for(var l=0;;l++){if(s<=a||l>=n.maxIterations){t+=n.ellipsis;break}var c=l===0?jut(t,a,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,c),s=ac(t,o)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function jut(e,t,n,r){for(var o=0,a=0,s=e.length;ay&&d){var S=Math.floor(y/l);h=h||m.length>S,m=m.slice(0,S)}if(e&&a&&p!=null)for(var k=Sme(p,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),C={},x=0;xl&&LN(n,e.substring(l,d),t,s),LN(n,c[2],t,s,c[1]),l=IN.lastIndex}lo){var U=n.lines.length;D>0?(E.tokens=E.tokens.slice(0,D),C(E,T,_),n.lines=n.lines.slice(0,x+1)):n.lines=n.lines.slice(0,x),n.isTruncated=n.isTruncated||n.lines.length0&&y+r.accumWidth>r.width&&(h=t.split(` `),d=!0),r.accumWidth=y}else{var S=xme(t,c,r.width,r.breakAll,r.accumWidth);r.accumWidth=S.accumWidth+g,p=S.linesWidths,h=S.lines}}else h=t.split(` `);for(var k=0;k=32&&t<=591||t>=880&&t<=4351||t>=4608&&t<=5119||t>=7680&&t<=8303}var Gut=k0(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Kut(e){return Wut(e)?!!Gut[e]:!0}function xme(e,t,n,r,o){for(var a=[],s=[],l="",c="",d=0,h=0,p=0;pn:o+h+g>n){h?(l||c)&&(y?(l||(l=c,c="",d=0,h=d),a.push(l),s.push(h-d),c+=m,d+=g,l="",h=d):(c&&(l+=c,c="",d=0),a.push(l),s.push(h),l=m,h=g)):y?(a.push(c),s.push(d),c=m,d=g):(a.push(m),s.push(g));continue}h+=g,y?(c+=m,d+=g):(c&&(l+=c,c="",d=0),l+=m)}return!a.length&&!l&&(l=e,c="",d=0),c&&(l+=c),l&&(a.push(l),s.push(h)),a.length===1&&(h+=o),{accumWidth:h,lines:a,linesWidths:s}}var WV="__zr_style_"+Math.round(Math.random()*10),hm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},dA={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};hm[WV]=!0;var Die=["z","z2","invisible"],qut=["invisible"],oS=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype._init=function(n){for(var r=es(n),o=0;o1e-4){l[0]=e-n,l[1]=t-r,c[0]=e+n,c[1]=t+r;return}if(Lx[0]=MN(o)*n+e,Lx[1]=RN(o)*r+t,Dx[0]=MN(a)*n+e,Dx[1]=RN(a)*r+t,d(l,Lx,Dx),h(c,Lx,Dx),o=o%bv,o<0&&(o=o+bv),a=a%bv,a<0&&(a=a+bv),o>a&&!s?a+=bv:oo&&(Px[0]=MN(g)*n+e,Px[1]=RN(g)*r+t,d(l,Px,l),h(c,Px,c))}var ro={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},_v=[],Sv=[],Gd=[],wp=[],Kd=[],qd=[],ON=Math.min,$N=Math.max,kv=Math.cos,xv=Math.sin,lh=Math.abs,GV=Math.PI,Vp=GV*2,BN=typeof Float32Array<"u",Z2=[];function NN(e){var t=Math.round(e/GV*1e8)/1e8;return t%2*GV}function Cme(e,t){var n=NN(e[0]);n<0&&(n+=Vp);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=Vp?o=n+Vp:t&&n-o>=Vp?o=n-Vp:!t&&n>o?o=n+(Vp-NN(n-o)):t&&n0&&(this._ux=lh(r/eT/t)||0,this._uy=lh(r/eT/n)||0)},e.prototype.setDPR=function(t){this.dpr=t},e.prototype.setContext=function(t){this._ctx=t},e.prototype.getContext=function(){return this._ctx},e.prototype.beginPath=function(){return this._ctx&&this._ctx.beginPath(),this.reset(),this},e.prototype.reset=function(){this._saveData&&(this._len=0),this._pathSegLen&&(this._pathSegLen=null,this._pathLen=0),this._version++},e.prototype.moveTo=function(t,n){return this._drawPendingPt(),this.addData(ro.M,t,n),this._ctx&&this._ctx.moveTo(t,n),this._x0=t,this._y0=n,this._xi=t,this._yi=n,this},e.prototype.lineTo=function(t,n){var r=lh(t-this._xi),o=lh(n-this._yi),a=r>this._ux||o>this._uy;if(this.addData(ro.L,t,n),this._ctx&&a&&this._ctx.lineTo(t,n),a)this._xi=t,this._yi=n,this._pendingPtDist=0;else{var s=r*r+o*o;s>this._pendingPtDist&&(this._pendingPtX=t,this._pendingPtY=n,this._pendingPtDist=s)}return this},e.prototype.bezierCurveTo=function(t,n,r,o,a,s){return this._drawPendingPt(),this.addData(ro.C,t,n,r,o,a,s),this._ctx&&this._ctx.bezierCurveTo(t,n,r,o,a,s),this._xi=a,this._yi=s,this},e.prototype.quadraticCurveTo=function(t,n,r,o){return this._drawPendingPt(),this.addData(ro.Q,t,n,r,o),this._ctx&&this._ctx.quadraticCurveTo(t,n,r,o),this._xi=r,this._yi=o,this},e.prototype.arc=function(t,n,r,o,a,s){this._drawPendingPt(),Z2[0]=o,Z2[1]=a,Cme(Z2,s),o=Z2[0],a=Z2[1];var l=a-o;return this.addData(ro.A,t,n,r,r,o,l,0,s?0:1),this._ctx&&this._ctx.arc(t,n,r,o,a,s),this._xi=kv(a)*r+t,this._yi=xv(a)*r+n,this},e.prototype.arcTo=function(t,n,r,o,a){return this._drawPendingPt(),this._ctx&&this._ctx.arcTo(t,n,r,o,a),this},e.prototype.rect=function(t,n,r,o){return this._drawPendingPt(),this._ctx&&this._ctx.rect(t,n,r,o),this.addData(ro.R,t,n,r,o),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(ro.Z);var t=this._ctx,n=this._x0,r=this._y0;return t&&t.closePath(),this._xi=n,this._yi=r,this},e.prototype.fill=function(t){t&&t.fill(),this.toStatic()},e.prototype.stroke=function(t){t&&t.stroke(),this.toStatic()},e.prototype.len=function(){return this._len},e.prototype.setData=function(t){var n=t.length;!(this.data&&this.data.length===n)&&BN&&(this.data=new Float32Array(n));for(var r=0;rh.length&&(this._expandData(),h=this.data);for(var p=0;p0&&(this._ctx&&this._ctx.lineTo(this._pendingPtX,this._pendingPtY),this._pendingPtDist=0)},e.prototype._expandData=function(){if(!(this.data instanceof Array)){for(var t=[],n=0;n11&&(this.data=new Float32Array(t)))}},e.prototype.getBoundingRect=function(){Gd[0]=Gd[1]=Kd[0]=Kd[1]=Number.MAX_VALUE,wp[0]=wp[1]=qd[0]=qd[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,o=0,a=0,s;for(s=0;sr||lh(E)>o||m===n-1)&&(S=Math.sqrt(x*x+E*E),a=k,s=C);break}case ro.C:{var _=t[m++],T=t[m++],k=t[m++],C=t[m++],D=t[m++],P=t[m++];S=xlt(a,s,_,T,k,C,D,P,10),a=D,s=P;break}case ro.Q:{var _=t[m++],T=t[m++],k=t[m++],C=t[m++];S=Elt(a,s,_,T,k,C,10),a=k,s=C;break}case ro.A:var M=t[m++],$=t[m++],I=t[m++],N=t[m++],j=t[m++],U=t[m++],z=U+j;m+=1,y&&(l=kv(j)*I+M,c=xv(j)*N+$),S=$N(I,N)*ON(Vp,Math.abs(U)),a=kv(z)*I+M,s=xv(z)*N+$;break;case ro.R:{l=a=t[m++],c=s=t[m++];var G=t[m++],X=t[m++];S=G*2+X*2;break}case ro.Z:{var x=l-a,E=c-s;S=Math.sqrt(x*x+E*E),a=l,s=c;break}}S>=0&&(d[p++]=S,h+=S)}return this._pathLen=h,h},e.prototype.rebuildPath=function(t,n){var r=this.data,o=this._ux,a=this._uy,s=this._len,l,c,d,h,p,m,g=n<1,y,S,k=0,C=0,x,E=0,_,T;if(!(g&&(this._pathSegLen||this._calculateLength(),y=this._pathSegLen,S=this._pathLen,x=n*S,!x)))e:for(var D=0;D0&&(t.lineTo(_,T),E=0),P){case ro.M:l=d=r[D++],c=h=r[D++],t.moveTo(d,h);break;case ro.L:{p=r[D++],m=r[D++];var $=lh(p-d),I=lh(m-h);if($>o||I>a){if(g){var N=y[C++];if(k+N>x){var j=(x-k)/N;t.lineTo(d*(1-j)+p*j,h*(1-j)+m*j);break e}k+=N}t.lineTo(p,m),d=p,h=m,E=0}else{var U=$*$+I*I;U>E&&(_=p,T=m,E=U)}break}case ro.C:{var z=r[D++],G=r[D++],X=r[D++],ie=r[D++],ee=r[D++],W=r[D++];if(g){var N=y[C++];if(k+N>x){var j=(x-k)/N;Z8(d,z,X,ee,j,_v),Z8(h,G,ie,W,j,Sv),t.bezierCurveTo(_v[1],Sv[1],_v[2],Sv[2],_v[3],Sv[3]);break e}k+=N}t.bezierCurveTo(z,G,X,ie,ee,W),d=ee,h=W;break}case ro.Q:{var z=r[D++],G=r[D++],X=r[D++],ie=r[D++];if(g){var N=y[C++];if(k+N>x){var j=(x-k)/N;J8(d,z,X,j,_v),J8(h,G,ie,j,Sv),t.quadraticCurveTo(_v[1],Sv[1],_v[2],Sv[2]);break e}k+=N}t.quadraticCurveTo(z,G,X,ie),d=X,h=ie;break}case ro.A:var q=r[D++],Q=r[D++],ne=r[D++],ae=r[D++],re=r[D++],Ce=r[D++],we=r[D++],ve=!r[D++],me=ne>ae?ne:ae,xe=lh(ne-ae)>.001,Be=re+Ce,Ke=!1;if(g){var N=y[C++];k+N>x&&(Be=re+Ce*(x-k)/N,Ke=!0),k+=N}if(xe&&t.ellipse?t.ellipse(q,Q,ne,ae,we,re,Be,ve):t.arc(q,Q,me,re,Be,ve),Ke)break e;M&&(l=kv(re)*ne+q,c=xv(re)*ae+Q),d=kv(Be)*ne+q,h=xv(Be)*ae+Q;break;case ro.R:l=d=r[D],c=h=r[D+1],p=r[D++],m=r[D++];var ze=r[D++],be=r[D++];if(g){var N=y[C++];if(k+N>x){var _e=x-k;t.moveTo(p,m),t.lineTo(p+ON(_e,ze),m),_e-=ze,_e>0&&t.lineTo(p+ze,m+ON(_e,be)),_e-=be,_e>0&&t.lineTo(p+$N(ze-_e,0),m+be),_e-=ze,_e>0&&t.lineTo(p,m+$N(be-_e,0));break e}k+=N}t.rect(p,m,ze,be);break;case ro.Z:if(g){var N=y[C++];if(k+N>x){var j=(x-k)/N;t.lineTo(d*(1-j)+l*j,h*(1-j)+c*j);break e}k+=N}t.closePath(),d=l,h=c}}},e.prototype.clone=function(){var t=new e,n=this.data;return t.data=n.slice?n.slice():Array.prototype.slice.call(n),t._len=this._len,t},e.CMD=ro,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function l1(e,t,n,r,o,a,s){if(o===0)return!1;var l=o,c=0,d=e;if(s>t+l&&s>r+l||se+l&&a>n+l||at+p&&h>r+p&&h>a+p&&h>l+p||he+p&&d>n+p&&d>o+p&&d>s+p||dt+d&&c>r+d&&c>a+d||ce+d&&l>n+d&&l>o+d||ln||h+do&&(o+=J2);var m=Math.atan2(c,l);return m<0&&(m+=J2),m>=r&&m<=o||m+J2>=r&&m+J2<=o}function Cv(e,t,n,r,o,a){if(a>t&&a>r||ao?l:0}var Ep=Pm.CMD,wv=Math.PI*2,nct=1e-4;function rct(e,t){return Math.abs(e-t)t&&d>r&&d>a&&d>l||d1&&ict(),g=Va(t,r,a,l,Lc[0]),m>1&&(y=Va(t,r,a,l,Lc[1]))),m===2?kt&&l>r&&l>a||l=0&&d<=1){for(var h=0,p=yu(t,r,a,d),m=0;mn||l<-n)return 0;var c=Math.sqrt(n*n-l*l);jl[0]=-c,jl[1]=c;var d=Math.abs(r-o);if(d<1e-4)return 0;if(d>=wv-1e-4){r=0,o=wv;var h=a?1:-1;return s>=jl[0]+e&&s<=jl[1]+e?h:0}if(r>o){var p=r;r=o,o=p}r<0&&(r+=wv,o+=wv);for(var m=0,g=0;g<2;g++){var y=jl[g];if(y+e>s){var S=Math.atan2(l,y),h=a?1:-1;S<0&&(S=wv+S),(S>=r&&S<=o||S+wv>=r&&S+wv<=o)&&(S>Math.PI/2&&S1&&(n||(l+=Cv(c,d,h,p,r,o))),k&&(c=a[y],d=a[y+1],h=c,p=d),S){case Ep.M:h=a[y++],p=a[y++],c=h,d=p;break;case Ep.L:if(n){if(l1(c,d,a[y],a[y+1],t,r,o))return!0}else l+=Cv(c,d,a[y],a[y+1],r,o)||0;c=a[y++],d=a[y++];break;case Ep.C:if(n){if(Qut(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],t,r,o))return!0}else l+=oct(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],r,o)||0;c=a[y++],d=a[y++];break;case Ep.Q:if(n){if(ect(c,d,a[y++],a[y++],a[y],a[y+1],t,r,o))return!0}else l+=sct(c,d,a[y++],a[y++],a[y],a[y+1],r,o)||0;c=a[y++],d=a[y++];break;case Ep.A:var C=a[y++],x=a[y++],E=a[y++],_=a[y++],T=a[y++],D=a[y++];y+=1;var P=!!(1-a[y++]);m=Math.cos(T)*E+C,g=Math.sin(T)*_+x,k?(h=m,p=g):l+=Cv(c,d,m,g,r,o);var M=(r-C)*_/E+C;if(n){if(tct(C,x,_,T,T+D,P,t,M,o))return!0}else l+=act(C,x,_,T,T+D,P,M,o);c=Math.cos(T+D)*E+C,d=Math.sin(T+D)*_+x;break;case Ep.R:h=c=a[y++],p=d=a[y++];var $=a[y++],I=a[y++];if(m=h+$,g=p+I,n){if(l1(h,p,m,p,t,r,o)||l1(m,p,m,g,t,r,o)||l1(m,g,h,g,t,r,o)||l1(h,g,h,p,t,r,o))return!0}else l+=Cv(m,p,m,g,r,o),l+=Cv(h,g,h,p,r,o);break;case Ep.Z:if(n){if(l1(c,d,h,p,t,r,o))return!0}else l+=Cv(c,d,h,p,r,o);c=h,d=p;break}}return!n&&!rct(d,p)&&(l+=Cv(c,d,h,p,r,o)||0),l!==0}function lct(e,t,n){return wme(e,0,!1,t,n)}function uct(e,t,n,r){return wme(e,t,!0,n,r)}var Eme=ao({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},hm),cct={style:ao({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},dA.style)},FN=o_.concat(["invisible","culling","z","z2","zlevel","parent"]),ho=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.update=function(){var n=this;e.prototype.update.call(this);var r=this.style;if(r.decal){var o=this._decalEl=this._decalEl||new t;o.buildPath===t.prototype.buildPath&&(o.buildPath=function(c){n.buildPath(c,n.shape)}),o.silent=!0;var a=o.style;for(var s in r)a[s]!==r[s]&&(a[s]=r[s]);a.fill=r.fill?r.decal:null,a.decal=null,a.shadowColor=null,r.strokeFirst&&(a.stroke=null);for(var l=0;l.5?jV:r>.2?Glt:VV}else if(n)return VV}return jV},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(yr(r)){var o=this.__zr,a=!!(o&&o.isDarkMode()),s=Q8(n,0)0))},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.getBoundingRect=function(){var n=this._rect,r=this.style,o=!n;if(o){var a=!1;this.path||(a=!0,this.createPathProxy());var s=this.path;(a||this.__dirty&P1)&&(s.beginPath(),this.buildPath(s,this.shape,!1),this.pathUpdated()),n=s.getBoundingRect()}if(this._rect=n,this.hasStroke()&&this.path&&this.path.len()>0){var l=this._rectStroke||(this._rectStroke=n.clone());if(this.__dirty||o){l.copy(n);var c=r.strokeNoScale?this.getLineScale():1,d=r.lineWidth;if(!this.hasFill()){var h=this.strokeContainThreshold;d=Math.max(d,h??4)}c>1e-10&&(l.width+=d/c,l.height+=d/c,l.x-=d/c/2,l.y-=d/c/2)}return l}return n},t.prototype.contain=function(n,r){var o=this.transformCoordToLocal(n,r),a=this.getBoundingRect(),s=this.style;if(n=o[0],r=o[1],a.contain(n,r)){var l=this.path;if(this.hasStroke()){var c=s.lineWidth,d=s.strokeNoScale?this.getLineScale():1;if(d>1e-10&&(this.hasFill()||(c=Math.max(c,this.strokeContainThreshold)),uct(l,c/d,n,r)))return!0}if(this.hasFill())return lct(l,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=P1,this._rect&&(this._rect=null),this._decalEl&&this._decalEl.dirtyShape(),this.markRedraw()},t.prototype.dirty=function(){this.dirtyStyle(),this.dirtyShape()},t.prototype.animateShape=function(n){return this.animate("shape",n)},t.prototype.updateDuringAnimation=function(n){n==="style"?this.dirtyStyle():n==="shape"?this.dirtyShape():this.markRedraw()},t.prototype.attrKV=function(n,r){n==="shape"?this.setShape(r):e.prototype.attrKV.call(this,n,r)},t.prototype.setShape=function(n,r){var o=this.shape;return o||(o=this.shape={}),typeof n=="string"?o[n]=r:bn(o,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&P1)},t.prototype.createStyle=function(n){return sA(Eme,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=bn({},this.shape))},t.prototype._applyStateObj=function(n,r,o,a,s,l){e.prototype._applyStateObj.call(this,n,r,o,a,s,l);var c=!(r&&a),d;if(r&&r.shape?s?a?d=r.shape:(d=bn({},o.shape),bn(d,r.shape)):(d=bn({},a?this.shape:o.shape),bn(d,r.shape)):c&&(d=o.shape),d)if(s){this.shape=bn({},this.shape);for(var h={},p=es(d),m=0;m0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return sA(dct,n)},t.prototype.setBoundingRect=function(n){this._rect=n},t.prototype.getBoundingRect=function(){var n=this.style;if(!this._rect){var r=n.text;r!=null?r+="":r="";var o=cW(r,n.font,n.textAlign,n.textBaseline);if(o.x+=n.x||0,o.y+=n.y||0,this.hasStroke()){var a=n.lineWidth;o.x-=a/2,o.y-=a/2,o.width+=a,o.height+=a}this._rect=o}return this._rect},t.initDefaultProps=(function(){var n=t.prototype;n.dirtyRectTolerance=10})(),t})(oS);iT.prototype.type="tspan";var fct=ao({x:0,y:0},hm),hct={style:ao({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},dA.style)};function pct(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var O0=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return sA(fct,n)},t.prototype._getSize=function(n){var r=this.style,o=r[n];if(o!=null)return o;var a=pct(r.image)?r.image:this.__image;if(!a)return 0;var s=n==="width"?"height":"width",l=r[s];return l==null?a[n]:a[n]/a[s]*l},t.prototype.getWidth=function(){return this._getSize("width")},t.prototype.getHeight=function(){return this._getSize("height")},t.prototype.getAnimationStyleProps=function(){return hct},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new so(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(oS);O0.prototype.type="image";function vct(e,t){var n=t.x,r=t.y,o=t.width,a=t.height,s=t.r,l,c,d,h;o<0&&(n=n+o,o=-o),a<0&&(r=r+a,a=-a),typeof s=="number"?l=c=d=h=s:s instanceof Array?s.length===1?l=c=d=h=s[0]:s.length===2?(l=d=s[0],c=h=s[1]):s.length===3?(l=s[0],c=h=s[1],d=s[2]):(l=s[0],c=s[1],d=s[2],h=s[3]):l=c=d=h=0;var p;l+c>o&&(p=l+c,l*=o/p,c*=o/p),d+h>o&&(p=d+h,d*=o/p,h*=o/p),c+d>a&&(p=c+d,c*=a/p,d*=a/p),l+h>a&&(p=l+h,l*=a/p,h*=a/p),e.moveTo(n+l,r),e.lineTo(n+o-c,r),c!==0&&e.arc(n+o-c,r+c,c,-Math.PI/2,0),e.lineTo(n+o,r+a-d),d!==0&&e.arc(n+o-d,r+a-d,d,0,Math.PI/2),e.lineTo(n+h,r+a),h!==0&&e.arc(n+h,r+a-h,h,Math.PI/2,Math.PI),e.lineTo(n,r+l),l!==0&&e.arc(n+l,r+l,l,Math.PI,Math.PI*1.5)}var z1=Math.round;function Tme(e,t,n){if(t){var r=t.x1,o=t.x2,a=t.y1,s=t.y2;e.x1=r,e.x2=o,e.y1=a,e.y2=s;var l=n&&n.lineWidth;return l&&(z1(r*2)===z1(o*2)&&(e.x1=e.x2=qv(r,l,!0)),z1(a*2)===z1(s*2)&&(e.y1=e.y2=qv(a,l,!0))),e}}function Ame(e,t,n){if(t){var r=t.x,o=t.y,a=t.width,s=t.height;e.x=r,e.y=o,e.width=a,e.height=s;var l=n&&n.lineWidth;return l&&(e.x=qv(r,l,!0),e.y=qv(o,l,!0),e.width=Math.max(qv(r+a,l,!1)-e.x,a===0?0:1),e.height=Math.max(qv(o+s,l,!1)-e.y,s===0?0:1)),e}}function qv(e,t,n){if(!t)return e;var r=z1(e*2);return(r+z1(t))%2===0?r/2:(r+(n?1:-1))/2}var mct=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),gct={},Zs=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new mct},t.prototype.buildPath=function(n,r){var o,a,s,l;if(this.subPixelOptimize){var c=Ame(gct,r,this.style);o=c.x,a=c.y,s=c.width,l=c.height,c.r=r.r,r=c}else o=r.x,a=r.y,s=r.width,l=r.height;r.r?vct(n,r):n.rect(o,a,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(ho);Zs.prototype.type="rect";var $ie={fill:"#000"},Bie=2,yct={style:ao({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},dA.style)},Ja=(function(e){Nn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=$ie,r.attr(n),r}return t.prototype.childrenRef=function(){return this._children},t.prototype.update=function(){e.prototype.update.call(this),this.styleChanged()&&this._updateSubTexts();for(var n=0;n0,j=n.width!=null&&(n.overflow==="truncate"||n.overflow==="break"||n.overflow==="breakAll"),U=s.calculatedLineHeight,z=0;z=0&&(z=D[U],z.align==="right");)this._placeToken(z,n,M,C,j,"right",E),$-=z.width,j-=z.width,U--;for(N+=(a-(N-k)-(x-j)-$)/2;I<=U;)z=D[I],this._placeToken(z,n,M,C,N+z.width/2,"center",E),N+=z.width,I++;C+=M}},t.prototype._placeToken=function(n,r,o,a,s,l,c){var d=r.rich[n.styleName]||{};d.text=n.text;var h=n.verticalAlign,p=a+o/2;h==="top"?p=a+n.height/2:h==="bottom"&&(p=a+o-n.height/2);var m=!n.isLineHolder&&jN(d);m&&this._renderBackground(d,r,l==="right"?s-n.width:l==="center"?s-n.width/2:s,p-n.height/2,n.width,n.height);var g=!!d.backgroundColor,y=n.textPadding;y&&(s=Uie(s,l,y),p-=n.height/2-y[0]-n.innerHeight/2);var S=this._getOrCreateChild(iT),k=S.createStyle();S.useStyle(k);var C=this._defaultStyle,x=!1,E=0,_=zie("fill"in d?d.fill:"fill"in r?r.fill:(x=!0,C.fill)),T=Vie("stroke"in d?d.stroke:"stroke"in r?r.stroke:!g&&!c&&(!C.autoStroke||x)?(E=Bie,C.stroke):null),D=d.textShadowBlur>0||r.textShadowBlur>0;k.text=n.text,k.x=s,k.y=p,D&&(k.shadowBlur=d.textShadowBlur||r.textShadowBlur||0,k.shadowColor=d.textShadowColor||r.textShadowColor||"transparent",k.shadowOffsetX=d.textShadowOffsetX||r.textShadowOffsetX||0,k.shadowOffsetY=d.textShadowOffsetY||r.textShadowOffsetY||0),k.textAlign=l,k.textBaseline="middle",k.font=n.font||Im,k.opacity=cb(d.opacity,r.opacity,1),Fie(k,d),T&&(k.lineWidth=cb(d.lineWidth,r.lineWidth,E),k.lineDash=pi(d.lineDash,r.lineDash),k.lineDashOffset=r.lineDashOffset||0,k.stroke=T),_&&(k.fill=_);var P=n.contentWidth,M=n.contentHeight;S.setBoundingRect(new so(I4(k.x,P,k.textAlign),R1(k.y,M,k.textBaseline),P,M))},t.prototype._renderBackground=function(n,r,o,a,s,l){var c=n.backgroundColor,d=n.borderWidth,h=n.borderColor,p=c&&c.image,m=c&&!p,g=n.borderRadius,y=this,S,k;if(m||n.lineHeight||d&&h){S=this._getOrCreateChild(Zs),S.useStyle(S.createStyle()),S.style.fill=null;var C=S.shape;C.x=o,C.y=a,C.width=s,C.height=l,C.r=g,S.dirtyShape()}if(m){var x=S.style;x.fill=c||null,x.fillOpacity=pi(n.fillOpacity,1)}else if(p){k=this._getOrCreateChild(O0),k.onload=function(){y.dirtyStyle()};var E=k.style;E.image=c.image,E.x=o,E.y=a,E.width=s,E.height=l}if(d&&h){var x=S.style;x.lineWidth=d,x.stroke=h,x.strokeOpacity=pi(n.strokeOpacity,1),x.lineDash=n.borderDash,x.lineDashOffset=n.borderDashOffset||0,S.strokeContainThreshold=0,S.hasFill()&&S.hasStroke()&&(x.strokeFirst=!0,x.lineWidth*=2)}var _=(S||k).style;_.shadowBlur=n.shadowBlur||0,_.shadowColor=n.shadowColor||"transparent",_.shadowOffsetX=n.shadowOffsetX||0,_.shadowOffsetY=n.shadowOffsetY||0,_.opacity=cb(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return kct(n)&&(r=[n.fontStyle,n.fontWeight,Sct(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&ff(r)||n.textFont||n.font},t})(oS),bct={left:!0,right:1,center:1},_ct={top:1,bottom:1,middle:1},Nie=["fontStyle","fontWeight","fontSize","fontFamily"];function Sct(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?QH+"px":e+"px"}function Fie(e,t){for(var n=0;n=0,a=!1;if(e instanceof ho){var s=Ime(e),l=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(u1(l)||u1(c)){r=r||{};var d=r.style||{};d.fill==="inherit"?(a=!0,r=bn({},r),d=bn({},d),d.fill=l):!u1(d.fill)&&u1(l)?(a=!0,r=bn({},r),d=bn({},d),d.fill=hie(l)):!u1(d.stroke)&&u1(c)&&(a||(r=bn({},r),d=bn({},d)),d.stroke=hie(c)),r.style=d}}if(r&&r.z2==null){a||(r=bn({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(h??wct)}return r}function Dct(e,t,n){if(n&&n.z2==null){n=bn({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Ect)}return n}function Pct(e,t,n){var r=vo(e.currentStates,t)>=0,o=e.style.opacity,a=r?null:Ict(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=bn({},n),s=bn({opacity:r?o:a.opacity*.1},s),n.style=s),n}function VN(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Lct(this,e,t,n);if(e==="blur")return Pct(this,e,n);if(e==="select")return Dct(this,e,n)}return n}function Rct(e){e.stateProxy=VN;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=VN),n&&(n.stateProxy=VN)}function Yie(e,t){!$me(e,t)&&!e.__highByOuter&&Zh(e,Lme)}function Xie(e,t){!$me(e,t)&&!e.__highByOuter&&Zh(e,Dme)}function sT(e,t){e.__highByOuter|=1<<(t||0),Zh(e,Lme)}function aT(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Zh(e,Dme)}function Mct(e){Zh(e,yW)}function Rme(e){Zh(e,Pme)}function Mme(e){Zh(e,Tct)}function Ome(e){Zh(e,Act)}function $me(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Bme(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(o,a){var s=mW(a),l=o==="series",c=l?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!l&&r.push(c),s.isBlured&&(c.group.traverse(function(d){Pme(d)}),l&&n.push(a)),s.isBlured=!1}),Et(r,function(o){o&&o.toggleBlurSeries&&o.toggleBlurSeries(n,!1,t)})}function KV(e,t,n,r){var o=r.getModel();n=n||"coordinateSystem";function a(d,h){for(var p=0;p0){var l={dataIndex:s,seriesIndex:n.seriesIndex};a!=null&&(l.dataType=a),t.push(l)}})}),t}function YV(e,t,n){Nme(e,!0),Zh(e,Rct),Vct(e,t,n)}function jct(e){Nme(e,!1)}function l_(e,t,n,r){r?jct(e):YV(e,t,n)}function Vct(e,t,n){var r=qi(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var Jie=["emphasis","blur","select"],zct={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function lT(e,t,n,r){n=n||"itemStyle";for(var o=0;o1&&(s*=zN(y),l*=zN(y));var S=(o===a?-1:1)*zN((s*s*(l*l)-s*s*(g*g)-l*l*(m*m))/(s*s*(g*g)+l*l*(m*m)))||0,k=S*s*g/l,C=S*-l*m/s,x=(e+n)/2+Ox(p)*k-Mx(p)*C,E=(t+r)/2+Mx(p)*k+Ox(p)*C,_=noe([1,0],[(m-k)/s,(g-C)/l]),T=[(m-k)/s,(g-C)/l],D=[(-1*m-k)/s,(-1*g-C)/l],P=noe(T,D);if(JV(T,D)<=-1&&(P=Q2),JV(T,D)>=1&&(P=0),P<0){var M=Math.round(P/Q2*1e6)/1e6;P=Q2*2+M%2*Q2}h.addData(d,x,E,s,l,_,P,p,a)}var qct=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Yct=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Xct(e){var t=new Pm;if(!e)return t;var n=0,r=0,o=n,a=r,s,l=Pm.CMD,c=e.match(qct);if(!c)return t;for(var d=0;dz*z+G*G&&(M=I,$=N),{cx:M,cy:$,x0:-h,y0:-p,x1:M*(o/T-1),y1:$*(o/T-1)}}function idt(e){var t;if(Qn(e)){var n=e.length;if(!n)return e;n===1?t=[e[0],e[0],0,0]:n===2?t=[e[0],e[0],e[1],e[1]]:n===3?t=e.concat(e[2]):t=e}else t=[e,e,e,e];return t}function odt(e,t){var n,r=L4(t.r,0),o=L4(t.r0||0,0),a=r>0,s=o>0;if(!(!a&&!s)){if(a||(r=o,o=0),o>r){var l=r;r=o,o=l}var c=t.startAngle,d=t.endAngle;if(!(isNaN(c)||isNaN(d))){var h=t.cx,p=t.cy,m=!!t.clockwise,g=ioe(d-c),y=g>UN&&g%UN;if(y>fd&&(g=y),!(r>fd))e.moveTo(h,p);else if(g>UN-fd)e.moveTo(h+r*d1(c),p+r*Ev(c)),e.arc(h,p,r,c,d,!m),o>fd&&(e.moveTo(h+o*d1(d),p+o*Ev(d)),e.arc(h,p,o,d,c,m));else{var S=void 0,k=void 0,C=void 0,x=void 0,E=void 0,_=void 0,T=void 0,D=void 0,P=void 0,M=void 0,$=void 0,I=void 0,N=void 0,j=void 0,U=void 0,z=void 0,G=r*d1(c),X=r*Ev(c),ie=o*d1(d),ee=o*Ev(d),W=g>fd;if(W){var q=t.cornerRadius;q&&(n=idt(q),S=n[0],k=n[1],C=n[2],x=n[3]);var Q=ioe(r-o)/2;if(E=Yd(Q,C),_=Yd(Q,x),T=Yd(Q,S),D=Yd(Q,k),$=P=L4(E,_),I=M=L4(T,D),(P>fd||M>fd)&&(N=r*d1(d),j=r*Ev(d),U=o*d1(c),z=o*Ev(c),gfd){var xe=Yd(C,$),Be=Yd(x,$),Ke=$x(U,z,G,X,r,xe,m),ze=$x(N,j,ie,ee,r,Be,m);e.moveTo(h+Ke.cx+Ke.x0,p+Ke.cy+Ke.y0),$0&&e.arc(h+Ke.cx,p+Ke.cy,xe,al(Ke.y0,Ke.x0),al(Ke.y1,Ke.x1),!m),e.arc(h,p,r,al(Ke.cy+Ke.y1,Ke.cx+Ke.x1),al(ze.cy+ze.y1,ze.cx+ze.x1),!m),Be>0&&e.arc(h+ze.cx,p+ze.cy,Be,al(ze.y1,ze.x1),al(ze.y0,ze.x0),!m))}else e.moveTo(h+G,p+X),e.arc(h,p,r,c,d,!m);if(!(o>fd)||!W)e.lineTo(h+ie,p+ee);else if(I>fd){var xe=Yd(S,I),Be=Yd(k,I),Ke=$x(ie,ee,N,j,o,-Be,m),ze=$x(G,X,U,z,o,-xe,m);e.lineTo(h+Ke.cx+Ke.x0,p+Ke.cy+Ke.y0),I0&&e.arc(h+Ke.cx,p+Ke.cy,Be,al(Ke.y0,Ke.x0),al(Ke.y1,Ke.x1),!m),e.arc(h,p,o,al(Ke.cy+Ke.y1,Ke.cx+Ke.x1),al(ze.cy+ze.y1,ze.cx+ze.x1),m),xe>0&&e.arc(h+ze.cx,p+ze.cy,xe,al(ze.y1,ze.x1),al(ze.y0,ze.x0),!m))}else e.lineTo(h+ie,p+ee),e.arc(h,p,o,d,c,m)}e.closePath()}}}var sdt=(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})(),$0=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new sdt},t.prototype.buildPath=function(n,r){odt(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(ho);$0.prototype.type="sector";var adt=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),SW=(function(e){Nn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new adt},t.prototype.buildPath=function(n,r){var o=r.cx,a=r.cy,s=Math.PI*2;n.moveTo(o+r.r,a),n.arc(o,a,r.r,0,s,!1),n.moveTo(o+r.r0,a),n.arc(o,a,r.r0,0,s,!0)},t})(ho);SW.prototype.type="ring";function ldt(e,t,n,r){var o=[],a=[],s=[],l=[],c,d,h,p;if(r){h=[1/0,1/0],p=[-1/0,-1/0];for(var m=0,g=e.length;m=2){if(r){var a=ldt(o,r,n,t.smoothConstraint);e.moveTo(o[0][0],o[0][1]);for(var s=o.length,l=0;l<(n?s:s-1);l++){var c=a[l*2],d=a[l*2+1],h=o[(l+1)%s];e.bezierCurveTo(c[0],c[1],d[0],d[1],h[0],h[1])}}else{e.moveTo(o[0][0],o[0][1]);for(var l=1,p=o.length;lAv[1]){if(l=!1,a)return l;var h=Math.abs(Av[0]-Tv[1]),p=Math.abs(Tv[0]-Av[1]);Math.min(h,p)>o.len()&&(h0){var p=h.duration,m=h.delay,g=h.easing,y={duration:p,delay:m||0,easing:g,done:a,force:!!a||!!s,setToFinal:!d,scope:e,during:s};l?t.animateFrom(n,y):t.animateTo(n,y)}else t.stopAnimation(),!l&&t.attr(n),s&&s(1),a&&a()}function Ql(e,t,n,r,o,a){CW("update",e,t,n,r,o,a)}function zc(e,t,n,r,o,a){CW("enter",e,t,n,r,o,a)}function yb(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 aoe(e){return!e.isGroup}function Ldt(e){return e.shape!=null}function Yme(e,t,n){if(!e||!t)return;function r(s){var l={};return s.traverse(function(c){aoe(c)&&c.anid&&(l[c.anid]=c)}),l}function o(s){var l={x:s.x,y:s.y,rotation:s.rotation};return Ldt(s)&&(l.shape=bn({},s.shape)),l}var a=r(e);t.traverse(function(s){if(aoe(s)&&s.anid){var l=a[s.anid];if(l){var c=o(s);s.attr(o(l)),Ql(s,c,n,qi(s).dataIndex)}}})}function Ddt(e,t){return xr(e,function(n){var r=n[0];r=fT(r,t.x),r=hT(r,t.x+t.width);var o=n[1];return o=fT(o,t.y),o=hT(o,t.y+t.height),[r,o]})}function Pdt(e,t){var n=fT(e.x,t.x),r=hT(e.x+e.width,t.x+t.width),o=fT(e.y,t.y),a=hT(e.y+e.height,t.y+t.height);if(r>=n&&a>=o)return{x:n,y:o,width:r-n,height:a-o}}function AW(e,t,n){var r=bn({rectHover:!0},t),o=r.style={strokeNoScale:!0};if(n=n||{x:-1,y:-1,width:2,height:2},e)return e.indexOf("image://")===0?(o.image=e.slice(8),ao(o,n),new O0(r)):EW(e.replace("path://",""),r,n,"center")}function Rdt(e,t,n,r,o){for(var a=0,s=o[o.length-1];a1)return!1;var k=HN(g,y,h,p)/m;return!(k<0||k>1)}function HN(e,t,n,r){return e*r-n*t}function Mdt(e){return e<=1e-6&&e>=-1e-6}function gA(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=yr(t)?{formatter:t}:t,a=n.mainType,s=n.componentIndex,l={componentType:a,name:r,$vars:["name"]};l[a+"Index"]=s;var c=e.formatterParamsExtra;c&&Et(es(c),function(h){Lm(l,h)||(l[h]=c[h],l.$vars.push(h))});var d=qi(e.el);d.componentMainType=a,d.componentIndex=s,d.tooltipConfig={name:r,option:ao({content:r,encodeHTMLContent:!0,formatterParams:l},o)}}function loe(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function yA(e,t){if(e)if(Qn(e))for(var n=0;n=0&&l.push(c)}),l}}function Qme(e,t){return oo(oo({},e,!0),t,!0)}const Xdt={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:". "}}}},Zdt={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 pT="ZH",IW="EN",uy=IW,rE={},LW={},ege=Vr.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||uy).toUpperCase();return e.indexOf(pT)>-1?pT:uy})():uy;function tge(e,t){e=e.toUpperCase(),LW[e]=new ks(t),rE[e]=t}function Jdt(e){if(yr(e)){var t=rE[e.toUpperCase()]||{};return e===pT||e===IW?Fi(t):oo(Fi(t),Fi(rE[uy]),!1)}else return oo(Fi(e),Fi(rE[uy]),!1)}function Qdt(e){return LW[e]}function eft(){return LW[uy]}tge(IW,Xdt);tge(pT,Zdt);var DW=1e3,PW=DW*60,bb=PW*60,Bc=bb*24,voe=Bc*365,D4={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}"},Fx="{yyyy}-{MM}-{dd}",moe={year:"{yyyy}",month:"{yyyy}-{MM}",day:Fx,hour:Fx+" "+D4.hour,minute:Fx+" "+D4.minute,second:Fx+" "+D4.second,millisecond:D4.none},KN=["year","month","day","hour","minute","second","millisecond"],nge=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Tp(e,t){return e+="","0000".substr(0,t-e.length)+e}function cy(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 tft(e){return e===cy(e)}function nft(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function kA(e,t,n,r){var o=Uh(e),a=o[RW(n)](),s=o[dy(n)]()+1,l=Math.floor((s-1)/3)+1,c=o[xA(n)](),d=o["get"+(n?"UTC":"")+"Day"](),h=o[c_(n)](),p=(h-1)%12+1,m=o[CA(n)](),g=o[wA(n)](),y=o[EA(n)](),S=h>=12?"pm":"am",k=S.toUpperCase(),C=r instanceof ks?r:Qdt(r||ege)||eft(),x=C.getModel("time"),E=x.get("month"),_=x.get("monthAbbr"),T=x.get("dayOfWeek"),D=x.get("dayOfWeekAbbr");return(t||"").replace(/{a}/g,S+"").replace(/{A}/g,k+"").replace(/{yyyy}/g,a+"").replace(/{yy}/g,Tp(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,E[s-1]).replace(/{MMM}/g,_[s-1]).replace(/{MM}/g,Tp(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,Tp(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,T[d]).replace(/{ee}/g,D[d]).replace(/{e}/g,d+"").replace(/{HH}/g,Tp(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Tp(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Tp(m,2)).replace(/{m}/g,m+"").replace(/{ss}/g,Tp(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,Tp(y,3)).replace(/{S}/g,y+"")}function rft(e,t,n,r,o){var a=null;if(yr(n))a=n;else if(ei(n))a=n(e.value,t,{level:e.level});else{var s=bn({},D4);if(e.level>0)for(var l=0;l=0;--l)if(c[d]){a=c[d];break}a=a||s.none}if(Qn(a)){var p=e.level==null?0:e.level>=0?e.level:a.length+e.level;p=Math.min(p,a.length-1),a=a[p]}}return kA(new Date(e.value),a,o,r)}function rge(e,t){var n=Uh(e),r=n[dy(t)]()+1,o=n[xA(t)](),a=n[c_(t)](),s=n[CA(t)](),l=n[wA(t)](),c=n[EA(t)](),d=c===0,h=d&&l===0,p=h&&s===0,m=p&&a===0,g=m&&o===1,y=g&&r===1;return y?"year":g?"month":m?"day":p?"hour":h?"minute":d?"second":"millisecond"}function goe(e,t,n){var r=Eo(e)?Uh(e):e;switch(t=t||rge(e,n),t){case"year":return r[RW(n)]();case"half-year":return r[dy(n)]()>=6?1:0;case"quarter":return Math.floor((r[dy(n)]()+1)/4);case"month":return r[dy(n)]();case"day":return r[xA(n)]();case"half-day":return r[c_(n)]()/24;case"hour":return r[c_(n)]();case"minute":return r[CA(n)]();case"second":return r[wA(n)]();case"millisecond":return r[EA(n)]()}}function RW(e){return e?"getUTCFullYear":"getFullYear"}function dy(e){return e?"getUTCMonth":"getMonth"}function xA(e){return e?"getUTCDate":"getDate"}function c_(e){return e?"getUTCHours":"getHours"}function CA(e){return e?"getUTCMinutes":"getMinutes"}function wA(e){return e?"getUTCSeconds":"getSeconds"}function EA(e){return e?"getUTCMilliseconds":"getMilliseconds"}function ift(e){return e?"setUTCFullYear":"setFullYear"}function ige(e){return e?"setUTCMonth":"setMonth"}function oge(e){return e?"setUTCDate":"setDate"}function sge(e){return e?"setUTCHours":"setHours"}function age(e){return e?"setUTCMinutes":"setMinutes"}function lge(e){return e?"setUTCSeconds":"setSeconds"}function uge(e){return e?"setUTCMilliseconds":"setMilliseconds"}function cge(e){if(!dut(e))return yr(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function dge(e,t){return e=(e||"").toLowerCase().replace(/-(.)/g,function(n,r){return r.toUpperCase()}),t&&e&&(e=e.charAt(0).toUpperCase()+e.slice(1)),e}var TA=zve;function ez(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&ff(h)?h:"-"}function a(h){return!!(h!=null&&!isNaN(h)&&isFinite(h))}var s=t==="time",l=e instanceof Date;if(s||l){var c=s?Uh(e):e;if(isNaN(+c)){if(l)return"-"}else return kA(c,r,n)}if(t==="ordinal")return CV(e)?o(e):Eo(e)&&a(e)?e+"":"-";var d=rT(e);return a(d)?cge(d):CV(e)?o(e):typeof e=="boolean"?e+"":"-"}var yoe=["a","b","c","d","e","f","g"],qN=function(e,t){return"{"+e+(t??"")+"}"};function fge(e,t,n){Qn(t)||(t=[t]);var r=t.length;if(!r)return"";for(var o=t[0].$vars||[],a=0;a':'';var s=n.markerId||"markerX";return{renderMode:a,content:"{"+s+"|} ",style:o==="subItem"?{width:4,height:4,borderRadius:2,backgroundColor:r}:{width:10,height:10,borderRadius:5,backgroundColor:r}}}function Rm(e,t){return t=t||"transparent",yr(e)?e:Tr(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function boe(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var iE=Et,sft=["left","right","top","bottom","width","height"],jx=[["width","left","right"],["height","top","bottom"]];function MW(e,t,n,r,o){var a=0,s=0;r==null&&(r=1/0),o==null&&(o=1/0);var l=0;t.eachChild(function(c,d){var h=c.getBoundingRect(),p=t.childAt(d+1),m=p&&p.getBoundingRect(),g,y;if(e==="horizontal"){var S=h.width+(m?-m.x+h.x:0);g=a+S,g>r||c.newline?(a=0,g=S,s+=l+n,l=h.height):l=Math.max(l,h.height)}else{var k=h.height+(m?-m.y+h.y:0);y=s+k,y>o||c.newline?(a+=l+n,s=0,y=k,l=h.width):l=Math.max(l,h.width)}c.newline||(c.x=a,c.y=s,c.markRedraw(),e==="horizontal"?a=g+n:s=y+n)})}var _b=MW;Ps(MW,"vertical");Ps(MW,"horizontal");function Oy(e,t,n){n=TA(n||0);var r=t.width,o=t.height,a=Jo(e.left,r),s=Jo(e.top,o),l=Jo(e.right,r),c=Jo(e.bottom,o),d=Jo(e.width,r),h=Jo(e.height,o),p=n[2]+n[0],m=n[1]+n[3],g=e.aspect;switch(isNaN(d)&&(d=r-l-m-a),isNaN(h)&&(h=o-c-p-s),g!=null&&(isNaN(d)&&isNaN(h)&&(g>r/o?d=r*.8:h=o*.8),isNaN(d)&&(d=g*h),isNaN(h)&&(h=d/g)),isNaN(a)&&(a=r-l-d-m),isNaN(s)&&(s=o-c-h-p),e.left||e.right){case"center":a=r/2-d/2-n[3];break;case"right":a=r-d-m;break}switch(e.top||e.bottom){case"middle":case"center":s=o/2-h/2-n[0];break;case"bottom":s=o-h-p;break}a=a||0,s=s||0,isNaN(d)&&(d=r-m-a-(l||0)),isNaN(h)&&(h=o-p-s-(c||0));var y=new so(a+n[3],s+n[0],d,h);return y.margin=n,y}function d_(e){var t=e.layoutMode||e.constructor.layoutMode;return Tr(t)?t:t?{type:t}:null}function $y(e,t,n){var r=n&&n.ignoreSize;!Qn(r)&&(r=[r,r]);var o=s(jx[0],0),a=s(jx[1],1);d(jx[0],e,o),d(jx[1],e,a);function s(h,p){var m={},g=0,y={},S=0,k=2;if(iE(h,function(E){y[E]=e[E]}),iE(h,function(E){l(t,E)&&(m[E]=y[E]=t[E]),c(m,E)&&g++,c(y,E)&&S++}),r[p])return c(t,h[1])?y[h[2]]=null:c(t,h[2])&&(y[h[1]]=null),y;if(S===k||!g)return y;if(g>=k)return m;for(var C=0;C=0;c--)l=oo(l,o[c],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var o=n+"Index",a=n+"Id";return iS(this.ecModel,n,{index:this.get(o,!0),id:this.get(a,!0)},r)},t.prototype.getBoxLayoutParams=function(){var n=this;return{left:n.get("left"),top:n.get("top"),right:n.get("right"),bottom:n.get("bottom"),width:n.get("width"),height:n.get("height")}},t.prototype.getZLevelKey=function(){return""},t.prototype.setZLevel=function(n){this.option.zlevel=n},t.protoInitialize=(function(){var n=t.prototype;n.type="component",n.id="",n.name="",n.mainType="",n.subType="",n.componentIndex=0})(),t})(ks);bme(co,ks);uA(co);qdt(co);Ydt(co,uft);function uft(e){var t=[];return Et(co.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=xr(t,function(n){return hf(n).main}),e!=="dataset"&&vo(t,"dataset")<=0&&t.unshift("dataset"),t}var hge="";typeof navigator<"u"&&(hge=navigator.platform||"");var f1="rgba(0, 0, 0, 0.2)";const cft={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:f1,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:f1,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:f1,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:f1,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:f1,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:f1,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:hge.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 pge=_i(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),Qc="original",Ru="arrayRows",$d="objectRows",Rf="keyedColumns",f0="typedArray",vge="unknown",Ph="column",d3="row",$a={Must:1,Might:2,Not:3},mge=$s();function dft(e){mge(e).datasetMap=_i()}function fft(e,t,n){var r={},o=OW(t);if(!o||!e)return r;var a=[],s=[],l=t.ecModel,c=mge(l).datasetMap,d=o.uid+"_"+n.seriesLayoutBy,h,p;e=e.slice(),Et(e,function(S,k){var C=Tr(S)?S:e[k]={name:S};C.type==="ordinal"&&h==null&&(h=k,p=y(C)),r[C.name]=[]});var m=c.get(d)||c.set(d,{categoryWayDim:p,valueWayDim:0});Et(e,function(S,k){var C=S.name,x=y(S);if(h==null){var E=m.valueWayDim;g(r[C],E,x),g(s,E,x),m.valueWayDim+=x}else if(h===k)g(r[C],0,x),g(a,0,x);else{var E=m.categoryWayDim;g(r[C],E,x),g(s,E,x),m.categoryWayDim+=x}});function g(S,k,C){for(var x=0;xt)return e[r];return e[n-1]}function yft(e,t,n,r,o,a,s){a=a||e;var l=t(a),c=l.paletteIdx||0,d=l.paletteNameMap=l.paletteNameMap||{};if(d.hasOwnProperty(o))return d[o];var h=s==null||!r?n:gft(r,s);if(h=h||n,!(!h||!h.length)){var p=h[c];return o&&(d[o]=p),l.paletteIdx=(c+1)%h.length,p}}function bft(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Vx,e4,Soe,koe="\0_ec_inner",_ft=1,BW=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,o,a,s,l){a=a||{},this.option=null,this._theme=new ks(a),this._locale=new ks(s),this._optionManager=l},t.prototype.setOption=function(n,r,o){var a=woe(r);this._optionManager.setOption(n,o,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,woe(r))},t.prototype._resetOption=function(n,r){var o=!1,a=this._optionManager;if(!n||n==="recreate"){var s=a.mountOption(n==="recreate");!this.option||n==="recreate"?Soe(this,s):(this.restoreData(),this._mergeOption(s,r)),o=!0}if((n==="timeline"||n==="media")&&this.restoreData(),!n||n==="recreate"||n==="timeline"){var l=a.getTimelineOption(this);l&&(o=!0,this._mergeOption(l,r))}if(!n||n==="recreate"||n==="media"){var c=a.getMediaOption(this);c.length&&Et(c,function(d){o=!0,this._mergeOption(d,r)},this)}return o},t.prototype.mergeOption=function(n){this._mergeOption(n,null)},t.prototype._mergeOption=function(n,r){var o=this.option,a=this._componentsMap,s=this._componentsCount,l=[],c=_i(),d=r&&r.replaceMergeMainTypeMap;dft(this),Et(n,function(p,m){p!=null&&(co.hasClass(m)?m&&(l.push(m),c.set(m,!0)):o[m]=o[m]==null?Fi(p):oo(o[m],p,!0))}),d&&d.each(function(p,m){co.hasClass(m)&&!c.get(m)&&(l.push(m),c.set(m,!0))}),co.topologicalTravel(l,co.getAllClassMainTypes(),h,this);function h(p){var m=mft(this,p,Xl(n[p])),g=a.get(p),y=g?d&&d.get(p)?"replaceMerge":"normalMerge":"replaceAll",S=put(g,m,y);Sut(S,p,co),o[p]=null,a.set(p,null),s.set(p,0);var k=[],C=[],x=0,E;Et(S,function(_,T){var D=_.existing,P=_.newOption;if(!P)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var M=p==="series",$=co.getClass(p,_.keyInfo.subType,!M);if(!$)return;if(p==="tooltip"){if(E)return;E=!0}if(D&&D.constructor===$)D.name=_.keyInfo.name,D.mergeOption(P,this),D.optionUpdated(P,!1);else{var I=bn({componentIndex:T},_.keyInfo);D=new $(P,this,this,I),bn(D,I),_.brandNew&&(D.__requireNewView=!0),D.init(P,this,this),D.optionUpdated(null,!0)}}D?(k.push(D.option),C.push(D),x++):(k.push(void 0),C.push(void 0))},this),o[p]=k,a.set(p,C),s.set(p,x),p==="series"&&Vx(this)}this._seriesIndices||Vx(this)},t.prototype.getOption=function(){var n=Fi(this.option);return Et(n,function(r,o){if(co.hasClass(o)){for(var a=Xl(r),s=a.length,l=!1,c=s-1;c>=0;c--)a[c]&&!s_(a[c])?l=!0:(a[c]=null,!l&&s--);a.length=s,n[o]=a}}),delete n[koe],n},t.prototype.getTheme=function(){return this._theme},t.prototype.getLocaleModel=function(){return this._locale},t.prototype.setUpdatePayload=function(n){this._payload=n},t.prototype.getUpdatePayload=function(){return this._payload},t.prototype.getComponent=function(n,r){var o=this._componentsMap.get(n);if(o){var a=o[r||0];if(a)return a;if(r==null){for(var s=0;s=t:n==="max"?e<=t:e===t}function Ift(e,t){return e.join(",")===t.join(",")}var ad=Et,f_=Tr,Eoe=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function XN(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Eoe.length;n=0;k--){var C=e[k];if(l||(y=C.data.rawIndexOf(C.stackedByDimension,g)),y>=0){var x=C.data.getByRawIndex(C.stackResultDimension,y);if(c==="all"||c==="positive"&&x>0||c==="negative"&&x<0||c==="samesign"&&m>=0&&x>0||c==="samesign"&&m<=0&&x<0){m=lut(m,x),S=x;break}}}return r[0]=m,r[1]=S,r})})}var IA=(function(){function e(t){this.data=t.data||(t.sourceFormat===Rf?{}:[]),this.sourceFormat=t.sourceFormat||vge,this.seriesLayoutBy=t.seriesLayoutBy||Ph,this.startIndex=t.startIndex||0,this.dimensionsDetectedCount=t.dimensionsDetectedCount,this.metaRawOption=t.metaRawOption;var n=this.dimensionsDefine=t.dimensionsDefine;if(n)for(var r=0;rS&&(S=E)}g[0]=y,g[1]=S}},o=function(){return this._data?this._data.length/this._dimSize:0};Roe=(t={},t[Ru+"_"+Ph]={pure:!0,appendData:a},t[Ru+"_"+d3]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[$d]={pure:!0,appendData:a},t[Rf]={pure:!0,appendData:function(s){var l=this._data;Et(s,function(c,d){for(var h=l[d]||(l[d]=[]),p=0;p<(c||[]).length;p++)h.push(c[p])})}},t[Qc]={appendData:a},t[f0]={persistent:!1,pure:!0,appendData:function(s){this._data=s},clean:function(){this._offset+=this.count(),this._data=null}},t);function a(s){for(var l=0;l=0&&(S=s.interpolatedValue[k])}return S!=null?S+"":""})}},e.prototype.getRawValue=function(t,n){return By(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function Boe(e){var t,n;return Tr(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Sb(e){return new Kft(e)}var Kft=(function(){function e(t){t=t||{},this._reset=t.reset,this._plan=t.plan,this._count=t.count,this._onDirty=t.onDirty,this._dirty=!0}return e.prototype.perform=function(t){var n=this._upstream,r=t&&t.skip;if(this._dirty&&n){var o=this.context;o.data=o.outputData=n.context.outputData}this.__pipeline&&(this.__pipeline.currentTask=this);var a;this._plan&&!r&&(a=this._plan(this.context));var s=h(this._modBy),l=this._modDataCount||0,c=h(t&&t.modBy),d=t&&t.modDataCount||0;(s!==c||l!==d)&&(a="reset");function h(x){return!(x>=1)&&(x=1),x}var p;(this._dirty||a==="reset")&&(this._dirty=!1,p=this._doReset(r)),this._modBy=c,this._modDataCount=d;var m=t&&t.step;if(n?this._dueEnd=n._outputDueEnd:this._dueEnd=this._count?this._count(this.context):1/0,this._progress){var g=this._dueIndex,y=Math.min(m!=null?this._dueIndex+m:1/0,this._dueEnd);if(!r&&(p||g1&&r>0?l:s}};return a;function s(){return t=e?null:co?-this._resultLT:0},e})(),Yft=(function(){function e(){}return e.prototype.getRawData=function(){throw new Error("not supported")},e.prototype.getRawDataItem=function(t){throw new Error("not supported")},e.prototype.cloneRawData=function(){},e.prototype.getDimensionInfo=function(t){},e.prototype.cloneAllDimensionInfo=function(){},e.prototype.count=function(){},e.prototype.retrieveValue=function(t,n){},e.prototype.retrieveValueFromItem=function(t,n){},e.prototype.convertValue=function(t,n){return oE(t,n)},e})();function Xft(e,t){var n=new Yft,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s="";e.seriesLayoutBy!==Ph&&bu(s);var l=[],c={},d=e.dimensionsDefine;if(d)Et(d,function(S,k){var C=S.name,x={index:k,name:C,displayName:S.displayName};if(l.push(x),C!=null){var E="";Lm(c,C)&&bu(E),c[C]=x}});else for(var h=0;h65535?iht:oht}function p1(){return[1/0,-1/0]}function sht(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function joe(e,t,n,r,o){var a=Dge[n||"float"];if(o){var s=e[t],l=s&&s.length;if(l!==r){for(var c=new a(r),d=0;dk[1]&&(k[1]=S)}return this._rawCount=this._count=c,{start:l,end:c}},e.prototype._initDataFromProvider=function(t,n,r){for(var o=this._provider,a=this._chunks,s=this._dimensions,l=s.length,c=this._rawExtent,d=xr(s,function(x){return x.property}),h=0;hC[1]&&(C[1]=k)}}!o.persistent&&o.clean&&o.clean(),this._rawCount=this._count=n,this._extent=[]},e.prototype.count=function(){return this._count},e.prototype.get=function(t,n){if(!(n>=0&&n=0&&n=this._rawCount||t<0)return-1;if(!this._indices)return t;var n=this._indices,r=n[t];if(r!=null&&rt)a=s-1;else return s}return-1},e.prototype.indicesOfNearest=function(t,n,r){var o=this._chunks,a=o[t],s=[];if(!a)return s;r==null&&(r=1/0);for(var l=1/0,c=-1,d=0,h=0,p=this.count();h=0&&c<0)&&(l=y,c=g,d=0),g===c&&(s[d++]=h))}return s.length=d,s},e.prototype.getIndices=function(){var t,n=this._indices;if(n){var r=n.constructor,o=this._count;if(r===Array){t=new r(o);for(var a=0;a=p&&x<=m||isNaN(x))&&(c[d++]=S),S++}y=!0}else if(a===2){for(var k=g[o[0]],E=g[o[1]],_=t[o[1]][0],T=t[o[1]][1],C=0;C=p&&x<=m||isNaN(x))&&(D>=_&&D<=T||isNaN(D))&&(c[d++]=S),S++}y=!0}}if(!y)if(a===1)for(var C=0;C=p&&x<=m||isNaN(x))&&(c[d++]=P)}else for(var C=0;Ct[I][1])&&(M=!1)}M&&(c[d++]=n.getRawIndex(C))}return dC[1]&&(C[1]=k)}}}},e.prototype.lttbDownSample=function(t,n){var r=this.clone([t],!0),o=r._chunks,a=o[t],s=this.count(),l=0,c=Math.floor(1/n),d=this.getRawIndex(0),h,p,m,g=new(h1(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));g[l++]=d;for(var y=1;yh&&(h=p,m=_)}N>0&&Nl&&(S=l-h);for(var k=0;ky&&(y=x,g=h+k)}var E=this.getRawIndex(p),_=this.getRawIndex(g);ph-y&&(c=h-y,l.length=c);for(var S=0;Sp[1]&&(p[1]=C),m[g++]=x}return a._count=g,a._indices=m,a._updateGetRawIdx(),a},e.prototype.each=function(t,n){if(this._count)for(var r=t.length,o=this._chunks,a=0,s=this.count();ac&&(c=p)}return s=[l,c],this._extent[t]=s,s},e.prototype.getRawDataItem=function(t){var n=this.getRawIndex(t);if(this._provider.persistent)return this._provider.getItem(n);for(var r=[],o=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(n,r,o,a){return oE(n[a],this._dimensions[a])}QN={arrayRows:t,objectRows:function(n,r,o,a){return oE(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,o,a){var s=n&&(n.value==null?n:n.value);return oE(s instanceof Array?s[a]:s,this._dimensions[a])},typedArray:function(n,r,o,a){return n[a]}}})(),e})(),aht=(function(){function e(t){this._sourceList=[],this._storeList=[],this._upstreamSignList=[],this._versionSignBase=0,this._dirty=!0,this._sourceHost=t}return e.prototype.dirty=function(){this._setLocalSource([],[]),this._storeList=[],this._dirty=!0},e.prototype._setLocalSource=function(t,n){this._sourceList=t,this._upstreamSignList=n,this._versionSignBase++,this._versionSignBase>9e10&&(this._versionSignBase=0)},e.prototype._getVersionSign=function(){return this._sourceHost.uid+"_"+this._versionSignBase},e.prototype.prepareSource=function(){this._isDirty()&&(this._createSource(),this._dirty=!1)},e.prototype._createSource=function(){this._setLocalSource([],[]);var t=this._sourceHost,n=this._getUpstreamSourceManagers(),r=!!n.length,o,a;if(zx(t)){var s=t,l=void 0,c=void 0,d=void 0;if(r){var h=n[0];h.prepareSource(),d=h.getSource(),l=d.data,c=d.sourceFormat,a=[h._getVersionSign()]}else l=s.get("data",!0),c=Pu(l)?f0:Qc,a=[];var p=this._getSourceMetaRawOption()||{},m=d&&d.metaRawOption||{},g=pi(p.seriesLayoutBy,m.seriesLayoutBy)||null,y=pi(p.sourceHeader,m.sourceHeader),S=pi(p.dimensions,m.dimensions),k=g!==m.seriesLayoutBy||!!y!=!!m.sourceHeader||S;o=k?[tz(l,{seriesLayoutBy:g,sourceHeader:y,dimensions:S},c)]:[]}else{var C=t;if(r){var x=this._applyTransform(n);o=x.sourceList,a=x.upstreamSignList}else{var E=C.get("source",!0);o=[tz(E,this._getSourceMetaRawOption(),null)],a=[]}}this._setLocalSource(o,a)},e.prototype._applyTransform=function(t){var n=this._sourceHost,r=n.get("transform",!0),o=n.get("fromTransformResult",!0);if(o!=null){var a="";t.length!==1&&Voe(a)}var s,l=[],c=[];return Et(t,function(d){d.prepareSource();var h=d.getSource(o||0),p="";o!=null&&!h&&Voe(p),l.push(h),c.push(d._getVersionSign())}),r?s=nht(r,l,{datasetIndex:n.componentIndex}):o!=null&&(s=[Fft(l[0])]),{sourceList:s,upstreamSignList:c}},e.prototype._isDirty=function(){if(this._dirty)return!0;for(var t=this._getUpstreamSourceManagers(),n=0;n1||n>0&&!e.noHeader;return Et(e.blocks,function(o){var a=Oge(o);a>=t&&(t=a+ +(r&&(!a||rz(o)&&!o.noHeader)))}),t}return 0}function dht(e,t,n,r){var o=t.noHeader,a=hht(Oge(t)),s=[],l=t.blocks||[];zh(!l||Qn(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var d={valueAsc:"asc",valueDesc:"desc"};if(Lm(d,c)){var h=new qft(d[c],null);l.sort(function(S,k){return h.evaluate(S.sortParam,k.sortParam)})}else c==="seriesDesc"&&l.reverse()}Et(l,function(S,k){var C=t.valueFormatter,x=Mge(S)(C?bn(bn({},e),{valueFormatter:C}):e,S,k>0?a.html:0,r);x!=null&&s.push(x)});var p=e.renderMode==="richText"?s.join(a.richText):iz(r,s.join(""),o?n:a.html);if(o)return p;var m=ez(t.header,"ordinal",e.useUTC),g=Rge(r,e.renderMode).nameStyle,y=Pge(r);return e.renderMode==="richText"?$ge(e,m,g)+a.richText+p:iz(r,'
'+gu(m)+"
"+p,n)}function fht(e,t,n,r){var o=e.renderMode,a=t.noName,s=t.noValue,l=!t.markerType,c=t.name,d=e.useUTC,h=t.valueFormatter||e.valueFormatter||function(_){return _=Qn(_)?_:[_],xr(_,function(T,D){return ez(T,Qn(g)?g[D]:g,d)})};if(!(a&&s)){var p=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),m=a?"":ez(c,"ordinal",d),g=t.valueType,y=s?[]:h(t.value,t.dataIndex),S=!l||!a,k=!l&&a,C=Rge(r,o),x=C.nameStyle,E=C.valueStyle;return o==="richText"?(l?"":p)+(a?"":$ge(e,m,x))+(s?"":mht(e,y,S,k,E)):iz(r,(l?"":p)+(a?"":pht(m,!l,x))+(s?"":vht(y,S,k,E)),n)}}function zoe(e,t,n,r,o,a){if(e){var s=Mge(e),l={useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(l,e,0,a)}}function hht(e){return{html:uht[e],richText:cht[e]}}function iz(e,t,n){var r='
',o="margin: "+n+"px 0 0",a=Pge(e);return'
'+t+r+"
"}function pht(e,t,n){var r=t?"margin-left:2px":"";return''+gu(e)+""}function vht(e,t,n,r){var o=n?"10px":"20px",a=t?"float:right;margin-left:"+o:"";return e=Qn(e)?e:[e],''+xr(e,function(s){return gu(s)}).join("  ")+""}function $ge(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function mht(e,t,n,r,o){var a=[o],s=r?10:20;return n&&a.push({padding:[0,0,0,s],align:"right"}),e.markupStyleCreator.wrapRichTextStyle(Qn(t)?t.join(" "):t,a)}function ght(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Rm(r)}function Bge(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var eF=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=hme()}return e.prototype._generateStyleName=function(){return"__EC_aUTo_"+this._nextStyleNameId++},e.prototype.makeTooltipMarker=function(t,n,r){var o=r==="richText"?this._generateStyleName():null,a=oft({color:n,type:t,renderMode:r,markerId:o});return yr(a)?a:(this.richTextStyles[o]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};Qn(n)?Et(n,function(a){return bn(r,a)}):bn(r,n);var o=this._generateStyleName();return this.richTextStyles[o]=r,"{"+o+"|"+t+"}"},e})();function yht(e){var t=e.series,n=e.dataIndex,r=e.multipleSeries,o=t.getData(),a=o.mapDimensionsAll("defaultedTooltip"),s=a.length,l=t.getRawValue(n),c=Qn(l),d=ght(t,n),h,p,m,g;if(s>1||c&&!s){var y=bht(l,t,n,a,d);h=y.inlineValues,p=y.inlineValueTypes,m=y.blocks,g=y.inlineValues[0]}else if(s){var S=o.getDimensionInfo(a[0]);g=h=By(o,n,a[0]),p=S.type}else g=h=c?l[0]:l;var k=hW(t),C=k&&t.name||"",x=o.getName(n),E=r?C:x;return h_("section",{header:C,noHeader:r||!k,sortParam:g,blocks:[h_("nameValue",{markerType:"item",markerColor:d,name:E,noName:!ff(E),value:h,valueType:p,dataIndex:n})].concat(m||[])})}function bht(e,t,n,r,o){var a=t.getData(),s=k0(e,function(p,m,g){var y=a.getDimensionInfo(g);return p=p||y&&y.tooltip!==!1&&y.displayName!=null},!1),l=[],c=[],d=[];r.length?Et(r,function(p){h(By(a,n,p),p)}):Et(e,h);function h(p,m){var g=a.getDimensionInfo(m);!g||g.otherDims.tooltip===!1||(s?d.push(h_("nameValue",{markerType:"subItem",markerColor:o,name:g.displayName,value:p,valueType:g.type})):(l.push(p),c.push(g.type)))}return{inlineValues:l,inlineValueTypes:c,blocks:d}}var Ap=$s();function Ux(e,t){return e.getName(t)||e.getId(t)}var _ht="__universalTransitionEnabled",Pd=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n._selectedDataIndicesMap={},n}return t.prototype.init=function(n,r,o){this.seriesIndex=this.componentIndex,this.dataTask=Sb({count:kht,reset:xht}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,o);var a=Ap(this).sourceManager=new aht(this);a.prepareSource();var s=this.getInitialData(n,o);Hoe(s,this),this.dataTask.context.data=s,Ap(this).dataBeforeProcessed=s,Uoe(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(n,r){var o=d_(this),a=o?AA(n):{},s=this.subType;co.hasClass(s)&&(s+="Series"),oo(n,r.getTheme().get(this.subType)),oo(n,this.getDefaultOption()),UV(n,"label",["show"]),this.fillDataTextStyle(n.data),o&&$y(n,a,o)},t.prototype.mergeOption=function(n,r){n=oo(this.option,n,!0),this.fillDataTextStyle(n.data);var o=d_(this);o&&$y(this.option,n,o);var a=Ap(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(n,r);Hoe(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Ap(this).dataBeforeProcessed=s,Uoe(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(n){if(n&&!Pu(n))for(var r=["show"],o=0;othis.getShallow("animationThreshold")&&(r=!1),!!r},t.prototype.restoreData=function(){this.dataTask.dirty()},t.prototype.getColorFromPalette=function(n,r,o){var a=this.ecModel,s=$W.prototype.getColorFromPalette.call(this,n,r,o);return s||(s=a.getColorFromPalette(n,r,o)),s},t.prototype.coordDimToDataDim=function(n){return this.getRawData().mapDimensionsAll(n)},t.prototype.getProgressive=function(){return this.get("progressive")},t.prototype.getProgressiveThreshold=function(){return this.get("progressiveThreshold")},t.prototype.select=function(n,r){this._innerSelect(this.getData(r),n)},t.prototype.unselect=function(n,r){var o=this.option.selectedMap;if(o){var a=this.option.selectedMode,s=this.getData(r);if(a==="series"||o==="all"){this.option.selectedMap={},this._selectedDataIndicesMap={};return}for(var l=0;l=0&&o.push(s)}return o},t.prototype.isSelected=function(n,r){var o=this.option.selectedMap;if(!o)return!1;var a=this.getData(r);return(o==="all"||o[Ux(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[_ht])return!0;var n=this.option.universalTransition;return n?n===!0?!0:n&&n.enabled:!1},t.prototype._innerSelect=function(n,r){var o,a,s=this.option,l=s.selectedMode,c=r.length;if(!(!l||!c)){if(l==="series")s.selectedMap="all";else if(l==="multiple"){Tr(s.selectedMap)||(s.selectedMap={});for(var d=s.selectedMap,h=0;h0&&this._innerSelect(n,r)}},t.registerClass=function(n){return co.registerClass(n)},t.protoInitialize=(function(){var n=t.prototype;n.type="series.__base__",n.seriesIndex=0,n.ignoreStyleOnData=!1,n.hasSymbolVisual=!1,n.defaultSymbol="circle",n.visualStyleAccessPath="itemStyle",n.visualDrawType="fill"})(),t})(co);Df(Pd,Gft);Df(Pd,$W);bme(Pd,co);function Uoe(e){var t=e.name;hW(e)||(e.name=Sht(e)||t)}function Sht(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return Et(n,function(o){var a=t.getDimensionInfo(o);a.displayName&&r.push(a.displayName)}),r.join(" ")}function kht(e){return e.model.getRawData().count()}function xht(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Cht}function Cht(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Hoe(e,t){Et(Uat(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Ps(wht,t))})}function wht(e,t){var n=oz(e);return n&&n.setOutputEnd((t||this).count()),t}function oz(e){var t=(e.ecModel||{}).scheduler,n=t&&t.getPipeline(e.uid);if(n){var r=n.currentTask;if(r){var o=r.agentStubMap;o&&(r=o.get(e.uid))}return r}}var Rd=(function(){function e(){this.group=new Za,this.uid=SA("viewComponent")}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,o){},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,o){},e.prototype.updateLayout=function(t,n,r,o){},e.prototype.updateVisual=function(t,n,r,o){},e.prototype.toggleBlurSeries=function(t,n,r){},e.prototype.eachRendered=function(t){var n=this.group;n&&n.traverse(t)},e})();vW(Rd);uA(Rd);function zW(){var e=$s();return function(t){var n=e(t),r=t.pipelineContext,o=!!n.large,a=!!n.progressiveRender,s=n.large=!!(r&&r.large),l=n.progressiveRender=!!(r&&r.progressiveRender);return(o!==s||a!==l)&&"reset"}}var Nge=$s(),Eht=zW(),Uc=(function(){function e(){this.group=new Za,this.uid=SA("viewChart"),this.renderTask=Sb({plan:Tht,reset:Aht}),this.renderTask.context={view:this}}return e.prototype.init=function(t,n){},e.prototype.render=function(t,n,r,o){},e.prototype.highlight=function(t,n,r,o){var a=t.getData(o&&o.dataType);a&&Goe(a,o,"emphasis")},e.prototype.downplay=function(t,n,r,o){var a=t.getData(o&&o.dataType);a&&Goe(a,o,"normal")},e.prototype.remove=function(t,n){this.group.removeAll()},e.prototype.dispose=function(t,n){},e.prototype.updateView=function(t,n,r,o){this.render(t,n,r,o)},e.prototype.updateLayout=function(t,n,r,o){this.render(t,n,r,o)},e.prototype.updateVisual=function(t,n,r,o){this.render(t,n,r,o)},e.prototype.eachRendered=function(t){yA(this.group,t)},e.markUpdateMethod=function(t,n){Nge(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function Woe(e,t,n){e&&XV(e)&&(t==="emphasis"?sT:aT)(e,n)}function Goe(e,t,n){var r=Dm(e,t),o=t&&t.highlightKey!=null?Uct(t.highlightKey):null;r!=null?Et(Xl(r),function(a){Woe(e.getItemGraphicEl(a),n,o)}):e.eachItemGraphicEl(function(a){Woe(a,n,o)})}vW(Uc);uA(Uc);function Tht(e){return Eht(e.model)}function Aht(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,a=t.pipelineContext.progressiveRender,s=e.view,l=o&&Nge(o).updateMethod,c=a?"incrementalPrepareRender":l&&s[l]?l:"render";return c!=="render"&&s[c](t,n,r,o),Iht[c]}var Iht={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)}}},vT="\0__throttleOriginMethod",Koe="\0__throttleRate",qoe="\0__throttleType";function DA(e,t,n){var r,o=0,a=0,s=null,l,c,d,h;t=t||0;function p(){a=new Date().getTime(),s=null,e.apply(c,d||[])}var m=function(){for(var g=[],y=0;y=0?p():s=setTimeout(p,-l),o=r};return m.clear=function(){s&&(clearTimeout(s),s=null)},m.debounceNextCall=function(g){h=g},m}function Fge(e,t,n,r){var o=e[t];if(o){var a=o[vT]||o,s=o[qoe],l=o[Koe];if(l!==n||s!==r){if(n==null||!r)return e[t]=a;o=e[t]=DA(a,n,r==="debounce"),o[vT]=a,o[qoe]=r,o[Koe]=n}return o}}function sz(e,t){var n=e[t];n&&n[vT]&&(n.clear&&n.clear(),e[t]=n[vT])}var Yoe=$s(),Xoe={itemStyle:a_(Jme,!0),lineStyle:a_(Zme,!0)},Lht={lineStyle:"stroke",itemStyle:"fill"};function jge(e,t){var n=e.visualStyleMapper||Xoe[t];return n||(console.warn("Unknown style type '"+t+"'."),Xoe.itemStyle)}function Vge(e,t){var n=e.visualDrawType||Lht[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Dht={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),a=jge(e,r),s=a(o),l=o.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=Vge(e,r),d=s[c],h=ei(d)?d:null,p=s.fill==="auto"||s.stroke==="auto";if(!s[c]||h||p){var m=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[c]||(s[c]=m,n.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||ei(s.fill)?m:s.fill,s.stroke=s.stroke==="auto"||ei(s.stroke)?m:s.stroke}if(n.setVisual("style",s),n.setVisual("drawType",c),!t.isSeriesFiltered(e)&&h)return n.setVisual("colorFromPalette",!1),{dataEach:function(g,y){var S=e.getDataParams(y),k=bn({},s);k[c]=h(S),g.setItemVisual(y,"style",k)}}}},n4=new ks,Pht={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=jge(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var c=s.getRawDataItem(l);if(c&&c[r]){n4.option=c[r];var d=o(n4),h=s.ensureUniqueItemVisual(l,"style");bn(h,d),n4.option.decal&&(s.setItemVisual(l,"decal",n4.option.decal),n4.option.decal.dirty=!0),a in d&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},Rht={performRawSeries:!0,overallReset:function(e){var t=_i();e.eachSeries(function(n){var r=n.getColorBy();if(!n.isColorBySeries()){var o=n.type+"-"+r,a=t.get(o);a||(a={},t.set(o,a)),Yoe(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),o={},a=n.getData(),s=Yoe(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=Vge(n,l);a.each(function(d){var h=a.getRawIndex(d);o[h]=d}),r.each(function(d){var h=o[d],p=a.getItemVisual(h,"colorFromPalette");if(p){var m=a.ensureUniqueItemVisual(h,"style"),g=r.getName(d)||d+"",y=r.count();m[c]=n.getColorFromPalette(g,s,y)}})}})}},Hx=Math.PI;function Mht(e,t){t=t||{},ao(t,{text:"loading",textColor:"#000",fontSize:12,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif",maskColor:"rgba(255, 255, 255, 0.8)",showSpinner:!0,color:"#5470c6",spinnerRadius:10,lineWidth:5,zlevel:0});var n=new Za,r=new Zs({style:{fill:t.maskColor},zlevel:t.zlevel,z:1e4});n.add(r);var o=new Ja({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 Zs({style:{fill:"none"},textContent:o,textConfig:{position:"right",distance:10},zlevel:t.zlevel,z:10001});n.add(a);var s;return t.showSpinner&&(s=new mA({shape:{startAngle:-Hx/2,endAngle:-Hx/2+.1,r:t.spinnerRadius},style:{stroke:t.color,lineCap:"round",lineWidth:t.lineWidth},zlevel:t.zlevel,z:10001}),s.animateShape(!0).when(1e3,{endAngle:Hx*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:Hx*3/2}).delay(300).start("circularInOut"),n.add(s)),n.resize=function(){var l=o.getBoundingRect().width,c=t.showSpinner?t.spinnerRadius:0,d=(e.getWidth()-c*2-(t.showSpinner&&l?10:0)-l)/2-(t.showSpinner&&l?0:5+l/2)+(t.showSpinner?0:l/2)+(l?0:c),h=e.getHeight()/2;t.showSpinner&&s.setShape({cx:d,cy:h}),a.setShape({x:d-c,y:h-c,width:c*2,height:c*2}),r.setShape({x:0,y:0,width:e.getWidth(),height:e.getHeight()})},n.resize(),n}var zge=(function(){function e(t,n,r,o){this._stageTaskMap=_i(),this.ecInstance=t,this.api=n,r=this._dataProcessorHandlers=r.slice(),o=this._visualHandlers=o.slice(),this._allHandlers=r.concat(o)}return e.prototype.restoreData=function(t,n){t.restoreData(n),this._stageTaskMap.each(function(r){var o=r.overallTask;o&&o.dirty()})},e.prototype.getPerformArgs=function(t,n){if(t.__pipeline){var r=this._pipelineMap.get(t.__pipeline.id),o=r.context,a=!n&&r.progressiveEnabled&&(!o||o.progressiveRender)&&t.__idxInPipeline>r.blockIndex,s=a?r.step:null,l=o&&o.modDataCount,c=l!=null?Math.ceil(l/s):null;return{step:s,modBy:c,modDataCount:l}}},e.prototype.getPipeline=function(t){return this._pipelineMap.get(t)},e.prototype.updateStreamModes=function(t,n){var r=this._pipelineMap.get(t.uid),o=t.getData(),a=o.count(),s=r.progressiveEnabled&&n.incrementalPrepareRender&&a>=r.threshold,l=t.get("large")&&a>=t.get("largeThreshold"),c=t.get("progressiveChunkMode")==="mod"?a:null;t.pipelineContext=r.context={progressiveRender:s,modDataCount:c,large:l}},e.prototype.restorePipelines=function(t){var n=this,r=n._pipelineMap=_i();t.eachSeries(function(o){var a=o.getProgressive(),s=o.uid;r.set(s,{id:s,head:null,tail:null,threshold:o.getProgressiveThreshold(),progressiveEnabled:a&&!(o.preventIncremental&&o.preventIncremental()),blockIndex:-1,step:Math.round(a||700),count:0}),n._pipe(o,o.dataTask)})},e.prototype.prepareStageTasks=function(){var t=this._stageTaskMap,n=this.api.getModel(),r=this.api;Et(this._allHandlers,function(o){var a=t.get(o.uid)||t.set(o.uid,{}),s="";zh(!(o.reset&&o.overallReset),s),o.reset&&this._createSeriesStageTask(o,a,n,r),o.overallReset&&this._createOverallStageTask(o,a,n,r)},this)},e.prototype.prepareView=function(t,n,r,o){var a=t.renderTask,s=a.context;s.model=n,s.ecModel=r,s.api=o,a.__block=!t.incrementalPrepareRender,this._pipe(n,a)},e.prototype.performDataProcessorTasks=function(t,n){this._performStageTasks(this._dataProcessorHandlers,t,n,{block:!0})},e.prototype.performVisualTasks=function(t,n,r){this._performStageTasks(this._visualHandlers,t,n,r)},e.prototype._performStageTasks=function(t,n,r,o){o=o||{};var a=!1,s=this;Et(t,function(c,d){if(!(o.visualType&&o.visualType!==c.visualType)){var h=s._stageTaskMap.get(c.uid),p=h.seriesTaskMap,m=h.overallTask;if(m){var g,y=m.agentStubMap;y.each(function(k){l(o,k)&&(k.dirty(),g=!0)}),g&&m.dirty(),s.updatePayload(m,r);var S=s.getPerformArgs(m,o.block);y.each(function(k){k.perform(S)}),m.perform(S)&&(a=!0)}else p&&p.each(function(k,C){l(o,k)&&k.dirty();var x=s.getPerformArgs(k,o.block);x.skip=!c.performRawSeries&&n.isSeriesFiltered(k.context.model),s.updatePayload(k,r),k.perform(x)&&(a=!0)})}});function l(c,d){return c.setDirty&&(!c.dirtyMap||c.dirtyMap.get(d.__pipeline.id))}this.unfinished=a||this.unfinished},e.prototype.performSeriesTasks=function(t){var n;t.eachSeries(function(r){n=r.dataTask.perform()||n}),this.unfinished=n||this.unfinished},e.prototype.plan=function(){this._pipelineMap.each(function(t){var n=t.tail;do{if(n.__block){t.blockIndex=n.__idxInPipeline;break}n=n.getUpstream()}while(n)})},e.prototype.updatePayload=function(t,n){n!=="remain"&&(t.context.payload=n)},e.prototype._createSeriesStageTask=function(t,n,r,o){var a=this,s=n.seriesTaskMap,l=n.seriesTaskMap=_i(),c=t.seriesType,d=t.getTargetSeries;t.createOnAllSeries?r.eachRawSeries(h):c?r.eachRawSeriesByType(c,h):d&&d(r,o).each(h);function h(p){var m=p.uid,g=l.set(m,s&&s.get(m)||Sb({plan:Fht,reset:jht,count:zht}));g.context={model:p,ecModel:r,api:o,useClearVisual:t.isVisual&&!t.isLayout,plan:t.plan,reset:t.reset,scheduler:a},a._pipe(p,g)}},e.prototype._createOverallStageTask=function(t,n,r,o){var a=this,s=n.overallTask=n.overallTask||Sb({reset:Oht});s.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,c=s.agentStubMap=_i(),d=t.seriesType,h=t.getTargetSeries,p=!0,m=!1,g="";zh(!t.createOnAllSeries,g),d?r.eachRawSeriesByType(d,y):h?h(r,o).each(y):(p=!1,Et(r.getSeries(),y));function y(S){var k=S.uid,C=c.set(k,l&&l.get(k)||(m=!0,Sb({reset:$ht,onDirty:Nht})));C.context={model:S,overallProgress:p},C.agent=s,C.__block=p,a._pipe(S,C)}m&&s.dirty()},e.prototype._pipe=function(t,n){var r=t.uid,o=this._pipelineMap.get(r);!o.head&&(o.head=n),o.tail&&o.tail.pipe(n),o.tail=n,n.__idxInPipeline=o.count++,n.__pipeline=o},e.wrapStageHandler=function(t,n){return ei(t)&&(t={overallReset:t,seriesType:Uht(t)}),t.uid=SA("stageHandler"),n&&(t.visualType=n),t},e})();function Oht(e){e.overallReset(e.ecModel,e.api,e.payload)}function $ht(e){return e.overallProgress&&Bht}function Bht(){this.agent.dirty(),this.getDownstream().dirty()}function Nht(){this.agent&&this.agent.dirty()}function Fht(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function jht(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Xl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?xr(t,function(n,r){return Uge(r)}):Vht}var Vht=Uge(0);function Uge(e){return function(t,n){var r=n.data,o=n.resetDefines[e];if(o&&o.dataEach)for(var a=t.start;a0&&g===d.length-m.length){var y=d.slice(0,g);y!=="data"&&(n.mainType=y,n[m.toLowerCase()]=c,h=!0)}}l.hasOwnProperty(d)&&(r[d]=c,h=!0),h||(o[d]=c)})}return{cptQuery:n,dataQuery:r,otherQuery:o}},e.prototype.filter=function(t,n){var r=this.eventInfo;if(!r)return!0;var o=r.targetEl,a=r.packedEvent,s=r.model,l=r.view;if(!s||!l)return!0;var c=n.cptQuery,d=n.dataQuery;return h(c,s,"mainType")&&h(c,s,"subType")&&h(c,s,"index","componentIndex")&&h(c,s,"name")&&h(c,s,"id")&&h(d,a,"name")&&h(d,a,"dataIndex")&&h(d,a,"dataType")&&(!l.filterForExposedEvent||l.filterForExposedEvent(t,n.otherQuery,o,a));function h(p,m,g,y){return p[g]==null||m[y||g]===p[g]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),az=["symbol","symbolSize","symbolRotate","symbolOffset"],ese=az.concat(["symbolKeepAspect"]),Ght={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData();if(e.legendIcon&&n.setVisual("legendIcon",e.legendIcon),!e.hasSymbolVisual)return;for(var r={},o={},a=!1,s=0;s=0&&Yv(c)?c:.5;var d=e.createRadialGradient(s,l,0,s,l,c);return d}function uz(e,t,n){for(var r=t.type==="radial"?dpt(e,t,n):cpt(e,t,n),o=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Eo(e)?[e]:Qn(e)?e:null}function qge(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&hpt(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var o=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(n=xr(n,function(a){return a/o}),r/=o)}return[n,r]}var ppt=new Pm(!0);function gT(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function tse(e){return typeof e=="string"&&e!=="none"}function yT(e){var t=e.fill;return t!=null&&t!=="none"}function nse(e,t){if(t.fillOpacity!=null&&t.fillOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.fillOpacity*t.opacity,e.fill(),e.globalAlpha=n}else e.fill()}function rse(e,t){if(t.strokeOpacity!=null&&t.strokeOpacity!==1){var n=e.globalAlpha;e.globalAlpha=t.strokeOpacity*t.opacity,e.stroke(),e.globalAlpha=n}else e.stroke()}function cz(e,t,n){var r=_me(t.image,t.__image,n);if(cA(r)){var o=e.createPattern(r,t.repeat||"repeat");if(typeof DOMMatrix=="function"&&o&&o.setTransform){var a=new DOMMatrix;a.translateSelf(t.x||0,t.y||0),a.rotateSelf(0,0,(t.rotation||0)*Hat),a.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(a)}return o}}function vpt(e,t,n,r){var o,a=gT(n),s=yT(n),l=n.strokePercent,c=l<1,d=!t.path;(!t.silent||c)&&d&&t.createPathProxy();var h=t.path||ppt,p=t.__dirty;if(!r){var m=n.fill,g=n.stroke,y=s&&!!m.colorStops,S=a&&!!g.colorStops,k=s&&!!m.image,C=a&&!!g.image,x=void 0,E=void 0,_=void 0,T=void 0,D=void 0;(y||S)&&(D=t.getBoundingRect()),y&&(x=p?uz(e,m,D):t.__canvasFillGradient,t.__canvasFillGradient=x),S&&(E=p?uz(e,g,D):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),k&&(_=p||!t.__canvasFillPattern?cz(e,m,t):t.__canvasFillPattern,t.__canvasFillPattern=_),C&&(T=p||!t.__canvasStrokePattern?cz(e,g,t):t.__canvasStrokePattern,t.__canvasStrokePattern=_),y?e.fillStyle=x:k&&(_?e.fillStyle=_:s=!1),S?e.strokeStyle=E:C&&(T?e.strokeStyle=T:a=!1)}var P=t.getGlobalScale();h.setScale(P[0],P[1],t.segmentIgnoreThreshold);var M,$;e.setLineDash&&n.lineDash&&(o=qge(t),M=o[0],$=o[1]);var I=!0;(d||p&P1)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),I=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),I&&h.rebuildPath(e,c?l:1),M&&(e.setLineDash(M),e.lineDashOffset=$),r||(n.strokeFirst?(a&&rse(e,n),s&&nse(e,n)):(s&&nse(e,n),a&&rse(e,n))),M&&e.setLineDash([])}function mpt(e,t,n){var r=t.__image=_me(n.image,t.__image,t,t.onload);if(!(!r||!cA(r))){var o=n.x||0,a=n.y||0,s=t.getWidth(),l=t.getHeight(),c=r.width/r.height;if(s==null&&l!=null?s=l*c:l==null&&s!=null?l=s/c:s==null&&l==null&&(s=r.width,l=r.height),n.sWidth&&n.sHeight){var d=n.sx||0,h=n.sy||0;e.drawImage(r,d,h,n.sWidth,n.sHeight,o,a,s,l)}else if(n.sx&&n.sy){var d=n.sx,h=n.sy,p=s-d,m=l-h;e.drawImage(r,d,h,p,m,o,a,s,l)}else e.drawImage(r,o,a,s,l)}}function gpt(e,t,n){var r,o=n.text;if(o!=null&&(o+=""),o){e.font=n.font||Im,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,s=void 0;e.setLineDash&&n.lineDash&&(r=qge(t),a=r[0],s=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=s),n.strokeFirst?(gT(n)&&e.strokeText(o,n.x,n.y),yT(n)&&e.fillText(o,n.x,n.y)):(yT(n)&&e.fillText(o,n.x,n.y),gT(n)&&e.strokeText(o,n.x,n.y)),a&&e.setLineDash([])}}var ise=["shadowBlur","shadowOffsetX","shadowOffsetY"],ose=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Yge(e,t,n,r,o){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){_u(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?hm.opacity:s}(r||t.blend!==n.blend)&&(a||(_u(e,o),a=!0),e.globalCompositeOperation=t.blend||hm.blend);for(var l=0;l0&&n.unfinished);n.unfinished||this._zr.flush()}}},t.prototype.getDom=function(){return this._dom},t.prototype.getId=function(){return this.id},t.prototype.getZr=function(){return this._zr},t.prototype.isSSR=function(){return this._ssr},t.prototype.setOption=function(n,r,o){if(!this[ll]){if(this._disposed){this.id;return}var a,s,l;if(Tr(r)&&(o=r.lazyUpdate,a=r.silent,s=r.replaceMerge,l=r.transition,r=r.notMerge),this[ll]=!0,!this._model||r){var c=new wft(this._api),d=this._theme,h=this._model=new BW;h.scheduler=this._scheduler,h.ssr=this._ssr,h.init(null,null,null,d,this._locale,c)}this._model.setOption(n,{replaceMerge:s},hz);var p={seriesTransition:l,optionChanged:!0};if(o)this[cu]={silent:a,updateParams:p},this[ll]=!1,this.getZr().wakeUp();else{try{m1(this),Ip.update.call(this,null,p)}catch(m){throw this[cu]=null,this[ll]=!1,m}this._ssr||this._zr.flush(),this[cu]=null,this[ll]=!1,r4.call(this,a),i4.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||Vr.hasGlobalWindow&&window.devicePixelRatio||1},t.prototype.getRenderedCanvas=function(n){return this.renderToCanvas(n)},t.prototype.renderToCanvas=function(n){n=n||{};var r=this._zr.painter;return r.getRenderedCanvas({backgroundColor:n.backgroundColor||this._model.get("backgroundColor"),pixelRatio:n.pixelRatio||this.getDevicePixelRatio()})},t.prototype.renderToSVGString=function(n){n=n||{};var r=this._zr.painter;return r.renderToString({useViewBox:n.useViewBox})},t.prototype.getSvgDataURL=function(){if(Vr.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return Et(r,function(o){o.stopAnimation(null,!0)}),n.painter.toDataURL()}},t.prototype.getDataURL=function(n){if(this._disposed){this.id;return}n=n||{};var r=n.excludeComponents,o=this._model,a=[],s=this;Et(r,function(c){o.eachComponent({mainType:c},function(d){var h=s._componentsMap[d.__viewId];h.group.ignore||(a.push(h),h.group.ignore=!0)})});var l=this._zr.painter.getType()==="svg"?this.getSvgDataURL():this.renderToCanvas(n).toDataURL("image/"+(n&&n.type||"png"));return Et(a,function(c){c.group.ignore=!1}),l},t.prototype.getConnectedDataURL=function(n){if(this._disposed){this.id;return}var r=n.type==="svg",o=this.group,a=Math.min,s=Math.max,l=1/0;if(_se[o]){var c=l,d=l,h=-l,p=-l,m=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();Et(xb,function(E,_){if(E.group===o){var T=r?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(Fi(n)),D=E.getDom().getBoundingClientRect();c=a(D.left,c),d=a(D.top,d),h=s(D.right,h),p=s(D.bottom,p),m.push({dom:T,left:D.left,top:D.top})}}),c*=g,d*=g,h*=g,p*=g;var y=h-c,S=p-d,k=u3.createCanvas(),C=Cie(k,{renderer:r?"svg":"canvas"});if(C.resize({width:y,height:S}),r){var x="";return Et(m,function(E){var _=E.left-c,T=E.top-d;x+=''+E.dom+""}),C.painter.getSvgRoot().innerHTML=x,n.connectedBackgroundColor&&C.painter.setBackgroundColor(n.connectedBackgroundColor),C.refreshImmediately(),C.painter.toDataURL()}else return n.connectedBackgroundColor&&C.add(new Zs({shape:{x:0,y:0,width:y,height:S},style:{fill:n.connectedBackgroundColor}})),Et(m,function(E){var _=new O0({style:{x:E.left*g-c,y:E.top*g-d,image:E.dom}});C.add(_)}),C.refreshImmediately(),k.toDataURL("image/"+(n&&n.type||"png"))}else return this.getDataURL(n)},t.prototype.convertToPixel=function(n,r){return oF(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return oF(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var o=this._model,a,s=AN(o,n);return Et(s,function(l,c){c.indexOf("Models")>=0&&Et(l,function(d){var h=d.coordinateSystem;if(h&&h.containPoint)a=a||!!h.containPoint(r);else if(c==="seriesModels"){var p=this._chartsMap[d.__viewId];p&&p.containPoint&&(a=a||p.containPoint(r,d))}},this)},this),!!a},t.prototype.getVisual=function(n,r){var o=this._model,a=AN(o,n,{defaultMainType:"series"}),s=a.seriesModel,l=s.getData(),c=a.hasOwnProperty("dataIndexInside")?a.dataIndexInside:a.hasOwnProperty("dataIndex")?l.indexOfRawIndex(a.dataIndex):null;return c!=null?qht(l,c,r):Yht(l,r)},t.prototype.getViewOfComponentModel=function(n){return this._componentsMap[n.__viewId]},t.prototype.getViewOfSeriesModel=function(n){return this._chartsMap[n.__viewId]},t.prototype._initEvents=function(){var n=this;Et(zpt,function(r){var o=function(a){var s=n.getModel(),l=a.target,c,d=r==="globalout";if(d?c={}:l&&R4(l,function(y){var S=qi(y);if(S&&S.dataIndex!=null){var k=S.dataModel||s.getSeriesByIndex(S.seriesIndex);return c=k&&k.getDataParams(S.dataIndex,S.dataType,l)||{},!0}else if(S.eventData)return c=bn({},S.eventData),!0},!0),c){var h=c.componentType,p=c.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",p=c.seriesIndex);var m=h&&p!=null&&s.getComponent(h,p),g=m&&n[m.mainType==="series"?"_chartsMap":"_componentsMap"][m.__viewId];c.event=a,c.type=r,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:m,view:g},n.trigger(r,c)}};o.zrEventfulCallAtLast=!0,n._zr.on(r,o,n)}),Et(kb,function(r,o){n._messageCenter.on(o,function(a){this.trigger(o,a)},n)}),Et(["selectchanged"],function(r){n._messageCenter.on(r,function(o){this.trigger(r,o)},n)}),Zht(this._messageCenter,this,this._api)},t.prototype.isDisposed=function(){return this._disposed},t.prototype.clear=function(){if(this._disposed){this.id;return}this.setOption({series:[]},!0)},t.prototype.dispose=function(){if(this._disposed){this.id;return}this._disposed=!0;var n=this.getDom();n&&gme(this.getDom(),WW,"");var r=this,o=r._api,a=r._model;Et(r._componentsViews,function(s){s.dispose(a,o)}),Et(r._chartsViews,function(s){s.dispose(a,o)}),r._zr.dispose(),r._dom=r._model=r._chartsMap=r._componentsMap=r._chartsViews=r._componentsViews=r._scheduler=r._api=r._zr=r._throttledZrFlush=r._theme=r._coordSysMgr=r._messageCenter=null,delete xb[r.id]},t.prototype.resize=function(n){if(!this[ll]){if(this._disposed){this.id;return}this._zr.resize(n);var r=this._model;if(this._loadingFX&&this._loadingFX.resize(),!!r){var o=r.resetOption("media"),a=n&&n.silent;this[cu]&&(a==null&&(a=this[cu].silent),o=!0,this[cu]=null),this[ll]=!0;try{o&&m1(this),Ip.update.call(this,{type:"resize",animation:bn({duration:0},n&&n.animation)})}catch(s){throw this[ll]=!1,s}this[ll]=!1,r4.call(this,a),i4.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Tr(n)&&(r=n,n=""),n=n||"default",this.hideLoading(),!!pz[n]){var o=pz[n](this._api,r),a=this._zr;this._loadingFX=o,a.add(o)}},t.prototype.hideLoading=function(){if(this._disposed){this.id;return}this._loadingFX&&this._zr.remove(this._loadingFX),this._loadingFX=null},t.prototype.makeActionFromEvent=function(n){var r=bn({},n);return r.type=kb[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Tr(r)||(r={silent:!!r}),!!bT[n.type]&&this._model){if(this[ll]){this._pendingActions.push(n);return}var o=r.silent;aF.call(this,n,o);var a=r.flush;a?this._zr.flush():a!==!1&&Vr.browser.weChat&&this._throttledZrFlush(),r4.call(this,o),i4.call(this,o)}},t.prototype.updateLabelLayout=function(){vd.trigger("series:layoutlabels",this._model,this._api,{updatedSeries:[]})},t.prototype.appendData=function(n){if(this._disposed){this.id;return}var r=n.seriesIndex,o=this.getModel(),a=o.getSeriesByIndex(r);a.appendData(n),this._scheduler.unfinished=!0,this.getZr().wakeUp()},t.internalField=(function(){m1=function(p){var m=p._scheduler;m.restorePipelines(p._model),m.prepareStageTasks(),iF(p,!0),iF(p,!1),m.plan()},iF=function(p,m){for(var g=p._model,y=p._scheduler,S=m?p._componentsViews:p._chartsViews,k=m?p._componentsMap:p._chartsMap,C=p._zr,x=p._api,E=0;Em.get("hoverLayerThreshold")&&!Vr.node&&!Vr.worker&&m.eachSeries(function(k){if(!k.preventUsingHoverLayer){var C=p._chartsMap[k.__viewId];C.__alive&&C.eachRendered(function(x){x.states.emphasis&&(x.states.emphasis.hoverLayer=!0)})}})}function s(p,m){var g=p.get("blendMode")||null;m.eachRendered(function(y){y.isGroup||(y.style.blend=g)})}function l(p,m){if(!p.preventAutoZ){var g=p.get("z")||0,y=p.get("zlevel")||0;m.eachRendered(function(S){return c(S,g,y,-1/0),!0})}}function c(p,m,g,y){var S=p.getTextContent(),k=p.getTextGuideLine(),C=p.isGroup;if(C)for(var x=p.childrenRef(),E=0;E0?{duration:S,delay:g.get("delay"),easing:g.get("easing")}:null;m.eachRendered(function(C){if(C.states&&C.states.emphasis){if(yb(C))return;if(C instanceof ho&&Hct(C),C.__dirty){var x=C.prevStates;x&&C.useStates(x)}if(y){C.stateTransition=k;var E=C.getTextContent(),_=C.getTextGuideLine();E&&(E.stateTransition=k),_&&(_.stateTransition=k)}C.__dirty&&o(C)}})}yse=function(p){return new((function(m){Nn(g,m);function g(){return m!==null&&m.apply(this,arguments)||this}return g.prototype.getCoordinateSystems=function(){return p._coordSysMgr.getCoordinateSystems()},g.prototype.getComponentByElement=function(y){for(;y;){var S=y.__ecComponentInfo;if(S!=null)return p._model.getComponent(S.mainType,S.index);y=y.parent}},g.prototype.enterEmphasis=function(y,S){sT(y,S),xc(p)},g.prototype.leaveEmphasis=function(y,S){aT(y,S),xc(p)},g.prototype.enterBlur=function(y){Mct(y),xc(p)},g.prototype.leaveBlur=function(y){Rme(y),xc(p)},g.prototype.enterSelect=function(y){Mme(y),xc(p)},g.prototype.leaveSelect=function(y){Ome(y),xc(p)},g.prototype.getModel=function(){return p.getModel()},g.prototype.getViewOfComponentModel=function(y){return p.getViewOfComponentModel(y)},g.prototype.getViewOfSeriesModel=function(y){return p.getViewOfSeriesModel(y)},g})(bge))(p)},c1e=function(p){function m(g,y){for(var S=0;S=0)){Sse.push(n);var a=zge.wrapStageHandler(n,o);a.__prio=t,a.__raw=n,e.push(a)}}function m1e(e,t){pz[e]=t}function Xpt(e,t,n){var r=Tpt("registerMap");r&&r(e,t,n)}var Zpt=tht;Zm(UW,Dht);Zm(PA,Pht);Zm(PA,Rht);Zm(UW,Ght);Zm(PA,Kht);Zm(i1e,wpt);p1e(Sge);v1e(Lpt,Bft);m1e("default",Mht);f3({type:pm,event:pm,update:pm},Eu);f3({type:tE,event:tE,update:tE},Eu);f3({type:vb,event:vb,update:vb},Eu);f3({type:nE,event:nE,update:nE},Eu);f3({type:mb,event:mb,update:mb},Eu);h1e("light",Hht);h1e("dark",Gge);function o4(e){return e==null?0:e.length||1}function kse(e){return e}var Jpt=(function(){function e(t,n,r,o,a,s){this._old=t,this._new=n,this._oldKeyGetter=r||kse,this._newKeyGetter=o||kse,this.context=a,this._diffModeMultiple=s==="multiple"}return e.prototype.add=function(t){return this._add=t,this},e.prototype.update=function(t){return this._update=t,this},e.prototype.updateManyToOne=function(t){return this._updateManyToOne=t,this},e.prototype.updateOneToMany=function(t){return this._updateOneToMany=t,this},e.prototype.updateManyToMany=function(t){return this._updateManyToMany=t,this},e.prototype.remove=function(t){return this._remove=t,this},e.prototype.execute=function(){this[this._diffModeMultiple?"_executeMultiple":"_executeOneToOne"]()},e.prototype._executeOneToOne=function(){var t=this._old,n=this._new,r={},o=new Array(t.length),a=new Array(n.length);this._initIndexMap(t,null,o,"_oldKeyGetter"),this._initIndexMap(n,r,a,"_newKeyGetter");for(var s=0;s1){var h=c.shift();c.length===1&&(r[l]=c[0]),this._update&&this._update(h,s)}else d===1?(r[l]=null,this._update&&this._update(c,s)):this._remove&&this._remove(s)}this._performRestAdd(a,r)},e.prototype._executeMultiple=function(){var t=this._old,n=this._new,r={},o={},a=[],s=[];this._initIndexMap(t,r,a,"_oldKeyGetter"),this._initIndexMap(n,o,s,"_newKeyGetter");for(var l=0;l1&&m===1)this._updateManyToOne&&this._updateManyToOne(h,d),o[c]=null;else if(p===1&&m>1)this._updateOneToMany&&this._updateOneToMany(h,d),o[c]=null;else if(p===1&&m===1)this._update&&this._update(h,d),o[c]=null;else if(p>1&&m>1)this._updateManyToMany&&this._updateManyToMany(h,d),o[c]=null;else if(p>1)for(var g=0;g1)for(var l=0;l30}var s4=Tr,Lp=xr,o0t=typeof Int32Array>"u"?Array:Int32Array,s0t="e\0\0",xse=-1,a0t=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],l0t=["_approximateExtent"],Cse,Xx,a4,l4,cF,u4,dF,k1e=(function(){function e(t,n){this.type="list",this._dimOmitted=!1,this._nameList=[],this._idList=[],this._visual={},this._layout={},this._itemVisuals=[],this._itemLayouts=[],this._graphicEls=[],this._approximateExtent={},this._calculationInfo={},this.hasItemOption=!1,this.TRANSFERABLE_METHODS=["cloneShallow","downSample","minmaxDownSample","lttbDownSample","map"],this.CHANGABLE_METHODS=["filterSelf","selectRange"],this.DOWNSAMPLE_METHODS=["downSample","minmaxDownSample","lttbDownSample"];var r,o=!1;y1e(t)?(r=t.dimensions,this._dimOmitted=t.isDimensionOmitted(),this._schema=t):(o=!0,r=t),r=r||["x","y"];for(var a={},s=[],l={},c=!1,d={},h=0;h=n)){var r=this._store,o=r.getProvider();this._updateOrdinalMeta();var a=this._nameList,s=this._idList,l=o.getSource().sourceFormat,c=l===Qc;if(c&&!o.pure)for(var d=[],h=t;h0},e.prototype.ensureUniqueItemVisual=function(t,n){var r=this._itemVisuals,o=r[t];o||(o=r[t]={});var a=o[n];return a==null&&(a=this.getVisual(n),Qn(a)?a=a.slice():s4(a)&&(a=bn({},a)),o[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,s4(n)?bn(o,n):o[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){s4(t)?bn(this._layout,t):this._layout[t]=n},e.prototype.getLayout=function(t){return this._layout[t]},e.prototype.getItemLayout=function(t){return this._itemLayouts[t]},e.prototype.setItemLayout=function(t,n,r){this._itemLayouts[t]=r?bn(this._itemLayouts[t]||{},n):n},e.prototype.clearItemLayouts=function(){this._itemLayouts.length=0},e.prototype.setItemGraphicEl=function(t,n){var r=this.hostModel&&this.hostModel.seriesIndex;Cct(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){Et(this._graphicEls,function(r,o){r&&t&&t.call(n,r,o)})},e.prototype.cloneShallow=function(t){return t||(t=new e(this._schema?this._schema:Lp(this.dimensions,this._getDimInfo,this),this.hostModel)),cF(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];ei(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var o=r.apply(this,arguments);return n.apply(this,[o].concat(rW(arguments)))})},e.internalField=(function(){Cse=function(t){var n=t._invertedIndicesMap;Et(n,function(r,o){var a=t._dimInfos[o],s=a.ordinalMeta,l=t._store;if(s){r=n[o]=new o0t(s.categories.length);for(var c=0;c1&&(c+="__ec__"+h),o[n]=c}}})(),e})();function x1e(e,t){FW(e)||(e=kge(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],o=_i(),a=[],s=c0t(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&S1e(s),c=r===e.dimensionsDefine,d=c?_1e(e):b1e(r),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,s));for(var p=_i(h),m=new Lge(s),g=0;g0&&(r.name=o+(a-1)),a++,t.set(o,a)}}function c0t(e,t,n,r){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return Et(t,function(a){var s;Tr(a)&&(s=a.dimsDef)&&(o=Math.max(o,s.length))}),o}function d0t(e,t,n){if(n||t.hasKey(e)){for(var r=0;t.hasKey(e+r);)r++;e+=r}return t.set(e,!0),e}var f0t=(function(){function e(t){this.coordSysDims=[],this.axisMap=_i(),this.categoryAxisMap=_i(),this.coordSysName=t}return e})();function h0t(e){var t=e.get("coordinateSystem"),n=new f0t(t),r=p0t[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var p0t={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",xd).models[0],a=e.getReferringComponents("yAxis",xd).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),g1(o)&&(r.set("x",o),t.firstCategoryDimIndex=0),g1(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var o=e.getReferringComponents("singleAxis",xd).models[0];t.coordSysDims=["single"],n.set("single",o),g1(o)&&(r.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var o=e.getReferringComponents("polar",xd).models[0],a=o.findAxisModel("radiusAxis"),s=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),g1(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),g1(s)&&(r.set("angle",s),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},geo:function(e,t,n,r){t.coordSysDims=["lng","lat"]},parallel:function(e,t,n,r){var o=e.ecModel,a=o.getComponent("parallel",e.get("parallelIndex")),s=t.coordSysDims=a.dimensions.slice();Et(a.parallelAxisIndex,function(l,c){var d=o.getComponent("parallelAxis",l),h=s[c];n.set(h,d),g1(d)&&(r.set(h,d),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=c))})}};function g1(e){return e.get("type")==="category"}function v0t(e,t,n){n=n||{};var r=n.byIndex,o=n.stackedCoordDimension,a,s,l;m0t(t)?a=t:(s=t.schema,a=s.dimensions,l=t.store);var c=!!(e&&e.get("stack")),d,h,p,m;if(Et(a,function(x,E){yr(x)&&(a[E]=x={name:x}),c&&!x.isExtraCoord&&(!r&&!d&&x.ordinalMeta&&(d=x),!h&&x.type!=="ordinal"&&x.type!=="time"&&(!o||o===x.coordDim)&&(h=x))}),h&&!r&&!d&&(r=!0),h){p="__\0ecstackresult_"+e.id,m="__\0ecstackedover_"+e.id,d&&(d.createInvertedIndices=!0);var g=h.coordDim,y=h.type,S=0;Et(a,function(x){x.coordDim===g&&S++});var k={name:p,coordDim:g,coordDimIndex:S,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length},C={name:m,coordDim:m,coordDimIndex:S+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};s?(l&&(k.storeDimIndex=l.ensureCalculationDimension(m,y),C.storeDimIndex=l.ensureCalculationDimension(p,y)),s.appendCalculationDimension(k),s.appendCalculationDimension(C)):(a.push(k),a.push(C))}return{stackedDimension:h&&h.name,stackedByDimension:d&&d.name,isStackedByIndex:r,stackedOverDimension:m,stackResultDimension:p}}function m0t(e){return!y1e(e.schema)}function Fy(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function g0t(e,t){return Fy(e,t)?e.getCalculationInfo("stackResultDimension"):t}function y0t(e,t){var n=e.get("coordinateSystem"),r=NW.get(n),o;return t&&t.coordSysDims&&(o=xr(t.coordSysDims,function(a){var s={name:a},l=t.axisMap.get(a);if(l){var c=l.get("type");s.type=t0t(c)}return s})),o||(o=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),o}function b0t(e,t,n){var r,o;return n&&Et(e,function(a,s){var l=a.coordDim,c=n.categoryAxisMap.get(l);c&&(r==null&&(r=s),a.ordinalMeta=c.getOrdinalMeta(),t&&(a.createInvertedIndices=!0)),a.otherDims.itemName!=null&&(o=!0)}),!o&&r!=null&&(e[r].otherDims.itemName=0),r}function qW(e,t,n){n=n||{};var r=t.getSourceManager(),o,a=!1;o=r.getSource(),a=o.sourceFormat===Qc;var s=h0t(t),l=y0t(t,s),c=n.useEncodeDefaulter,d=ei(c)?c:c?Ps(fft,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!a},p=x1e(o,h),m=b0t(p.dimensions,n.createInvertedIndices,s),g=a?null:r.getSharedDataStore(p),y=v0t(t,{schema:p,store:g}),S=new k1e(p,t);S.setCalculationInfo(y);var k=m!=null&&_0t(o)?function(C,x,E,_){return _===m?E:this.defaultDimValueGetter(C,x,E,_)}:null;return S.hasItemOption=!1,S.initData(a?o:g,null,k),S}function _0t(e){if(e.sourceFormat===Qc){var t=S0t(e.data||[]);return!Qn(rS(t))}}function S0t(e){for(var t=0;tn[1]&&(n[1]=t[1])},e.prototype.unionExtentFromData=function(t,n){this.unionExtent(t.getApproximateExtent(n))},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.setExtent=function(t,n){var r=this._extent;isNaN(t)||(r[0]=t),isNaN(n)||(r[1]=n)},e.prototype.isInExtentRange=function(t){return this._extent[0]<=t&&this._extent[1]>=t},e.prototype.isBlank=function(){return this._isBlank},e.prototype.setBlank=function(t){this._isBlank=t},e})();uA(Mf);var k0t=0,vz=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++k0t}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&xr(r,x0t);return new e({categories:o,needCollect:!o,deduplication:n.dedplication!==!1})},e.prototype.getOrdinal=function(t){return this._getOrCreateMap().get(t)},e.prototype.parseAndCollect=function(t){var n,r=this._needCollect;if(!yr(t)&&!r)return t;if(r&&!this._deduplication)return n=this.categories.length,this.categories[n]=t,n;var o=this._getOrCreateMap();return n=o.get(t),n==null&&(r?(n=this.categories.length,this.categories[n]=t,o.set(t,n)):n=NaN),n},e.prototype._getOrCreateMap=function(){return this._map||(this._map=_i(this.categories))},e})();function x0t(e){return Tr(e)&&e.value!=null?e.value:e+""}function mz(e){return e.type==="interval"||e.type==="log"}function C0t(e,t,n,r){var o={},a=e[1]-e[0],s=o.interval=fme(a/t);n!=null&&sr&&(s=o.interval=r);var l=o.intervalPrecision=C1e(s),c=o.niceTickExtent=[Xs(Math.ceil(e[0]/s)*s,l),Xs(Math.floor(e[1]/s)*s,l)];return w0t(c,e),o}function fF(e){var t=Math.pow(10,fW(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Xs(n*t)}function C1e(e){return wh(e)+2}function wse(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function w0t(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),wse(e,0,t),wse(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function RA(e,t){return e>=t[0]&&e<=t[1]}function MA(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function OA(e,t){return e*(t[1]-t[0])+t[0]}var YW=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;r.type="ordinal";var o=r.getSetting("ordinalMeta");return o||(o=new vz({})),Qn(o)&&(o=new vz({categories:xr(o,function(a){return Tr(a)?a.value:a})})),r._ordinalMeta=o,r._extent=r.getSetting("extent")||[0,o.categories.length-1],r}return t.prototype.parse=function(n){return n==null?NaN:yr(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),RA(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),MA(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(OA(n,this._extent)),this.getRawOrdinalNumber(n)},t.prototype.getTicks=function(){for(var n=[],r=this._extent,o=r[0];o<=r[1];)n.push({value:o}),o++;return n},t.prototype.getMinorTicks=function(n){},t.prototype.setSortInfo=function(n){if(n==null){this._ordinalNumbersByTick=this._ticksByOrdinalNumber=null;return}for(var r=n.ordinalNumbers,o=this._ordinalNumbersByTick=[],a=this._ticksByOrdinalNumber=[],s=0,l=this._ordinalMeta.categories.length,c=Math.min(l,r.length);s=0&&n=0&&n=n},t.prototype.getOrdinalMeta=function(){return this._ordinalMeta},t.prototype.calcNiceTicks=function(){},t.prototype.calcNiceExtent=function(){},t.type="ordinal",t})(Mf);Mf.registerClass(YW);var Pv=Xs,h3=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="interval",n._interval=0,n._intervalPrecision=2,n}return t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return RA(n,this._extent)},t.prototype.normalize=function(n){return MA(n,this._extent)},t.prototype.scale=function(n){return OA(n,this._extent)},t.prototype.setExtent=function(n,r){var o=this._extent;isNaN(n)||(o[0]=parseFloat(n)),isNaN(r)||(o[1]=parseFloat(r))},t.prototype.unionExtent=function(n){var r=this._extent;n[0]r[1]&&(r[1]=n[1]),this.setExtent(r[0],r[1])},t.prototype.getInterval=function(){return this._interval},t.prototype.setInterval=function(n){this._interval=n,this._niceExtent=this._extent.slice(),this._intervalPrecision=C1e(n)},t.prototype.getTicks=function(n){var r=this._interval,o=this._extent,a=this._niceExtent,s=this._intervalPrecision,l=[];if(!r)return l;var c=1e4;o[0]c)return[];var h=l.length?l[l.length-1].value:a[1];return o[1]>h&&(n?l.push({value:Pv(h+r,s)}):l.push({value:o[1]})),l},t.prototype.getMinorTicks=function(n){for(var r=this.getTicks(!0),o=[],a=this.getExtent(),s=1;sa[0]&&g0&&(a=a===null?l:Math.min(a,l))}n[r]=a}}return n}function A1e(e){var t=A0t(e),n=[];return Et(e,function(r){var o=r.coordinateSystem,a=o.getBaseAxis(),s=a.getExtent(),l;if(a.type==="category")l=a.getBandWidth();else if(a.type==="value"||a.type==="time"){var c=a.dim+"_"+a.index,d=t[c],h=Math.abs(s[1]-s[0]),p=a.scale.getExtent(),m=Math.abs(p[1]-p[0]);l=d?h/m*d:h}else{var g=r.getData();l=Math.abs(s[1]-s[0])/g.count()}var y=Jo(r.get("barWidth"),l),S=Jo(r.get("barMaxWidth"),l),k=Jo(r.get("barMinWidth")||(L1e(r)?.5:1),l),C=r.get("barGap"),x=r.get("barCategoryGap");n.push({bandWidth:l,barWidth:y,barMaxWidth:S,barMinWidth:k,barGap:C,barCategoryGap:x,axisKey:XW(a),stackId:E1e(r)})}),I0t(n)}function I0t(e){var t={};Et(e,function(r,o){var a=r.axisKey,s=r.bandWidth,l=t[a]||{bandWidth:s,remainedWidth:s,autoWidthCount:0,categoryGap:null,gap:"20%",stacks:{}},c=l.stacks;t[a]=l;var d=r.stackId;c[d]||l.autoWidthCount++,c[d]=c[d]||{width:0,maxWidth:0};var h=r.barWidth;h&&!c[d].width&&(c[d].width=h,h=Math.min(l.remainedWidth,h),l.remainedWidth-=h);var p=r.barMaxWidth;p&&(c[d].maxWidth=p);var m=r.barMinWidth;m&&(c[d].minWidth=m);var g=r.barGap;g!=null&&(l.gap=g);var y=r.barCategoryGap;y!=null&&(l.categoryGap=y)});var n={};return Et(t,function(r,o){n[o]={};var a=r.stacks,s=r.bandWidth,l=r.categoryGap;if(l==null){var c=es(a).length;l=Math.max(35-c*4,15)+"%"}var d=Jo(l,s),h=Jo(r.gap,1),p=r.remainedWidth,m=r.autoWidthCount,g=(p-d)/(m+(m-1)*h);g=Math.max(g,0),Et(a,function(C){var x=C.maxWidth,E=C.minWidth;if(C.width){var _=C.width;x&&(_=Math.min(_,x)),E&&(_=Math.max(_,E)),C.width=_,p-=_+h*_,m--}else{var _=g;x&&x<_&&(_=Math.min(x,p)),E&&E>_&&(_=E),_!==g&&(C.width=_,p-=_+h*_,m--)}}),g=(p-d)/(m+(m-1)*h),g=Math.max(g,0);var y=0,S;Et(a,function(C,x){C.width||(C.width=g),S=C,y+=C.width*(1+h)}),S&&(y-=S.width*h);var k=-y/2;Et(a,function(C,x){n[o][x]=n[o][x]||{bandWidth:s,offset:k,width:C.width},k+=C.width*(1+h)})}),n}function L0t(e,t,n){if(e&&t){var r=e[XW(t)];return r}}function D0t(e,t){var n=T1e(e,t),r=A1e(n);Et(n,function(o){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),c=E1e(o),d=r[XW(l)][c],h=d.offset,p=d.width;a.setLayout({bandWidth:d.bandWidth,offset:h,size:p})})}function P0t(e){return{seriesType:e,plan:zW(),reset:function(t){if(I1e(t)){var n=t.getData(),r=t.coordinateSystem,o=r.getBaseAxis(),a=r.getOtherAxis(o),s=n.getDimensionIndex(n.mapDimension(a.dim)),l=n.getDimensionIndex(n.mapDimension(o.dim)),c=t.get("showBackground",!0),d=n.mapDimension(a.dim),h=n.getCalculationInfo("stackResultDimension"),p=Fy(n,d)&&!!n.getCalculationInfo("stackedOnSeries"),m=a.isHorizontal(),g=R0t(o,a),y=L1e(t),S=t.get("barMinHeight")||0,k=h&&n.getDimensionIndex(h),C=n.getLayout("size"),x=n.getLayout("offset");return{progress:function(E,_){for(var T=E.count,D=y&&Eh(T*3),P=y&&c&&Eh(T*3),M=y&&Eh(T),$=r.master.getRect(),I=m?$.width:$.height,N,j=_.getStore(),U=0;(N=E.next())!=null;){var z=j.get(p?k:s,N),G=j.get(l,N),X=g,ie=void 0;p&&(ie=+z-j.get(s,N));var ee=void 0,W=void 0,q=void 0,Q=void 0;if(m){var ne=r.dataToPoint([z,G]);if(p){var ae=r.dataToPoint([ie,G]);X=ae[0]}ee=X,W=ne[1]+x,q=ne[0]-X,Q=C,Math.abs(q)0?n:1:n))}var M0t=function(e,t,n,r){for(;n>>1;e[o][1]o&&(this._approxInterval=o);var l=Zx.length,c=Math.min(M0t(Zx,this._approxInterval,0,l),l-1);this._interval=Zx[c][1],this._minLevelUnit=Zx[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return Eo(n)?n:+Uh(n)},t.prototype.contain=function(n){return RA(this.parse(n),this._extent)},t.prototype.normalize=function(n){return MA(this.parse(n),this._extent)},t.prototype.scale=function(n){return OA(n,this._extent)},t.type="time",t})(h3),Zx=[["second",DW],["minute",PW],["hour",bb],["quarter-day",bb*6],["half-day",bb*12],["day",Bc*1.2],["half-week",Bc*3.5],["week",Bc*7],["month",Bc*31],["quarter",Bc*95],["half-year",voe/2],["year",voe]];function O0t(e,t,n,r){var o=Uh(t),a=Uh(n),s=function(y){return goe(o,y,r)===goe(a,y,r)},l=function(){return s("year")},c=function(){return l()&&s("month")},d=function(){return c()&&s("day")},h=function(){return d()&&s("hour")},p=function(){return h()&&s("minute")},m=function(){return p()&&s("second")},g=function(){return m()&&s("millisecond")};switch(e){case"year":return l();case"month":return c();case"day":return d();case"hour":return h();case"minute":return p();case"second":return m();case"millisecond":return g()}}function $0t(e,t){return e/=Bc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function B0t(e){var t=30*Bc;return e/=t,e>6?6:e>3?3:e>2?2:1}function N0t(e){return e/=bb,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Ese(e,t){return e/=t?PW:DW,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function F0t(e){return fme(e)}function j0t(e,t,n){var r=new Date(e);switch(cy(t)){case"year":case"month":r[ige(n)](0);case"day":r[oge(n)](1);case"hour":r[sge(n)](0);case"minute":r[age(n)](0);case"second":r[lge(n)](0),r[uge(n)](0)}return r.getTime()}function V0t(e,t,n,r){var o=1e4,a=nge,s=0;function l(I,N,j,U,z,G,X){for(var ie=new Date(N),ee=N,W=ie[U]();ee1&&G===0&&j.unshift({value:j[0].value-ee})}}for(var G=0;G=r[0]&&x<=r[1]&&p++)}var E=(r[1]-r[0])/t;if(p>E*1.5&&m>E/1.5||(d.push(k),p>E||e===a[g]))break}h=[]}}}for(var _=ja(xr(d,function(I){return ja(I,function(N){return N.value>=r[0]&&N.value<=r[1]&&!N.notAdd})}),function(I){return I.length>0}),T=[],D=_.length-1,g=0;g<_.length;++g)for(var P=_[g],M=0;M0;)a*=10;var l=[Xs(H0t(r[0]/a)*a),Xs(U0t(r[1]/a)*a)];this._interval=a,this._niceExtent=l}},t.prototype.calcNiceExtent=function(n){Cb.calcNiceExtent.call(this,n),this._fixMin=n.fixMin,this._fixMax=n.fixMax},t.prototype.parse=function(n){return n},t.prototype.contain=function(n){return n=ld(n)/ld(this.base),RA(n,this._extent)},t.prototype.normalize=function(n){return n=ld(n)/ld(this.base),MA(n,this._extent)},t.prototype.scale=function(n){return n=OA(n,this._extent),Jx(this.base,n)},t.type="log",t})(Mf),P1e=ZW.prototype;P1e.getMinorTicks=Cb.getMinorTicks;P1e.getLabel=Cb.getLabel;function Qx(e,t){return z0t(e,wh(t))}Mf.registerClass(ZW);var W0t=(function(){function e(t,n,r){this._prepareParams(t,n,r)}return e.prototype._prepareParams=function(t,n,r){r[1]0&&c>0&&!d&&(l=0),l<0&&c<0&&!h&&(c=0));var m=this._determinedMin,g=this._determinedMax;return m!=null&&(l=m,d=!0),g!=null&&(c=g,h=!0),{min:l,max:c,minFixed:d,maxFixed:h,isBlank:p}},e.prototype.modifyDataMinMax=function(t,n){this[K0t[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=G0t[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),G0t={min:"_determinedMin",max:"_determinedMax"},K0t={min:"_dataMin",max:"_dataMax"};function q0t(e,t,n){var r=e.rawExtentInfo;return r||(r=new W0t(e,t,n),e.rawExtentInfo=r,r)}function eC(e,t){return t==null?null:K8(t)?NaN:e.parse(t)}function R1e(e,t){var n=e.type,r=q0t(e,t,e.getExtent()).calculate();e.setBlank(r.isBlank);var o=r.min,a=r.max,s=t.ecModel;if(s&&n==="time"){var l=T1e("bar",s),c=!1;if(Et(l,function(p){c=c||p.getBaseAxis()===t.axis}),c){var d=A1e(l),h=Y0t(o,a,t,d);o=h.min,a=h.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function Y0t(e,t,n,r){var o=n.axis.getExtent(),a=Math.abs(o[1]-o[0]),s=L0t(r,n.axis);if(s===void 0)return{min:e,max:t};var l=1/0;Et(s,function(g){l=Math.min(g.offset,l)});var c=-1/0;Et(s,function(g){c=Math.max(g.offset+g.width,c)}),l=Math.abs(l),c=Math.abs(c);var d=l+c,h=t-e,p=1-(l+c)/a,m=h/p-h;return t+=m*(c/d),e-=m*(l/d),{min:e,max:t}}function Ase(e,t){var n=t,r=R1e(e,n),o=r.extent,a=n.get("splitNumber");e instanceof ZW&&(e.base=n.get("logBase"));var s=e.type,l=n.get("interval"),c=s==="interval"||s==="time";e.setExtent(o[0],o[1]),e.calcNiceExtent({splitNumber:a,fixMin:r.fixMin,fixMax:r.fixMax,minInterval:c?n.get("minInterval"):null,maxInterval:c?n.get("maxInterval"):null}),l!=null&&e.setInterval&&e.setInterval(l)}function X0t(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new YW({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new D1e({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Mf.getClass(t)||h3)}}function Z0t(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function p3(e){var t=e.getLabelModel().get("formatter"),n=e.type==="category"?e.scale.getExtent()[0]:null;return e.scale.type==="time"?(function(r){return function(o,a){return e.scale.getFormattedLabel(o,a,r)}})(t):yr(t)?(function(r){return function(o){var a=e.scale.getLabel(o),s=r.replace("{value}",a??"");return s}})(t):ei(t)?(function(r){return function(o,a){return n!=null&&(a=o.value-n),r(JW(e,o),a,o.level!=null?{level:o.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function JW(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function J0t(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,o,a=n.getExtent();n instanceof YW?o=n.count():(r=n.getTicks(),o=r.length);var s=e.getLabelModel(),l=p3(e),c,d=1;o>40&&(d=Math.ceil(o/40));for(var h=0;h=0||(Ise.push(e),ei(e)&&(e={install:e}),e.install(nvt))}var m_=$s();function O1e(e,t){var n=xr(t,function(r){return e.scale.parse(r)});return e.type==="time"&&n.length>0&&(n.sort(),n.unshift(n[0]),n.push(n[n.length-1])),n}function rvt(e){var t=e.getLabelModel().get("customValues");if(t){var n=p3(e),r=e.scale.getExtent(),o=O1e(e,t),a=ja(o,function(s){return s>=r[0]&&s<=r[1]});return{labels:xr(a,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s}})}}return e.type==="category"?ovt(e):avt(e)}function ivt(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),o=O1e(e,n);return{ticks:ja(o,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?svt(e,t):{ticks:xr(e.scale.getTicks(),function(a){return a.value})}}function ovt(e){var t=e.getLabelModel(),n=$1e(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function $1e(e,t){var n=B1e(e,"labels"),r=QW(t),o=N1e(n,r);if(o)return o;var a,s;return ei(r)?a=V1e(e,r):(s=r==="auto"?lvt(e):r,a=j1e(e,s)),F1e(n,r,{labels:a,labelCategoryInterval:s})}function svt(e,t){var n=B1e(e,"ticks"),r=QW(t),o=N1e(n,r);if(o)return o;var a,s;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ei(r))a=V1e(e,r,!0);else if(r==="auto"){var l=$1e(e,e.getLabelModel());s=l.labelCategoryInterval,a=xr(l.labels,function(c){return c.tickValue})}else s=r,a=j1e(e,s,!0);return F1e(n,r,{ticks:a,tickCategoryInterval:s})}function avt(e){var t=e.scale.getTicks(),n=p3(e);return{labels:xr(t,function(r,o){return{level:r.level,formattedLabel:n(r,o),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function B1e(e,t){return m_(e)[t]||(m_(e)[t]=[])}function N1e(e,t){for(var n=0;n40&&(l=Math.max(1,Math.floor(s/40)));for(var c=a[0],d=e.dataToCoord(c+1)-e.dataToCoord(c),h=Math.abs(d*Math.cos(r)),p=Math.abs(d*Math.sin(r)),m=0,g=0;c<=a[1];c+=l){var y=0,S=0,k=cW(n({value:c}),t.font,"center","top");y=k.width*1.3,S=k.height*1.3,m=Math.max(m,y,7),g=Math.max(g,S,7)}var C=m/h,x=g/p;isNaN(C)&&(C=1/0),isNaN(x)&&(x=1/0);var E=Math.max(0,Math.floor(Math.min(C,x))),_=m_(e.model),T=e.getExtent(),D=_.lastAutoInterval,P=_.lastTickCount;return D!=null&&P!=null&&Math.abs(D-E)<=1&&Math.abs(P-s)<=1&&D>E&&_.axisExtent0===T[0]&&_.axisExtent1===T[1]?E=D:(_.lastTickCount=s,_.lastAutoInterval=E,_.axisExtent0=T[0],_.axisExtent1=T[1]),E}function cvt(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 j1e(e,t,n){var r=p3(e),o=e.scale,a=o.getExtent(),s=e.getLabelModel(),l=[],c=Math.max((t||0)+1,1),d=a[0],h=o.count();d!==0&&c>1&&h/c>2&&(d=Math.round(Math.ceil(d/c)*c));var p=M1e(e),m=s.get("showMinLabel")||p,g=s.get("showMaxLabel")||p;m&&d!==a[0]&&S(a[0]);for(var y=d;y<=a[1];y+=c)S(y);g&&y-c!==a[1]&&S(a[1]);function S(k){var C={value:k};l.push(n?k:{formattedLabel:r(C),rawLabel:o.getLabel(C),tickValue:k})}return l}function V1e(e,t,n){var r=e.scale,o=p3(e),a=[];return Et(r.getTicks(),function(s){var l=r.getLabel(s),c=s.value;t(s.value,l)&&a.push(n?c:{formattedLabel:o(s),rawLabel:l,tickValue:c})}),a}var Lse=[0,1],dvt=(function(){function e(t,n,r){this.onBand=!1,this.inverse=!1,this.dim=t,this.scale=n,this._extent=r||[0,0]}return e.prototype.contain=function(t){var n=this._extent,r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return t>=r&&t<=o},e.prototype.containData=function(t){return this.scale.contain(t)},e.prototype.getExtent=function(){return this._extent.slice()},e.prototype.getPixelPrecision=function(t){return sut(t||this.scale.getExtent(),this._extent)},e.prototype.setExtent=function(t,n){var r=this._extent;r[0]=t,r[1]=n},e.prototype.dataToCoord=function(t,n){var r=this._extent,o=this.scale;return t=o.normalize(t),this.onBand&&o.type==="ordinal"&&(r=r.slice(),Dse(r,o.count())),zV(t,Lse,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(r=r.slice(),Dse(r,o.count()));var a=zV(t,r,Lse,n);return this.scale.scale(a)},e.prototype.pointToData=function(t,n){},e.prototype.getTicksCoords=function(t){t=t||{};var n=t.tickModel||this.getTickModel(),r=ivt(this,n),o=r.ticks,a=xr(o,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return fvt(this,a,s,t.clamp),a},e.prototype.getMinorTicksCoords=function(){if(this.scale.type==="ordinal")return[];var t=this.model.getModel("minorTick"),n=t.get("splitNumber");n>0&&n<100||(n=5);var r=this.scale.getMinorTicks(n),o=xr(r,function(a){return xr(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return o},e.prototype.getViewLabels=function(){return rvt(this).labels},e.prototype.getLabelModel=function(){return this.model.getModel("axisLabel")},e.prototype.getTickModel=function(){return this.model.getModel("axisTick")},e.prototype.getBandWidth=function(){var t=this._extent,n=this.scale.getExtent(),r=n[1]-n[0]+(this.onBand?1:0);r===0&&(r=1);var o=Math.abs(t[1]-t[0]);return Math.abs(o)/r},e.prototype.calculateCategoryInterval=function(){return uvt(this)},e})();function Dse(e,t){var n=e[1]-e[0],r=t,o=n/r/2;e[0]+=o,e[1]-=o}function fvt(e,t,n,r){var o=t.length;if(!e.onBand||n||!o)return;var a=e.getExtent(),s,l;if(o===1)t[0].coord=a[0],s=t[1]={coord:a[1],tickValue:t[0].tickValue};else{var c=t[o-1].tickValue-t[0].tickValue,d=(t[o-1].coord-t[0].coord)/c;Et(t,function(g){g.coord-=d/2});var h=e.scale.getExtent();l=1+h[1]-t[o-1].tickValue,s={coord:t[o-1].coord+d*l,tickValue:h[1]+1},t.push(s)}var p=a[0]>a[1];m(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&m(a[0],t[0].coord)&&t.unshift({coord:a[0]}),m(a[1],s.coord)&&(r?s.coord=a[1]:t.pop()),r&&m(s.coord,a[1])&&t.push({coord:a[1]});function m(g,y){return g=Xs(g),y=Xs(y),p?g>y:g0){t=t/180*Math.PI,n0.fromArray(e[0]),ys.fromArray(e[1]),Na.fromArray(e[2]),Hr.sub(r0,n0,ys),Hr.sub(lf,Na,ys);var n=r0.len(),r=lf.len();if(!(n<.001||r<.001)){r0.scale(1/n),lf.scale(1/r);var o=r0.dot(lf),a=Math.cos(t);if(a1&&Hr.copy(Vl,Na),Vl.toArray(e[1])}}}}function pvt(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,n0.fromArray(e[0]),ys.fromArray(e[1]),Na.fromArray(e[2]),Hr.sub(r0,ys,n0),Hr.sub(lf,Na,ys);var r=r0.len(),o=lf.len();if(!(r<.001||o<.001)){r0.scale(1/r),lf.scale(1/o);var a=r0.dot(t),s=Math.cos(n);if(a=c)Hr.copy(Vl,Na);else{Vl.scaleAndAdd(lf,l/Math.tan(Math.PI/2-h));var p=Na.x!==ys.x?(Vl.x-ys.x)/(Na.x-ys.x):(Vl.y-ys.y)/(Na.y-ys.y);if(isNaN(p))return;p<0?Hr.copy(Vl,ys):p>1&&Hr.copy(Vl,Na)}Vl.toArray(e[1])}}}}function hF(e,t,n,r){var o=n==="normal",a=o?e:e.ensureState(n);a.ignore=t;var s=r.get("smooth");s&&s===!0&&(s=.3),a.shape=a.shape||{},s>0&&(a.shape.smooth=s);var l=r.getModel("lineStyle").getLineStyle();o?e.useStyle(l):a.style=l}function vvt(e,t){var n=t.smooth,r=t.points;if(r)if(e.moveTo(r[0][0],r[0][1]),n>0&&r.length>=3){var o=TV(r[0],r[1]),a=TV(r[1],r[2]);if(!o||!a){e.lineTo(r[1][0],r[1][1]),e.lineTo(r[2][0],r[2][1]);return}var s=Math.min(o,a)*n,l=aN([],r[1],r[0],s/o),c=aN([],r[1],r[2],s/a),d=aN([],l,c,.5);e.bezierCurveTo(l[0],l[1],l[0],l[1],d[0],d[1]),e.bezierCurveTo(c[0],c[1],c[0],c[1],r[2][0],r[2][1])}else for(var h=1;h0){E($*M,0,s);var I=$+D;I<0&&_(-I*M,1)}else _(-D*M,1)}}function E(D,P,M){D!==0&&(d=!0);for(var $=P;$0)for(var I=0;I0;I--){var z=M[I-1]*U;E(-z,I,s)}}}function T(D){var P=D<0?-1:1;D=Math.abs(D);for(var M=Math.ceil(D/(s-1)),$=0;$0?E(M,0,$+1):E(-M,s-$-1,s),D-=M,D<=0)return}return d}function _vt(e,t,n,r){return bvt(e,"y","height",t,n)}function Svt(e){var t=[];e.sort(function(S,k){return k.priority-S.priority});var n=new so(0,0,0,0);function r(S){if(!S.ignore){var k=S.ensureState("emphasis");k.ignore==null&&(k.ignore=!1)}S.ignore=!0}for(var o=0;o=l)}}for(var p=this.__startIndex;p15)break}}z.prevElClipPaths&&C.restore()};if(x)if(x.length===0)M=k.__endIndex;else for(var I=g.dpr,N=0;N0&&t>o[0]){for(c=0;ct);c++);l=r[o[c]]}if(o.splice(c+1,0,t),r[t]=n,!n.virtual)if(l){var d=l.dom;d.nextSibling?s.insertBefore(n.dom,d.nextSibling):s.appendChild(n.dom)}else s.firstChild?s.insertBefore(n.dom,s.firstChild):s.appendChild(n.dom);n.painter||(n.painter=this)}},e.prototype.eachLayer=function(t,n){for(var r=this._zlevelList,o=0;o0?tC:0),this._needsManuallyCompositing),h.__builtin__||nW("ZLevel "+d+" has been used by unkown layer "+h.id),h!==a&&(h.__used=!0,h.__startIndex!==c&&(h.__dirty=!0),h.__startIndex=c,h.incremental?h.__drawIndex=-1:h.__drawIndex=c,n(c),a=h),o.__dirty&rc&&!o.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=c))}n(c),this.eachBuiltinLayer(function(p,m){!p.__used&&p.getElementCount()>0&&(p.__dirty=!0,p.__startIndex=p.__endIndex=p.__drawIndex=0),p.__dirty&&p.__drawIndex<0&&(p.__drawIndex=p.__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,Et(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?oo(r[t],n,!0):r[t]=n;for(var o=0;o-1&&(d.style.stroke=d.style.fill,d.style.fill="#fff",d.style.lineWidth=2),r},t.type="series.line",t.dependencies=["grid","polar"],t.defaultOption={z:3,coordinateSystem:"cartesian2d",legendHoverLink:!0,clip:!0,label:{position:"top"},endLabel:{show:!1,valueAnimation:!0,distance:8},lineStyle:{width:2,type:"solid"},emphasis:{scale:!0},step:!1,smooth:!1,smoothMonotone:null,symbol:"emptyCircle",symbolSize:4,symbolRotate:null,showSymbol:!0,showAllSymbol:"auto",connectNulls:!1,sampling:"none",animationEasing:"linear",progressive:0,hoverLayerThreshold:1/0,universalTransition:{divideShape:"clone"},triggerLineEvent:!1},t})(Pd);function eG(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var o=By(e,t,n[0]);return o!=null?o+"":null}else if(r){for(var a=[],s=0;s=0&&r.push(t[a])}return r.join(" ")}var tG=(function(e){Nn(t,e);function t(n,r,o,a){var s=e.call(this)||this;return s.updateData(n,r,o,a),s}return t.prototype._createSymbol=function(n,r,o,a,s){this.removeAll();var l=Ny(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Tvt,this._symbolType=n,this.add(l)},t.prototype.stopSymbolAnimation=function(n){this.childAt(0).stopAnimation(null,n)},t.prototype.getSymbolType=function(){return this._symbolType},t.prototype.getSymbolPath=function(){return this.childAt(0)},t.prototype.highlight=function(){sT(this.childAt(0))},t.prototype.downplay=function(){aT(this.childAt(0))},t.prototype.setZ=function(n,r){var o=this.childAt(0);o.zlevel=n,o.z=r},t.prototype.setDraggable=function(n,r){var o=this.childAt(0);o.draggable=n,o.cursor=!r&&n?"move":o.cursor},t.prototype.updateData=function(n,r,o,a){this.silent=!1;var s=n.getItemVisual(r,"symbol")||"circle",l=n.hostModel,c=t.getSymbolSize(n,r),d=s!==this._symbolType,h=a&&a.disableAnimation;if(d){var p=n.getItemVisual(r,"symbolKeepAspect");this._createSymbol(s,n,r,c,p)}else{var m=this.childAt(0);m.silent=!1;var g={scaleX:c[0]/2,scaleY:c[1]/2};h?m.attr(g):Ql(m,g,l,r),wW(m)}if(this._updateCommon(n,r,c,o,a),d){var m=this.childAt(0);if(!h){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:m.style.opacity}};m.scaleX=m.scaleY=0,m.style.opacity=0,zc(m,g,l,r)}}h&&this.childAt(0).stopAnimation("leave")},t.prototype._updateCommon=function(n,r,o,a,s){var l=this.childAt(0),c=n.hostModel,d,h,p,m,g,y,S,k,C;if(a&&(d=a.emphasisItemStyle,h=a.blurItemStyle,p=a.selectItemStyle,m=a.focus,g=a.blurScope,S=a.labelStatesModels,k=a.hoverScale,C=a.cursorStyle,y=a.emphasisDisabled),!a||n.hasItemOption){var x=a&&a.itemModel?a.itemModel:n.getItemModel(r),E=x.getModel("emphasis");d=E.getModel("itemStyle").getItemStyle(),p=x.getModel(["select","itemStyle"]).getItemStyle(),h=x.getModel(["blur","itemStyle"]).getItemStyle(),m=E.get("focus"),g=E.get("blurScope"),y=E.get("disabled"),S=lS(x),k=E.getShallow("scale"),C=x.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(_||0)*Math.PI/180||0);var T=Kge(n.getItemVisual(r,"symbolOffset"),o);T&&(l.x=T[0],l.y=T[1]),C&&l.attr("cursor",C);var D=n.getItemVisual(r,"style"),P=D.fill;if(l instanceof O0){var M=l.style;l.useStyle(bn({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},D))}else l.__isEmptyBrush?l.useStyle(bn({},D)):l.useStyle(D),l.style.decal=null,l.setColor(P,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var $=n.getItemVisual(r,"liftZ"),I=this._z2;$!=null?I==null&&(this._z2=l.z2,l.z2+=$):I!=null&&(l.z2=I,this._z2=null);var N=s&&s.useNameLabel;aS(l,S,{labelFetcher:c,labelDataIndex:r,defaultText:j,inheritColor:P,defaultOpacity:D.opacity});function j(G){return N?n.getName(G):eG(n,G)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var U=l.ensureState("emphasis");U.style=d,l.ensureState("select").style=p,l.ensureState("blur").style=h;var z=k==null||k===!0?Math.max(1.1,3/this._sizeY):isFinite(k)&&k>0?+k:1;U.scaleX=this._sizeX*z,U.scaleY=this._sizeY*z,this.setSymbolScale(1),l_(this,m,g,y)},t.prototype.setSymbolScale=function(n){this.scaleX=this.scaleY=n},t.prototype.fadeOut=function(n,r,o){var a=this.childAt(0),s=qi(this).dataIndex,l=o&&o.animation;if(this.silent=a.silent=!0,o&&o.fadeLabel){var c=a.getTextContent();c&&cT(c,{style:{opacity:0}},r,{dataIndex:s,removeOpt:l,cb:function(){a.removeTextContent()}})}else a.removeTextContent();cT(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:n,removeOpt:l})},t.getSymbolSize=function(n,r){return upt(n.getItemVisual(r,"symbolSize"))},t})(Za);function Tvt(e,t){this.parent.drift(e,t)}function vF(e,t,n,r){return t&&!isNaN(t[0])&&!isNaN(t[1])&&!(r.isIgnore&&r.isIgnore(n))&&!(r.clipShape&&!r.clipShape.contain(t[0],t[1]))&&e.getItemVisual(n,"symbol")!=="none"}function Mse(e){return e!=null&&!Tr(e)&&(e={isIgnore:e}),e||{}}function Ose(e){var t=e.hostModel,n=t.getModel("emphasis");return{emphasisItemStyle:n.getModel("itemStyle").getItemStyle(),blurItemStyle:t.getModel(["blur","itemStyle"]).getItemStyle(),selectItemStyle:t.getModel(["select","itemStyle"]).getItemStyle(),focus:n.get("focus"),blurScope:n.get("blurScope"),emphasisDisabled:n.get("disabled"),hoverScale:n.get("scale"),labelStatesModels:lS(t),cursorStyle:t.get("cursor")}}var Avt=(function(){function e(t){this.group=new Za,this._SymbolCtor=t||tG}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Mse(n);var r=this.group,o=t.hostModel,a=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=Ose(t),d={disableAnimation:l},h=n.getSymbolPoint||function(p){return t.getItemLayout(p)};a||r.removeAll(),t.diff(a).add(function(p){var m=h(p);if(vF(t,m,p,n)){var g=new s(t,p,c,d);g.setPosition(m),t.setItemGraphicEl(p,g),r.add(g)}}).update(function(p,m){var g=a.getItemGraphicEl(m),y=h(p);if(!vF(t,y,p,n)){r.remove(g);return}var S=t.getItemVisual(p,"symbol")||"circle",k=g&&g.getSymbolType&&g.getSymbolType();if(!g||k&&k!==S)r.remove(g),g=new s(t,p,c,d),g.setPosition(y);else{g.updateData(t,p,c,d);var C={x:y[0],y:y[1]};l?g.attr(C):Ql(g,C,o)}r.add(g),t.setItemGraphicEl(p,g)}).remove(function(p){var m=a.getItemGraphicEl(p);m&&m.fadeOut(function(){r.remove(m)},o)}).execute(),this._getSymbolPoint=h,this._data=t},e.prototype.updateLayout=function(){var t=this,n=this._data;n&&n.eachItemGraphicEl(function(r,o){var a=t._getSymbolPoint(o);r.setPosition(a),r.markRedraw()})},e.prototype.incrementalPrepareUpdate=function(t){this._seriesScope=Ose(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Mse(r);function o(c){c.isGroup||(c.incremental=!0,c.ensureState("emphasis").hoverLayer=!0)}for(var a=t.start;a0?n=r[0]:r[1]<0&&(n=r[1]),n}function G1e(e,t,n,r){var o=NaN;e.stacked&&(o=n.get(n.getCalculationInfo("stackedOverDimension"),r)),isNaN(o)&&(o=e.valueStart);var a=e.baseDataOffset,s=[];return s[a]=n.get(e.baseDim,r),s[1-a]=o,t.dataToPoint(s)}function Lvt(e,t){var n=[];return t.diff(e).add(function(r){n.push({cmd:"+",idx:r})}).update(function(r,o){n.push({cmd:"=",idx:o,idx1:r})}).remove(function(r){n.push({cmd:"-",idx:r})}).execute(),n}function Dvt(e,t,n,r,o,a,s,l){for(var c=Lvt(e,t),d=[],h=[],p=[],m=[],g=[],y=[],S=[],k=W1e(o,t,s),C=e.getLayout("points")||[],x=t.getLayout("points")||[],E=0;E=o||S<0)break;if(vm(C,x)){if(c){S+=a;continue}break}if(S===n)e[a>0?"moveTo":"lineTo"](C,x),p=C,m=x;else{var E=C-d,_=x-h;if(E*E+_*_<.5){S+=a;continue}if(s>0){for(var T=S+a,D=t[T*2],P=t[T*2+1];D===C&&P===x&&k=r||vm(D,P))g=C,y=x;else{I=D-d,N=P-h;var z=C-d,G=D-C,X=x-h,ie=P-x,ee=void 0,W=void 0;if(l==="x"){ee=Math.abs(z),W=Math.abs(G);var q=I>0?1:-1;g=C-q*ee*s,y=x,j=C+q*W*s,U=x}else if(l==="y"){ee=Math.abs(X),W=Math.abs(ie);var Q=N>0?1:-1;g=C,y=x-Q*ee*s,j=C,U=x+Q*W*s}else ee=Math.sqrt(z*z+X*X),W=Math.sqrt(G*G+ie*ie),$=W/(W+ee),g=C-I*s*(1-$),y=x-N*s*(1-$),j=C+I*s*$,U=x+N*s*$,j=Dp(j,Pp(D,C)),U=Dp(U,Pp(P,x)),j=Pp(j,Dp(D,C)),U=Pp(U,Dp(P,x)),I=j-C,N=U-x,g=C-I*ee/W,y=x-N*ee/W,g=Dp(g,Pp(d,C)),y=Dp(y,Pp(h,x)),g=Pp(g,Dp(d,C)),y=Pp(y,Dp(h,x)),I=C-g,N=x-y,j=C+I*W/ee,U=x+N*W/ee}e.bezierCurveTo(p,m,g,y,C,x),p=j,m=U}else e.lineTo(C,x)}d=C,h=x,S+=a}return k}var K1e=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),Pvt=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polyline",r}return t.prototype.getDefaultStyle=function(){return{stroke:"#000",fill:null}},t.prototype.getDefaultShape=function(){return new K1e},t.prototype.buildPath=function(n,r){var o=r.points,a=0,s=o.length/2;if(r.connectNulls){for(;s>0&&vm(o[s*2-2],o[s*2-1]);s--);for(;a=0){var _=d?(y-c)*E+c:(g-l)*E+l;return d?[n,_]:[_,n]}l=g,c=y;break;case s.C:g=a[p++],y=a[p++],S=a[p++],k=a[p++],C=a[p++],x=a[p++];var T=d?X8(l,g,S,C,n,h):X8(c,y,k,x,n,h);if(T>0)for(var D=0;D=0){var _=d?Va(c,y,k,x,P):Va(l,g,S,C,P);return d?[n,_]:[_,n]}}l=C,c=x;break}}},t})(ho),Rvt=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(K1e),Mvt=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="ec-polygon",r}return t.prototype.getDefaultShape=function(){return new Rvt},t.prototype.buildPath=function(n,r){var o=r.points,a=r.stackedOnPoints,s=0,l=o.length/2,c=r.smoothMonotone;if(r.connectNulls){for(;l>0&&vm(o[l*2-2],o[l*2-1]);l--);for(;st){a?n.push(s(a,c,t)):o&&n.push(s(o,c,0),s(o,c,t));break}else o&&(n.push(s(o,c,0)),o=null),n.push(c),a=c}return n}function Nvt(e,t,n){var r=e.getVisual("visualMeta");if(!(!r||!r.length||!e.count())&&t.type==="cartesian2d"){for(var o,a,s=r.length-1;s>=0;s--){var l=e.getDimensionInfo(r[s].dimension);if(o=l&&l.coordDim,o==="x"||o==="y"){a=r[s];break}}if(a){var c=t.getAxis(o),d=xr(a.stops,function(E){return{coord:c.toGlobalCoord(c.dataToCoord(E.value)),color:E.color}}),h=d.length,p=a.outerColors.slice();h&&d[0].coord>d[h-1].coord&&(d.reverse(),p.reverse());var m=Bvt(d,o==="x"?n.getWidth():n.getHeight()),g=m.length;if(!g&&h)return d[0].coord<0?p[1]?p[1]:d[h-1].color:p[0]?p[0]:d[0].color;var y=10,S=m[0].coord-y,k=m[g-1].coord+y,C=k-S;if(C<.001)return"transparent";Et(m,function(E){E.offset=(E.coord-S)/C}),m.push({offset:g?m[g-1].offset:.5,color:p[1]||"transparent"}),m.unshift({offset:g?m[0].offset:.5,color:p[0]||"transparent"});var x=new Wme(0,0,0,0,m,!0);return x[o]=S,x[o+"2"]=k,x}}}function Fvt(e,t,n){var r=e.get("showAllSymbol"),o=r==="auto";if(!(r&&!o)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(o&&jvt(a,t))){var s=t.mapDimension(a.dim),l={};return Et(a.getViewLabels(),function(c){var d=a.scale.getRawOrdinalNumber(c.tickValue);l[d]=1}),function(c){return!l.hasOwnProperty(t.get(s,c))}}}}function jvt(e,t){var n=e.getExtent(),r=Math.abs(n[1]-n[0])/e.scale.count();isNaN(r)&&(r=0);for(var o=t.count(),a=Math.max(1,Math.round(o/5)),s=0;sr)return!1;return!0}function Vvt(e,t){return isNaN(e)||isNaN(t)}function zvt(e){for(var t=e.length/2;t>0&&Vvt(e[t*2-2],e[t*2-1]);t--);return t-1}function jse(e,t){return[e[t*2],e[t*2+1]]}function Uvt(e,t,n){for(var r=e.length/2,o=n==="x"?0:1,a,s,l=0,c=-1,d=0;d=t||a>=t&&s<=t){c=d;break}l=d,a=s}return{range:[l,c],t:(t-a)/(s-a)}}function X1e(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var W=y.getState("emphasis").style;W.lineWidth=+y.style.lineWidth+1}qi(y).seriesIndex=n.seriesIndex,l_(y,X,ie,ee);var q=Fse(n.get("smooth")),Q=n.get("smoothMonotone");if(y.setShape({smooth:q,smoothMonotone:Q,connectNulls:P}),S){var ne=l.getCalculationInfo("stackedOnSeries"),ae=0;S.useStyle(ao(d.getAreaStyle(),{fill:j,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),ne&&(ae=Fse(ne.get("smooth"))),S.setShape({smooth:q,stackedOnSmooth:ae,smoothMonotone:Q,connectNulls:P}),lT(S,n,"areaStyle"),qi(S).seriesIndex=n.seriesIndex,l_(S,X,ie,ee)}var re=this._changePolyState;l.eachItemGraphicEl(function(Ce){Ce&&(Ce.onHoverStateChange=re)}),this._polyline.onHoverStateChange=re,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=h,this._step=I,this._valueOrigin=E,n.get("triggerLineEvent")&&(this.packEventData(n,y),S&&this.packEventData(n,S))},t.prototype.packEventData=function(n,r){qi(r).eventData={componentType:"series",componentSubType:"line",componentIndex:n.componentIndex,seriesIndex:n.seriesIndex,seriesName:n.name,seriesType:"line"}},t.prototype.highlight=function(n,r,o,a){var s=n.getData(),l=Dm(s,a);if(this._changePolyState("emphasis"),!(l instanceof Array)&&l!=null&&l>=0){var c=s.getLayout("points"),d=s.getItemGraphicEl(l);if(!d){var h=c[l*2],p=c[l*2+1];if(isNaN(h)||isNaN(p)||this._clipShapeForSymbol&&!this._clipShapeForSymbol.contain(h,p))return;var m=n.get("zlevel")||0,g=n.get("z")||0;d=new tG(s,l),d.x=h,d.y=p,d.setZ(m,g);var y=d.getSymbolPath().getTextContent();y&&(y.zlevel=m,y.z=g,y.z2=this._polyline.z2+1),d.__temp=!0,s.setItemGraphicEl(l,d),d.stopSymbolAnimation(!0),this.group.add(d)}d.highlight()}else Uc.prototype.highlight.call(this,n,r,o,a)},t.prototype.downplay=function(n,r,o,a){var s=n.getData(),l=Dm(s,a);if(this._changePolyState("normal"),l!=null&&l>=0){var c=s.getItemGraphicEl(l);c&&(c.__temp?(s.setItemGraphicEl(l,null),this.group.remove(c)):c.downplay())}else Uc.prototype.downplay.call(this,n,r,o,a)},t.prototype._changePolyState=function(n){var r=this._polygon;qie(this._polyline,n),r&&qie(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Pvt({shape:{points:n},segmentIgnoreThreshold:2,z2:10}),this._lineGroup.add(r),this._polyline=r,r},t.prototype._newPolygon=function(n,r){var o=this._polygon;return o&&this._lineGroup.remove(o),o=new Mvt({shape:{points:n,stackedOnPoints:r},segmentIgnoreThreshold:2}),this._lineGroup.add(o),this._polygon=o,o},t.prototype._initSymbolLabelAnimation=function(n,r,o){var a,s,l=r.getBaseAxis(),c=l.inverse;r.type==="cartesian2d"?(a=l.isHorizontal(),s=!1):r.type==="polar"&&(a=l.dim==="angle",s=!0);var d=n.hostModel,h=d.get("animationDuration");ei(h)&&(h=h(null));var p=d.get("animationDelay")||0,m=ei(p)?p(null):p;n.eachItemGraphicEl(function(g,y){var S=g;if(S){var k=[g.x,g.y],C=void 0,x=void 0,E=void 0;if(o)if(s){var _=o,T=r.pointToCoord(k);a?(C=_.startAngle,x=_.endAngle,E=-T[1]/180*Math.PI):(C=_.r0,x=_.r,E=T[0])}else{var D=o;a?(C=D.x,x=D.x+D.width,E=g.x):(C=D.y+D.height,x=D.y,E=g.y)}var P=x===C?0:(E-C)/(x-C);c&&(P=1-P);var M=ei(p)?p(y):h*P+m,$=S.getSymbolPath(),I=$.getTextContent();S.attr({scaleX:0,scaleY:0}),S.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),I&&I.animateFrom({style:{opacity:0}},{duration:300,delay:M}),$.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,o){var a=n.getModel("endLabel");if(X1e(n)){var s=n.getData(),l=this._polyline,c=s.getLayout("points");if(!c){l.removeTextContent(),this._endLabel=null;return}var d=this._endLabel;d||(d=this._endLabel=new Ja({z2:200}),d.ignoreClip=!0,l.setTextContent(this._endLabel),l.disableLabelAnimation=!0);var h=zvt(c);h>=0&&(aS(l,lS(n,"endLabel"),{inheritColor:o,labelFetcher:n,labelDataIndex:h,defaultText:function(p,m,g){return g!=null?H1e(s,g):eG(s,p)},enableTextSetter:!0},Hvt(a,r)),l.textConfig.position=null)}else this._endLabel&&(this._polyline.removeTextContent(),this._endLabel=null)},t.prototype._endLabelOnDuring=function(n,r,o,a,s,l,c){var d=this._endLabel,h=this._polyline;if(d){n<1&&a.originalX==null&&(a.originalX=d.x,a.originalY=d.y);var p=o.getLayout("points"),m=o.hostModel,g=m.get("connectNulls"),y=l.get("precision"),S=l.get("distance")||0,k=c.getBaseAxis(),C=k.isHorizontal(),x=k.inverse,E=r.shape,_=x?C?E.x:E.y+E.height:C?E.x+E.width:E.y,T=(C?S:0)*(x?-1:1),D=(C?0:-S)*(x?-1:1),P=C?"x":"y",M=Uvt(p,_,P),$=M.range,I=$[1]-$[0],N=void 0;if(I>=1){if(I>1&&!g){var j=jse(p,$[0]);d.attr({x:j[0]+T,y:j[1]+D}),s&&(N=m.getRawValue($[0]))}else{var j=h.getPointOn(_,P);j&&d.attr({x:j[0]+T,y:j[1]+D});var U=m.getRawValue($[0]),z=m.getRawValue($[1]);s&&(N=Eut(o,y,U,z,M.t))}a.lastFrameIndex=$[0]}else{var G=n===1||a.lastFrameIndex>0?$[0]:0,j=jse(p,G);s&&(N=m.getRawValue(G)),d.attr({x:j[0]+T,y:j[1]+D})}if(s){var X=_A(d);typeof X.setLabelText=="function"&&X.setLabelText(N)}}},t.prototype._doUpdateAnimation=function(n,r,o,a,s,l,c){var d=this._polyline,h=this._polygon,p=n.hostModel,m=Dvt(this._data,n,this._stackedOnPoints,r,this._coordSys,o,this._valueOrigin),g=m.current,y=m.stackedOnCurrent,S=m.next,k=m.stackedOnNext;if(s&&(y=Rp(m.stackedOnCurrent,m.current,o,s,c),g=Rp(m.current,null,o,s,c),k=Rp(m.stackedOnNext,m.next,o,s,c),S=Rp(m.next,null,o,s,c)),Nse(g,S)>3e3||h&&Nse(y,k)>3e3){d.stopAnimation(),d.setShape({points:S}),h&&(h.stopAnimation(),h.setShape({points:S,stackedOnPoints:k}));return}d.shape.__points=m.current,d.shape.points=g;var C={shape:{points:S}};m.current!==g&&(C.shape.__points=m.next),d.stopAnimation(),Ql(d,C,p),h&&(h.setShape({points:g,stackedOnPoints:y}),h.stopAnimation(),Ql(h,{shape:{stackedOnPoints:k}},p),d.shape.points!==h.shape.points&&(h.shape.points=d.shape.points));for(var x=[],E=m.status,_=0;_t&&(t=e[n]);return isFinite(t)?t:NaN},min:function(e){for(var t=1/0,n=0;n10&&s.type==="cartesian2d"&&a){var c=s.getBaseAxis(),d=s.getOtherAxis(c),h=c.getExtent(),p=r.getDevicePixelRatio(),m=Math.abs(h[1]-h[0])*(p||1),g=Math.round(l/m);if(isFinite(g)&&g>1){a==="lttb"?t.setData(o.lttbDownSample(o.mapDimension(d.dim),1/g)):a==="minmax"&&t.setData(o.minmaxDownSample(o.mapDimension(d.dim),1/g));var y=void 0;yr(a)?y=Kvt[a]:ei(a)&&(y=a),y&&t.setData(o.downSample(o.mapDimension(d.dim),1/g,y,qvt))}}}}}function J1e(e){e.registerChartView(Wvt),e.registerSeriesModel(Evt),e.registerLayout(Gvt("line")),e.registerVisual({seriesType:"line",reset:function(t){var n=t.getData(),r=t.getModel("lineStyle").getLineStyle();r&&!r.stroke&&(r.stroke=n.getVisual("style").fill),n.setVisual("legendLineStyle",r)}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Z1e("line"))}var yz=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(n,r){return qW(null,this,{useEncodeDefaulter:!0})},t.prototype.getMarkerPosition=function(n,r,o){var a=this.coordinateSystem;if(a&&a.clampData){var s=a.clampData(n),l=a.dataToPoint(s);if(o)Et(a.getAxes(),function(m,g){if(m.type==="category"&&r!=null){var y=m.getTicksCoords(),S=m.getTickModel().get("alignWithLabel"),k=s[g],C=r[g]==="x1"||r[g]==="y1";if(C&&!S&&(k+=1),y.length<2)return;if(y.length===2){l[g]=m.toGlobalCoord(m.getExtent()[C?1:0]);return}for(var x=void 0,E=void 0,_=1,T=0;Tk){E=(D+x)/2;break}T===1&&(_=P-y[0].tickValue)}E==null&&(x?x&&(E=y[y.length-1].coord):E=y[0].coord),l[g]=m.toGlobalCoord(E)}});else{var c=this.getData(),d=c.getLayout("offset"),h=c.getLayout("size"),p=a.getBaseAxis().isHorizontal()?0:1;l[p]+=d+h/2}return l}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})(Pd);Pd.registerClass(yz);var Yvt=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.getInitialData=function(){return qW(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 n=this.get("progressiveThreshold"),r=this.get("largeThreshold");return r>n&&(n=r),n},t.prototype.brushSelector=function(n,r,o){return o.rect(r.getItemLayout(n))},t.type="series.bar",t.dependencies=["grid","polar"],t.defaultOption=Qme(yz.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})(yz),Xvt=(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})(),Vse=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new Xvt},t.prototype.buildPath=function(n,r){var o=r.cx,a=r.cy,s=Math.max(r.r0||0,0),l=Math.max(r.r,0),c=(l-s)*.5,d=s+c,h=r.startAngle,p=r.endAngle,m=r.clockwise,g=Math.PI*2,y=m?p-hMath.PI/2&&hl)return!0;l=p}return!1},t.prototype._isOrderDifferentInView=function(n,r){for(var o=r.scale,a=o.getExtent(),s=Math.max(0,a[0]),l=Math.min(a[1],o.getOrdinalMeta().categories.length-1);s<=l;++s)if(n.ordinalNumbers[s]!==o.getRawOrdinalNumber(s))return!0},t.prototype._updateSortWithinSameData=function(n,r,o,a){if(this._isOrderChangedWithinSameData(n,r,o)){var s=this._dataSort(n,o,r);this._isOrderDifferentInView(s,o)&&(this._removeOnRenderedListener(a),a.dispatchAction({type:"changeAxisOrder",componentType:o.dim+"Axis",axisId:o.index,sortInfo:s}))}},t.prototype._dispatchInitSort=function(n,r,o){var a=r.baseAxis,s=this._dataSort(n,a,function(l){return n.get(n.mapDimension(r.otherAxis.dim),l)});o.dispatchAction({type:"changeAxisOrder",componentType:a.dim+"Axis",isInitSort:!0,axisId:a.index,sortInfo:s})},t.prototype.remove=function(n,r){this._clear(this._model),this._removeOnRenderedListener(r)},t.prototype.dispose=function(n,r){this._removeOnRenderedListener(r)},t.prototype._removeOnRenderedListener=function(n){this._onRendered&&(n.getZr().off("rendered",this._onRendered),this._onRendered=null)},t.prototype._clear=function(n){var r=this.group,o=this._data;n&&n.isAnimationEnabled()&&o&&!this._isLargeDraw?(this._removeBackground(),this._backgroundEls=[],o.eachItemGraphicEl(function(a){dT(a,n,qi(a).dataIndex)})):r.removeAll(),this._data=null,this._isFirstFrame=!0},t.prototype._removeBackground=function(){this.group.remove(this._backgroundGroup),this._backgroundGroup=null},t.type="bar",t})(Uc),zse={cartesian2d:function(e,t){var n=t.width<0?-1:1,r=t.height<0?-1:1;n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height);var o=e.x+e.width,a=e.y+e.height,s=gF(t.x,e.x),l=yF(t.x+t.width,o),c=gF(t.y,e.y),d=yF(t.y+t.height,a),h=lo?l:s,t.y=p&&c>a?d:c,t.width=h?0:l-s,t.height=p?0:d-c,n<0&&(t.x+=t.width,t.width=-t.width),r<0&&(t.y+=t.height,t.height=-t.height),h||p},polar:function(e,t){var n=t.r0<=t.r?1:-1;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}var o=yF(t.r,e.r),a=gF(t.r0,e.r0);t.r=o,t.r0=a;var s=o-a<0;if(n<0){var r=t.r;t.r=t.r0,t.r0=r}return s}},Use={cartesian2d:function(e,t,n,r,o,a,s,l,c){var d=new Zs({shape:bn({},r),z2:1});if(d.__dataIndex=n,d.name="item",a){var h=d.shape,p=o?"height":"width";h[p]=0}return d},polar:function(e,t,n,r,o,a,s,l,c){var d=!o&&c?Vse:$0,h=new d({shape:r,z2:1});h.name="item";var p=Q1e(o);if(h.calculateTextPosition=Zvt(p,{isRoundCap:d===Vse}),a){var m=h.shape,g=o?"r":"endAngle",y={};m[g]=o?r.r0:r.startAngle,y[g]=r[g],(l?Ql:zc)(h,{shape:y},a)}return h}};function tmt(e,t){var n=e.get("realtimeSort",!0),r=t.getBaseAxis();if(n&&r.type==="category"&&t.type==="cartesian2d")return{baseAxis:r,otherAxis:t.getOtherAxis(r)}}function Hse(e,t,n,r,o,a,s,l){var c,d;a?(d={x:r.x,width:r.width},c={y:r.y,height:r.height}):(d={y:r.y,height:r.height},c={x:r.x,width:r.width}),l||(s?Ql:zc)(n,{shape:c},t,o,null);var h=t?e.baseAxis.model:null;(s?Ql:zc)(n,{shape:d},h,o)}function Wse(e,t){for(var n=0;n0?1:-1,s=r.height>0?1:-1;return{x:r.x+a*o/2,y:r.y+s*o/2,width:r.width-a*o,height:r.height-s*o}},polar:function(e,t,n){var r=e.getItemLayout(t);return{cx:r.cx,cy:r.cy,r0:r.r0,r:r.r,startAngle:r.startAngle,endAngle:r.endAngle,clockwise:r.clockwise}}};function imt(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function Q1e(e){return(function(t){var n=t?"Arc":"Angle";return function(r){switch(r){case"start":case"insideStart":case"end":case"insideEnd":return r+n;default:return r}}})(e)}function Kse(e,t,n,r,o,a,s,l){var c=t.getItemVisual(n,"style");if(l){if(!a.get("roundCap")){var h=e.shape,p=M4(r.getModel("itemStyle"),h,!0);bn(h,p),e.setShape(h)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(c);var m=r.getShallow("cursor");m&&e.attr("cursor",m);var g=l?s?o.r>=o.r0?"endArc":"startArc":o.endAngle>=o.startAngle?"endAngle":"startAngle":s?o.height>=0?"bottom":"top":o.width>=0?"right":"left",y=lS(r);aS(e,y,{labelFetcher:a,labelDataIndex:n,defaultText:eG(a.getData(),n),inheritColor:c.fill,defaultOpacity:c.opacity,defaultOutsidePosition:g});var S=e.getTextContent();if(l&&S){var k=r.get(["label","position"]);e.textConfig.inside=k==="middle"?!0:null,Jvt(e,k==="outside"?g:k,Q1e(s),r.get(["label","rotate"]))}jdt(S,y,a.getRawValue(n),function(x){return H1e(t,x)});var C=r.getModel(["emphasis"]);l_(e,C.get("focus"),C.get("blurScope"),C.get("disabled")),lT(e,r),imt(o)&&(e.style.fill="none",e.style.stroke="none",Et(e.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function omt(e,t){var n=e.get(["itemStyle","borderColor"]);if(!n||n==="none")return 0;var r=e.get(["itemStyle","borderWidth"])||0,o=isNaN(t.width)?Number.MAX_VALUE:Math.abs(t.width),a=isNaN(t.height)?Number.MAX_VALUE:Math.abs(t.height);return Math.min(r,o,a)}var smt=(function(){function e(){}return e})(),qse=(function(e){Nn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new smt},t.prototype.buildPath=function(n,r){for(var o=r.points,a=this.baseDimIdx,s=1-this.baseDimIdx,l=[],c=[],d=this.barWidth,h=0;h=0?n:null},30,!1);function amt(e,t,n){for(var r=e.baseDimIdx,o=1-r,a=e.shape.points,s=e.largeDataIndices,l=[],c=[],d=e.barWidth,h=0,p=a.length/3;h=l[0]&&t<=l[0]+c[0]&&n>=l[1]&&n<=l[1]+c[1])return s[h]}return-1}function eye(e,t,n){if(nG(n,"cartesian2d")){var r=t,o=n.getArea();return{x:e?r.x:o.x,y:e?o.y:r.y,width:e?r.width:o.width,height:e?o.height:r.height}}else{var o=n.getArea(),a=t;return{cx:o.cx,cy:o.cy,r0:e?o.r0:a.r0,r:e?o.r:a.r,startAngle:e?a.startAngle:0,endAngle:e?a.endAngle:Math.PI*2}}}function lmt(e,t,n){var r=e.type==="polar"?$0:Zs;return new r({shape:eye(t,n,e),silent:!0,z2:0})}function tye(e){e.registerChartView(emt),e.registerSeriesModel(Yvt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ps(D0t,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,P0t("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,Z1e("bar")),e.registerAction({type:"changeAxisOrder",event:"changeAxisOrder",update:"update"},function(t,n){var r=t.componentType||"series";n.eachComponent({mainType:r,query:t},function(o){t.sortInfo&&o.axis.setCategorySortInfo(t.sortInfo)})})}var Zse=Math.PI*2,oC=Math.PI/180;function nye(e,t){return Oy(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function rye(e,t){var n=nye(e,t),r=e.get("center"),o=e.get("radius");Qn(o)||(o=[0,o]);var a=Jo(n.width,t.getWidth()),s=Jo(n.height,t.getHeight()),l=Math.min(a,s),c=Jo(o[0],l/2),d=Jo(o[1],l/2),h,p,m=e.coordinateSystem;if(m){var g=m.dataToPoint(r);h=g[0]||0,p=g[1]||0}else Qn(r)||(r=[r,r]),h=Jo(r[0],a)+n.x,p=Jo(r[1],s)+n.y;return{cx:h,cy:p,r0:c,r:d}}function umt(e,t,n){t.eachSeriesByType(e,function(r){var o=r.getData(),a=o.mapDimension("value"),s=nye(r,n),l=rye(r,n),c=l.cx,d=l.cy,h=l.r,p=l.r0,m=-r.get("startAngle")*oC,g=r.get("endAngle"),y=r.get("padAngle")*oC;g=g==="auto"?m-Zse:-g*oC;var S=r.get("minAngle")*oC,k=S+y,C=0;o.each(a,function(ie){!isNaN(ie)&&C++});var x=o.getSum(a),E=Math.PI/(x||C)*2,_=r.get("clockwise"),T=r.get("roseType"),D=r.get("stillShowZeroSum"),P=o.getDataExtent(a);P[0]=0;var M=_?1:-1,$=[m,g],I=M*y/2;Cme($,!_),m=$[0],g=$[1];var N=iye(r);N.startAngle=m,N.endAngle=g,N.clockwise=_;var j=Math.abs(g-m),U=j,z=0,G=m;if(o.setLayout({viewRect:s,r:h}),o.each(a,function(ie,ee){var W;if(isNaN(ie)){o.setItemLayout(ee,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:d,r0:p,r:T?NaN:h});return}T!=="area"?W=x===0&&D?E:ie*E:W=j/C,WW?(Q=G+M*W/2,ne=Q):(Q=G+I,ne=q-I),o.setItemLayout(ee,{angle:W,startAngle:Q,endAngle:ne,clockwise:_,cx:c,cy:d,r0:p,r:T?zV(ie,P,[p,h]):h}),G=q}),Un?C:k,T=Math.abs(E.label.y-n);if(T>=_.maxY){var D=E.label.x-t-E.len2*o,P=r+E.len,M=Math.abs(D)e.unconstrainedWidth?null:g:null;r.setStyle("width",y)}var S=r.getBoundingRect();a.width=S.width;var k=(r.style.margin||0)+2.1;a.height=S.height+k,a.y-=(a.height-p)/2}}}function bF(e){return e.position==="center"}function hmt(e){var t=e.getData(),n=[],r,o,a=!1,s=(e.get("minShowLabelAngle")||0)*dmt,l=t.getLayout("viewRect"),c=t.getLayout("r"),d=l.width,h=l.x,p=l.y,m=l.height;function g(D){D.ignore=!0}function y(D){if(!D.ignore)return!0;for(var P in D.states)if(D.states[P].ignore===!1)return!0;return!1}t.each(function(D){var P=t.getItemGraphicEl(D),M=P.shape,$=P.getTextContent(),I=P.getTextGuideLine(),N=t.getItemModel(D),j=N.getModel("label"),U=j.get("position")||N.get(["emphasis","label","position"]),z=j.get("distanceToLabelLine"),G=j.get("alignTo"),X=Jo(j.get("edgeDistance"),d),ie=j.get("bleedMargin"),ee=N.getModel("labelLine"),W=ee.get("length");W=Jo(W,d);var q=ee.get("length2");if(q=Jo(q,d),Math.abs(M.endAngle-M.startAngle)0?"right":"left":ne>0?"left":"right"}var Ne=Math.PI,Se=0,$e=j.get("rotate");if(Eo($e))Se=$e*(Ne/180);else if(U==="center")Se=0;else if($e==="radial"||$e===!0){var Xe=ne<0?-Q+Ne:-Q;Se=Xe}else if($e==="tangential"&&U!=="outside"&&U!=="outer"){var rt=Math.atan2(ne,ae);rt<0&&(rt=Ne*2+rt);var nt=ae>0;nt&&(rt=Ne+rt),Se=rt-Ne}if(a=!!Se,$.x=re,$.y=Ce,$.rotation=Se,$.setStyle({verticalAlign:"middle"}),me){$.setStyle({align:ve});var $t=$.states.select;$t&&($t.x+=$.x,$t.y+=$.y)}else{var gt=$.getBoundingRect().clone();gt.applyTransform($.getComputedTransform());var yt=($.style.margin||0)+2.1;gt.y-=yt/2,gt.height+=yt,n.push({label:$,labelLine:I,position:U,len:W,len2:q,minTurnAngle:ee.get("minTurnAngle"),maxSurfaceAngle:ee.get("maxSurfaceAngle"),surfaceNormal:new Hr(ne,ae),linePoints:we,textAlign:ve,labelDistance:z,labelAlignTo:G,edgeDistance:X,bleedMargin:ie,rect:gt,unconstrainedWidth:gt.width,labelStyleWidth:$.style.width})}P.setTextConfig({inside:me})}}),!a&&e.get("avoidLabelOverlap")&&fmt(n,r,o,c,d,m,h,p);for(var S=0;S0){for(var h=s.getItemLayout(0),p=1;isNaN(h&&h.startAngle)&&p=a.r0}},t.type="pie",t})(Uc);function mmt(e,t,n){t=Qn(t)&&{coordDimensions:t}||bn({encodeDefine:e.getEncode()},t);var r=e.getSource(),o=x1e(r,t).dimensions,a=new k1e(o,e);return a.initData(r,n),a}var gmt=(function(){function e(t,n){this._getDataWithEncodedVisual=t,this._getRawData=n}return e.prototype.getAllNames=function(){var t=this._getRawData();return t.mapArray(t.getName)},e.prototype.containName=function(t){var n=this._getRawData();return n.indexOfName(t)>=0},e.prototype.indexOfName=function(t){var n=this._getDataWithEncodedVisual();return n.indexOfName(t)},e.prototype.getItemVisual=function(t,n){var r=this._getDataWithEncodedVisual();return r.getItemVisual(t,n)},e})(),ymt=$s(),bmt=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n){e.prototype.init.apply(this,arguments),this.legendVisualProvider=new gmt(Do(this.getData,this),Do(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return mmt(this,{coordDimensions:["value"],encodeDefaulter:Ps(hft,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),o=ymt(r),a=o.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),a=o.seats=aut(s,r.hostModel.get("percentPrecision"))}var l=e.prototype.getDataParams.call(this,n);return l.percent=a[n]||0,l.$vars.push("percent"),l},t.prototype._defaultLabelLine=function(n){UV(n,"labelLine",["show"]);var r=n.labelLine,o=n.emphasis.labelLine;r.show=r.show&&n.label.show,o.show=o.show&&n.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})(Pd);function _mt(e){return{seriesType:e,reset:function(t,n){var r=t.getData();r.filterSelf(function(o){var a=r.mapDimension("value"),s=r.get(a,o);return!(Eo(s)&&!isNaN(s)&&s<0)})}}}function sye(e){e.registerChartView(vmt),e.registerSeriesModel(bmt),Xht("pie",e.registerAction),e.registerLayout(Ps(umt,"pie")),e.registerProcessor(cmt("pie")),e.registerProcessor(_mt("pie"))}var Smt=(function(e){Nn(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})(co),bz=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",xd).models[0]},t.type="cartesian2dAxis",t})(co);Df(bz,tvt);var aye={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)"]}}},kmt=oo({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},aye),rG=oo({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}}},aye),xmt=oo({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},rG),Cmt=ao({logBase:10},rG);const wmt={category:kmt,value:rG,time:xmt,log:Cmt};var Emt={value:1,category:1,time:1,log:1};function Qse(e,t,n,r){Et(Emt,function(o,a){var s=oo(oo({},wmt[a],!0),r,!0),l=(function(c){Nn(d,c);function d(){var h=c!==null&&c.apply(this,arguments)||this;return h.type=t+"Axis."+a,h}return d.prototype.mergeDefaultAndTheme=function(h,p){var m=d_(this),g=m?AA(h):{},y=p.getTheme();oo(h,y.get(a+"Axis")),oo(h,this.getDefaultOption()),h.type=eae(h),m&&$y(h,g,m)},d.prototype.optionUpdated=function(){var h=this.option;h.type==="category"&&(this.__ordinalMeta=vz.createByAxisModel(this))},d.prototype.getCategories=function(h){var p=this.option;if(p.type==="category")return h?p.data:this.__ordinalMeta.categories},d.prototype.getOrdinalMeta=function(){return this.__ordinalMeta},d.type=t+"Axis."+a,d.defaultOption=s,d})(n);e.registerComponentModel(l)}),e.registerSubTypeDefaulter(t+"Axis",eae)}function eae(e){return e.type||(e.data?"category":"value")}var Tmt=(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 xr(this._dimList,function(t){return this._axes[t]},this)},e.prototype.getAxesByScale=function(t){return t=t.toLowerCase(),ja(this.getAxes(),function(n){return n.scale.type===t})},e.prototype.addAxis=function(t){var n=t.dim;this._axes[n]=t,this._dimList.push(n)},e})(),_z=["x","y"];function tae(e){return e.type==="interval"||e.type==="time"}var Amt=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type="cartesian2d",n.dimensions=_z,n}return t.prototype.calcAffineTransform=function(){this._transform=this._invTransform=null;var n=this.getAxis("x").scale,r=this.getAxis("y").scale;if(!(!tae(n)||!tae(r))){var o=n.getExtent(),a=r.getExtent(),s=this.dataToPoint([o[0],a[0]]),l=this.dataToPoint([o[1],a[1]]),c=o[1]-o[0],d=a[1]-a[0];if(!(!c||!d)){var h=(l[0]-s[0])/c,p=(l[1]-s[1])/d,m=s[0]-o[0]*h,g=s[1]-a[0]*p,y=this._transform=[h,0,0,p,m,g];this._invTransform=aW([],y)}}},t.prototype.getBaseAxis=function(){return this.getAxesByScale("ordinal")[0]||this.getAxesByScale("time")[0]||this.getAxis("x")},t.prototype.containPoint=function(n){var r=this.getAxis("x"),o=this.getAxis("y");return r.contain(r.toLocalCoord(n[0]))&&o.contain(o.toLocalCoord(n[1]))},t.prototype.containData=function(n){return this.getAxis("x").containData(n[0])&&this.getAxis("y").containData(n[1])},t.prototype.containZone=function(n,r){var o=this.dataToPoint(n),a=this.dataToPoint(r),s=this.getArea(),l=new so(o[0],o[1],a[0]-o[0],a[1]-o[1]);return s.intersect(l)},t.prototype.dataToPoint=function(n,r,o){o=o||[];var a=n[0],s=n[1];if(this._transform&&a!=null&&isFinite(a)&&s!=null&&isFinite(s))return Vc(o,n,this._transform);var l=this.getAxis("x"),c=this.getAxis("y");return o[0]=l.toGlobalCoord(l.dataToCoord(a,r)),o[1]=c.toGlobalCoord(c.dataToCoord(s,r)),o},t.prototype.clampData=function(n,r){var o=this.getAxis("x").scale,a=this.getAxis("y").scale,s=o.getExtent(),l=a.getExtent(),c=o.parse(n[0]),d=a.parse(n[1]);return r=r||[],r[0]=Math.min(Math.max(Math.min(s[0],s[1]),c),Math.max(s[0],s[1])),r[1]=Math.min(Math.max(Math.min(l[0],l[1]),d),Math.max(l[0],l[1])),r},t.prototype.pointToData=function(n,r){var o=[];if(this._invTransform)return Vc(o,n,this._invTransform);var a=this.getAxis("x"),s=this.getAxis("y");return o[0]=a.coordToData(a.toLocalCoord(n[0]),r),o[1]=s.coordToData(s.toLocalCoord(n[1]),r),o},t.prototype.getOtherAxis=function(n){return this.getAxis(n.dim==="x"?"y":"x")},t.prototype.getArea=function(n){n=n||0;var r=this.getAxis("x").getGlobalExtent(),o=this.getAxis("y").getGlobalExtent(),a=Math.min(r[0],r[1])-n,s=Math.min(o[0],o[1])-n,l=Math.max(r[0],r[1])-a+n,c=Math.max(o[0],o[1])-s+n;return new so(a,s,l,c)},t})(Tmt),Imt=(function(e){Nn(t,e);function t(n,r,o,a,s){var l=e.call(this,n,r,o)||this;return l.index=0,l.type=a||"value",l.position=s||"bottom",l}return t.prototype.isHorizontal=function(){var n=this.position;return n==="top"||n==="bottom"},t.prototype.getGlobalExtent=function(n){var r=this.getExtent();return r[0]=this.toGlobalCoord(r[0]),r[1]=this.toGlobalCoord(r[1]),n&&r[0]>r[1]&&r.reverse(),r},t.prototype.pointToData=function(n,r){return this.coordToData(this.toLocalCoord(n[this.dim==="x"?0:1]),r)},t.prototype.setCategorySortInfo=function(n){if(this.type!=="category")return!1;this.model.option.categorySortInfo=n,this.scale.setSortInfo(n)},t})(dvt);function Sz(e,t,n){n=n||{};var r=e.coordinateSystem,o=t.axis,a={},s=o.getAxesOnZeroOf()[0],l=o.position,c=s?"onZero":l,d=o.dim,h=r.getRect(),p=[h.x,h.x+h.width,h.y,h.y+h.height],m={left:0,right:1,top:0,bottom:1,onZero:2},g=t.get("offset")||0,y=d==="x"?[p[2]-g,p[3]+g]:[p[0]-g,p[1]+g];if(s){var S=s.toGlobalCoord(s.dataToCoord(0));y[m.onZero]=Math.max(Math.min(S,y[1]),y[0])}a.position=[d==="y"?y[m[c]]:p[0],d==="x"?y[m[c]]:p[3]],a.rotation=Math.PI/2*(d==="x"?0:1);var k={top:-1,bottom:1,left:-1,right:1};a.labelDirection=a.tickDirection=a.nameDirection=k[l],a.labelOffset=s?y[m[l]]-y[m.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),i_(n.labelInside,t.get(["axisLabel","inside"]))&&(a.labelDirection=-a.labelDirection);var C=t.get(["axisLabel","rotate"]);return a.labelRotate=c==="top"?-C:C,a.z2=1,a}function nae(e){return e.get("coordinateSystem")==="cartesian2d"}function rae(e){var t={xAxisModel:null,yAxisModel:null};return Et(t,function(n,r){var o=r.replace(/Model$/,""),a=e.getReferringComponents(o,xd).models[0];t[r]=a}),t}var _F=Math.log;function Lmt(e,t,n){var r=h3.prototype,o=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=o.length-1,l=r.getInterval.call(n),c=R1e(e,t),d=c.extent,h=c.fixMin,p=c.fixMax;if(e.type==="log"){var m=_F(e.base);d=[_F(d[0])/m,_F(d[1])/m]}e.setExtent(d[0],d[1]),e.calcNiceExtent({splitNumber:s,fixMin:h,fixMax:p});var g=r.getExtent.call(e);h&&(d[0]=g[0]),p&&(d[1]=g[1]);var y=r.getInterval.call(e),S=d[0],k=d[1];if(h&&p)y=(k-S)/s;else if(h)for(k=d[0]+y*s;kd[0]&&isFinite(S)&&isFinite(d[0]);)y=fF(y),S=d[1]-y*s;else{var C=e.getTicks().length-1;C>s&&(y=fF(y));var x=y*s;k=Math.ceil(d[1]/y)*y,S=Xs(k-x),S<0&&d[0]>=0?(S=0,k=Xs(x)):k>0&&d[1]<=0&&(k=0,S=-Xs(x))}var E=(o[0].value-a[0].value)/l,_=(o[s].value-a[s].value)/l;r.setExtent.call(e,S+y*E,k+y*_),r.setInterval.call(e,y),(E||_)&&r.setNiceExtent.call(e,S+y,k-y)}var Dmt=(function(){function e(t,n,r){this.type="grid",this._coordsMap={},this._coordsList=[],this._axesMap={},this._axesList=[],this.axisPointerEnabled=!0,this.dimensions=_z,this._initCartesian(t,n,r),this.model=t}return e.prototype.getRect=function(){return this._rect},e.prototype.update=function(t,n){var r=this._axesMap;this._updateScale(t,this.model);function o(s){var l,c=es(s),d=c.length;if(d){for(var h=[],p=d-1;p>=0;p--){var m=+c[p],g=s[m],y=g.model,S=g.scale;mz(S)&&y.get("alignTicks")&&y.get("interval")==null?h.push(g):(Ase(S,y),mz(S)&&(l=g))}h.length&&(l||(l=h.pop(),Ase(l.scale,l.model)),Et(h,function(k){Lmt(k.scale,k.model,l.scale)}))}}o(r.x),o(r.y);var a={};Et(r.x,function(s){iae(r,"y",s,a)}),Et(r.y,function(s){iae(r,"x",s,a)}),this.resize(this.model,n)},e.prototype.resize=function(t,n,r){var o=t.getBoxLayoutParams(),a=!r&&t.get("containLabel"),s=Oy(o,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;c(),a&&(Et(l,function(d){if(!d.model.get(["axisLabel","inside"])){var h=J0t(d);if(h){var p=d.isHorizontal()?"height":"width",m=d.model.get(["axisLabel","margin"]);s[p]-=h[p]+m,d.position==="top"?s.y+=h.height+m:d.position==="left"&&(s.x+=h.width+m)}}}),c()),Et(this._coordsList,function(d){d.calcAffineTransform()});function c(){Et(l,function(d){var h=d.isHorizontal(),p=h?[0,s.width]:[0,s.height],m=d.inverse?1:0;d.setExtent(p[m],p[1-m]),Pmt(d,h?s.x:s.y)})}},e.prototype.getAxis=function(t,n){var r=this._axesMap[t];if(r!=null)return r[n||0]},e.prototype.getAxes=function(){return this._axesList.slice()},e.prototype.getCartesian=function(t,n){if(t!=null&&n!=null){var r="x"+t+"y"+n;return this._coordsMap[r]}Tr(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var o=0,a=this._coordsList;o0?"top":"bottom",a="center"):nT(o-i0)?(s=r>0?"bottom":"top",a="center"):(s="middle",o>0&&o0?"right":"left":a=r>0?"left":"right"),{rotation:o,textAlign:a,textVerticalAlign:s}},e.makeAxisEventDataBase=function(t){var n={componentType:t.mainType,componentIndex:t.componentIndex};return n[t.mainType+"Index"]=t.componentIndex,n},e.isLabelSilent=function(t){var n=t.get("tooltip");return t.get("silent")||!(t.get("triggerEvent")||n&&n.show)},e})(),sae={axisLine:function(e,t,n,r){var o=t.get(["axisLine","show"]);if(o==="auto"&&e.handleAutoShown&&(o=e.handleAutoShown("axisLine")),!!o){var a=t.axis.getExtent(),s=r.transform,l=[a[0],0],c=[a[1],0],d=l[0]>c[0];s&&(Vc(l,l,s),Vc(c,c,s));var h=bn({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new C0({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});u_(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var m=t.get(["axisLine","symbol"]);if(m!=null){var g=t.get(["axisLine","symbolSize"]);yr(m)&&(m=[m,m]),(yr(g)||Eo(g))&&(g=[g,g]);var y=Kge(t.get(["axisLine","symbolOffset"])||0,g),S=g[0],k=g[1];Et([{rotate:e.rotation+Math.PI/2,offset:y[0],r:0},{rotate:e.rotation-Math.PI/2,offset:y[1],r:Math.sqrt((l[0]-c[0])*(l[0]-c[0])+(l[1]-c[1])*(l[1]-c[1]))}],function(C,x){if(m[x]!=="none"&&m[x]!=null){var E=Ny(m[x],-S/2,-k/2,S,k,h.stroke,!0),_=C.r+C.offset,T=d?c:l;E.attr({rotation:C.rotate,x:T[0]+_*Math.cos(e.rotation),y:T[1]-_*Math.sin(e.rotation),silent:!0,z2:11}),n.add(E)}})}}},axisTickLabel:function(e,t,n,r){var o=Omt(n,r,t,e),a=Bmt(n,r,t,e);if(Mmt(t,a,o),$mt(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=yvt(xr(a,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));Svt(s)}},axisName:function(e,t,n,r){var o=i_(e.axisName,t.get("name"));if(o){var a=t.get("nameLocation"),s=e.nameDirection,l=t.getModel("nameTextStyle"),c=t.get("nameGap")||0,d=t.axis.getExtent(),h=d[0]>d[1]?-1:1,p=[a==="start"?d[0]-h*c:a==="end"?d[1]+h*c:(d[0]+d[1])/2,lae(a)?e.labelOffset+s*c:0],m,g=t.get("nameRotate");g!=null&&(g=g*i0/180);var y;lae(a)?m=h0.innerTextLayout(e.rotation,g??e.rotation,s):(m=Rmt(e.rotation,a,g||0,d),y=e.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(m.rotation)),!isFinite(y)&&(y=null)));var S=l.getFont(),k=t.get("nameTruncate",!0)||{},C=k.ellipsis,x=i_(e.nameTruncateMaxWidth,k.maxWidth,y),E=new Ja({x:p[0],y:p[1],rotation:m.rotation,silent:h0.isLabelSilent(t),style:w0(l,{text:o,font:S,overflow:"truncate",width:x,ellipsis:C,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||m.textAlign,verticalAlign:l.get("verticalAlign")||m.textVerticalAlign}),z2:1});if(gA({el:E,componentModel:t,itemName:o}),E.__fullText=o,E.anid="name",t.get("triggerEvent")){var _=h0.makeAxisEventDataBase(t);_.targetType="axisName",_.name=o,qi(E).eventData=_}r.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function Rmt(e,t,n,r){var o=dme(n-e),a,s,l=r[0]>r[1],c=t==="start"&&!l||t!=="start"&&l;return nT(o-i0/2)?(s=c?"bottom":"top",a="center"):nT(o-i0*1.5)?(s=c?"top":"bottom",a="center"):(s="middle",oi0/2?a=c?"left":"right":a=c?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:s}}function Mmt(e,t,n){if(!M1e(e.axis)){var r=e.get(["axisLabel","showMinLabel"]),o=e.get(["axisLabel","showMaxLabel"]);t=t||[],n=n||[];var a=t[0],s=t[1],l=t[t.length-1],c=t[t.length-2],d=n[0],h=n[1],p=n[n.length-1],m=n[n.length-2];r===!1?(Cc(a),Cc(d)):aae(a,s)&&(r?(Cc(s),Cc(h)):(Cc(a),Cc(d))),o===!1?(Cc(l),Cc(p)):aae(c,l)&&(o?(Cc(c),Cc(m)):(Cc(l),Cc(p)))}}function Cc(e){e&&(e.ignore=!0)}function aae(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var o=oW([]);return sW(o,o,-e.rotation),n.applyTransform(ay([],o,e.getLocalTransform())),r.applyTransform(ay([],o,t.getLocalTransform())),n.intersect(r)}}function lae(e){return e==="middle"||e==="center"}function lye(e,t,n,r,o){for(var a=[],s=[],l=[],c=0;c=0||e===t}function Umt(e){var t=iG(e);if(t){var n=t.axisPointerModel,r=t.axis.scale,o=n.option,a=n.get("status"),s=n.get("value");s!=null&&(s=r.parse(s));var l=kz(n);a==null&&(o.status=l?"show":"hide");var c=r.getExtent().slice();c[0]>c[1]&&c.reverse(),(s==null||s>c[1])&&(s=c[1]),sl)return!0;if(s){var c=iG(t).seriesDataCount,d=o.getExtent();return Math.abs(d[0]-d[1])/c>l}return!1}return r===!0},e.prototype.makeElOption=function(t,n,r,o,a){},e.prototype.createPointerEl=function(t,n,r,o){var a=n.pointer;if(a){var s=Uv(t).pointerEl=new Odt[a.type](dae(n.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,n,r,o){if(n.label){var a=Uv(t).labelEl=new Ja(dae(n.label));t.add(a),hae(a,o)}},e.prototype.updatePointerEl=function(t,n,r){var o=Uv(t).pointerEl;o&&n.pointer&&(o.setStyle(n.pointer.style),r(o,{shape:n.pointer.shape}))},e.prototype.updateLabelEl=function(t,n,r,o){var a=Uv(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),hae(a,o))},e.prototype._renderHandle=function(t){if(!(this._dragging||!this.updateHandleTransform)){var n=this._axisPointerModel,r=this._api.getZr(),o=this._handle,a=n.getModel("handle"),s=n.get("status");if(!a.get("show")||!s||s==="hide"){o&&r.remove(o),this._handle=null;return}var l;this._handle||(l=!0,o=this._handle=AW(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(d){Kve(d.event)},onmousedown:xF(this._onHandleDragMove,this,0,0),drift:xF(this._onHandleDragMove,this),ondragend:xF(this._onHandleDragEnd,this)}),r.add(o)),pae(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=a.get("size");Qn(c)||(c=[c,c]),o.scaleX=c[0]/2,o.scaleY=c[1]/2,Fge(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},e.prototype._moveHandleToValue=function(t,n){fae(this._axisPointerModel,!n&&this._moveAnimation,this._handle,CF(this.getHandleTransform(t,this._axisModel,this._axisPointerModel)))},e.prototype._onHandleDragMove=function(t,n){var r=this._handle;if(r){this._dragging=!0;var o=this.updateHandleTransform(CF(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=o,r.stopAnimation(),r.attr(CF(o)),Uv(r).lastProp=null,this._doDispatchAxisPointer()}},e.prototype._doDispatchAxisPointer=function(){var t=this._handle;if(t){var n=this._payloadInfo,r=this._axisModel;this._api.dispatchAction({type:"updateAxisPointer",x:n.cursorPoint[0],y:n.cursorPoint[1],tooltipOption:n.tooltipOption,axesInfo:[{axisDim:r.axis.dim,axisIndex:r.componentIndex}]})}},e.prototype._onHandleDragEnd=function(){this._dragging=!1;var t=this._handle;if(t){var n=this._axisPointerModel.get("value");this._moveHandleToValue(n),this._api.dispatchAction({type:"hideTip"})}},e.prototype.clear=function(t){this._lastValue=null,this._lastStatus=null;var n=t.getZr(),r=this._group,o=this._handle;n&&r&&(this._lastGraphicKey=null,r&&n.remove(r),o&&n.remove(o),this._group=null,this._handle=null,this._payloadInfo=null),sz(this,"_doDispatchAxisPointer")},e.prototype.doClear=function(){},e.prototype.buildLabel=function(t,n,r){return r=r||0,{x:t[r],y:t[1-r],width:n[r],height:n[1-r]}},e})();function fae(e,t,n,r){fye(Uv(n).lastProp,r)||(Uv(n).lastProp=r,t?Ql(n,r,e):(n.stopAnimation(),n.attr(r)))}function fye(e,t){if(Tr(e)&&Tr(t)){var n=!0;return Et(t,function(r,o){n=n&&fye(e[o],r)}),!!n}else return e===t}function hae(e,t){e[t.get(["label","show"])?"show":"hide"]()}function CF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function pae(e,t,n){var r=t.get("z"),o=t.get("zlevel");e&&e.traverse(function(a){a.type!=="group"&&(r!=null&&(a.z=r),o!=null&&(a.zlevel=o),a.silent=n)})}function egt(e){var t=e.get("type"),n=e.getModel(t+"Style"),r;return t==="line"?(r=n.getLineStyle(),r.fill=null):t==="shadow"&&(r=n.getAreaStyle(),r.stroke=null),r}function tgt(e,t,n,r,o){var a=n.get("value"),s=hye(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=TA(l.get("padding")||0),d=l.getFont(),h=cW(s,d),p=o.position,m=h.width+c[1]+c[3],g=h.height+c[0]+c[2],y=o.align;y==="right"&&(p[0]-=m),y==="center"&&(p[0]-=m/2);var S=o.verticalAlign;S==="bottom"&&(p[1]-=g),S==="middle"&&(p[1]-=g/2),ngt(p,m,g,r);var k=l.get("backgroundColor");(!k||k==="auto")&&(k=t.get(["axisLine","lineStyle","color"])),e.label={x:p[0],y:p[1],style:w0(l,{text:s,font:d,fill:l.getTextColor(),padding:c,backgroundColor:k}),z2:10}}function ngt(e,t,n,r){var o=r.getWidth(),a=r.getHeight();e[0]=Math.min(e[0]+t,o)-t,e[1]=Math.min(e[1]+n,a)-n,e[0]=Math.max(e[0],0),e[1]=Math.max(e[1],0)}function hye(e,t,n,r,o){e=t.scale.parse(e);var a=t.scale.getLabel({value:e},{precision:o.precision}),s=o.formatter;if(s){var l={value:JW(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};Et(r,function(c){var d=n.getSeriesByIndex(c.seriesIndex),h=c.dataIndexInside,p=d&&d.getDataParams(h);p&&l.seriesData.push(p)}),yr(s)?a=s.replace("{value}",a):ei(s)&&(a=s(l))}return a}function pye(e,t,n){var r=sy();return sW(r,r,n.rotation),DV(r,r,n.position),TW([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function rgt(e,t,n,r,o,a){var s=h0.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),tgt(t,r,o,a,{position:pye(r.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function igt(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function ogt(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var sgt=(function(e){Nn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.makeElOption=function(n,r,o,a,s){var l=o.axis,c=l.grid,d=a.get("type"),h=vae(c,l).getOtherAxis(l).getGlobalExtent(),p=l.toGlobalCoord(l.dataToCoord(r,!0));if(d&&d!=="none"){var m=egt(a),g=agt[d](l,p,h);g.style=m,n.graphicKey=g.type,n.pointer=g}var y=Sz(c.model,o);rgt(r,n,y,o,a,s)},t.prototype.getHandleTransform=function(n,r,o){var a=Sz(r.axis.grid.model,r,{labelInside:!1});a.labelMargin=o.get(["handle","margin"]);var s=pye(r.axis,n,a);return{x:s[0],y:s[1],rotation:a.rotation+(a.labelDirection<0?Math.PI:0)}},t.prototype.updateHandleTransform=function(n,r,o,a){var s=o.axis,l=s.grid,c=s.getGlobalExtent(!0),d=vae(l,s).getOtherAxis(s).getGlobalExtent(),h=s.dim==="x"?0:1,p=[n.x,n.y];p[h]+=r[h],p[h]=Math.min(c[1],p[h]),p[h]=Math.max(c[0],p[h]);var m=(d[1]+d[0])/2,g=[m,m];g[h]=p[h];var y=[{verticalAlign:"middle"},{align:"center"}];return{x:p[0],y:p[1],rotation:n.rotation,cursorPoint:g,tooltipOption:y[h]}},t})(Qmt);function vae(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var agt={line:function(e,t,n){var r=igt([t,n[0]],[t,n[1]],mae(e));return{type:"Line",subPixelOptimize:!0,shape:r}},shadow:function(e,t,n){var r=Math.max(1,e.getBandWidth()),o=n[1]-n[0];return{type:"Rect",shape:ogt([t-r/2,n[0]],[r,o],mae(e))}}};function mae(e){return e.dim==="x"?0:1}var lgt=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="axisPointer",t.defaultOption={show:"auto",z:50,type:"line",snap:!1,triggerTooltip:!0,triggerEmphasis:!0,value:null,status:null,link:[],animation:null,animationDurationUpdate:200,lineStyle:{color:"#B9BEC9",width:1,type:"dashed"},shadowStyle:{color:"rgba(210,219,238,0.2)"},label:{show:!0,formatter:null,precision:"auto",margin:3,color:"#fff",padding:[5,7,5,7],backgroundColor:"auto",borderColor:null,borderWidth:0,borderRadius:3},handle:{show:!1,icon:"M10.7,11.9v-1.3H9.3v1.3c-4.9,0.3-8.8,4.4-8.8,9.4c0,5,3.9,9.1,8.8,9.4h1.3c4.9-0.3,8.8-4.4,8.8-9.4C19.5,16.3,15.6,12.2,10.7,11.9z M13.3,24.4H6.7v-1.2h6.6z M13.3,22H6.7v-1.2h6.6z M13.3,19.6H6.7v-1.2h6.6z",size:45,margin:50,color:"#333",shadowBlur:3,shadowColor:"#aaa",shadowOffsetX:0,shadowOffsetY:2,throttle:40}},t})(co),Th=$s(),ugt=Et;function vye(e,t,n){if(!Vr.node){var r=t.getZr();Th(r).records||(Th(r).records={}),cgt(r,t);var o=Th(r).records[e]||(Th(r).records[e]={});o.handler=n}}function cgt(e,t){if(Th(e).initialized)return;Th(e).initialized=!0,n("click",Ps(gae,"click")),n("mousemove",Ps(gae,"mousemove")),n("globalout",fgt);function n(r,o){e.on(r,function(a){var s=hgt(t);ugt(Th(e).records,function(l){l&&o(l,a,s.dispatchAction)}),dgt(s.pendings,t)})}}function dgt(e,t){var n=e.showTip.length,r=e.hideTip.length,o;n?o=e.showTip[n-1]:r&&(o=e.hideTip[r-1]),o&&(o.dispatchAction=null,t.dispatchAction(o))}function fgt(e,t,n){e.handler("leave",null,n)}function gae(e,t,n,r){t.handler(e,n,r)}function hgt(e){var t={showTip:[],hideTip:[]},n=function(r){var o=t[r.type];o?o.push(r):(r.dispatchAction=n,e.dispatchAction(r))};return{dispatchAction:n,pendings:t}}function Cz(e,t){if(!Vr.node){var n=t.getZr(),r=(Th(n).records||{})[e];r&&(Th(n).records[e]=null)}}var pgt=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,o){var a=r.getComponent("tooltip"),s=n.get("triggerOn")||a&&a.get("triggerOn")||"mousemove|click";vye("axisPointer",o,function(l,c,d){s!=="none"&&(l==="leave"||s.indexOf(l)>=0)&&d({type:"updateAxisPointer",currTrigger:l,x:c&&c.offsetX,y:c&&c.offsetY})})},t.prototype.remove=function(n,r){Cz("axisPointer",r)},t.prototype.dispose=function(n,r){Cz("axisPointer",r)},t.type="axisPointer",t})(Rd);function mye(e,t){var n=[],r=e.seriesIndex,o;if(r==null||!(o=t.getSeriesByIndex(r)))return{point:[]};var a=o.getData(),s=Dm(a,e);if(s==null||s<0||Qn(s))return{point:[]};var l=a.getItemGraphicEl(s),c=o.coordinateSystem;if(o.getTooltipPosition)n=o.getTooltipPosition(s)||[];else if(c&&c.dataToPoint)if(e.isStacked){var d=c.getBaseAxis(),h=c.getOtherAxis(d),p=h.dim,m=d.dim,g=p==="x"||p==="radius"?1:0,y=a.mapDimension(m),S=[];S[g]=a.get(y,s),S[1-g]=a.get(a.getCalculationInfo("stackResultDimension"),s),n=c.dataToPoint(S)||[]}else n=c.dataToPoint(a.getValues(xr(c.dimensions,function(C){return a.mapDimension(C)}),s))||[];else if(l){var k=l.getBoundingRect().clone();k.applyTransform(l.transform),n=[k.x+k.width/2,k.y+k.height/2]}return{point:n,el:l}}var yae=$s();function vgt(e,t,n){var r=e.currTrigger,o=[e.x,e.y],a=e,s=e.dispatchAction||Do(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){aE(o)&&(o=mye({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=aE(o),d=a.axesInfo,h=l.axesInfo,p=r==="leave"||aE(o),m={},g={},y={list:[],map:{}},S={showPointer:Ps(ggt,g),showTooltip:Ps(ygt,y)};Et(l.coordSysMap,function(C,x){var E=c||C.containPoint(o);Et(l.coordSysAxesInfo[x],function(_,T){var D=_.axis,P=kgt(d,_);if(!p&&E&&(!d||P)){var M=P&&P.value;M==null&&!c&&(M=D.pointToData(o)),M!=null&&bae(_,M,S,!1,m)}})});var k={};return Et(h,function(C,x){var E=C.linkGroup;E&&!g[x]&&Et(E.axesInfo,function(_,T){var D=g[T];if(_!==C&&D){var P=D.value;E.mapper&&(P=C.axis.scale.parse(E.mapper(P,_ae(_),_ae(C)))),k[C.key]=P}})}),Et(k,function(C,x){bae(h[x],C,S,!0,m)}),bgt(g,h,m),_gt(y,o,e,s),Sgt(h,s,n),m}}function bae(e,t,n,r,o){var a=e.axis;if(!(a.scale.isBlank()||!a.containData(t))){if(!e.involveSeries){n.showPointer(e,t);return}var s=mgt(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&o.seriesIndex==null&&bn(o,l[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,s,c)}}function mgt(e,t){var n=t.axis,r=n.dim,o=e,a=[],s=Number.MAX_VALUE,l=-1;return Et(t.seriesModels,function(c,d){var h=c.getData().mapDimensionsAll(r),p,m;if(c.getAxisTooltipData){var g=c.getAxisTooltipData(h,e,n);m=g.dataIndices,p=g.nestestValue}else{if(m=c.getData().indicesOfNearest(h[0],e,n.type==="category"?.5:null),!m.length)return;p=c.getData().get(h[0],m[0])}if(!(p==null||!isFinite(p))){var y=e-p,S=Math.abs(y);S<=s&&((S=0&&l<0)&&(s=S,l=y,o=p,a.length=0),Et(m,function(k){a.push({seriesIndex:c.seriesIndex,dataIndexInside:k,dataIndex:c.getData().getRawIndex(k)})}))}}),{payloadBatch:a,snapToValue:o}}function ggt(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function ygt(e,t,n,r){var o=n.payloadBatch,a=t.axis,s=a.model,l=t.axisPointerModel;if(!(!t.triggerTooltip||!o.length)){var c=t.coordSys.model,d=g_(c),h=e.map[d];h||(h=e.map[d]={coordSysId:c.id,coordSysIndex:c.componentIndex,coordSysType:c.type,coordSysMainType:c.mainType,dataByAxis:[]},e.list.push(h)),h.dataByAxis.push({axisDim:a.dim,axisIndex:s.componentIndex,axisType:s.type,axisId:s.id,value:r,valueLabelOpt:{precision:l.get(["label","precision"]),formatter:l.get(["label","formatter"])},seriesDataIndices:o.slice()})}}function bgt(e,t,n){var r=n.axesInfo=[];Et(t,function(o,a){var s=o.axisPointerModel.option,l=e[a];l?(!o.useHandle&&(s.status="show"),s.value=l.value,s.seriesDataIndices=(l.payloadBatch||[]).slice()):!o.useHandle&&(s.status="hide"),s.status==="show"&&r.push({axisDim:o.axis.dim,axisIndex:o.axis.model.componentIndex,value:s.value})})}function _gt(e,t,n,r){if(aE(t)||!e.list.length){r({type:"hideTip"});return}var o=((e.list[0].dataByAxis[0]||{}).seriesDataIndices||[])[0]||{};r({type:"showTip",escapeConnect:!0,x:t[0],y:t[1],tooltipOption:n.tooltipOption,position:n.position,dataIndexInside:o.dataIndexInside,dataIndex:o.dataIndex,seriesIndex:o.seriesIndex,dataByCoordSys:e.list})}function Sgt(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",a=yae(r)[o]||{},s=yae(r)[o]={};Et(e,function(d,h){var p=d.axisPointerModel.option;p.status==="show"&&d.triggerEmphasis&&Et(p.seriesDataIndices,function(m){var g=m.seriesIndex+" | "+m.dataIndex;s[g]=m})});var l=[],c=[];Et(a,function(d,h){!s[h]&&c.push(d)}),Et(s,function(d,h){!a[h]&&l.push(d)}),c.length&&n.dispatchAction({type:"downplay",escapeConnect:!0,notBlur:!0,batch:c}),l.length&&n.dispatchAction({type:"highlight",escapeConnect:!0,notBlur:!0,batch:l})}function kgt(e,t){for(var n=0;n<(e||[]).length;n++){var r=e[n];if(t.axis.dim===r.axisDim&&t.axis.model.componentIndex===r.axisIndex)return r}}function _ae(e){var t=e.axis.model,n={},r=n.axisDim=e.axis.dim;return n.axisIndex=n[r+"AxisIndex"]=t.componentIndex,n.axisName=n[r+"AxisName"]=t.name,n.axisId=n[r+"AxisId"]=t.id,n}function aE(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function gye(e){uye.registerAxisPointerClass("CartesianAxisPointer",sgt),e.registerComponentModel(lgt),e.registerComponentView(pgt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!Qn(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=Nmt(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},vgt)}function yye(e){Hh(Jmt),Hh(gye)}function xgt(e,t){var n=TA(t.get("padding")),r=t.getItemStyle(["color","opacity"]);return r.fill=t.get("backgroundColor"),e=new Zs({shape:{x:e.x-n[3],y:e.y-n[0],width:e.width+n[1]+n[3],height:e.height+n[0]+n[2],r:t.get("borderRadius")},style:r,silent:!0,z2:-1}),e}var Cgt=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.type="tooltip",t.dependencies=["axisPointer"],t.defaultOption={z:60,show:!0,showContent:!0,trigger:"item",triggerOn:"mousemove|click",alwaysShowContent:!1,displayMode:"single",renderMode:"auto",confine:null,showDelay:0,hideDelay:100,transitionDuration:.4,enterable:!1,backgroundColor:"#fff",shadowBlur:10,shadowColor:"rgba(0, 0, 0, .2)",shadowOffsetX:1,shadowOffsetY:2,borderRadius:4,borderWidth:1,padding:null,extraCssText:"",axisPointer:{type:"line",axis:"auto",animation:"auto",animationDurationUpdate:200,animationEasingUpdate:"exponentialOut",crossStyle:{color:"#999",width:1,type:"dashed",textStyle:{}}},textStyle:{color:"#666",fontSize:14}},t})(co);function bye(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function _ye(e){if(Vr.domSupported){for(var t=document.documentElement.style,n=0,r=e.length;n-1?(l+="top:50%",c+="translateY(-50%) rotate("+(d=a==="left"?-225:-45)+"deg)"):(l+="left:50%",c+="translateX(-50%) rotate("+(d=a==="top"?225:45)+"deg)");var h=d*Math.PI/180,p=s+o,m=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),g=Math.round(((m-Math.SQRT2*o)/2+Math.SQRT2*o-(m-p)/2)*100)/100;l+=";"+a+":-"+g+"px";var y=t+" solid "+o+"px;",S=["position:absolute;width:"+s+"px;height:"+s+"px;z-index:-1;",l+";"+c+";","border-bottom:"+y,"border-right:"+y,"background-color:"+r+";"];return'
'}function Dgt(e,t){var n="cubic-bezier(0.23,1,0.32,1)",r=" "+e/2+"s "+n,o="opacity"+r+",visibility"+r;return t||(r=" "+e+"s "+n,o+=Vr.transformSupported?","+oG+r:",left"+r+",top"+r),Tgt+":"+o}function Sae(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!Vr.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var a=Vr.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+oG+":"+s+";":[["top",0],["left",0],[Sye,s]]}function Pgt(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var o=pi(e.get("lineHeight"),Math.round(n*3/2));n&&t.push("line-height:"+o+"px");var a=e.get("textShadowColor"),s=e.get("textShadowBlur")||0,l=e.get("textShadowOffsetX")||0,c=e.get("textShadowOffsetY")||0;return a&&s&&t.push("text-shadow:"+l+"px "+c+"px "+s+"px "+a),Et(["decoration","align"],function(d){var h=e.get(d);h&&t.push("text-"+d+":"+h)}),t.join(";")}function Rgt(e,t,n){var r=[],o=e.get("transitionDuration"),a=e.get("backgroundColor"),s=e.get("shadowBlur"),l=e.get("shadowColor"),c=e.get("shadowOffsetX"),d=e.get("shadowOffsetY"),h=e.getModel("textStyle"),p=Bge(e,"html"),m=c+"px "+d+"px "+s+"px "+l;return r.push("box-shadow:"+m),t&&o&&r.push(Dgt(o,n)),a&&r.push("background-color:"+a),Et(["width","color","radius"],function(g){var y="border-"+g,S=dge(y),k=e.get(S);k!=null&&r.push(y+":"+k+(g==="color"?"":"px"))}),r.push(Pgt(h)),p!=null&&r.push("padding:"+TA(p).join("px ")+"px"),r.join(";")+";"}function kae(e,t,n,r,o){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&Qat(e,s,n,r,o)}else{e[0]=r,e[1]=o;var l=a&&a.getViewportRootOffset();l&&(e[0]+=l.offsetLeft,e[1]+=l.offsetTop)}e[2]=e[0]/t.getWidth(),e[3]=e[1]/t.getHeight()}var Mgt=(function(){function e(t,n){if(this._show=!1,this._styleCoord=[0,0,0,0],this._enterable=!0,this._alwaysShowContent=!1,this._firstShow=!0,this._longHide=!0,Vr.wxa)return null;var r=document.createElement("div");r.domBelongToZr=!0,this.el=r;var o=this._zr=t.getZr(),a=n.appendTo,s=a&&(yr(a)?document.querySelector(a):r_(a)?a:ei(a)&&a(t.getDom()));kae(this._styleCoord,o,s,t.getWidth()/2,t.getHeight()/2),(s||t.getDom()).appendChild(r),this._api=t,this._container=s;var l=this;r.onmouseenter=function(){l._enterable&&(clearTimeout(l._hideTimeout),l._show=!0),l._inContent=!0},r.onmousemove=function(c){if(c=c||window.event,!l._enterable){var d=o.handler,h=o.painter.getViewportRoot();Ac(h,c,!0),d.dispatch("mousemove",c)}},r.onmouseleave=function(){l._inContent=!1,l._enterable&&l._show&&l.hideLater(l._hideDelay)}}return e.prototype.update=function(t){if(!this._container){var n=this._api.getDom(),r=Egt(n,"position"),o=n.style;o.position!=="absolute"&&r!=="absolute"&&(o.position="relative")}var a=t.get("alwaysShowContent");a&&this._moveIfResized(),this._alwaysShowContent=a,this.el.className=t.get("className")||""},e.prototype.show=function(t,n){clearTimeout(this._hideTimeout),clearTimeout(this._longHideTimeout);var r=this.el,o=r.style,a=this._styleCoord;r.innerHTML?o.cssText=Agt+Rgt(t,!this._firstShow,this._longHide)+Sae(a[0],a[1],!0)+("border-color:"+Rm(n)+";")+(t.get("extraCssText")||"")+(";pointer-events:"+(this._enterable?"auto":"none")):o.display="none",this._show=!0,this._firstShow=!1,this._longHide=!1},e.prototype.setContent=function(t,n,r,o,a){var s=this.el;if(t==null){s.innerHTML="";return}var l="";if(yr(a)&&r.get("trigger")==="item"&&!bye(r)&&(l=Lgt(r,o,a)),yr(t))s.innerHTML=t+l;else if(t){s.innerHTML="",Qn(t)||(t=[t]);for(var c=0;c=0?this._tryShow(a,s):o==="leave"&&this._hide(s))},this))},t.prototype._keepShow=function(){var n=this._tooltipModel,r=this._ecModel,o=this._api,a=n.get("triggerOn");if(this._lastX!=null&&this._lastY!=null&&a!=="none"&&a!=="click"){var s=this;clearTimeout(this._refreshUpdateTimeout),this._refreshUpdateTimeout=setTimeout(function(){!o.isDisposed()&&s.manuallyShowTip(n,r,o,{x:s._lastX,y:s._lastY,dataByCoordSys:s._lastDataByCoordSys})})}},t.prototype.manuallyShowTip=function(n,r,o,a){if(!(a.from===this.uid||Vr.node||!o.getDom())){var s=wae(a,o);this._ticket="";var l=a.dataByCoordSys,c=Vgt(a,r,o);if(c){var d=c.el.getBoundingRect().clone();d.applyTransform(c.el.transform),this._tryShow({offsetX:d.x+d.width/2,offsetY:d.y+d.height/2,target:c.el,position:a.position,positionDefault:"bottom"},s)}else if(a.tooltip&&a.x!=null&&a.y!=null){var h=$gt;h.x=a.x,h.y=a.y,h.update(),qi(h).tooltipConfig={name:null,option:a.tooltip},this._tryShow({offsetX:a.x,offsetY:a.y,target:h},s)}else if(l)this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,dataByCoordSys:l,tooltipOption:a.tooltipOption},s);else if(a.seriesIndex!=null){if(this._manuallyAxisShowTip(n,r,o,a))return;var p=mye(a,r),m=p.point[0],g=p.point[1];m!=null&&g!=null&&this._tryShow({offsetX:m,offsetY:g,target:p.el,position:a.position,positionDefault:"bottom"},s)}else a.x!=null&&a.y!=null&&(o.dispatchAction({type:"updateAxisPointer",x:a.x,y:a.y}),this._tryShow({offsetX:a.x,offsetY:a.y,position:a.position,target:o.getZr().findHover(a.x,a.y).target},s))}},t.prototype.manuallyHideTip=function(n,r,o,a){var s=this._tooltipContent;this._tooltipModel&&s.hideLater(this._tooltipModel.get("hideDelay")),this._lastX=this._lastY=this._lastDataByCoordSys=null,a.from!==this.uid&&this._hide(wae(a,o))},t.prototype._manuallyAxisShowTip=function(n,r,o,a){var s=a.seriesIndex,l=a.dataIndex,c=r.getComponent("axisPointer").coordSysAxesInfo;if(!(s==null||l==null||c==null)){var d=r.getSeriesByIndex(s);if(d){var h=d.getData(),p=c4([h.getItemModel(l),d,(d.coordinateSystem||{}).model],this._tooltipModel);if(p.get("trigger")==="axis")return o.dispatchAction({type:"updateAxisPointer",seriesIndex:s,dataIndex:l,position:a.position}),!0}}},t.prototype._tryShow=function(n,r){var o=n.target,a=this._tooltipModel;if(a){this._lastX=n.offsetX,this._lastY=n.offsetY;var s=n.dataByCoordSys;if(s&&s.length)this._showAxisTooltip(s,n);else if(o){var l=qi(o);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,d;R4(o,function(h){if(qi(h).dataIndex!=null)return c=h,!0;if(qi(h).tooltipConfig!=null)return d=h,!0},!0),c?this._showSeriesItemTooltip(n,c,r):d?this._showComponentItemTooltip(n,d,r):this._hide(r)}else this._lastDataByCoordSys=null,this._hide(r)}},t.prototype._showOrMove=function(n,r){var o=n.get("showDelay");r=Do(r,this),clearTimeout(this._showTimout),o>0?this._showTimout=setTimeout(r,o):r()},t.prototype._showAxisTooltip=function(n,r){var o=this._ecModel,a=this._tooltipModel,s=[r.offsetX,r.offsetY],l=c4([r.tooltipOption],a),c=this._renderMode,d=[],h=h_("section",{blocks:[],noHeader:!0}),p=[],m=new eF;Et(n,function(x){Et(x.dataByAxis,function(E){var _=o.getComponent(E.axisDim+"Axis",E.axisIndex),T=E.value;if(!(!_||T==null)){var D=hye(T,_.axis,o,E.seriesDataIndices,E.valueLabelOpt),P=h_("section",{header:D,noHeader:!ff(D),sortBlocks:!0,blocks:[]});h.blocks.push(P),Et(E.seriesDataIndices,function(M){var $=o.getSeriesByIndex(M.seriesIndex),I=M.dataIndexInside,N=$.getDataParams(I);if(!(N.dataIndex<0)){N.axisDim=E.axisDim,N.axisIndex=E.axisIndex,N.axisType=E.axisType,N.axisId=E.axisId,N.axisValue=JW(_.axis,{value:T}),N.axisValueLabel=D,N.marker=m.makeTooltipMarker("item",Rm(N.color),c);var j=Boe($.formatTooltip(I,!0,null)),U=j.frag;if(U){var z=c4([$],a).get("valueFormatter");P.blocks.push(z?bn({valueFormatter:z},U):U)}j.text&&p.push(j.text),d.push(N)}})}})}),h.blocks.reverse(),p.reverse();var g=r.position,y=l.get("order"),S=zoe(h,m,c,y,o.get("useUTC"),l.get("textStyle"));S&&p.unshift(S);var k=c==="richText"?` `:"
",C=p.join(k);this._showOrMove(l,function(){this._updateContentNotChangedOnAxis(n,d)?this._updatePosition(l,g,s[0],s[1],this._tooltipContent,d):this._showTooltipContent(l,C,d,Math.random()+"",s[0],s[1],g,null,m)})},t.prototype._showSeriesItemTooltip=function(n,r,o){var a=this._ecModel,s=qi(r),l=s.seriesIndex,c=a.getSeriesByIndex(l),d=s.dataModel||c,h=s.dataIndex,p=s.dataType,m=d.getData(p),g=this._renderMode,y=n.positionDefault,S=c4([m.getItemModel(h),d,c&&(c.coordinateSystem||{}).model],this._tooltipModel,y?{position:y}:null),k=S.get("trigger");if(!(k!=null&&k!=="item")){var C=d.getDataParams(h,p),x=new eF;C.marker=x.makeTooltipMarker("item",Rm(C.color),g);var E=Boe(d.formatTooltip(h,!1,p)),_=S.get("order"),T=S.get("valueFormatter"),D=E.frag,P=D?zoe(T?bn({valueFormatter:T},D):D,x,g,_,a.get("useUTC"),S.get("textStyle")):E.text,M="item_"+d.name+"_"+h;this._showOrMove(S,function(){this._showTooltipContent(S,P,C,M,n.offsetX,n.offsetY,n.position,n.target,x)}),o({type:"showTip",dataIndexInside:h,dataIndex:m.getRawIndex(h),seriesIndex:l,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,o){var a=this._renderMode==="html",s=qi(r),l=s.tooltipConfig,c=l.option||{},d=c.encodeHTMLContent;if(yr(c)){var h=c;c={content:h,formatter:h},d=!0}d&&a&&c.content&&(c=Fi(c),c.content=gu(c.content));var p=[c],m=this._ecModel.getComponent(s.componentMainType,s.componentIndex);m&&p.push(m),p.push({formatter:c.content});var g=n.positionDefault,y=c4(p,this._tooltipModel,g?{position:g}:null),S=y.get("content"),k=Math.random()+"",C=new eF;this._showOrMove(y,function(){var x=Fi(y.get("formatterParams")||{});this._showTooltipContent(y,S,x,k,n.offsetX,n.offsetY,n.position,r,C)}),o({type:"showTip",from:this.uid})},t.prototype._showTooltipContent=function(n,r,o,a,s,l,c,d,h){if(this._ticket="",!(!n.get("showContent")||!n.get("show"))){var p=this._tooltipContent;p.setEnterable(n.get("enterable"));var m=n.get("formatter");c=c||n.get("position");var g=r,y=this._getNearestPoint([s,l],o,n.get("trigger"),n.get("borderColor")),S=y.color;if(m)if(yr(m)){var k=n.ecModel.get("useUTC"),C=Qn(o)?o[0]:o,x=C&&C.axisType&&C.axisType.indexOf("time")>=0;g=m,x&&(g=kA(C.axisValue,g,k)),g=fge(g,o,!0)}else if(ei(m)){var E=Do(function(_,T){_===this._ticket&&(p.setContent(T,h,n,S,c),this._updatePosition(n,c,s,l,p,o,d))},this);this._ticket=a,g=m(o,a,E)}else g=m;p.setContent(g,h,n,S,c),p.show(n,S),this._updatePosition(n,c,s,l,p,o,d)}},t.prototype._getNearestPoint=function(n,r,o,a){if(o==="axis"||Qn(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!Qn(r))return{color:a||r.color||r.borderColor}},t.prototype._updatePosition=function(n,r,o,a,s,l,c){var d=this._api.getWidth(),h=this._api.getHeight();r=r||n.get("position");var p=s.getSize(),m=n.get("align"),g=n.get("verticalAlign"),y=c&&c.getBoundingRect().clone();if(c&&y.applyTransform(c.transform),ei(r)&&(r=r([o,a],l,s.el,y,{viewSize:[d,h],contentSize:p.slice()})),Qn(r))o=Jo(r[0],d),a=Jo(r[1],h);else if(Tr(r)){var S=r;S.width=p[0],S.height=p[1];var k=Oy(S,{width:d,height:h});o=k.x,a=k.y,m=null,g=null}else if(yr(r)&&c){var C=jgt(r,y,p,n.get("borderWidth"));o=C[0],a=C[1]}else{var C=Ngt(o,a,s,d,h,m?null:20,g?null:20);o=C[0],a=C[1]}if(m&&(o-=Eae(m)?p[0]/2:m==="right"?p[0]:0),g&&(a-=Eae(g)?p[1]/2:g==="bottom"?p[1]:0),bye(n)){var C=Fgt(o,a,s,d,h);o=C[0],a=C[1]}s.moveTo(o,a)},t.prototype._updateContentNotChangedOnAxis=function(n,r){var o=this._lastDataByCoordSys,a=this._cbParamsList,s=!!o&&o.length===n.length;return s&&Et(o,function(l,c){var d=l.dataByAxis||[],h=n[c]||{},p=h.dataByAxis||[];s=s&&d.length===p.length,s&&Et(d,function(m,g){var y=p[g]||{},S=m.seriesDataIndices||[],k=y.seriesDataIndices||[];s=s&&m.value===y.value&&m.axisType===y.axisType&&m.axisId===y.axisId&&S.length===k.length,s&&Et(S,function(C,x){var E=k[x];s=s&&C.seriesIndex===E.seriesIndex&&C.dataIndex===E.dataIndex}),a&&Et(m.seriesDataIndices,function(C){var x=C.seriesIndex,E=r[x],_=a[x];E&&_&&_.data!==E.data&&(s=!1)})})}),this._lastDataByCoordSys=n,this._cbParamsList=r,!!s},t.prototype._hide=function(n){this._lastDataByCoordSys=null,n({type:"hideTip",from:this.uid})},t.prototype.dispose=function(n,r){Vr.node||!r.getDom()||(sz(this,"_updatePosition"),this._tooltipContent.dispose(),Cz("itemTooltip",r))},t.type="tooltip",t})(Rd);function c4(e,t,n){var r=t.ecModel,o;n?(o=new ks(n,r,r),o=new ks(t.option,o,r)):o=t;for(var a=e.length-1;a>=0;a--){var s=e[a];s&&(s instanceof ks&&(s=s.get("tooltip",!0)),yr(s)&&(s={formatter:s}),s&&(o=new ks(s,o,r)))}return o}function wae(e,t){return e.dispatchAction||Do(t.dispatchAction,t)}function Ngt(e,t,n,r,o,a,s){var l=n.getSize(),c=l[0],d=l[1];return a!=null&&(e+c+a+2>r?e-=c+a:e+=a),s!=null&&(t+d+s>o?t-=d+s:t+=s),[e,t]}function Fgt(e,t,n,r,o){var a=n.getSize(),s=a[0],l=a[1];return e=Math.min(e+s,r)-s,t=Math.min(t+l,o)-l,e=Math.max(e,0),t=Math.max(t,0),[e,t]}function jgt(e,t,n,r){var o=n[0],a=n[1],s=Math.ceil(Math.SQRT2*r)+8,l=0,c=0,d=t.width,h=t.height;switch(e){case"inside":l=t.x+d/2-o/2,c=t.y+h/2-a/2;break;case"top":l=t.x+d/2-o/2,c=t.y-a-s;break;case"bottom":l=t.x+d/2-o/2,c=t.y+h+s;break;case"left":l=t.x-o-s,c=t.y+h/2-a/2;break;case"right":l=t.x+d+s,c=t.y+h/2-a/2}return[l,c]}function Eae(e){return e==="center"||e==="middle"}function Vgt(e,t,n){var r=pW(e).queryOptionMap,o=r.keys()[0];if(!(!o||o==="series")){var a=iS(t,o,r.get(o),{useDefault:!1,enableAll:!1,enableNone:!1}),s=a.models[0];if(s){var l=n.getViewOfComponentModel(s),c;if(l.group.traverse(function(d){var h=qi(d).tooltipConfig;if(h&&h.name===e.name)return c=d,!0}),c)return{componentMainType:o,componentIndex:s.componentIndex,el:c}}}}function xye(e){Hh(gye),e.registerComponentModel(Cgt),e.registerComponentView(Bgt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Eu),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Eu)}var zgt=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.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})(co),Ugt=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n}return t.prototype.render=function(n,r,o){if(this.group.removeAll(),!!n.get("show")){var a=this.group,s=n.getModel("textStyle"),l=n.getModel("subtextStyle"),c=n.get("textAlign"),d=pi(n.get("textBaseline"),n.get("textVerticalAlign")),h=new Ja({style:w0(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),m=n.get("subtext"),g=new Ja({style:w0(l,{text:m,fill:l.getTextColor(),y:p.height+n.get("itemGap"),verticalAlign:"top"},{disableBox:!0}),z2:10}),y=n.get("link"),S=n.get("sublink"),k=n.get("triggerEvent",!0);h.silent=!y&&!k,g.silent=!S&&!k,y&&h.on("click",function(){boe(y,"_"+n.get("target"))}),S&&g.on("click",function(){boe(S,"_"+n.get("subtarget"))}),qi(h).eventData=qi(g).eventData=k?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),m&&a.add(g);var C=a.getBoundingRect(),x=n.getBoxLayoutParams();x.width=C.width,x.height=C.height;var E=Oy(x,{width:o.getWidth(),height:o.getHeight()},n.get("padding"));c||(c=n.get("left")||n.get("right"),c==="middle"&&(c="center"),c==="right"?E.x+=E.width:c==="center"&&(E.x+=E.width/2)),d||(d=n.get("top")||n.get("bottom"),d==="center"&&(d="middle"),d==="bottom"?E.y+=E.height:d==="middle"&&(E.y+=E.height/2),d=d||"top"),a.x=E.x,a.y=E.y,a.markRedraw();var _={align:c,verticalAlign:d};h.setStyle(_),g.setStyle(_),C=a.getBoundingRect();var T=E.margin,D=n.getItemStyle(["color","opacity"]);D.fill=n.get("backgroundColor");var P=new Zs({shape:{x:C.x-T[3],y:C.y-T[0],width:C.width+T[1]+T[3],height:C.height+T[0]+T[2],r:n.get("borderRadius")},style:D,subPixelOptimize:!0,silent:!0});a.add(P)}},t.type="title",t})(Rd);function Cye(e){e.registerComponentModel(zgt),e.registerComponentView(Ugt)}var Hgt=function(e,t){if(t==="all")return{type:"all",title:e.getLocaleModel().get(["legend","selector","all"])};if(t==="inverse")return{type:"inverse",title:e.getLocaleModel().get(["legend","selector","inverse"])}},wz=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.layoutMode={type:"box",ignoreSize:!0},n}return t.prototype.init=function(n,r,o){this.mergeDefaultAndTheme(n,o),n.selected=n.selected||{},this._updateSelector(n)},t.prototype.mergeOption=function(n,r){e.prototype.mergeOption.call(this,n,r),this._updateSelector(n)},t.prototype._updateSelector=function(n){var r=n.selector,o=this.ecModel;r===!0&&(r=n.selector=["all","inverse"]),Qn(r)&&Et(r,function(a,s){yr(a)&&(a={type:a}),r[s]=oo(a,Hgt(o,a.type))})},t.prototype.optionUpdated=function(){this._updateData(this.ecModel);var n=this._data;if(n[0]&&this.get("selectedMode")==="single"){for(var r=!1,o=0;o=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})(co),y1=Ps,Ez=Et,sC=Za,wye=(function(e){Nn(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.type=t.type,n.newlineDisabled=!1,n}return t.prototype.init=function(){this.group.add(this._contentGroup=new sC),this.group.add(this._selectorGroup=new sC),this._isFirstRender=!0},t.prototype.getContentGroup=function(){return this._contentGroup},t.prototype.getSelectorGroup=function(){return this._selectorGroup},t.prototype.render=function(n,r,o){var a=this._isFirstRender;if(this._isFirstRender=!1,this.resetInner(),!!n.get("show",!0)){var s=n.get("align"),l=n.get("orient");(!s||s==="auto")&&(s=n.get("left")==="right"&&l==="vertical"?"right":"left");var c=n.get("selector",!0),d=n.get("selectorPosition",!0);c&&(!d||d==="auto")&&(d=l==="horizontal"?"end":"start"),this.renderInner(s,n,r,o,c,l,d);var h=n.getBoxLayoutParams(),p={width:o.getWidth(),height:o.getHeight()},m=n.get("padding"),g=Oy(h,p,m),y=this.layoutInner(n,s,g,a,c,d),S=Oy(ao({width:y.width,height:y.height},h),p,m);this.group.x=S.x-y.x,this.group.y=S.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=xgt(y,n))}},t.prototype.resetInner=function(){this.getContentGroup().removeAll(),this._backgroundEl&&this.group.remove(this._backgroundEl),this.getSelectorGroup().removeAll()},t.prototype.renderInner=function(n,r,o,a,s,l,c){var d=this.getContentGroup(),h=_i(),p=r.get("selectedMode"),m=[];o.eachRawSeries(function(g){!g.get("legendHoverLink")&&m.push(g.id)}),Ez(r.getData(),function(g,y){var S=g.get("name");if(!this.newlineDisabled&&(S===""||S===` `)){var k=new sC;k.newline=!0,d.add(k);return}var C=o.getSeriesByName(S)[0];if(!h.get(S))if(C){var x=C.getData(),E=x.getVisual("legendLineStyle")||{},_=x.getVisual("legendIcon"),T=x.getVisual("style"),D=this._createItem(C,S,y,g,r,n,E,T,_,p,a);D.on("click",y1(Tae,S,null,a,m)).on("mouseover",y1(Tz,C.name,null,a,m)).on("mouseout",y1(Az,C.name,null,a,m)),o.ssr&&D.eachChild(function(P){var M=qi(P);M.seriesIndex=C.seriesIndex,M.dataIndex=y,M.ssrType="legend"}),h.set(S,!0)}else o.eachRawSeries(function(P){if(!h.get(S)&&P.legendVisualProvider){var M=P.legendVisualProvider;if(!M.containName(S))return;var $=M.indexOfName(S),I=M.getItemVisual($,"style"),N=M.getItemVisual($,"legendIcon"),j=Dh(I.fill);j&&j[3]===0&&(j[3]=.2,I=bn(bn({},I),{fill:aA(j,"rgba")}));var U=this._createItem(P,S,y,g,r,n,{},I,N,p,a);U.on("click",y1(Tae,null,S,a,m)).on("mouseover",y1(Tz,null,S,a,m)).on("mouseout",y1(Az,null,S,a,m)),o.ssr&&U.eachChild(function(z){var G=qi(z);G.seriesIndex=P.seriesIndex,G.dataIndex=y,G.ssrType="legend"}),h.set(S,!0)}},this)},this),s&&this._createSelector(s,r,a,l,c)},t.prototype._createSelector=function(n,r,o,a,s){var l=this.getSelectorGroup();Ez(n,function(d){var h=d.type,p=new Ja({style:{x:0,y:0,align:"center",verticalAlign:"middle"},onclick:function(){o.dispatchAction({type:h==="all"?"legendAllSelect":"legendInverseSelect",legendId:r.id})}});l.add(p);var m=r.getModel("selectorLabel"),g=r.getModel(["emphasis","selectorLabel"]);aS(p,{normal:m,emphasis:g},{defaultText:d.title}),YV(p)})},t.prototype._createItem=function(n,r,o,a,s,l,c,d,h,p,m){var g=n.visualDrawType,y=s.get("itemWidth"),S=s.get("itemHeight"),k=s.isSelected(r),C=a.get("symbolRotate"),x=a.get("symbolKeepAspect"),E=a.get("icon");h=E||h||"roundRect";var _=Wgt(h,a,c,d,g,k,m),T=new sC,D=a.getModel("textStyle");if(ei(n.getLegendIcon)&&(!E||E==="inherit"))T.add(n.getLegendIcon({itemWidth:y,itemHeight:S,icon:h,iconRotate:C,itemStyle:_.itemStyle,lineStyle:_.lineStyle,symbolKeepAspect:x}));else{var P=E==="inherit"&&n.getData().getVisual("symbol")?C==="inherit"?n.getData().getVisual("symbolRotate"):C:0;T.add(Ggt({itemWidth:y,itemHeight:S,icon:h,iconRotate:P,itemStyle:_.itemStyle,symbolKeepAspect:x}))}var M=l==="left"?y+5:-5,$=l,I=s.get("formatter"),N=r;yr(I)&&I?N=I.replace("{name}",r??""):ei(I)&&(N=I(r));var j=k?D.getTextColor():a.get("inactiveColor");T.add(new Ja({style:w0(D,{text:N,x:M,y:S/2,fill:j,align:$,verticalAlign:"middle"},{inheritColor:j})}));var U=new Zs({shape:T.getBoundingRect(),style:{fill:"transparent"}}),z=a.getModel("tooltip");return z.get("show")&&gA({el:U,componentModel:s,itemName:r,itemTooltipOption:z.option}),T.add(U),T.eachChild(function(G){G.silent=!0}),U.silent=!p,this.getContentGroup().add(T),YV(T),T.__legendDataIndex=o,T},t.prototype.layoutInner=function(n,r,o,a,s,l){var c=this.getContentGroup(),d=this.getSelectorGroup();_b(n.get("orient"),c,n.get("itemGap"),o.width,o.height);var h=c.getBoundingRect(),p=[-h.x,-h.y];if(d.markRedraw(),c.markRedraw(),s){_b("horizontal",d,n.get("selectorItemGap",!0));var m=d.getBoundingRect(),g=[-m.x,-m.y],y=n.get("selectorButtonGap",!0),S=n.getOrient().index,k=S===0?"width":"height",C=S===0?"height":"width",x=S===0?"y":"x";l==="end"?g[S]+=h[k]+y:p[S]+=m[k]+y,g[1-S]+=h[C]/2-m[C]/2,d.x=g[0],d.y=g[1],c.x=p[0],c.y=p[1];var E={x:0,y:0};return E[k]=h[k]+y+m[k],E[C]=Math.max(h[C],m[C]),E[x]=Math.min(0,m[x]+g[1-S]),E}else return c.x=p[0],c.y=p[1],this.group.getBoundingRect()},t.prototype.remove=function(){this.getContentGroup().removeAll(),this._isFirstRender=!0},t.type="legend.plain",t})(Rd);function Wgt(e,t,n,r,o,a,s){function l(k,C){k.lineWidth==="auto"&&(k.lineWidth=C.lineWidth>0?2:0),Ez(k,function(x,E){k[E]==="inherit"&&(k[E]=C[E])})}var c=t.getModel("itemStyle"),d=c.getItemStyle(),h=e.lastIndexOf("empty",0)===0?"fill":"stroke",p=c.getShallow("decal");d.decal=!p||p==="inherit"?r.decal:dz(p,s),d.fill==="inherit"&&(d.fill=r[o]),d.stroke==="inherit"&&(d.stroke=r[h]),d.opacity==="inherit"&&(d.opacity=(o==="fill"?r:n).opacity),l(d,r);var m=t.getModel("lineStyle"),g=m.getLineStyle();if(l(g,n),d.fill==="auto"&&(d.fill=r.fill),d.stroke==="auto"&&(d.stroke=r.fill),g.stroke==="auto"&&(g.stroke=r.fill),!a){var y=t.get("inactiveBorderWidth"),S=d[h];d.lineWidth=y==="auto"?r.lineWidth>0&&S?2:0:d.lineWidth,d.fill=t.get("inactiveColor"),d.stroke=t.get("inactiveBorderColor"),g.stroke=m.get("inactiveColor"),g.lineWidth=m.get("inactiveWidth")}return{itemStyle:d,lineStyle:g}}function Ggt(e){var t=e.icon||"roundRect",n=Ny(t,0,0,e.itemWidth,e.itemHeight,e.itemStyle.fill,e.symbolKeepAspect);return n.setStyle(e.itemStyle),n.rotation=(e.iconRotate||0)*Math.PI/180,n.setOrigin([e.itemWidth/2,e.itemHeight/2]),t.indexOf("empty")>-1&&(n.style.stroke=n.style.fill,n.style.fill="#fff",n.style.lineWidth=2),n}function Tae(e,t,n,r){Az(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),Tz(e,t,n,r)}function Eye(e){for(var t=e.getZr().storage.getDisplayList(),n,r=0,o=t.length;ro[s],k=[-g.x,-g.y];r||(k[a]=h[d]);var C=[0,0],x=[-y.x,-y.y],E=pi(n.get("pageButtonGap",!0),n.get("itemGap",!0));if(S){var _=n.get("pageButtonPosition",!0);_==="end"?x[a]+=o[s]-y[s]:C[a]+=y[s]+E}x[1-a]+=g[l]/2-y[l]/2,h.setPosition(k),p.setPosition(C),m.setPosition(x);var T={x:0,y:0};if(T[s]=S?o[s]:g[s],T[l]=Math.max(g[l],y[l]),T[c]=Math.min(0,y[c]+x[1-a]),p.__rectSize=o[s],S){var D={x:0,y:0};D[s]=Math.max(o[s]-y[s]-E,0),D[l]=T[l],p.setClipPath(new Zs({shape:D})),p.__rectSize=D[s]}else m.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var P=this._getPageInfo(n);return P.pageIndex!=null&&Ql(h,{x:P.contentPosition[0],y:P.contentPosition[1]},S?n:null),this._updatePageInfoView(n,P),T},t.prototype._pageGo=function(n,r,o){var a=this._getPageInfo(r)[n];a!=null&&o.dispatchAction({type:"legendScroll",scrollDataIndex:a,legendId:r.id})},t.prototype._updatePageInfoView=function(n,r){var o=this._controllerGroup;Et(["pagePrev","pageNext"],function(h){var p=h+"DataIndex",m=r[p]!=null,g=o.childOfName(h);g&&(g.setStyle("fill",m?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),g.cursor=m?"pointer":"default")});var a=o.childOfName("pageText"),s=n.get("pageFormatter"),l=r.pageIndex,c=l!=null?l+1:0,d=r.pageCount;a&&s&&a.setStyle("text",yr(s)?s.replace("{current}",c==null?"":c+"").replace("{total}",d==null?"":d+""):s({current:c,total:d}))},t.prototype._getPageInfo=function(n){var r=n.get("scrollDataIndex",!0),o=this.getContentGroup(),a=this._containerGroup.__rectSize,s=n.getOrient().index,l=wF[s],c=EF[s],d=this._findTargetItemIndex(r),h=o.children(),p=h[d],m=h.length,g=m?1:0,y={contentPosition:[o.x,o.y],pageCount:g,pageIndex:g-1,pagePrevDataIndex:null,pageNextDataIndex:null};if(!p)return y;var S=_(p);y.contentPosition[s]=-S.s;for(var k=d+1,C=S,x=S,E=null;k<=m;++k)E=_(h[k]),(!E&&x.e>C.s+a||E&&!T(E,C.s))&&(x.i>C.i?C=x:C=E,C&&(y.pageNextDataIndex==null&&(y.pageNextDataIndex=C.i),++y.pageCount)),x=E;for(var k=d-1,C=S,x=S,E=null;k>=-1;--k)E=_(h[k]),(!E||!T(x,E.s))&&C.i=P&&D.s<=P+a}},t.prototype._findTargetItemIndex=function(n){if(!this._showController)return 0;var r,o=this.getContentGroup(),a;return o.eachChild(function(s,l){var c=s.__legendDataIndex;a==null&&c!=null&&(a=l),c===n&&(r=l)}),r??a},t.type="legend.scroll",t})(wye);function Zgt(e){e.registerAction("legendScroll","legendscroll",function(t,n){var r=t.scrollDataIndex;r!=null&&n.eachComponent({mainType:"legend",subType:"scroll",query:t},function(o){o.setScrollDataIndex(r)})})}function Jgt(e){Hh(Tye),e.registerComponentModel(Ygt),e.registerComponentView(Xgt),Zgt(e)}function Aye(e){Hh(Tye),Hh(Jgt)}const Qgt=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function e1t(e){function t(r){return(...o)=>{if(!e.value)throw new Error("ECharts is not initialized yet.");return e.value[r].apply(e.value,o)}}function n(){const r=Object.create(null);return Qgt.forEach(o=>{r[o]=t(o)}),r}return n()}function t1t(e,t,n){Pt([n,e,t],([r,o,a],s,l)=>{let c=null;if(r&&o&&a){const{offsetWidth:d,offsetHeight:h}=r,p=a===!0?{}:a,{throttle:m=100,onResize:g}=p;let y=!1;const S=()=>{o.resize(),g?.()},k=m?DA(S,m):S;c=new ResizeObserver(()=>{!y&&(y=!0,r.offsetWidth===d&&r.offsetHeight===h)||k()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const n1t={autoresize:[Boolean,Object]},r1t=/^on[^a-z]/,Iye=e=>r1t.test(e);function i1t(e){const t={};for(const n in e)Iye(n)||(t[n]=e[n]);return t}function lE(e,t){const n=Mo(e)?et(e):e;return n&&typeof n=="object"&&"value"in n?n.value||t:n||t}const o1t="ecLoadingOptions";function s1t(e,t,n){const r=Pn(o1t,{}),o=F(()=>({...lE(r,{}),...n?.value}));Os(()=>{const a=e.value;a&&(t.value?a.showLoading(o.value):a.hideLoading())})}const a1t={loading:Boolean,loadingOptions:Object};let f4=null;const Lye="x-vue-echarts";function l1t(){if(f4!=null)return f4;if(typeof HTMLElement>"u"||typeof customElements>"u")return f4=!1;try{new Function("tag","class EChartsElement extends HTMLElement{__dispose=null;disconnectedCallback(){this.__dispose&&(this.__dispose(),this.__dispose=null)}}customElements.get(tag)==null&&customElements.define(tag,EChartsElement);")(Lye)}catch{return f4=!1}return f4=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0} `;const u1t=l1t(),c1t="ecTheme",d1t="ecInitOptions",f1t="ecUpdateOptions",Dae=/(^&?~?!?)native:/;var Dye=ke({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...n1t,...a1t},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=a0(),r=a0(),o=a0(),a=Pn(c1t,null),s=Pn(d1t,null),l=Pn(f1t,null),{autoresize:c,manualUpdate:d,loading:h,loadingOptions:p}=nn(e),m=F(()=>o.value||e.option||null),g=F(()=>e.theme||lE(a,{})),y=F(()=>e.initOptions||lE(s,{})),S=F(()=>e.updateOptions||lE(l,{})),k=F(()=>i1t(t)),C={},x=go().proxy.$listeners,E={};x?Object.keys(x).forEach($=>{Dae.test($)?C[$.replace(Dae,"$1")]=x[$]:E[$]=x[$]}):Object.keys(t).filter($=>Iye($)).forEach($=>{let I=$.charAt(2).toLowerCase()+$.slice(3);if(I.indexOf("native:")===0){const N=`on${I.charAt(7).toUpperCase()}${I.slice(8)}`;C[N]=t[$];return}I.substring(I.length-4)==="Once"&&(I=`~${I.substring(0,I.length-4)}`),E[I]=t[$]});function _($){if(!n.value)return;const I=r.value=Hpt(n.value,g.value,y.value);e.group&&(I.group=e.group),Object.keys(E).forEach(U=>{let z=E[U];if(!z)return;let G=U.toLowerCase();G.charAt(0)==="~"&&(G=G.substring(1),z.__once__=!0);let X=I;if(G.indexOf("zr:")===0&&(X=I.getZr(),G=G.substring(3)),z.__once__){delete z.__once__;const ie=z;z=(...ee)=>{ie(...ee),X.off(G,z)}}X.on(G,z)});function N(){I&&!I.isDisposed()&&I.resize()}function j(){const U=$||m.value;U&&I.setOption(U,S.value)}c.value?_n(()=>{N(),j()}):j()}function T($,I){e.manualUpdate&&(o.value=$),r.value?r.value.setOption($,I||{}):_($)}function D(){r.value&&(r.value.dispose(),r.value=void 0)}let P=null;Pt(d,$=>{typeof P=="function"&&(P(),P=null),$||(P=Pt(()=>e.option,(I,N)=>{I&&(r.value?r.value.setOption(I,{notMerge:I!==N,...S.value}):_())},{deep:!0}))},{immediate:!0}),Pt([g,y],()=>{D(),_()},{deep:!0}),Os(()=>{e.group&&r.value&&(r.value.group=e.group)});const M=e1t(r);return s1t(r,h,p),t1t(r,c,n),vn(()=>{_()}),Oo(()=>{u1t&&n.value?n.value.__dispose=D:D()}),{chart:r,root:n,setOption:T,nonEventAttrs:k,nativeListeners:C,...M}},render(){const e={...this.nonEventAttrs,...this.nativeListeners};return e.ref="root",e.class=e.class?["echarts"].concat(e.class):"echarts",da(Lye,e)}});const xu={WATCH_HISTORY:"drplayer_watch_history",DAILY_STATS:"drplayer_daily_stats"},Pye=()=>new Date().toISOString().split("T")[0],h1t=()=>{const e=new Date;return e.setDate(e.getDate()-1),e.toISOString().split("T")[0]},p1t=()=>{const e=new Date,t=e.getDay(),n=new Date(e);n.setDate(e.getDate()-t);const r=[];for(let o=0;o<7;o++){const a=new Date(n);a.setDate(n.getDate()+o),r.push(a.toISOString().split("T")[0])}return r},wf=(e,t={})=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("获取存储数据失败:",n),t}},kT=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("保存存储数据失败:",n)}},Rye=e=>{const t=Pye(),n=new Date().toISOString(),r=wf(xu.WATCH_HISTORY,[]),o={id:Date.now(),videoId:e.id,videoTitle:e.title,episode:e.episode||1,duration:e.duration||0,watchTime:e.watchTime||0,date:t,timestamp:n};return r.push(o),r.length>1e3&&r.splice(0,r.length-1e3),kT(xu.WATCH_HISTORY,r),sG(t),o},sG=e=>{const t=wf(xu.DAILY_STATS,{}),n=wf(xu.WATCH_HISTORY,[]),r=n.filter(o=>o.date===e).length;t[e]={date:e,watchCount:r,totalWatchTime:n.filter(o=>o.date===e).reduce((o,a)=>o+(a.watchTime||0),0),updatedAt:new Date().toISOString()},kT(xu.DAILY_STATS,t)},Mye=()=>{const e=Pye(),t=wf(xu.DAILY_STATS,{});return t[e]?t[e]:(sG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},Oye=()=>{const e=h1t(),t=wf(xu.DAILY_STATS,{});return t[e]?t[e]:(sG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},v1t=()=>{const e=p1t(),t=wf(xu.DAILY_STATS,{});return e.map((r,o)=>{const a=["周日","周一","周二","周三","周四","周五","周六"],s=t[r]||{watchCount:0,totalWatchTime:0};return{day:a[o],date:r,count:s.watchCount,totalWatchTime:s.totalWatchTime}})},m1t=()=>{const e=Mye(),t=Oye();if(t.watchCount===0)return e.watchCount>0?100:0;const n=(e.watchCount-t.watchCount)/t.watchCount*100;return Math.round(n)},g1t=(e=50)=>wf(xu.WATCH_HISTORY,[]).sort((n,r)=>new Date(r.timestamp)-new Date(n.timestamp)).slice(0,e),y1t=(e=10)=>{const t=wf(xu.WATCH_HISTORY,[]),n={};return t.forEach(r=>{const o=r.videoId;n[o]||(n[o]={videoId:r.videoId,videoTitle:r.videoTitle,watchCount:0,lastWatched:r.timestamp}),n[o].watchCount++,new Date(r.timestamp)>new Date(n[o].lastWatched)&&(n[o].lastWatched=r.timestamp)}),Object.values(n).sort((r,o)=>o.watchCount-r.watchCount).slice(0,e)},b1t=(e=30)=>{const t=new Date;t.setDate(t.getDate()-e);const n=t.toISOString().split("T")[0],o=wf(xu.WATCH_HISTORY,[]).filter(l=>l.date>=n);kT(xu.WATCH_HISTORY,o);const a=wf(xu.DAILY_STATS,{}),s={};Object.keys(a).forEach(l=>{l>=n&&(s[l]=a[l])}),kT(xu.DAILY_STATS,s),console.log(`清理了 ${e} 天前的数据`)},_1t=()=>{const e=[{id:"video_1",title:"斗罗大陆",episode:1},{id:"video_2",title:"庆余年",episode:2},{id:"video_3",title:"流浪地球2",episode:1},{id:"video_4",title:"鬼灭之刃",episode:5},{id:"video_5",title:"三体",episode:3}];for(let t=6;t>=0;t--){const n=new Date;n.setDate(n.getDate()-t);const r=Math.floor(Math.random()*5)+1;for(let o=0;o({feature:{label:"新功能",color:"#00b42a",icon:"🚀"},improvement:{label:"功能优化",color:"#165dff",icon:"⚡"},optimization:{label:"性能优化",color:"#ff7d00",icon:"🔧"},security:{label:"安全更新",color:"#f53f3f",icon:"🔒"},bugfix:{label:"Bug修复",color:"#722ed1",icon:"🐛"},release:{label:"版本发布",color:"#f7ba1e",icon:"🎉"}}),Bye=()=>({critical:{label:"紧急",color:"#f53f3f",priority:4},major:{label:"重要",color:"#ff7d00",priority:3},minor:{label:"一般",color:"#165dff",priority:2},trivial:{label:"轻微",color:"#86909c",priority:1}}),S1t=()=>$c.sort((e,t)=>new Date(t.date)-new Date(e.date)),k1t=e=>$c.filter(t=>t.type===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),x1t=e=>$c.filter(t=>t.importance===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),C1t=(e=5)=>$c.sort((t,n)=>new Date(n.date)-new Date(t.date)).slice(0,e),w1t=(e,t)=>{const n=new Date(e),r=new Date(t);return $c.filter(o=>{const a=new Date(o.date);return a>=n&&a<=r}).sort((o,a)=>new Date(a.date)-new Date(o.date))},E1t=e=>{const t=e.toLowerCase();return $c.filter(n=>n.title.toLowerCase().includes(t)||n.description.toLowerCase().includes(t)||n.version.toLowerCase().includes(t)||n.changes.some(r=>r.toLowerCase().includes(t))).sort((n,r)=>new Date(r.date)-new Date(n.date))},T1t=()=>{const e=$ye(),t=Bye(),n={};Object.keys(e).forEach(a=>{n[a]=$c.filter(s=>s.type===a).length});const r={};Object.keys(t).forEach(a=>{r[a]=$c.filter(s=>s.importance===a).length});const o={};return $c.forEach(a=>{const s=a.date.substring(0,7);o[s]=(o[s]||0)+1}),{total:$c.length,byType:n,byImportance:r,byMonth:o,latestVersion:$c[0]?.version||"v1.0.0",latestDate:$c[0]?.date||new Date().toISOString().split("T")[0]}},A1t=e=>{const t=new Date(e),r=Math.abs(new Date-t),o=Math.ceil(r/(1e3*60*60*24));return o===1?"昨天":o<=7?`${o}天前`:o<=30?`${Math.floor(o/7)}周前`:t.toLocaleDateString("zh-CN",{year:"numeric",month:"long",day:"numeric"})},I1t=(e,t)=>{const n=e.replace("v","").split(".").map(Number),r=t.replace("v","").split(".").map(Number);for(let o=0;os)return 1;if(aLi,D1t=e=>Li[e]||[],P1t=(e=12)=>[...Li.movies,...Li.tvShows,...Li.anime,...Li.novels].sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),R1t=(e=8)=>[...Li.movies,...Li.tvShows,...Li.anime,...Li.novels].filter(n=>n.trending).sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),M1t=(e,t=6)=>[...Li.movies,...Li.tvShows,...Li.anime,...Li.novels].filter(r=>r.category===e).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),O1t=(e,t=6)=>[...Li.movies,...Li.tvShows,...Li.anime,...Li.novels].filter(r=>r.tags.includes(e)).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),$1t=e=>{const t=e.toLowerCase();return[...Li.movies,...Li.tvShows,...Li.anime,...Li.novels].filter(r=>r.title.toLowerCase().includes(t)||r.description.toLowerCase().includes(t)||r.tags.some(o=>o.toLowerCase().includes(t))||r.author&&r.author.toLowerCase().includes(t)).sort((r,o)=>o.hotScore-r.hotScore)},B1t=()=>$A.sort((e,t)=>t.count-e.count),N1t=(e=10)=>$A.sort((t,n)=>n.count-t.count).slice(0,e),F1t=(e=5)=>$A.filter(t=>t.trend==="up").sort((t,n)=>n.count-t.count).slice(0,e),j1t=(e=[],t=8)=>{const n=V1t();return[...Li.movies,...Li.tvShows,...Li.anime,...Li.novels].map(a=>{let s=a.hotScore;return n.types[a.type]&&(s+=n.types[a.type]*10),n.categories[a.category]&&(s+=n.categories[a.category]*15),a.tags.forEach(l=>{n.tags[l]&&(s+=n.tags[l]*5)}),{...a,recommendScore:s}}).sort((a,s)=>s.recommendScore-a.recommendScore).slice(0,t)},V1t=e=>({types:{电视剧:3,动漫:2,电影:2,小说:1},categories:{科幻:3,悬疑:2,热血:2,剧情:1},tags:{国产:2,日本:1,热血:2,科幻:3}}),z1t=()=>{const e=[...Li.movies,...Li.tvShows,...Li.anime,...Li.novels],t={};Object.keys(Li).forEach(a=>{t[a]=Li[a].length});const n={};e.forEach(a=>{n[a.category]=(n[a.category]||0)+1});const r=e.filter(a=>a.trending).length,o=e.reduce((a,s)=>a+s.rating,0)/e.length;return{total:e.length,byType:t,byCategory:n,trending:r,averageRating:Math.round(o*10)/10,hotKeywords:$A.length}},U1t=(e=6)=>[...Li.movies,...Li.tvShows,...Li.anime,...Li.novels].sort(()=>.5-Math.random()).slice(0,e),p4={getAllRecommendations:L1t,getRecommendationsByType:D1t,getHotRecommendations:P1t,getTrendingRecommendations:R1t,getRecommendationsByCategory:M1t,getRecommendationsByTag:O1t,searchRecommendations:$1t,getAllKeywords:B1t,getHotKeywords:N1t,getTrendingUpKeywords:F1t,getPersonalizedRecommendations:j1t,getRecommendationStats:z1t,getRandomRecommendations:U1t},BA=Xm("pageState",{state:()=>({pageStates:{video:{activeKey:"",currentPage:1,videos:[],hasMore:!0,loading:!1,scrollPosition:0,lastUpdateTime:null},home:{scrollPosition:0,lastUpdateTime:null},search:{keyword:"",currentPage:1,videos:[],hasMore:!0,loading:!1,scrollPosition:0,lastUpdateTime:null}}}),actions:{savePageState(e,t){this.pageStates[e]||(this.pageStates[e]={}),this.pageStates[e]={...this.pageStates[e],...t,lastUpdateTime:Date.now()},console.log(`保存页面状态 [${e}]:`,this.pageStates[e])},getPageState(e){const t=this.pageStates[e];return console.log(`获取页面状态 [${e}]:`,t),t||{}},clearPageState(e){this.pageStates[e]&&(this.pageStates[e]={},console.log(`清除页面状态 [${e}]`))},isStateExpired(e,t=1800*1e3){const n=this.pageStates[e];return!n||!n.lastUpdateTime?!0:Date.now()-n.lastUpdateTime>t},saveVideoState(e,t,n,r,o,a=0){this.savePageState("video",{activeKey:e,currentPage:t,videos:[...n],hasMore:r,loading:o,scrollPosition:a})},saveSearchState(e,t,n,r,o,a=0){this.savePageState("search",{keyword:e,currentPage:t,videos:[...n],hasMore:r,loading:o,scrollPosition:a})},saveScrollPosition(e,t){this.pageStates[e]&&(this.pageStates[e].scrollPosition=t,this.pageStates[e].lastUpdateTime=Date.now())},getScrollPosition(e){const t=this.pageStates[e];return t&&t.scrollPosition||0}},getters:{videoState:e=>e.pageStates.video||{},searchState:e=>e.pageStates.search||{},homeState:e=>e.pageStates.home||{}}}),H1t="识别动作的路由ID或专项动作指令,必须。字符型。",W1t="动作的类型。input(单项输入)/edit(单项多行编辑)/multiInput(少于5个的多项输入)/multiInputX(增强的多项输入)/menu(单项选择)/select(多项选择)/msgbox(消息弹窗)等。字符型。",G1t="弹出窗口是否允许触摸窗口外时取消窗口。逻辑型。",K1t="标题。字符型。",q1t="宽度。整型。",Y1t="高度。整型。",X1t="文本消息内容。字符型。",Z1t="msgbox类动作的简单html消息内容。字符型。",J1t="input、multiInput、multiInputX类动作的帮助说明内容,在窗口右上角显示帮助图标,点击显示帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。",Q1t="按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置。整型。",eyt="图片URL。字符型。",tyt="图片高度。整型。",nyt="是否检测图片的点击坐标输入。逻辑型。",ryt="生成二维码的URL。字符型。",iyt="二维码的大小。整型。",oyt="超时时间(秒)。超时自动关闭窗口。整型。",syt="T4源的动作网络访问超时时间(秒)。",ayt="输入确认后,窗口是否保持。逻辑型。",lyt="窗口弹出时自动发送的初始化动作指令。字符型。",uyt="窗口弹出时自动发送的初始化指令值。字符型。",cyt="按窗口的取消键时发送的取消动作指令。字符型。",dyt="按窗口的取消键时发送的取消动作指令值。字符型。",fyt="单项输入的输入提示,单项输入时必须。字符型。",hyt="单项输入的初始化值。字符型。",pyt="单项输入的预定义选项,用于常见值的快速选择输入。各选项间用“,”分隔,选项值可使用“名称:=值”方式。字符型。",vyt=`多项输入的项目定义JSON数组。每个输入项目使用一个JSON对象进行定义。 [#id]:项目id。 [#name]:项目名称。 [#tip]:项目输入提示。 [#value]:项目初始值。 [#selectData]:项目输入预定义选项。各选项间用“,”分隔,选项值可使用“名称:=值”方式。特殊的输入选择:[folder]-选择文件夹,[file]-选择文件,[calendar]-选择日期,[image]-选择图像文件转为BASE64。multiInputX。 [#quickSelect]:是否能快速选择。单项选择时有效。quickSelect为true且inputType为0时,只输入快速选择项目不显示输入框等。multiInputX。 [#onlyQuickSelect]:是否只快速选择,隐藏输入框等。单项选择时有效。multiInputX。 [#selectWidth]:选择窗的宽度。multiInputX。 [#multiSelect]:是否多选。multiInputX。 [#selectColumn]:选择窗的列数。multiInputX。 [#inputType]:项目输入类型。0-项目输入框只读,但可通过选项输入。129-密码输入。inputType为0且quickSelect为true时,只输入快速选择项目不显示输入框等。multiInputX。 [#multiLine]:项目输入框的行数(多行编辑)。multiInputX。 [#validation]:提交时项目输入值校验正则表达式。multiInputX。 [#help]:项目输入的帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。multiInputX。`,myt="设置窗口背景暗化效果,用于调整背景的暗化程度(透明度)。其值范围为0.0到1.0。",gyt="底部对齐和底边距。整型。",yyt="单项选择或多项选择窗口的列数。整型。",byt=`单项选择或多项选择的选项定义JSON数组。每个选项使用一个JSON对象进行定义。 [#name]:选项名称。 [#action]:选项动作值。 [#selected]:选项默认是否已选。多项选择是可用。`,_yt=`源内搜索。 [#skey]:目标源key,可选,未设置或为空则使用当前源。 [#name]:搜索分类名称。 [#tid]:使用分类ID传递的搜索值。 [#flag]:列表视图参数。 [#folder]:多个分类切换搜索的配置,设置此项则忽略name、tid和flag。folder可多项合并设置为一个字符,各项间使用“#”分隔,每项中的name、tid和flag使用“$”分隔。floder也可使用JSON数组,每项分别设置name、tid和flag。`,Syt=`跳转到指定站源解析详情页播放。 [#skey]:目标源key。 [#ids]:传递给详情页的视频ids。`,kyt=`跳转到KTV播放器播放指定链接。 [#name]:歌名。 [#id]:歌曲的直链。`,xyt="刷新当前分类的列表。无其它参数。",Cyt="把返回的内容复制到剪贴板。content:复制的内容",wyt=`保持窗口不关闭。 [#msg]:更新窗口里的文本消息内容。 [#reset]:窗口中的输入项目内容是否清空。`,Eyt={使用帮助:`本帮助。长按则分项选择查看。 系统多数功能按键和选项,短按和长按有不同的功能。 [#影图根目录]:安全起见,影图的根目录为tvbox(/storage/emulated/0/tvbox),未说明情况下文件或文件夹都是相对于此目录。`,交互动作:"影图APP与站源接口间交互的动作指令(action)。用户在APP主动发出动作请求,接口根据指令返回数据或返回构建信息输入窗口的配置JSON,具有连续交互的机制。",动作指令:`接口回传给APP的动作指令,按用户交互起点分为静态动作和动态动作。 [#静态动作]:用户通过视频分类列表主动发起交互的起点动作。动作指令以分类列表的视频JSON数据为基础,属于静态数据。所有交互动作的起始都是静态动作。 [#动态动作]:静态动作构建的信息输入窗口提交动作(action)数据后,接口如果再次需要用户输入数据,可以返回新的动作配置JSON数据,此数据是交互过程中动态生成的,属于动态动作。数据结构: {  "action":{   动作指令结构...  },  "toast":"Toast显示消息" }`,动作类型:"基础动作、单项输入、多行编辑、多项输入、增强多项输入、单项选择、多项选择、消息弹窗、专项动作等。",视频VOD:`动作入口的视频分类列表VOD的JSON,vod_id字段值为字符型动作指令数据(json结构的需要转为字符型),vod_tag字段值固定为action,其它字段与视频类一致。例如: {  "vod_id":"动作指令结构...",  "vod_name":"显示名称",  "vod_tag":"action" }`,接口action:"接口接收动作指令的方法action。以js代码为例:function action(action, value) {...}。传参action为动作指令,value为动作指令值。返回结果消息或新的动作指令数据(动态动作)。",基础动作:`简单的动作指令字符串(非JSON结构),用户点击时无信息输入窗口,直接发送指令。 {  "vod_id":"hello world",  "vod_name":"基础动作",  "vod_tag":"action" }`,JSON动作:"JSON结构的动作指令。通过JSON结构数据,配置更丰富的动作指令。通过选择配置不同的字段,定义不同的动作表现。",actionId:H1t,type:W1t,canceledOnTouchOutside:G1t,title:K1t,width:q1t,height:Y1t,msg:X1t,htmlMsg:Z1t,help:J1t,button:Q1t,imageUrl:eyt,imageHeight:tyt,imageClickCoord:nyt,qrcode:ryt,qrcodeSize:iyt,timeout:oyt,httpTimeout:syt,keep:ayt,initAction:lyt,initValue:uyt,cancelAction:cyt,cancelValue:dyt,tip:fyt,value:hyt,selectData:pyt,input:vyt,dimAmount:myt,bottom:gyt,column:yyt,option:byt,单项输入:`type为input。要求用户输入一个字段的动作,JSON结构,部分字段根据需要选用。 {  actionId:'动作路由ID',  id:'输入项目id',  type:'input',  width:450,  title:'输入窗口标题',  tip:'输入提示',  value:'输入初始值',  msg:'窗口文本说明',  imageUrl:'窗口显示图片的URL',  imageHeight:200,  qrcode:'生成二维码的URL',  qrcodeSize:'300',  initAction:'initAction',  initValue:requestId,  button:2,  selectData:'1:=快速输入一,2:=快速输入二,3:=快速输入三' }`,多行编辑:"type为edit。要求用户在一个多行编辑区输入单个字段内容的动作,JSON结构。",多项输入:"type为multiInput。要求用户输入多个字段(5个以内)的动作,JSON结构。建议使用“增强多项输入”动作。",增强多项输入:"type为multiInputX。要求用户输入多个字段(不限制个数)的动作,JSON结构。",单项选择:"type为menu。要求用户在列表中选择一个项目的动作,JSON结构。",多项选择:"type为select。要求用户在列表中选择多个项目的动作,JSON结构。",消息弹窗:"type为msgbox。弹出窗口显示消息,JSON结构。",专项动作:"专项动作为动态动作,接口让APP执行一些特定的行为动作。actionId值为行为特定的标识。__self_search__(源内搜索)、__detail__(详情页)、__ktvplayer__(KTV播放)、__refresh_list__(刷新列表)、__copy__(复制)、__keep__(保持窗口)。",__self_search__:_yt,__detail__:Syt,__ktvplayer__:kyt,__refresh_list__:xyt,__copy__:Cyt,__keep__:wyt,图片坐标示例:`获取在图片点击的位置坐标用于验证输入的js示例。  {   vod_id: JSON.stringify({    actionId: '图片点击坐标',    id: 'coord',    type: 'input',    title: '图片点击坐标',    tip: '请输入图片中文字的坐标',    value: '',    msg: '点击图片上文字获取坐标',    imageUrl: 'https://pic.imgdb.cn/item/667ce9f4d9c307b7e9f9d052.webp',    imageHeight: 300,    imageClickCoord: true,    button: 3,   }),   vod_name: '图片点击坐标',   vod_pic: 'https://pic.imgdb.cn/item/667ce9f4d9c307b7e9f9d052.webp',   vod_tag:'action'  }`,多项输入示例:`多个不同类型输入项的js示例。  {   vod_id: JSON.stringify({    actionId: '多项输入',    type: 'multiInputX',    canceledOnTouchOutside: true,    title: '多项输入(multiInputX)',    width: 716,    bottom: 1,    dimAmount: 0.3,    button: 3,    input: [     {      id: 'item1',      name: '文件夹路径(文件夹选择器)',      tip: '请输入文件夹路径',      value: '',      selectData: '[folder]',      inputType: 0,     },     {      id: 'item2',      name: '日期(日期选择器)',      tip: '请输入项目2内容',      value: '',      selectData: '[calendar]',      inputType: 0,           },     {      id: 'item3',      name: '文件路径(文件选择器)',      tip: '请输入文件路径',      value: '',      selectData: '[file]',      inputType: 0,     },     {      id: 'item4',      name: '多项选择',      tip: '请输入多项内容,以“,”分隔',      value: '',      selectData: '[请选择字母]a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z',      selectWidth: 640,      multiSelect: true,      selectColumn: 4,      inputType: 0,     },     {      id: 'item5',      name: '多行输入',      tip: '请输入项目5内容',      value: '',      multiLine: 5,     },     {      id: 'item6',      name: '密码输入',      tip: '请输入项目6内容',      value: '',      inputType: 129,     },     {      id: 'item7',      name: '图像base64(图像文件选择器)',      tip: '请输入项目7内容',      value: '',      selectData: '[image]',      multiLine: 3,      inputType: 0,     },     {      id: 'item8',      name: '单项选择',      tip: '请输入项目8内容',      value: '',      selectData: '[请选择地方]a,b,c,d'     },     {      id: 'item9',      name: '单行输入并校验',      tip: '请输入项目9内容',      value: '',      validation: '[0-9]{6,12}',     }    ]   }),   vod_name: '多项输入',   vod_tag:'action'  }`},Tyt={class:"action-doc-card"},Ayt={class:"card-title"},Iyt={class:"card-content"},Lyt={class:"overview-section"},Dyt={class:"overview-item"},Pyt={class:"overview-value"},Ryt={class:"overview-item"},Myt={class:"overview-value"},Oyt={class:"overview-item"},$yt={class:"overview-value"},Byt={key:0,class:"quick-nav"},Nyt={key:1,class:"expanded-content"},Fyt={class:"section",id:"basic-concepts"},jyt={class:"section-title"},Vyt={class:"concept-grid"},zyt={class:"concept-title"},Uyt={class:"concept-desc"},Hyt={class:"section",id:"action-types"},Wyt={class:"section-title"},Gyt={class:"action-types-grid"},Kyt={class:"action-type-header"},qyt={class:"action-type-code"},Yyt={class:"action-type-desc"},Xyt={key:0,class:"action-type-usage"},Zyt={class:"section",id:"special-actions"},Jyt={class:"section-title"},Qyt={class:"special-actions-list"},e3t={class:"special-action-header"},t3t={class:"action-id"},n3t={class:"action-name"},r3t={class:"special-action-desc"},i3t={key:0,class:"special-action-params"},o3t={class:"section",id:"config-params"},s3t={class:"section-title"},a3t={class:"params-grid"},l3t={class:"param-header"},u3t={class:"param-name"},c3t={class:"param-desc"},d3t={class:"section",id:"examples"},f3t={class:"section-title"},h3t={class:"code-block"},p3t={class:"code-block"},v3t={class:"code-block"},m3t={__name:"ActionDocCard",setup(e){const t=fe(!1),n=fe(Eyt),r=()=>{t.value=!t.value},o=k=>{t.value=!0,setTimeout(()=>{const C=document.getElementById(k);C&&C.scrollIntoView({behavior:"smooth"})},100)};vn(()=>{});const a=F(()=>Object.keys(n.value).length),s=F(()=>{const k=new Set;return Object.values(n.value).forEach(C=>{C.type&&k.add(C.type)}),Array.from(k)}),l=F(()=>Object.entries(n.value).filter(([k,C])=>C.special===!0).map(([k,C])=>({key:k,...C}))),c=fe([{key:"basic-concepts",name:"基础概念",color:"blue"},{key:"action-types",name:"动作类型",color:"green"},{key:"special-actions",name:"专项动作",color:"orange"},{key:"config-params",name:"配置参数",color:"purple"},{key:"examples",name:"示例代码",color:"red"}]),d=F(()=>[{key:"interaction",title:"交互动作",description:n.value.交互动作||""},{key:"action-command",title:"动作指令",description:n.value.动作指令?.split(` `)[0]||""},{key:"video-vod",title:"视频VOD",description:n.value.视频VOD?.split("例如:")[0]||""},{key:"interface-action",title:"接口action",description:n.value.接口action||""}]),h=fe([{key:"basic",name:"基础动作",type:"string",color:"blue",description:"简单的动作指令字符串,用户点击时无信息输入窗口",usage:"直接发送指令"},{key:"input",name:"单项输入",type:"input",color:"green",description:"要求用户输入一个字段的动作",usage:"获取用户单个输入值"},{key:"edit",name:"多行编辑",type:"edit",color:"cyan",description:"要求用户在多行编辑区输入单个字段内容",usage:"长文本输入"},{key:"multiInput",name:"多项输入",type:"multiInput",color:"purple",description:"要求用户输入多个字段(5个以内)",usage:"少量多字段输入"},{key:"multiInputX",name:"增强多项输入",type:"multiInputX",color:"orange",description:"要求用户输入多个字段(不限制个数)",usage:"复杂表单输入"},{key:"menu",name:"单项选择",type:"menu",color:"lime",description:"要求用户在列表中选择一个项目",usage:"单选操作"},{key:"select",name:"多项选择",type:"select",color:"gold",description:"要求用户在列表中选择多个项目",usage:"多选操作"},{key:"msgbox",name:"消息弹窗",type:"msgbox",color:"red",description:"弹出窗口显示消息",usage:"信息展示"}]),p=F(()=>[{key:"self_search",actionId:"__self_search__",name:"源内搜索",description:n.value.__self_search__?.split(` `)[0]||"",params:["skey","name","tid","flag","folder"]},{key:"detail",actionId:"__detail__",name:"详情页跳转",description:n.value.__detail__?.split(` `)[0]||"",params:["skey","ids"]},{key:"ktvplayer",actionId:"__ktvplayer__",name:"KTV播放",description:n.value.__ktvplayer__?.split(` `)[0]||"",params:["name","id"]},{key:"refresh_list",actionId:"__refresh_list__",name:"刷新列表",description:n.value.__refresh_list__||"",params:[]},{key:"copy",actionId:"__copy__",name:"复制内容",description:n.value.__copy__||"",params:["content"]},{key:"keep",actionId:"__keep__",name:"保持窗口",description:n.value.__keep__?.split(` `)[0]||"",params:["msg","reset"]}]),m=fe([{key:"actionId",name:"actionId",type:"字符型",typeColor:"blue",description:"识别动作的路由ID或专项动作指令,必须"},{key:"type",name:"type",type:"字符型",typeColor:"blue",description:"动作的类型"},{key:"title",name:"title",type:"字符型",typeColor:"blue",description:"标题"},{key:"width",name:"width",type:"整型",typeColor:"green",description:"宽度"},{key:"height",name:"height",type:"整型",typeColor:"green",description:"高度"},{key:"msg",name:"msg",type:"字符型",typeColor:"blue",description:"文本消息内容"},{key:"button",name:"button",type:"整型",typeColor:"green",description:"按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置"},{key:"timeout",name:"timeout",type:"整型",typeColor:"green",description:"超时时间(秒)。超时自动关闭窗口"},{key:"keep",name:"keep",type:"逻辑型",typeColor:"purple",description:"输入确认后,窗口是否保持"},{key:"tip",name:"tip",type:"字符型",typeColor:"blue",description:"单项输入的输入提示,单项输入时必须"}]),g=fe(`{ "vod_id": "hello world", "vod_name": "基础动作", "vod_tag": "action" }`),y=fe(`{ "actionId": "动作路由ID", "type": "input", "width": 450, "title": "输入窗口标题", "tip": "输入提示", "value": "输入初始值", "msg": "窗口文本说明", "button": 2, "selectData": "1:=快速输入一,2:=快速输入二,3:=快速输入三" }`),S=fe(`{ "actionId": "多项输入", "type": "multiInputX", "title": "多项输入(multiInputX)", "width": 716, "button": 3, "input": [ { "id": "item1", "name": "文件夹路径", "tip": "请输入文件夹路径", "selectData": "[folder]", "inputType": 0 }, { "id": "item2", "name": "多行输入", "tip": "请输入内容", "multiLine": 5 } ] }`);return(k,C)=>{const x=Pe("a-button"),E=Pe("a-tag"),_=Pe("a-card"),T=Pe("a-tab-pane"),D=Pe("a-tabs");return H(),J("div",Tyt,[O(_,{bordered:!1,class:"card-container","body-style":{padding:"20px"}},{title:de(()=>[L("div",Ayt,[O(et(eA),{class:"title-icon"}),C[0]||(C[0]=L("span",null,"Action 动作指令文档",-1))])]),extra:de(()=>[O(x,{type:"text",size:"small",onClick:r,class:"expand-btn"},{default:de(()=>[t.value?Me("",!0):(H(),Je(et(Yh),{key:0})),t.value?(H(),Je(et(K_),{key:1})):Me("",!0),We(" "+Ve(t.value?"收起":"展开"),1)]),_:1})]),default:de(()=>[L("div",Iyt,[L("div",Lyt,[L("div",Dyt,[C[1]||(C[1]=L("div",{class:"overview-label"},"总条目数",-1)),L("div",Pyt,Ve(a.value),1)]),L("div",Ryt,[C[2]||(C[2]=L("div",{class:"overview-label"},"动作类型",-1)),L("div",Myt,Ve(s.value.length),1)]),L("div",Oyt,[C[3]||(C[3]=L("div",{class:"overview-label"},"专项动作",-1)),L("div",$yt,Ve(l.value.length),1)])]),t.value?Me("",!0):(H(),J("div",Byt,[(H(!0),J(Ft,null,pn(c.value,P=>(H(),Je(E,{key:P.key,color:P.color,class:"nav-tag",onClick:M=>o(P.key)},{default:de(()=>[We(Ve(P.name),1)]),_:2},1032,["color","onClick"]))),128))])),t.value?(H(),J("div",Nyt,[L("div",Fyt,[L("h3",jyt,[O(et(yd),{class:"section-icon"}),C[4]||(C[4]=We(" 基础概念 ",-1))]),L("div",Vyt,[(H(!0),J(Ft,null,pn(d.value,P=>(H(),J("div",{class:"concept-item",key:P.key},[L("div",zyt,Ve(P.title),1),L("div",Uyt,Ve(P.description),1)]))),128))])]),L("div",Hyt,[L("h3",Wyt,[O(et(Lf),{class:"section-icon"}),C[5]||(C[5]=We(" 动作类型 ",-1))]),L("div",Gyt,[(H(!0),J(Ft,null,pn(h.value,P=>(H(),Je(_,{key:P.key,size:"small",class:"action-type-card",hoverable:!0},{default:de(()=>[L("div",Kyt,[O(E,{color:P.color},{default:de(()=>[We(Ve(P.name),1)]),_:2},1032,["color"]),L("span",qyt,Ve(P.type),1)]),L("div",Yyt,Ve(P.description),1),P.usage?(H(),J("div",Xyt,[C[6]||(C[6]=L("strong",null,"用途:",-1)),We(Ve(P.usage),1)])):Me("",!0)]),_:2},1024))),128))])]),L("div",Zyt,[L("h3",Jyt,[O(et(Q5),{class:"section-icon"}),C[7]||(C[7]=We(" 专项动作 ",-1))]),L("div",Qyt,[(H(!0),J(Ft,null,pn(p.value,P=>(H(),J("div",{key:P.key,class:"special-action-item"},[L("div",e3t,[L("code",t3t,Ve(P.actionId),1),L("span",n3t,Ve(P.name),1)]),L("div",r3t,Ve(P.description),1),P.params?(H(),J("div",i3t,[C[8]||(C[8]=L("strong",null,"参数:",-1)),(H(!0),J(Ft,null,pn(P.params,M=>(H(),J("span",{key:M,class:"param-tag"},Ve(M),1))),128))])):Me("",!0)]))),128))])]),L("div",o3t,[L("h3",s3t,[O(et(S0),{class:"section-icon"}),C[9]||(C[9]=We(" 配置参数 ",-1))]),L("div",a3t,[(H(!0),J(Ft,null,pn(m.value,P=>(H(),J("div",{key:P.key,class:"param-item"},[L("div",l3t,[L("code",u3t,Ve(P.name),1),O(E,{size:"small",color:P.typeColor},{default:de(()=>[We(Ve(P.type),1)]),_:2},1032,["color"])]),L("div",c3t,Ve(P.description),1)]))),128))])]),L("div",d3t,[L("h3",f3t,[O(et(bve),{class:"section-icon"}),C[10]||(C[10]=We(" 示例代码 ",-1))]),O(D,{type:"card",class:"example-tabs"},{default:de(()=>[O(T,{key:"basic",title:"基础动作"},{default:de(()=>[L("pre",h3t,Ve(g.value),1)]),_:1}),O(T,{key:"input",title:"单项输入"},{default:de(()=>[L("pre",p3t,Ve(y.value),1)]),_:1}),O(T,{key:"multi",title:"多项输入"},{default:de(()=>[L("pre",v3t,Ve(S.value),1)]),_:1})]),_:1})])])):Me("",!0)])]),_:1})])}}},g3t=_r(m3t,[["__scopeId","data-v-d143db2b"]]),y3t={class:"home-container"},b3t={class:"dashboard-header"},_3t={class:"header-content"},S3t={class:"welcome-section"},k3t={class:"dashboard-title"},x3t={class:"quick-stats"},C3t={class:"stat-item"},w3t={class:"stat-value"},E3t={class:"stat-item"},T3t={class:"stat-value"},A3t={class:"stat-item"},I3t={class:"dashboard-content"},L3t={class:"content-grid"},D3t={class:"dashboard-card watch-stats-card"},P3t={class:"card-header"},R3t={class:"card-title"},M3t={class:"card-content"},O3t={class:"dashboard-card update-log-card"},$3t={class:"card-header"},B3t={class:"card-title"},N3t={class:"card-content"},F3t={class:"timeline-content"},j3t={class:"timeline-header"},V3t={class:"version-tag"},z3t={class:"update-date"},U3t={class:"update-title"},H3t={class:"update-description"},W3t={class:"update-changes"},G3t={key:0,class:"more-changes"},K3t={class:"dashboard-card recommend-card"},q3t={class:"card-header"},Y3t={class:"card-title"},X3t={class:"card-content"},Z3t={class:"recommend-grid"},J3t=["onClick"],Q3t={class:"recommend-poster"},e2t={class:"recommend-overlay"},t2t={key:0,class:"trending-badge"},n2t={class:"recommend-info"},r2t={class:"recommend-title"},i2t={class:"recommend-meta"},o2t={class:"recommend-rating"},s2t={class:"recommend-tags"},a2t={class:"dashboard-card keywords-card"},l2t={class:"card-header"},u2t={class:"card-title"},c2t={class:"card-content"},d2t={class:"keywords-list"},f2t=["onClick"],h2t={class:"keyword-content"},p2t={class:"keyword-text"},v2t={class:"keyword-meta"},m2t={class:"keyword-count"},g2t={class:"dashboard-card system-status-card"},y2t={class:"card-header"},b2t={class:"card-title"},_2t={class:"card-content"},S2t={class:"status-grid"},k2t={class:"status-item"},x2t={class:"status-icon online"},C2t={class:"status-item"},w2t={class:"status-icon online"},E2t={class:"status-item"},T2t={class:"status-icon warning"},A2t={class:"status-item"},I2t={class:"status-icon online"},L2t={class:"update-log-modal"},D2t={class:"timeline-content"},P2t={class:"timeline-header"},R2t={class:"version-tag"},M2t={class:"update-date"},O2t={class:"update-title"},$2t={class:"update-description"},B2t={class:"update-changes"},N2t={class:"keywords-modal"},F2t={class:"keywords-list"},j2t=["onClick"],V2t={class:"keyword-content"},z2t={class:"keyword-text"},U2t={class:"keyword-meta"},H2t={class:"keyword-count"},W2t={__name:"Home",setup(e){Hh([U1e,tye,J1e,sye,yye,xye,Aye,Cye]);const t=BA(),n=_5(),r=El(),o=fe("week"),a=fe("hot"),s=fe({watchCount:0,totalWatchTime:0}),l=fe({watchCount:0,totalWatchTime:0}),c=fe([]),d=fe(0),h=fe([]),p=fe([]),m=fe([]),g=F(()=>{const ee=c.value.map(q=>q.count),W=c.value.map(q=>q.day);return{title:{text:o.value==="week"?"本周观看统计":"本月观看统计",textStyle:{fontSize:14,color:"#1D2129"}},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:function(q){const Q=q[0];return`${Q.name}
${Q.seriesName}: ${Q.value}集`}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:W,axisLabel:{color:"#86909C"}},yAxis:{type:"value",axisLabel:{color:"#86909C"}},series:[{name:"观看集数",type:"bar",data:ee,itemStyle:{color:"#165DFF"},barWidth:"60%"}]}}),y=ee=>h4.getUpdateTypeConfig()[ee]?.color||"#86909c",S=()=>h4.getUpdateTypeConfig(),k=ee=>({feature:"green",improvement:"blue",optimization:"orange",security:"red",bugfix:"purple",release:"gold"})[ee]||"gray",C=ee=>({电影:"#4A90E2",电视剧:"#50C878",动漫:"#FF6B6B",小说:"#9B59B6"})[ee]||"#86909C",x=ee=>({电影:"blue",电视剧:"green",动漫:"orange",小说:"purple"})[ee]||"gray",E=ee=>h4.formatDate(ee),_=ee=>ee>=1e4?(ee/1e4).toFixed(1)+"w":ee>=1e3?(ee/1e3).toFixed(1)+"k":ee.toString(),T=()=>{console.log("更新统计图表:",o.value)},D=()=>{switch(a.value){case"hot":p.value=p4.getHotRecommendations(8);break;case"trending":p.value=p4.getTrendingRecommendations(8);break;case"random":p.value=p4.getRandomRecommendations(8);break}},P=ee=>{console.log("点击推荐内容:",ee)},M=ee=>{console.log("点击热搜关键词:",ee)},$=fe(!1),I=fe(!1),N=fe([]),j=fe([]),U=()=>{N.value=h4.getAllUpdateLogs(),$.value=!0},z=()=>{j.value=p4.getAllKeywords(),I.value=!0},G=()=>{$.value=!1},X=()=>{I.value=!1},ie=()=>{s.value=aC.getTodayStats(),l.value=aC.getYesterdayStats(),c.value=aC.getWeekStats(),d.value=aC.calculateGrowthRate(),h.value=h4.getRecentUpdateLogs(4),D(),m.value=p4.getHotKeywords(8)};return vn(()=>{if(n.query._restoreSearch==="true"){const W=t.getPageState("search");if(W&&W.keyword&&!t.isStateExpired("search")){console.log("Home页面恢复搜索状态:",W),r.replace({name:"Video",query:{_restoreSearch:"true"}});return}const q={...n.query};delete q._restoreSearch,r.replace({query:q})}ie(),console.log("主页看板加载完成")}),(ee,W)=>{const q=Pe("a-option"),Q=Pe("a-select"),ne=Pe("a-link"),ae=Pe("a-tag"),re=Pe("a-timeline-item"),Ce=Pe("a-timeline"),we=Pe("a-modal");return H(),J(Ft,null,[L("div",y3t,[L("div",b3t,[L("div",_3t,[L("div",S3t,[L("h1",k3t,[O(et(l3),{class:"title-icon"}),W[4]||(W[4]=We(" 数据看板 ",-1))]),W[5]||(W[5]=L("p",{class:"dashboard-subtitle"},"欢迎回来,今天也要愉快地追剧哦~",-1))]),L("div",x3t,[L("div",C3t,[L("div",w3t,Ve(s.value.watchCount),1),W[6]||(W[6]=L("div",{class:"stat-label"},"今日观看",-1))]),L("div",E3t,[L("div",T3t,Ve(Math.round(s.value.totalWatchTime/60)),1),W[7]||(W[7]=L("div",{class:"stat-label"},"总时长(分钟)",-1))]),L("div",A3t,[L("div",{class:le(["stat-value",{positive:d.value>0,negative:d.value<0}])},Ve(d.value>0?"+":"")+Ve(d.value)+"% ",3),W[8]||(W[8]=L("div",{class:"stat-label"},"增长率",-1))])])])]),L("div",I3t,[L("div",L3t,[L("div",D3t,[L("div",P3t,[L("h3",R3t,[O(et(Tve),{class:"card-icon"}),W[9]||(W[9]=We(" 最近观看统计 ",-1))]),O(Q,{modelValue:o.value,"onUpdate:modelValue":W[0]||(W[0]=ve=>o.value=ve),size:"small",style:{width:"100px"},onChange:T},{default:de(()=>[O(q,{value:"week"},{default:de(()=>[...W[10]||(W[10]=[We("本周",-1)])]),_:1}),O(q,{value:"month"},{default:de(()=>[...W[11]||(W[11]=[We("本月",-1)])]),_:1})]),_:1},8,["modelValue"])]),L("div",M3t,[O(et(Dye),{class:"chart",option:g.value},null,8,["option"])])]),L("div",O3t,[L("div",$3t,[L("h3",B3t,[O(et(Py),{class:"card-icon"}),W[12]||(W[12]=We(" 更新日志 ",-1))]),O(ne,{onClick:U,size:"small"},{default:de(()=>[...W[13]||(W[13]=[We("查看全部",-1)])]),_:1})]),L("div",N3t,[O(Ce,null,{default:de(()=>[(H(!0),J(Ft,null,pn(h.value,ve=>(H(),Je(re,{key:ve.id,"dot-color":y(ve.type)},{default:de(()=>[L("div",F3t,[L("div",j3t,[L("span",V3t,Ve(ve.version),1),L("span",z3t,Ve(E(ve.date)),1)]),L("h4",U3t,Ve(ve.title),1),L("p",H3t,Ve(ve.description),1),L("div",W3t,[(H(!0),J(Ft,null,pn(ve.changes.slice(0,2),(me,xe)=>(H(),Je(ae,{key:xe,size:"small",color:k(ve.type)},{default:de(()=>[We(Ve(me),1)]),_:2},1032,["color"]))),128)),ve.changes.length>2?(H(),J("span",G3t," +"+Ve(ve.changes.length-2)+"项更新 ",1)):Me("",!0)])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),L("div",K3t,[L("div",q3t,[L("h3",Y3t,[O(et(Z5),{class:"card-icon"}),W[14]||(W[14]=We(" 猜你喜欢 ",-1))]),O(Q,{modelValue:a.value,"onUpdate:modelValue":W[1]||(W[1]=ve=>a.value=ve),size:"small",style:{width:"80px"},onChange:D},{default:de(()=>[O(q,{value:"hot"},{default:de(()=>[...W[15]||(W[15]=[We("热门",-1)])]),_:1}),O(q,{value:"trending"},{default:de(()=>[...W[16]||(W[16]=[We("趋势",-1)])]),_:1}),O(q,{value:"random"},{default:de(()=>[...W[17]||(W[17]=[We("随机",-1)])]),_:1})]),_:1},8,["modelValue"])]),L("div",X3t,[L("div",Z3t,[(H(!0),J(Ft,null,pn(p.value,ve=>(H(),J("div",{key:ve.id,class:"recommend-item",onClick:me=>P(ve)},[L("div",Q3t,[L("div",{class:"poster-placeholder",style:Ge({backgroundColor:C(ve.type)})},Ve(ve.title.substring(0,2)),5),L("div",e2t,[O(et(qa),{class:"play-icon"})]),ve.trending?(H(),J("div",t2t," 🔥 热门 ")):Me("",!0)]),L("div",n2t,[L("h4",r2t,Ve(ve.title),1),L("div",i2t,[O(ae,{size:"small",color:x(ve.type)},{default:de(()=>[We(Ve(ve.type),1)]),_:2},1032,["color"]),L("span",o2t,[O(et(OH)),We(" "+Ve(ve.rating),1)])]),L("div",s2t,[(H(!0),J(Ft,null,pn(ve.tags.slice(0,2),me=>(H(),Je(ae,{key:me,size:"mini",color:"gray"},{default:de(()=>[We(Ve(me),1)]),_:2},1024))),128))])])],8,J3t))),128))])])]),L("div",a2t,[L("div",l2t,[L("h3",u2t,[O(et(Ive),{class:"card-icon"}),W[18]||(W[18]=We(" 热搜关键词 ",-1))]),O(ne,{onClick:z,size:"small"},{default:de(()=>[...W[19]||(W[19]=[We("更多",-1)])]),_:1})]),L("div",c2t,[L("div",d2t,[(H(!0),J(Ft,null,pn(m.value,(ve,me)=>(H(),J("div",{key:ve.keyword,class:"keyword-item",onClick:xe=>M(ve)},[L("div",{class:le(["keyword-rank",{"top-three":me<3}])},Ve(me+1),3),L("div",h2t,[L("span",p2t,Ve(ve.keyword),1),L("div",v2t,[L("span",m2t,Ve(_(ve.count)),1),L("span",{class:le(["keyword-trend",ve.trend])},[ve.trend==="up"?(H(),Je(et(yV),{key:0})):ve.trend==="down"?(H(),Je(et(gV),{key:1})):(H(),Je(et(Am),{key:2}))],2)])])],8,f2t))),128))])])]),L("div",g2t,[L("div",y2t,[L("h3",b2t,[O(et(ZH),{class:"card-icon"}),W[20]||(W[20]=We(" 系统状态 ",-1))])]),L("div",_2t,[L("div",S2t,[L("div",k2t,[L("div",x2t,[O(et(Pc))]),W[21]||(W[21]=L("div",{class:"status-info"},[L("div",{class:"status-label"},"播放服务"),L("div",{class:"status-value"},"正常")],-1))]),L("div",C2t,[L("div",w2t,[O(et(Pc))]),W[22]||(W[22]=L("div",{class:"status-info"},[L("div",{class:"status-label"},"数据同步"),L("div",{class:"status-value"},"正常")],-1))]),L("div",E2t,[L("div",T2t,[O(et(rf))]),W[23]||(W[23]=L("div",{class:"status-info"},[L("div",{class:"status-label"},"存储空间"),L("div",{class:"status-value"},"85%")],-1))]),L("div",A2t,[L("div",I2t,[O(et(Pc))]),W[24]||(W[24]=L("div",{class:"status-info"},[L("div",{class:"status-label"},"网络连接"),L("div",{class:"status-value"},"良好")],-1))])])])]),O(g3t)])])]),O(we,{visible:$.value,"onUpdate:visible":W[2]||(W[2]=ve=>$.value=ve),title:"更新日志",width:"800px",footer:!1,onCancel:G},{default:de(()=>[L("div",L2t,[O(Ce,null,{default:de(()=>[(H(!0),J(Ft,null,pn(N.value,ve=>(H(),Je(re,{key:ve.id,"dot-color":y(ve.type)},{default:de(()=>[L("div",D2t,[L("div",P2t,[L("span",R2t,Ve(ve.version),1),L("span",M2t,Ve(E(ve.date)),1),O(ae,{size:"small",color:k(ve.type),class:"type-tag"},{default:de(()=>[We(Ve(S()[ve.type]?.label||ve.type),1)]),_:2},1032,["color"])]),L("h4",O2t,Ve(ve.title),1),L("p",$2t,Ve(ve.description),1),L("div",B2t,[(H(!0),J(Ft,null,pn(ve.changes,(me,xe)=>(H(),Je(ae,{key:xe,size:"small",color:k(ve.type),class:"change-tag"},{default:de(()=>[We(Ve(me),1)]),_:2},1032,["color"]))),128))])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),_:1},8,["visible"]),O(we,{visible:I.value,"onUpdate:visible":W[3]||(W[3]=ve=>I.value=ve),title:"热搜关键词",width:"600px",footer:!1,onCancel:X},{default:de(()=>[L("div",N2t,[L("div",F2t,[(H(!0),J(Ft,null,pn(j.value,(ve,me)=>(H(),J("div",{key:ve.keyword,class:"keyword-item",onClick:xe=>M(ve)},[L("div",{class:le(["keyword-rank",{"top-three":me<3}])},Ve(me+1),3),L("div",V2t,[L("span",z2t,Ve(ve.keyword),1),L("div",U2t,[L("span",H2t,Ve(_(ve.count)),1),L("span",{class:le(["keyword-trend",ve.trend])},[ve.trend==="up"?(H(),Je(et(yV),{key:0})):ve.trend==="down"?(H(),Je(et(gV),{key:1})):(H(),Je(et(Am),{key:2}))],2)])])],8,j2t))),128))])])]),_:1},8,["visible"])],64)}}},G2t=_r(W2t,[["__scopeId","data-v-217d9b8b"]]),K2t={class:"tag-container"},q2t={class:"search-section"},Y2t={class:"search-row"},X2t={class:"source-count"},Z2t={class:"sources-section"},J2t={key:0,class:"empty-state"},Q2t={key:1,class:"button-container"},e4t={class:"source-info"},t4t={class:"source-name"},n4t={key:0,class:"current-icon"},r4t={class:"dialog-footer"},i4t={class:"footer-left"},o4t={class:"footer-right"},s4t={__name:"SourceDialog",props:{visible:Boolean,title:String,sites:Array,currentSiteKey:String},emits:["update:visible","confirm-clear","confirm-change","change-rule"],setup(e,{emit:t}){const n=e,r=t,o=fe(""),a=fe({new_site:{}}),s=fe(null),l=fe(!1),c=E=>{const _=E.match(/\[(.*?)\]/);return _?_[1]:null},d={ds:"(DS)",hipy:"(hipy)",cat:"(cat)"},h=F(()=>{const E=n.sites.filter(T=>T.type===4).map(T=>c(T.name)).filter(T=>T!==null);return[...[...new Set(E)],"ds","hipy","cat"]}),p=E=>{E==="全部"?o.value="":d[E]?o.value=d[E]:o.value=`[${E}]`,l.value=!1},m=F(()=>{const E=o.value.toLowerCase();return n.sites.filter(_=>_.type===4).filter(_=>_.name.toLowerCase().includes(E))}),g=F(()=>window.innerWidth<768?"95%":"700px"),y=E=>{a.value.new_site=E,r("change-rule",E)},S=()=>{r("confirm-clear"),r("update:visible",!1)},k=()=>{a.value.new_site.key&&(r("confirm-change",a.value.new_site),r("update:visible",!1))},C=()=>{r("update:visible",!1)},x=()=>{_n(()=>{if(s.value&&s.value.length>0){const E=s.value[0];E&&E.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}})};return Pt(()=>n.visible,E=>{E&&n.currentSiteKey&&setTimeout(()=>{x()},100)}),Pt(m,()=>{n.visible&&n.currentSiteKey&&o.value.trim()!==""&&m.value.some(_=>_.key===n.currentSiteKey)&&setTimeout(()=>{x()},50)}),(E,_)=>{const T=Pe("a-button"),D=Pe("a-modal"),P=Pe("a-input");return H(),J(Ft,null,[O(D,{visible:l.value,title:`TAG [${h.value.length}]`,width:g.value,class:"tag_dialog","append-to-body":"",onCancel:_[1]||(_[1]=M=>l.value=!1)},{default:de(()=>[L("div",K2t,[O(T,{type:"secondary",class:"tag-item",onClick:_[0]||(_[0]=M=>p("全部"))},{default:de(()=>[..._[4]||(_[4]=[We(" 全部 ",-1)])]),_:1}),(H(!0),J(Ft,null,pn(h.value,(M,$)=>(H(),Je(T,{key:$,type:"secondary",class:"tag-item",onClick:I=>p(M)},{default:de(()=>[We(Ve(M),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["visible","title","width"]),O(D,{visible:e.visible,title:e.title,width:g.value,class:"change_rule_dialog","append-to-body":"","on-before-cancel":S},{footer:de(()=>[L("div",r4t,[L("div",i4t,[O(T,{type:"outline",status:"danger",onClick:S},{default:de(()=>[O(et(df)),_[7]||(_[7]=We(" 清除缓存 ",-1))]),_:1})]),L("div",o4t,[O(T,{onClick:C},{default:de(()=>[..._[8]||(_[8]=[We("取消",-1)])]),_:1}),O(T,{type:"primary",onClick:k,disabled:!a.value.new_site.key},{default:de(()=>[..._[9]||(_[9]=[We(" 确认换源 ",-1)])]),_:1},8,["disabled"])])])]),default:de(()=>[L("div",q2t,[L("div",Y2t,[O(P,{modelValue:o.value,"onUpdate:modelValue":_[2]||(_[2]=M=>o.value=M),placeholder:"搜索数据源名称...",class:"site_filter_input","allow-clear":""},{prefix:de(()=>[O(et(Em))]),_:1},8,["modelValue"]),O(T,{type:"primary",status:"success",class:"tag-button",onClick:_[3]||(_[3]=M=>l.value=!0)},{default:de(()=>[..._[5]||(_[5]=[We(" TAG ",-1)])]),_:1})]),L("div",X2t," 共 "+Ve(m.value.length)+" 个可用数据源 ",1)]),L("div",Z2t,[m.value.length===0?(H(),J("div",J2t,[O(et(sH)),_[6]||(_[6]=L("p",null,"未找到匹配的数据源",-1))])):(H(),J("div",Q2t,[(H(!0),J(Ft,null,pn(m.value,(M,$)=>(H(),J("div",{key:M.key||$,ref_for:!0,ref:M.key===e.currentSiteKey?"currentSourceRef":null,class:le(["btn-item",{selected:a.value.new_site.key===M.key,"current-source":M.key===e.currentSiteKey}])},[O(T,{type:"primary",status:a.value.new_site.key===M.key?"success":"primary",size:"medium",onClick:I=>y(M),class:le(["source-button",{"current-source-button":M.key===e.currentSiteKey}])},{default:de(()=>[L("div",e4t,[L("div",t4t,Ve(M.name),1),M.key===e.currentSiteKey?(H(),J("div",n4t,[O(et(Kh))])):Me("",!0)])]),_:2},1032,["status","onClick","class"])],2))),128))]))])]),_:1},8,["visible","title","width"])],64)}}},a4t=_r(s4t,[["__scopeId","data-v-105ac4df"]]),l4t={class:"breadcrumb-container"},u4t={class:"header-left"},c4t={class:"navigation-title"},d4t={class:"header-center"},f4t={class:"header-right"},h4t={class:"push-modal-content"},p4t={class:"push-description"},v4t={class:"push-hint"},m4t={class:"hint-item"},g4t={class:"hint-item"},y4t={__name:"Breadcrumb",props:{navigation_title:{type:String,default:"Video"},now_site_title:String},emits:["handleOpenForm","refreshPage","onSearch","handlePush","minimize","maximize","closeWindow"],setup(e,{emit:t}){const n=t,r=fe(""),o=fe(!1),a=fe(""),s=()=>{n("handleOpenForm")},l=()=>{n("refreshPage")},c=g=>{const y=typeof g=="string"?g:r.value;y&&typeof y=="string"&&y.trim()&&n("onSearch",y.trim())},d=()=>{o.value=!0,a.value=""},h=()=>{wt.info({content:"全局动作功能开发中,敬请期待!",duration:3e3})},p=()=>{if(!a.value.trim()){wt.error("推送内容不能为空");return}const g=a.value.split(` `).map(S=>S.trim()).filter(S=>S);if(g.length===0){wt.error("请输入有效的推送内容");return}const y=g[0];g.length>1&&wt.info(`检测到多行输入,将使用第一行内容: ${y}`),n("handlePush",y),o.value=!1,a.value=""},m=()=>{o.value=!1,a.value=""};return(g,y)=>{const S=Pe("icon-apps"),k=Pe("a-button"),C=Pe("icon-refresh"),x=Pe("a-input-search"),E=Pe("icon-send"),_=Pe("icon-thunderbolt"),T=Pe("a-textarea"),D=Pe("icon-info-circle"),P=Pe("icon-bulb"),M=Pe("a-modal");return H(),J(Ft,null,[L("div",l4t,[L("div",u4t,[L("span",c4t,Ve(e.navigation_title),1),O(k,{type:"outline",status:"success",shape:"round",onClick:s},{icon:de(()=>[O(S)]),default:de(()=>[We(Ve(e.now_site_title),1)]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:l},{icon:de(()=>[O(C)]),default:de(()=>[...y[3]||(y[3]=[We("重载源",-1)])]),_:1})]),L("div",d4t,[O(x,{modelValue:r.value,"onUpdate:modelValue":y[0]||(y[0]=$=>r.value=$),placeholder:"搜索视频","enter-button":"",onSearch:c,onPressEnter:c},null,8,["modelValue"])]),L("div",f4t,[O(k,{type:"outline",status:"success",shape:"round",onClick:d},{icon:de(()=>[O(E)]),default:de(()=>[...y[4]||(y[4]=[We("推送",-1)])]),_:1}),O(k,{type:"outline",status:"success",shape:"round",onClick:h},{icon:de(()=>[O(_)]),default:de(()=>[...y[5]||(y[5]=[We("全局动作",-1)])]),_:1}),dt(g.$slots,"default",{},void 0,!0)])]),O(M,{visible:o.value,"onUpdate:visible":y[2]||(y[2]=$=>o.value=$),title:"推送内容",width:600,onOk:p,onCancel:m,"ok-text":"确认推送","cancel-text":"取消","ok-button-props":{disabled:!a.value.trim()}},{default:de(()=>[L("div",h4t,[L("div",p4t,[O(E,{class:"push-icon"}),y[6]||(y[6]=L("span",null,"请输入要推送的内容(vod_id):",-1))]),O(T,{modelValue:a.value,"onUpdate:modelValue":y[1]||(y[1]=$=>a.value=$),placeholder:`请输入要推送的内容... 支持多行输入,每行一个vod_id`,rows:6,"max-length":1e3,"show-word-limit":"","allow-clear":"",autofocus:"",class:"push-textarea"},null,8,["modelValue"]),L("div",v4t,[L("div",m4t,[O(D,{class:"hint-icon"}),y[7]||(y[7]=L("span",null,"输入的内容将作为vod_id调用push_agent源的详情接口",-1))]),L("div",g4t,[O(P,{class:"hint-icon"}),y[8]||(y[8]=L("span",null,"支持多行输入,系统将使用第一行非空内容作为vod_id",-1))])])])]),_:1},8,["visible","ok-button-props"])],64)}}},b4t=_r(y4t,[["__scopeId","data-v-20e05b46"]]);function Nye(e,t){return function(){return e.apply(t,arguments)}}const{toString:_4t}=Object.prototype,{getPrototypeOf:aG}=Object,{iterator:NA,toStringTag:Fye}=Symbol,FA=(e=>t=>{const n=_4t.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Bd=e=>(e=e.toLowerCase(),t=>FA(t)===e),jA=e=>t=>typeof t===e,{isArray:v3}=Array,jy=jA("undefined");function uS(e){return e!==null&&!jy(e)&&e.constructor!==null&&!jy(e.constructor)&&Tu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const jye=Bd("ArrayBuffer");function S4t(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&jye(e.buffer),t}const k4t=jA("string"),Tu=jA("function"),Vye=jA("number"),cS=e=>e!==null&&typeof e=="object",x4t=e=>e===!0||e===!1,uE=e=>{if(FA(e)!=="object")return!1;const t=aG(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Fye in e)&&!(NA in e)},C4t=e=>{if(!cS(e)||uS(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},w4t=Bd("Date"),E4t=Bd("File"),T4t=Bd("Blob"),A4t=Bd("FileList"),I4t=e=>cS(e)&&Tu(e.pipe),L4t=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tu(e.append)&&((t=FA(e))==="formdata"||t==="object"&&Tu(e.toString)&&e.toString()==="[object FormData]"))},D4t=Bd("URLSearchParams"),[P4t,R4t,M4t,O4t]=["ReadableStream","Request","Response","Headers"].map(Bd),$4t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function dS(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),v3(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Zv=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Uye=e=>!jy(e)&&e!==Zv;function Iz(){const{caseless:e,skipUndefined:t}=Uye(this)&&this||{},n={},r=(o,a)=>{const s=e&&zye(n,a)||a;uE(n[s])&&uE(o)?n[s]=Iz(n[s],o):uE(o)?n[s]=Iz({},o):v3(o)?n[s]=o.slice():(!t||!jy(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o(dS(t,(o,a)=>{n&&Tu(o)?e[a]=Nye(o,n):e[a]=o},{allOwnKeys:r}),e),N4t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),F4t=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},j4t=(e,t,n,r)=>{let o,a,s;const l={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)s=o[a],(!r||r(s,e,t))&&!l[s]&&(t[s]=e[s],l[s]=!0);e=n!==!1&&aG(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},V4t=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},z4t=e=>{if(!e)return null;if(v3(e))return e;let t=e.length;if(!Vye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},U4t=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&aG(Uint8Array)),H4t=(e,t)=>{const r=(e&&e[NA]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},W4t=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},G4t=Bd("HTMLFormElement"),K4t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Pae=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),q4t=Bd("RegExp"),Hye=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};dS(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},Y4t=e=>{Hye(e,(t,n)=>{if(Tu(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Tu(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},X4t=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return v3(e)?r(e):r(String(e).split(t)),n},Z4t=()=>{},J4t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Q4t(e){return!!(e&&Tu(e.append)&&e[Fye]==="FormData"&&e[NA])}const ebt=e=>{const t=new Array(10),n=(r,o)=>{if(cS(r)){if(t.indexOf(r)>=0)return;if(uS(r))return r;if(!("toJSON"in r)){t[o]=r;const a=v3(r)?[]:{};return dS(r,(s,l)=>{const c=n(s,o+1);!jy(c)&&(a[l]=c)}),t[o]=void 0,a}}return r};return n(e,0)},tbt=Bd("AsyncFunction"),nbt=e=>e&&(cS(e)||Tu(e))&&Tu(e.then)&&Tu(e.catch),Wye=((e,t)=>e?setImmediate:t?((n,r)=>(Zv.addEventListener("message",({source:o,data:a})=>{o===Zv&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Zv.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Tu(Zv.postMessage)),rbt=typeof queueMicrotask<"u"?queueMicrotask.bind(Zv):typeof process<"u"&&process.nextTick||Wye,ibt=e=>e!=null&&Tu(e[NA]),Qt={isArray:v3,isArrayBuffer:jye,isBuffer:uS,isFormData:L4t,isArrayBufferView:S4t,isString:k4t,isNumber:Vye,isBoolean:x4t,isObject:cS,isPlainObject:uE,isEmptyObject:C4t,isReadableStream:P4t,isRequest:R4t,isResponse:M4t,isHeaders:O4t,isUndefined:jy,isDate:w4t,isFile:E4t,isBlob:T4t,isRegExp:q4t,isFunction:Tu,isStream:I4t,isURLSearchParams:D4t,isTypedArray:U4t,isFileList:A4t,forEach:dS,merge:Iz,extend:B4t,trim:$4t,stripBOM:N4t,inherits:F4t,toFlatObject:j4t,kindOf:FA,kindOfTest:Bd,endsWith:V4t,toArray:z4t,forEachEntry:H4t,matchAll:W4t,isHTMLForm:G4t,hasOwnProperty:Pae,hasOwnProp:Pae,reduceDescriptors:Hye,freezeMethods:Y4t,toObjectSet:X4t,toCamelCase:K4t,noop:Z4t,toFiniteNumber:J4t,findKey:zye,global:Zv,isContextDefined:Uye,isSpecCompliantForm:Q4t,toJSONObject:ebt,isAsyncFn:tbt,isThenable:nbt,setImmediate:Wye,asap:rbt,isIterable:ibt};function Qr(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Qt.inherits(Qr,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:Qt.toJSONObject(this.config),code:this.code,status:this.status}}});const Gye=Qr.prototype,Kye={};["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=>{Kye[e]={value:e}});Object.defineProperties(Qr,Kye);Object.defineProperty(Gye,"isAxiosError",{value:!0});Qr.from=(e,t,n,r,o,a)=>{const s=Object.create(Gye);Qt.toFlatObject(e,s,function(h){return h!==Error.prototype},d=>d!=="isAxiosError");const l=e&&e.message?e.message:"Error",c=t==null&&e?e.code:t;return Qr.call(s,l,c,n,r,o),e&&s.cause==null&&Object.defineProperty(s,"cause",{value:e,configurable:!0}),s.name=e&&e.name||"Error",a&&Object.assign(s,a),s};const obt=null;function Lz(e){return Qt.isPlainObject(e)||Qt.isArray(e)}function qye(e){return Qt.endsWith(e,"[]")?e.slice(0,-2):e}function Rae(e,t,n){return e?e.concat(t).map(function(o,a){return o=qye(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function sbt(e){return Qt.isArray(e)&&!e.some(Lz)}const abt=Qt.toFlatObject(Qt,{},null,function(t){return/^is[A-Z]/.test(t)});function VA(e,t,n){if(!Qt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Qt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,k){return!Qt.isUndefined(k[S])});const r=n.metaTokens,o=n.visitor||h,a=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&Qt.isSpecCompliantForm(t);if(!Qt.isFunction(o))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(Qt.isDate(y))return y.toISOString();if(Qt.isBoolean(y))return y.toString();if(!c&&Qt.isBlob(y))throw new Qr("Blob is not supported. Use a Buffer instead.");return Qt.isArrayBuffer(y)||Qt.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function h(y,S,k){let C=y;if(y&&!k&&typeof y=="object"){if(Qt.endsWith(S,"{}"))S=r?S:S.slice(0,-2),y=JSON.stringify(y);else if(Qt.isArray(y)&&sbt(y)||(Qt.isFileList(y)||Qt.endsWith(S,"[]"))&&(C=Qt.toArray(y)))return S=qye(S),C.forEach(function(E,_){!(Qt.isUndefined(E)||E===null)&&t.append(s===!0?Rae([S],_,a):s===null?S:S+"[]",d(E))}),!1}return Lz(y)?!0:(t.append(Rae(k,S,a),d(y)),!1)}const p=[],m=Object.assign(abt,{defaultVisitor:h,convertValue:d,isVisitable:Lz});function g(y,S){if(!Qt.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(y),Qt.forEach(y,function(C,x){(!(Qt.isUndefined(C)||C===null)&&o.call(t,C,Qt.isString(x)?x.trim():x,S,m))===!0&&g(C,S?S.concat(x):[x])}),p.pop()}}if(!Qt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Mae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function lG(e,t){this._pairs=[],e&&VA(e,this,t)}const Yye=lG.prototype;Yye.append=function(t,n){this._pairs.push([t,n])};Yye.toString=function(t){const n=t?function(r){return t.call(this,r,Mae)}:Mae;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function lbt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Xye(e,t,n){if(!t)return e;const r=n&&n.encode||lbt;Qt.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=Qt.isURLSearchParams(t)?t.toString():new lG(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Oae{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Qt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Zye={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},ubt=typeof URLSearchParams<"u"?URLSearchParams:lG,cbt=typeof FormData<"u"?FormData:null,dbt=typeof Blob<"u"?Blob:null,fbt={isBrowser:!0,classes:{URLSearchParams:ubt,FormData:cbt,Blob:dbt},protocols:["http","https","file","blob","url","data"]},uG=typeof window<"u"&&typeof document<"u",Dz=typeof navigator=="object"&&navigator||void 0,hbt=uG&&(!Dz||["ReactNative","NativeScript","NS"].indexOf(Dz.product)<0),pbt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",vbt=uG&&window.location.href||"http://localhost",mbt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:uG,hasStandardBrowserEnv:hbt,hasStandardBrowserWebWorkerEnv:pbt,navigator:Dz,origin:vbt},Symbol.toStringTag,{value:"Module"})),_l={...mbt,...fbt};function gbt(e,t){return VA(e,new _l.classes.URLSearchParams,{visitor:function(n,r,o,a){return _l.isNode&&Qt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function ybt(e){return Qt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function bbt(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return s=!s&&Qt.isArray(o)?o.length:s,c?(Qt.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!Qt.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&Qt.isArray(o[s])&&(o[s]=bbt(o[s])),!l)}if(Qt.isFormData(e)&&Qt.isFunction(e.entries)){const n={};return Qt.forEachEntry(e,(r,o)=>{t(ybt(r),o,n,0)}),n}return null}function _bt(e,t,n){if(Qt.isString(e))try{return(t||JSON.parse)(e),Qt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const fS={transitional:Zye,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=Qt.isObject(t);if(a&&Qt.isHTMLForm(t)&&(t=new FormData(t)),Qt.isFormData(t))return o?JSON.stringify(Jye(t)):t;if(Qt.isArrayBuffer(t)||Qt.isBuffer(t)||Qt.isStream(t)||Qt.isFile(t)||Qt.isBlob(t)||Qt.isReadableStream(t))return t;if(Qt.isArrayBufferView(t))return t.buffer;if(Qt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let l;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gbt(t,this.formSerializer).toString();if((l=Qt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return VA(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),_bt(t)):t}],transformResponse:[function(t){const n=this.transitional||fS.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Qt.isResponse(t)||Qt.isReadableStream(t))return t;if(t&&Qt.isString(t)&&(r&&!this.responseType||o)){const s=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(l){if(s)throw l.name==="SyntaxError"?Qr.from(l,Qr.ERR_BAD_RESPONSE,this,null,this.response):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:_l.classes.FormData,Blob:_l.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Qt.forEach(["delete","get","head","post","put","patch"],e=>{fS.headers[e]={}});const Sbt=Qt.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"]),kbt=e=>{const t={};let n,r,o;return e&&e.split(` `).forEach(function(s){o=s.indexOf(":"),n=s.substring(0,o).trim().toLowerCase(),r=s.substring(o+1).trim(),!(!n||t[n]&&Sbt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},$ae=Symbol("internals");function v4(e){return e&&String(e).trim().toLowerCase()}function cE(e){return e===!1||e==null?e:Qt.isArray(e)?e.map(cE):String(e)}function xbt(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Cbt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function TF(e,t,n,r,o){if(Qt.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Qt.isString(t)){if(Qt.isString(r))return t.indexOf(r)!==-1;if(Qt.isRegExp(r))return r.test(t)}}function wbt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Ebt(e,t){const n=Qt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,a,s){return this[r].call(this,t,o,a,s)},configurable:!0})})}let Au=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,c,d){const h=v4(c);if(!h)throw new Error("header name must be a non-empty string");const p=Qt.findKey(o,h);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||c]=cE(l))}const s=(l,c)=>Qt.forEach(l,(d,h)=>a(d,h,c));if(Qt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(Qt.isString(t)&&(t=t.trim())&&!Cbt(t))s(kbt(t),n);else if(Qt.isObject(t)&&Qt.isIterable(t)){let l={},c,d;for(const h of t){if(!Qt.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[d=h[0]]=(c=l[d])?Qt.isArray(c)?[...c,h[1]]:[c,h[1]]:h[1]}s(l,n)}else t!=null&&a(n,t,r);return this}get(t,n){if(t=v4(t),t){const r=Qt.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return xbt(o);if(Qt.isFunction(n))return n.call(this,o,r);if(Qt.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=v4(t),t){const r=Qt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||TF(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=v4(s),s){const l=Qt.findKey(r,s);l&&(!n||TF(r,r[l],l,n))&&(delete r[l],o=!0)}}return Qt.isArray(t)?t.forEach(a):a(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const a=n[r];(!t||TF(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return Qt.forEach(this,(o,a)=>{const s=Qt.findKey(r,a);if(s){n[s]=cE(o),delete n[a];return}const l=t?wbt(a):String(a).trim();l!==a&&delete n[a],n[l]=cE(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Qt.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Qt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` `)}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,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[$ae]=this[$ae]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=v4(s);r[l]||(Ebt(o,s),r[l]=!0)}return Qt.isArray(t)?t.forEach(a):a(t),this}};Au.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Qt.reduceDescriptors(Au.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Qt.freezeMethods(Au);function AF(e,t){const n=this||fS,r=t||n,o=Au.from(r.headers);let a=r.data;return Qt.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Qye(e){return!!(e&&e.__CANCEL__)}function m3(e,t,n){Qr.call(this,e??"canceled",Qr.ERR_CANCELED,t,n),this.name="CanceledError"}Qt.inherits(m3,Qr,{__CANCEL__:!0});function e3e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Qr("Request failed with status code "+n.status,[Qr.ERR_BAD_REQUEST,Qr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Tbt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Abt(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,a=0,s;return t=t!==void 0?t:1e3,function(c){const d=Date.now(),h=r[a];s||(s=d),n[o]=c,r[o]=d;let p=a,m=0;for(;p!==o;)m+=n[p++],p=p%e;if(o=(o+1)%e,o===a&&(a=(a+1)%e),d-s{n=h,o=null,a&&(clearTimeout(a),a=null),e(...d)};return[(...d)=>{const h=Date.now(),p=h-n;p>=r?s(d,h):(o=d,a||(a=setTimeout(()=>{a=null,s(o)},r-p)))},()=>o&&s(o)]}const xT=(e,t,n=3)=>{let r=0;const o=Abt(50,250);return Ibt(a=>{const s=a.loaded,l=a.lengthComputable?a.total:void 0,c=s-r,d=o(c),h=s<=l;r=s;const p={loaded:s,total:l,progress:l?s/l:void 0,bytes:c,rate:d||void 0,estimated:d&&l&&h?(l-s)/d:void 0,event:a,lengthComputable:l!=null,[t?"download":"upload"]:!0};e(p)},n)},Bae=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Nae=e=>(...t)=>Qt.asap(()=>e(...t)),Lbt=_l.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,_l.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(_l.origin),_l.navigator&&/(msie|trident)/i.test(_l.navigator.userAgent)):()=>!0,Dbt=_l.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];Qt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),Qt.isString(r)&&s.push("path="+r),Qt.isString(o)&&s.push("domain="+o),a===!0&&s.push("secure"),document.cookie=s.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 Pbt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Rbt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function t3e(e,t,n){let r=!Pbt(t);return e&&(r||n==!1)?Rbt(e,t):t}const Fae=e=>e instanceof Au?{...e}:e;function Mm(e,t){t=t||{};const n={};function r(d,h,p,m){return Qt.isPlainObject(d)&&Qt.isPlainObject(h)?Qt.merge.call({caseless:m},d,h):Qt.isPlainObject(h)?Qt.merge({},h):Qt.isArray(h)?h.slice():h}function o(d,h,p,m){if(Qt.isUndefined(h)){if(!Qt.isUndefined(d))return r(void 0,d,p,m)}else return r(d,h,p,m)}function a(d,h){if(!Qt.isUndefined(h))return r(void 0,h)}function s(d,h){if(Qt.isUndefined(h)){if(!Qt.isUndefined(d))return r(void 0,d)}else return r(void 0,h)}function l(d,h,p){if(p in t)return r(d,h);if(p in e)return r(void 0,d)}const c={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:l,headers:(d,h,p)=>o(Fae(d),Fae(h),p,!0)};return Qt.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||o,m=p(e[h],t[h],h);Qt.isUndefined(m)&&p!==l||(n[h]=m)}),n}const n3e=e=>{const t=Mm({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Au.from(s),t.url=Xye(t3e(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),Qt.isFormData(n)){if(_l.hasStandardBrowserEnv||_l.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(Qt.isFunction(n.getHeaders)){const c=n.getHeaders(),d=["content-type","content-length"];Object.entries(c).forEach(([h,p])=>{d.includes(h.toLowerCase())&&s.set(h,p)})}}if(_l.hasStandardBrowserEnv&&(r&&Qt.isFunction(r)&&(r=r(t)),r||r!==!1&&Lbt(t.url))){const c=o&&a&&Dbt.read(a);c&&s.set(o,c)}return t},Mbt=typeof XMLHttpRequest<"u",Obt=Mbt&&function(e){return new Promise(function(n,r){const o=n3e(e);let a=o.data;const s=Au.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=o,h,p,m,g,y;function S(){g&&g(),y&&y(),o.cancelToken&&o.cancelToken.unsubscribe(h),o.signal&&o.signal.removeEventListener("abort",h)}let k=new XMLHttpRequest;k.open(o.method.toUpperCase(),o.url,!0),k.timeout=o.timeout;function C(){if(!k)return;const E=Au.from("getAllResponseHeaders"in k&&k.getAllResponseHeaders()),T={data:!l||l==="text"||l==="json"?k.responseText:k.response,status:k.status,statusText:k.statusText,headers:E,config:e,request:k};e3e(function(P){n(P),S()},function(P){r(P),S()},T),k=null}"onloadend"in k?k.onloadend=C:k.onreadystatechange=function(){!k||k.readyState!==4||k.status===0&&!(k.responseURL&&k.responseURL.indexOf("file:")===0)||setTimeout(C)},k.onabort=function(){k&&(r(new Qr("Request aborted",Qr.ECONNABORTED,e,k)),k=null)},k.onerror=function(_){const T=_&&_.message?_.message:"Network Error",D=new Qr(T,Qr.ERR_NETWORK,e,k);D.event=_||null,r(D),k=null},k.ontimeout=function(){let _=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const T=o.transitional||Zye;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new Qr(_,T.clarifyTimeoutError?Qr.ETIMEDOUT:Qr.ECONNABORTED,e,k)),k=null},a===void 0&&s.setContentType(null),"setRequestHeader"in k&&Qt.forEach(s.toJSON(),function(_,T){k.setRequestHeader(T,_)}),Qt.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),d&&([m,y]=xT(d,!0),k.addEventListener("progress",m)),c&&k.upload&&([p,g]=xT(c),k.upload.addEventListener("progress",p),k.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(h=E=>{k&&(r(!E||E.type?new m3(null,e,k):E),k.abort(),k=null)},o.cancelToken&&o.cancelToken.subscribe(h),o.signal&&(o.signal.aborted?h():o.signal.addEventListener("abort",h)));const x=Tbt(o.url);if(x&&_l.protocols.indexOf(x)===-1){r(new Qr("Unsupported protocol "+x+":",Qr.ERR_BAD_REQUEST,e));return}k.send(a||null)})},$bt=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const a=function(d){if(!o){o=!0,l();const h=d instanceof Error?d:this.reason;r.abort(h instanceof Qr?h:new m3(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new Qr(`timeout ${t} of ms exceeded`,Qr.ETIMEDOUT))},t);const l=()=>{e&&(s&&clearTimeout(s),s=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(a):d.removeEventListener("abort",a)}),e=null)};e.forEach(d=>d.addEventListener("abort",a));const{signal:c}=r;return c.unsubscribe=()=>Qt.asap(l),c}},Bbt=function*(e,t){let n=e.byteLength;if(n{const o=Nbt(e,t);let a=0,s,l=c=>{s||(s=!0,r&&r(c))};return new ReadableStream({async pull(c){try{const{done:d,value:h}=await o.next();if(d){l(),c.close();return}let p=h.byteLength;if(n){let m=a+=p;n(m)}c.enqueue(new Uint8Array(h))}catch(d){throw l(d),d}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},Vae=64*1024,{isFunction:lC}=Qt,r3e=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(Qt.global),{ReadableStream:zae,TextEncoder:Uae}=Qt.global,Hae=(e,...t)=>{try{return!!e(...t)}catch{return!1}},jbt=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},r3e,e),o=lC(t),a=lC(n),s=lC(r);if(!o)return!1;const l=o&&lC(zae),c=o&&(typeof Uae=="function"?(y=>S=>y.encode(S))(new Uae):async y=>new Uint8Array(await new n(y).arrayBuffer())),d=a&&l&&Hae(()=>{let y=!1;const S=new n(_l.origin,{body:new zae,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!S}),h=s&&l&&Hae(()=>Qt.isReadableStream(new r("").body)),p={stream:h&&(y=>y.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(y=>{!p[y]&&(p[y]=(S,k)=>{let C=S&&S[y];if(C)return C.call(S);throw new Qr(`Response type '${y}' is not supported`,Qr.ERR_NOT_SUPPORT,k)})});const m=async y=>{if(y==null)return 0;if(Qt.isBlob(y))return y.size;if(Qt.isSpecCompliantForm(y))return(await new n(_l.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(Qt.isArrayBufferView(y)||Qt.isArrayBuffer(y))return y.byteLength;if(Qt.isURLSearchParams(y)&&(y=y+""),Qt.isString(y))return(await c(y)).byteLength},g=async(y,S)=>{const k=Qt.toFiniteNumber(y.getContentLength());return k??m(S)};return async y=>{let{url:S,method:k,data:C,signal:x,cancelToken:E,timeout:_,onDownloadProgress:T,onUploadProgress:D,responseType:P,headers:M,withCredentials:$="same-origin",fetchOptions:I}=n3e(y);P=P?(P+"").toLowerCase():"text";let N=$bt([x,E&&E.toAbortSignal()],_),j=null;const U=N&&N.unsubscribe&&(()=>{N.unsubscribe()});let z;try{if(D&&d&&k!=="get"&&k!=="head"&&(z=await g(M,C))!==0){let q=new n(S,{method:"POST",body:C,duplex:"half"}),Q;if(Qt.isFormData(C)&&(Q=q.headers.get("content-type"))&&M.setContentType(Q),q.body){const[ne,ae]=Bae(z,xT(Nae(D)));C=jae(q.body,Vae,ne,ae)}}Qt.isString($)||($=$?"include":"omit");const G=a&&"credentials"in n.prototype,X={...I,signal:N,method:k.toUpperCase(),headers:M.normalize().toJSON(),body:C,duplex:"half",credentials:G?$:void 0};j=a&&new n(S,X);let ie=await(a?t(j,I):t(S,X));const ee=h&&(P==="stream"||P==="response");if(h&&(T||ee&&U)){const q={};["status","statusText","headers"].forEach(re=>{q[re]=ie[re]});const Q=Qt.toFiniteNumber(ie.headers.get("content-length")),[ne,ae]=T&&Bae(Q,xT(Nae(T),!0))||[];ie=new r(jae(ie.body,Vae,ne,()=>{ae&&ae(),U&&U()}),q)}P=P||"text";let W=await p[Qt.findKey(p,P)||"text"](ie,y);return!ee&&U&&U(),await new Promise((q,Q)=>{e3e(q,Q,{data:W,headers:Au.from(ie.headers),status:ie.status,statusText:ie.statusText,config:y,request:j})})}catch(G){throw U&&U(),G&&G.name==="TypeError"&&/Load failed|fetch/i.test(G.message)?Object.assign(new Qr("Network Error",Qr.ERR_NETWORK,y,j),{cause:G.cause||G}):Qr.from(G,G&&G.code,y,j)}}},Vbt=new Map,i3e=e=>{let t=Qt.merge.call({skipUndefined:!0},r3e,e?e.env:null);const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let s=a.length,l=s,c,d,h=Vbt;for(;l--;)c=a[l],d=h.get(c),d===void 0&&h.set(c,d=l?new Map:jbt(t)),h=d;return d};i3e();const Pz={http:obt,xhr:Obt,fetch:{get:i3e}};Qt.forEach(Pz,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wae=e=>`- ${e}`,zbt=e=>Qt.isFunction(e)||e===null||e===!1,o3e={getAdapter:(e,t)=>{e=Qt.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let s=0;s`adapter ${c} `+(d===!1?"is not supported by the environment":"is not available in the build"));let l=n?s.length>1?`since : `+s.map(Wae).join(` `):" "+Wae(s[0]):"as no adapter specified";throw new Qr("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:Pz};function IF(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new m3(null,e)}function Gae(e){return IF(e),e.headers=Au.from(e.headers),e.data=AF.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),o3e.getAdapter(e.adapter||fS.adapter,e)(e).then(function(r){return IF(e),r.data=AF.call(e,e.transformResponse,r),r.headers=Au.from(r.headers),r},function(r){return Qye(r)||(IF(e),r&&r.response&&(r.response.data=AF.call(e,e.transformResponse,r.response),r.response.headers=Au.from(r.response.headers))),Promise.reject(r)})}const s3e="1.12.0",zA={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zA[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kae={};zA.transitional=function(t,n,r){function o(a,s){return"[Axios v"+s3e+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new Qr(o(s," has been removed"+(n?" in "+n:"")),Qr.ERR_DEPRECATED);return n&&!Kae[s]&&(Kae[s]=!0,console.warn(o(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,l):!0}};zA.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Ubt(e,t,n){if(typeof e!="object")throw new Qr("options must be an object",Qr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],s=t[a];if(s){const l=e[a],c=l===void 0||s(l,a,e);if(c!==!0)throw new Qr("option "+a+" must be "+c,Qr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Qr("Unknown option "+a,Qr.ERR_BAD_OPTION)}}const dE={assertOptions:Ubt,validators:zA},Xd=dE.validators;let mm=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Oae,response:new Oae}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const a=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=Mm(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&dE.assertOptions(r,{silentJSONParsing:Xd.transitional(Xd.boolean),forcedJSONParsing:Xd.transitional(Xd.boolean),clarifyTimeoutError:Xd.transitional(Xd.boolean)},!1),o!=null&&(Qt.isFunction(o)?n.paramsSerializer={serialize:o}:dE.assertOptions(o,{encode:Xd.function,serialize:Xd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),dE.assertOptions(n,{baseUrl:Xd.spelling("baseURL"),withXsrfToken:Xd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&Qt.merge(a.common,a[n.method]);a&&Qt.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=Au.concat(s,a);const l=[];let c=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(c=c&&S.synchronous,l.unshift(S.fulfilled,S.rejected))});const d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let h,p=0,m;if(!c){const y=[Gae.bind(this),void 0];for(y.unshift(...l),y.push(...d),m=y.length,h=Promise.resolve(n);p{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](o);r._listeners=null}),this.promise.then=o=>{let a;const s=new Promise(l=>{r.subscribe(l),a=l}).then(o);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,l){r.reason||(r.reason=new m3(a,s,l),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new a3e(function(o){t=o}),cancel:t}}};function Wbt(e){return function(n){return e.apply(null,n)}}function Gbt(e){return Qt.isObject(e)&&e.isAxiosError===!0}const Rz={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(Rz).forEach(([e,t])=>{Rz[t]=e});function l3e(e){const t=new mm(e),n=Nye(mm.prototype.request,t);return Qt.extend(n,mm.prototype,t,{allOwnKeys:!0}),Qt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return l3e(Mm(e,o))},n}const lo=l3e(fS);lo.Axios=mm;lo.CanceledError=m3;lo.CancelToken=Hbt;lo.isCancel=Qye;lo.VERSION=s3e;lo.toFormData=VA;lo.AxiosError=Qr;lo.Cancel=lo.CanceledError;lo.all=function(t){return Promise.all(t)};lo.spread=Wbt;lo.isAxiosError=Gbt;lo.mergeConfig=Mm;lo.AxiosHeaders=Au;lo.formToJSON=e=>Jye(Qt.isHTMLForm(e)?new FormData(e):e);lo.getAdapter=o3e.getAdapter;lo.HttpStatusCode=Rz;lo.default=lo;const{Axios:Kbt,AxiosError:qbt,CanceledError:Ybt,isCancel:Xbt,CancelToken:Zbt,VERSION:Jbt,all:Qbt,Cancel:e_t,isAxiosError:t_t,spread:n_t,toFormData:r_t,AxiosHeaders:i_t,HttpStatusCode:o_t,formToJSON:s_t,getAdapter:a_t,mergeConfig:l_t}=lo,u3e=Object.freeze(Object.defineProperty({__proto__:null,Axios:Kbt,AxiosError:qbt,AxiosHeaders:i_t,Cancel:e_t,CancelToken:Zbt,CanceledError:Ybt,HttpStatusCode:o_t,VERSION:Jbt,all:Qbt,default:lo,formToJSON:s_t,getAdapter:a_t,isAxiosError:t_t,isCancel:Xbt,mergeConfig:l_t,spread:n_t,toFormData:r_t},Symbol.toStringTag,{value:"Module"})),LF={BASE_URL:"http://localhost:5707",TIMEOUT:3e4,HEADERS:{"Content-Type":"application/json",Accept:"application/json"}},cG={MODULE:"/api",PROXY:"/proxy",PARSE:"/parse"},UA={PLAY:"play",CATEGORY:"category",DETAIL:"detail",ACTION:"action"},u_t={SUCCESS:200},c3e={DEFAULT_PAGE:1},dG=lo.create({baseURL:LF.BASE_URL,timeout:LF.TIMEOUT,headers:LF.HEADERS});dG.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e.method==="get"&&(e.params={...e.params,_t:Date.now()}),console.log("API Request:",e.method?.toUpperCase(),e.url,e.params||e.data),e},e=>(console.error("Request Error:",e),Promise.reject(e)));dG.interceptors.response.use(e=>{const{data:t,status:n}=e;if(console.log("API Response:",e.config.url,t),n!==200)throw new Error(`HTTP Error: ${n}`);if(t.code&&t.code!==u_t.SUCCESS)throw new Error(t.msg||`Business Error: ${t.code}`);return t},e=>{if(console.error("Response Error:",e),!e.response)throw new Error("网络连接失败,请检查网络设置");const{status:t}=e.response;switch(t){case 404:throw new Error("请求的资源不存在");case 500:throw new Error("服务器内部错误");case 401:throw new Error("未授权访问");case 403:throw new Error("访问被禁止");default:throw new Error(`请求失败: ${t}`)}});const HA=async(e,t={})=>{try{return await dG({url:e,...t})}catch(n){throw console.error("API Request Failed:",n.message),n}},B0=(e,t={})=>HA(e,{method:"GET",params:t}),d3e=(e,t={})=>HA(e,{method:"POST",data:t}),c_t=(e,t={})=>HA(e,{method:"PUT",data:t}),d_t=(e,t={})=>HA(e,{method:"DELETE",params:t}),ua=e=>{if(e){if(typeof e=="object"&&e!==null)try{return JSON.stringify(e)}catch(t){console.warn("extend参数JSON序列化失败:",t);return}return e}},uC=e=>{if(!e)return console.log("🔍 [Headers解析] 输入为空,返回空对象"),{};if(console.log("🔍 [Headers解析] 输入数据:",e,"类型:",typeof e),typeof e=="object"&&e!==null)return console.log("🔍 [Headers解析] 已是对象,直接返回:",e),e;if(typeof e=="string")try{const t=JSON.parse(e),n=typeof t=="object"&&t!==null?t:{};return console.log("🔍 [Headers解析] JSON字符串解析成功:",n),n}catch(t){return console.warn("🔍 [Headers解析] JSON字符串解析失败:",t,"原始数据:",e),{}}return console.log("🔍 [Headers解析] 未知类型,返回空对象"),{}},E0=e=>{const t=encodeURIComponent(e);return`${cG.MODULE}/${t}`},g3=async(e,t={})=>{try{return(await lo.get(e,{params:t,timeout:3e4,headers:{Accept:"application/json"}})).data}catch(n){throw console.error("直接API调用失败:",n),n}},f_t=async(e,t={})=>{const{filter:n=1,extend:r,apiUrl:o}=t,a={filter:n},s=ua(r);return s&&(a.extend=s),o?g3(o,a):B0(E0(e),a)},U1=async(e,t)=>{const{t:n,pg:r=c3e.DEFAULT_PAGE,ext:o,extend:a,apiUrl:s}=t,l={ac:UA.CATEGORY,t:n,pg:r};o&&(l.ext=o);const c=ua(a);return c&&(l.extend=c),s?g3(s,l):B0(E0(e),l)},h_t=async(e,t)=>{const{ids:n,extend:r,apiUrl:o}=t,a={ac:UA.DETAIL,ids:n},s=ua(r);return s&&(a.extend=s),o?g3(o,a):B0(E0(e),a)},f3e=async(e,t)=>{const{play:n,flag:r,extend:o,apiUrl:a}=t,s={ac:UA.PLAY,play:n};r&&(s.flag=r);const l=ua(o);return l&&(s.extend=l),a?g3(a,s):B0(E0(e),s)},p_t=async(e,t)=>{try{console.log("T4播放解析请求:",{module:e,params:t});const n=await f3e(e,t);console.log("T4播放解析响应:",n);const r=n?.headers||n?.header;r&&console.log("T4接口返回的原始headers:",r,"类型:",typeof r);const o={success:!0,data:n,playType:"direct",url:"",headers:{},needParse:!1,needSniff:!1,message:""};if(n&&typeof n=="object")if(n.jx===1)o.playType="parse",o.url=n.url||n.play_url||"",o.headers=uC(n.headers||n.header),o.needParse=!0,o.qualities=[],o.hasMultipleQualities=!1,o.message="需要解析才能播放,尽情期待";else if(n.parse===0){o.playType="direct";const a=n.url||n.play_url||"";if(Array.isArray(a)){console.log("检测到多画质URL数组:",a);const s=[];for(let l=0;l1,s.length>0?(o.url=s[0].url,o.currentQuality=s[0].name,o.message=`多画质播放 (当前: ${s[0].name})`):(o.url="",o.message="多画质数据解析失败")}else o.url=a,o.qualities=[],o.hasMultipleQualities=!1,o.currentQuality="默认",o.message="直链播放";o.headers=uC(n.headers||n.header),o.needParse=!1,o.needSniff=!1}else n.parse===1?(o.playType="sniff",o.url=n.url||n.play_url||"",o.headers=uC(n.headers||n.header),o.needSniff=!0,o.qualities=[],o.hasMultipleQualities=!1,o.message="需要嗅探才能播放,尽情期待"):(o.url=n.url||n.play_url||n,o.headers=uC(n.headers||n.header),o.qualities=[],o.hasMultipleQualities=!1,o.message="直链播放");else typeof n=="string"&&(o.url=n,o.headers={},o.qualities=[],o.hasMultipleQualities=!1,o.message="直链播放");return o}catch(n){return console.error("T4播放解析失败:",n),{success:!1,error:n.message||"播放解析失败",playType:"error",url:"",headers:{},needParse:!1,needSniff:!1,message:"播放解析失败: "+(n.message||"未知错误")}}},v_t=async(e,t)=>{const{wd:n,pg:r=c3e.DEFAULT_PAGE,extend:o,apiUrl:a}=t,s={wd:n,pg:r},l=ua(o);return l&&(s.extend=l),a?g3(a,s):B0(E0(e),s)},WA=async(e,t)=>{const{action:n,extend:r,apiUrl:o,...a}=t,s={ac:UA.ACTION,action:n,...a},l=ua(r);if(l&&(s.extend=l),console.log("executeAction调用参数:",{module:e,data:t,requestData:s,apiUrl:o}),o)if(console.log("直接调用API:",o,s),o.endsWith(".json")){const d=await lo.get(o,{timeout:3e4,headers:{Accept:"application/json"}});return console.log("API响应 (GET):",d.data),d.data}else{const d=await lo.post(o,s,{timeout:3e4,headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}});return console.log("API响应 (POST):",d.data),d.data}console.log("使用代理方式调用:",E0(e),s);const c=await d3e(E0(e),s);return console.log("代理响应:",c),c},m_t=async(e,t,n)=>{const r={refresh:"1"},o=ua(t);return o&&(r.extend=o),n?g3(n,r):B0(E0(e),r)},g_t=e=>`${cG.PARSE}/${e}`,y_t=async(e,t)=>{const{url:n,flag:r,headers:o,...a}=t;if(!n)throw new Error("视频URL不能为空");const s={url:n,...a};r&&(s.flag=r);const l={};return o&&(l.headers={...l.headers,...o}),B0(g_t(e),s)};var fE={exports:{}};function b_t(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 hE={exports:{}};const __t={},S_t=Object.freeze(Object.defineProperty({__proto__:null,default:__t},Symbol.toStringTag,{value:"Module"})),k_t=G_(S_t);var x_t=hE.exports,qae;function Oi(){return qae||(qae=1,(function(e,t){(function(n,r){e.exports=r()})(x_t,function(){var n=n||(function(r,o){var a;if(typeof window<"u"&&window.crypto&&(a=window.crypto),typeof self<"u"&&self.crypto&&(a=self.crypto),typeof globalThis<"u"&&globalThis.crypto&&(a=globalThis.crypto),!a&&typeof window<"u"&&window.msCrypto&&(a=window.msCrypto),!a&&typeof rw<"u"&&rw.crypto&&(a=rw.crypto),!a&&typeof b_t=="function")try{a=k_t}catch{}var s=function(){if(a){if(typeof a.getRandomValues=="function")try{return a.getRandomValues(new Uint32Array(1))[0]}catch{}if(typeof a.randomBytes=="function")try{return a.randomBytes(4).readInt32LE()}catch{}}throw new Error("Native crypto module could not be used to get secure random number.")},l=Object.create||(function(){function x(){}return function(E){var _;return x.prototype=E,_=new x,x.prototype=null,_}})(),c={},d=c.lib={},h=d.Base=(function(){return{extend:function(x){var E=l(this);return x&&E.mixIn(x),(!E.hasOwnProperty("init")||this.init===E.init)&&(E.init=function(){E.$super.init.apply(this,arguments)}),E.init.prototype=E,E.$super=this,E},create:function(){var x=this.extend();return x.init.apply(x,arguments),x},init:function(){},mixIn:function(x){for(var E in x)x.hasOwnProperty(E)&&(this[E]=x[E]);x.hasOwnProperty("toString")&&(this.toString=x.toString)},clone:function(){return this.init.prototype.extend(this)}}})(),p=d.WordArray=h.extend({init:function(x,E){x=this.words=x||[],E!=o?this.sigBytes=E:this.sigBytes=x.length*4},toString:function(x){return(x||g).stringify(this)},concat:function(x){var E=this.words,_=x.words,T=this.sigBytes,D=x.sigBytes;if(this.clamp(),T%4)for(var P=0;P>>2]>>>24-P%4*8&255;E[T+P>>>2]|=M<<24-(T+P)%4*8}else for(var $=0;$>>2]=_[$>>>2];return this.sigBytes+=D,this},clamp:function(){var x=this.words,E=this.sigBytes;x[E>>>2]&=4294967295<<32-E%4*8,x.length=r.ceil(E/4)},clone:function(){var x=h.clone.call(this);return x.words=this.words.slice(0),x},random:function(x){for(var E=[],_=0;_>>2]>>>24-D%4*8&255;T.push((P>>>4).toString(16)),T.push((P&15).toString(16))}return T.join("")},parse:function(x){for(var E=x.length,_=[],T=0;T>>3]|=parseInt(x.substr(T,2),16)<<24-T%8*4;return new p.init(_,E/2)}},y=m.Latin1={stringify:function(x){for(var E=x.words,_=x.sigBytes,T=[],D=0;D<_;D++){var P=E[D>>>2]>>>24-D%4*8&255;T.push(String.fromCharCode(P))}return T.join("")},parse:function(x){for(var E=x.length,_=[],T=0;T>>2]|=(x.charCodeAt(T)&255)<<24-T%4*8;return new p.init(_,E)}},S=m.Utf8={stringify:function(x){try{return decodeURIComponent(escape(y.stringify(x)))}catch{throw new Error("Malformed UTF-8 data")}},parse:function(x){return y.parse(unescape(encodeURIComponent(x)))}},k=d.BufferedBlockAlgorithm=h.extend({reset:function(){this._data=new p.init,this._nDataBytes=0},_append:function(x){typeof x=="string"&&(x=S.parse(x)),this._data.concat(x),this._nDataBytes+=x.sigBytes},_process:function(x){var E,_=this._data,T=_.words,D=_.sigBytes,P=this.blockSize,M=P*4,$=D/M;x?$=r.ceil($):$=r.max(($|0)-this._minBufferSize,0);var I=$*P,N=r.min(I*4,D);if(I){for(var j=0;j>>2]|=c[p]<<24-p%4*8;s.call(this,h,d)}else s.apply(this,arguments)};l.prototype=a}})(),n.lib.WordArray})})(vE)),vE.exports}var mE={exports:{}},T_t=mE.exports,Zae;function A_t(){return Zae||(Zae=1,(function(e,t){(function(n,r){e.exports=r(Oi())})(T_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.enc;s.Utf16=s.Utf16BE={stringify:function(c){for(var d=c.words,h=c.sigBytes,p=[],m=0;m>>2]>>>16-m%4*8&65535;p.push(String.fromCharCode(g))}return p.join("")},parse:function(c){for(var d=c.length,h=[],p=0;p>>1]|=c.charCodeAt(p)<<16-p%2*16;return a.create(h,d*2)}},s.Utf16LE={stringify:function(c){for(var d=c.words,h=c.sigBytes,p=[],m=0;m>>2]>>>16-m%4*8&65535);p.push(String.fromCharCode(g))}return p.join("")},parse:function(c){for(var d=c.length,h=[],p=0;p>>1]|=l(c.charCodeAt(p)<<16-p%2*16);return a.create(h,d*2)}};function l(c){return c<<8&4278255360|c>>>8&16711935}})(),n.enc.Utf16})})(mE)),mE.exports}var gE={exports:{}},I_t=gE.exports,Jae;function Jm(){return Jae||(Jae=1,(function(e,t){(function(n,r){e.exports=r(Oi())})(I_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.enc;s.Base64={stringify:function(c){var d=c.words,h=c.sigBytes,p=this._map;c.clamp();for(var m=[],g=0;g>>2]>>>24-g%4*8&255,S=d[g+1>>>2]>>>24-(g+1)%4*8&255,k=d[g+2>>>2]>>>24-(g+2)%4*8&255,C=y<<16|S<<8|k,x=0;x<4&&g+x*.75>>6*(3-x)&63));var E=p.charAt(64);if(E)for(;m.length%4;)m.push(E);return m.join("")},parse:function(c){var d=c.length,h=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var m=0;m>>6-g%4*2,k=y|S;p[m>>>2]|=k<<24-m%4*8,m++}return a.create(p,m)}})(),n.enc.Base64})})(gE)),gE.exports}var yE={exports:{}},L_t=yE.exports,Qae;function D_t(){return Qae||(Qae=1,(function(e,t){(function(n,r){e.exports=r(Oi())})(L_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.enc;s.Base64url={stringify:function(c,d){d===void 0&&(d=!0);var h=c.words,p=c.sigBytes,m=d?this._safe_map:this._map;c.clamp();for(var g=[],y=0;y>>2]>>>24-y%4*8&255,k=h[y+1>>>2]>>>24-(y+1)%4*8&255,C=h[y+2>>>2]>>>24-(y+2)%4*8&255,x=S<<16|k<<8|C,E=0;E<4&&y+E*.75>>6*(3-E)&63));var _=m.charAt(64);if(_)for(;g.length%4;)g.push(_);return g.join("")},parse:function(c,d){d===void 0&&(d=!0);var h=c.length,p=d?this._safe_map:this._map,m=this._reverseMap;if(!m){m=this._reverseMap=[];for(var g=0;g>>6-g%4*2,k=y|S;p[m>>>2]|=k<<24-m%4*8,m++}return a.create(p,m)}})(),n.enc.Base64url})})(yE)),yE.exports}var bE={exports:{}},P_t=bE.exports,ele;function Qm(){return ele||(ele=1,(function(e,t){(function(n,r){e.exports=r(Oi())})(P_t,function(n){return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.algo,d=[];(function(){for(var S=0;S<64;S++)d[S]=r.abs(r.sin(S+1))*4294967296|0})();var h=c.MD5=l.extend({_doReset:function(){this._hash=new s.init([1732584193,4023233417,2562383102,271733878])},_doProcessBlock:function(S,k){for(var C=0;C<16;C++){var x=k+C,E=S[x];S[x]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360}var _=this._hash.words,T=S[k+0],D=S[k+1],P=S[k+2],M=S[k+3],$=S[k+4],I=S[k+5],N=S[k+6],j=S[k+7],U=S[k+8],z=S[k+9],G=S[k+10],X=S[k+11],ie=S[k+12],ee=S[k+13],W=S[k+14],q=S[k+15],Q=_[0],ne=_[1],ae=_[2],re=_[3];Q=p(Q,ne,ae,re,T,7,d[0]),re=p(re,Q,ne,ae,D,12,d[1]),ae=p(ae,re,Q,ne,P,17,d[2]),ne=p(ne,ae,re,Q,M,22,d[3]),Q=p(Q,ne,ae,re,$,7,d[4]),re=p(re,Q,ne,ae,I,12,d[5]),ae=p(ae,re,Q,ne,N,17,d[6]),ne=p(ne,ae,re,Q,j,22,d[7]),Q=p(Q,ne,ae,re,U,7,d[8]),re=p(re,Q,ne,ae,z,12,d[9]),ae=p(ae,re,Q,ne,G,17,d[10]),ne=p(ne,ae,re,Q,X,22,d[11]),Q=p(Q,ne,ae,re,ie,7,d[12]),re=p(re,Q,ne,ae,ee,12,d[13]),ae=p(ae,re,Q,ne,W,17,d[14]),ne=p(ne,ae,re,Q,q,22,d[15]),Q=m(Q,ne,ae,re,D,5,d[16]),re=m(re,Q,ne,ae,N,9,d[17]),ae=m(ae,re,Q,ne,X,14,d[18]),ne=m(ne,ae,re,Q,T,20,d[19]),Q=m(Q,ne,ae,re,I,5,d[20]),re=m(re,Q,ne,ae,G,9,d[21]),ae=m(ae,re,Q,ne,q,14,d[22]),ne=m(ne,ae,re,Q,$,20,d[23]),Q=m(Q,ne,ae,re,z,5,d[24]),re=m(re,Q,ne,ae,W,9,d[25]),ae=m(ae,re,Q,ne,M,14,d[26]),ne=m(ne,ae,re,Q,U,20,d[27]),Q=m(Q,ne,ae,re,ee,5,d[28]),re=m(re,Q,ne,ae,P,9,d[29]),ae=m(ae,re,Q,ne,j,14,d[30]),ne=m(ne,ae,re,Q,ie,20,d[31]),Q=g(Q,ne,ae,re,I,4,d[32]),re=g(re,Q,ne,ae,U,11,d[33]),ae=g(ae,re,Q,ne,X,16,d[34]),ne=g(ne,ae,re,Q,W,23,d[35]),Q=g(Q,ne,ae,re,D,4,d[36]),re=g(re,Q,ne,ae,$,11,d[37]),ae=g(ae,re,Q,ne,j,16,d[38]),ne=g(ne,ae,re,Q,G,23,d[39]),Q=g(Q,ne,ae,re,ee,4,d[40]),re=g(re,Q,ne,ae,T,11,d[41]),ae=g(ae,re,Q,ne,M,16,d[42]),ne=g(ne,ae,re,Q,N,23,d[43]),Q=g(Q,ne,ae,re,z,4,d[44]),re=g(re,Q,ne,ae,ie,11,d[45]),ae=g(ae,re,Q,ne,q,16,d[46]),ne=g(ne,ae,re,Q,P,23,d[47]),Q=y(Q,ne,ae,re,T,6,d[48]),re=y(re,Q,ne,ae,j,10,d[49]),ae=y(ae,re,Q,ne,W,15,d[50]),ne=y(ne,ae,re,Q,I,21,d[51]),Q=y(Q,ne,ae,re,ie,6,d[52]),re=y(re,Q,ne,ae,M,10,d[53]),ae=y(ae,re,Q,ne,G,15,d[54]),ne=y(ne,ae,re,Q,D,21,d[55]),Q=y(Q,ne,ae,re,U,6,d[56]),re=y(re,Q,ne,ae,q,10,d[57]),ae=y(ae,re,Q,ne,N,15,d[58]),ne=y(ne,ae,re,Q,ee,21,d[59]),Q=y(Q,ne,ae,re,$,6,d[60]),re=y(re,Q,ne,ae,X,10,d[61]),ae=y(ae,re,Q,ne,P,15,d[62]),ne=y(ne,ae,re,Q,z,21,d[63]),_[0]=_[0]+Q|0,_[1]=_[1]+ne|0,_[2]=_[2]+ae|0,_[3]=_[3]+re|0},_doFinalize:function(){var S=this._data,k=S.words,C=this._nDataBytes*8,x=S.sigBytes*8;k[x>>>5]|=128<<24-x%32;var E=r.floor(C/4294967296),_=C;k[(x+64>>>9<<4)+15]=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,k[(x+64>>>9<<4)+14]=(_<<8|_>>>24)&16711935|(_<<24|_>>>8)&4278255360,S.sigBytes=(k.length+1)*4,this._process();for(var T=this._hash,D=T.words,P=0;P<4;P++){var M=D[P];D[P]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360}return T},clone:function(){var S=l.clone.call(this);return S._hash=this._hash.clone(),S}});function p(S,k,C,x,E,_,T){var D=S+(k&C|~k&x)+E+T;return(D<<_|D>>>32-_)+k}function m(S,k,C,x,E,_,T){var D=S+(k&x|C&~x)+E+T;return(D<<_|D>>>32-_)+k}function g(S,k,C,x,E,_,T){var D=S+(k^C^x)+E+T;return(D<<_|D>>>32-_)+k}function y(S,k,C,x,E,_,T){var D=S+(C^(k|~x))+E+T;return(D<<_|D>>>32-_)+k}o.MD5=l._createHelper(h),o.HmacMD5=l._createHmacHelper(h)})(Math),n.MD5})})(bE)),bE.exports}var _E={exports:{}},R_t=_E.exports,tle;function h3e(){return tle||(tle=1,(function(e,t){(function(n,r){e.exports=r(Oi())})(R_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=o.Hasher,l=r.algo,c=[],d=l.SHA1=s.extend({_doReset:function(){this._hash=new a.init([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(h,p){for(var m=this._hash.words,g=m[0],y=m[1],S=m[2],k=m[3],C=m[4],x=0;x<80;x++){if(x<16)c[x]=h[p+x]|0;else{var E=c[x-3]^c[x-8]^c[x-14]^c[x-16];c[x]=E<<1|E>>>31}var _=(g<<5|g>>>27)+C+c[x];x<20?_+=(y&S|~y&k)+1518500249:x<40?_+=(y^S^k)+1859775393:x<60?_+=(y&S|y&k|S&k)-1894007588:_+=(y^S^k)-899497514,C=k,k=S,S=y<<30|y>>>2,y=g,g=_}m[0]=m[0]+g|0,m[1]=m[1]+y|0,m[2]=m[2]+S|0,m[3]=m[3]+k|0,m[4]=m[4]+C|0},_doFinalize:function(){var h=this._data,p=h.words,m=this._nDataBytes*8,g=h.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=Math.floor(m/4294967296),p[(g+64>>>9<<4)+15]=m,h.sigBytes=p.length*4,this._process(),this._hash},clone:function(){var h=s.clone.call(this);return h._hash=this._hash.clone(),h}});r.SHA1=s._createHelper(d),r.HmacSHA1=s._createHmacHelper(d)})(),n.SHA1})})(_E)),_E.exports}var SE={exports:{}},M_t=SE.exports,nle;function fG(){return nle||(nle=1,(function(e,t){(function(n,r){e.exports=r(Oi())})(M_t,function(n){return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.algo,d=[],h=[];(function(){function g(C){for(var x=r.sqrt(C),E=2;E<=x;E++)if(!(C%E))return!1;return!0}function y(C){return(C-(C|0))*4294967296|0}for(var S=2,k=0;k<64;)g(S)&&(k<8&&(d[k]=y(r.pow(S,1/2))),h[k]=y(r.pow(S,1/3)),k++),S++})();var p=[],m=c.SHA256=l.extend({_doReset:function(){this._hash=new s.init(d.slice(0))},_doProcessBlock:function(g,y){for(var S=this._hash.words,k=S[0],C=S[1],x=S[2],E=S[3],_=S[4],T=S[5],D=S[6],P=S[7],M=0;M<64;M++){if(M<16)p[M]=g[y+M]|0;else{var $=p[M-15],I=($<<25|$>>>7)^($<<14|$>>>18)^$>>>3,N=p[M-2],j=(N<<15|N>>>17)^(N<<13|N>>>19)^N>>>10;p[M]=I+p[M-7]+j+p[M-16]}var U=_&T^~_&D,z=k&C^k&x^C&x,G=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),X=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),ie=P+X+U+h[M]+p[M],ee=G+z;P=D,D=T,T=_,_=E+ie|0,E=x,x=C,C=k,k=ie+ee|0}S[0]=S[0]+k|0,S[1]=S[1]+C|0,S[2]=S[2]+x|0,S[3]=S[3]+E|0,S[4]=S[4]+_|0,S[5]=S[5]+T|0,S[6]=S[6]+D|0,S[7]=S[7]+P|0},_doFinalize:function(){var g=this._data,y=g.words,S=this._nDataBytes*8,k=g.sigBytes*8;return y[k>>>5]|=128<<24-k%32,y[(k+64>>>9<<4)+14]=r.floor(S/4294967296),y[(k+64>>>9<<4)+15]=S,g.sigBytes=y.length*4,this._process(),this._hash},clone:function(){var g=l.clone.call(this);return g._hash=this._hash.clone(),g}});o.SHA256=l._createHelper(m),o.HmacSHA256=l._createHmacHelper(m)})(Math),n.SHA256})})(SE)),SE.exports}var kE={exports:{}},O_t=kE.exports,rle;function $_t(){return rle||(rle=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),fG())})(O_t,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=r.algo,l=s.SHA256,c=s.SHA224=l.extend({_doReset:function(){this._hash=new a.init([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428])},_doFinalize:function(){var d=l._doFinalize.call(this);return d.sigBytes-=4,d}});r.SHA224=l._createHelper(c),r.HmacSHA224=l._createHmacHelper(c)})(),n.SHA224})})(kE)),kE.exports}var xE={exports:{}},B_t=xE.exports,ile;function p3e(){return ile||(ile=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),GA())})(B_t,function(n){return(function(){var r=n,o=r.lib,a=o.Hasher,s=r.x64,l=s.Word,c=s.WordArray,d=r.algo;function h(){return l.create.apply(l,arguments)}var p=[h(1116352408,3609767458),h(1899447441,602891725),h(3049323471,3964484399),h(3921009573,2173295548),h(961987163,4081628472),h(1508970993,3053834265),h(2453635748,2937671579),h(2870763221,3664609560),h(3624381080,2734883394),h(310598401,1164996542),h(607225278,1323610764),h(1426881987,3590304994),h(1925078388,4068182383),h(2162078206,991336113),h(2614888103,633803317),h(3248222580,3479774868),h(3835390401,2666613458),h(4022224774,944711139),h(264347078,2341262773),h(604807628,2007800933),h(770255983,1495990901),h(1249150122,1856431235),h(1555081692,3175218132),h(1996064986,2198950837),h(2554220882,3999719339),h(2821834349,766784016),h(2952996808,2566594879),h(3210313671,3203337956),h(3336571891,1034457026),h(3584528711,2466948901),h(113926993,3758326383),h(338241895,168717936),h(666307205,1188179964),h(773529912,1546045734),h(1294757372,1522805485),h(1396182291,2643833823),h(1695183700,2343527390),h(1986661051,1014477480),h(2177026350,1206759142),h(2456956037,344077627),h(2730485921,1290863460),h(2820302411,3158454273),h(3259730800,3505952657),h(3345764771,106217008),h(3516065817,3606008344),h(3600352804,1432725776),h(4094571909,1467031594),h(275423344,851169720),h(430227734,3100823752),h(506948616,1363258195),h(659060556,3750685593),h(883997877,3785050280),h(958139571,3318307427),h(1322822218,3812723403),h(1537002063,2003034995),h(1747873779,3602036899),h(1955562222,1575990012),h(2024104815,1125592928),h(2227730452,2716904306),h(2361852424,442776044),h(2428436474,593698344),h(2756734187,3733110249),h(3204031479,2999351573),h(3329325298,3815920427),h(3391569614,3928383900),h(3515267271,566280711),h(3940187606,3454069534),h(4118630271,4000239992),h(116418474,1914138554),h(174292421,2731055270),h(289380356,3203993006),h(460393269,320620315),h(685471733,587496836),h(852142971,1086792851),h(1017036298,365543100),h(1126000580,2618297676),h(1288033470,3409855158),h(1501505948,4234509866),h(1607167915,987167468),h(1816402316,1246189591)],m=[];(function(){for(var y=0;y<80;y++)m[y]=h()})();var g=d.SHA512=a.extend({_doReset:function(){this._hash=new c.init([new l.init(1779033703,4089235720),new l.init(3144134277,2227873595),new l.init(1013904242,4271175723),new l.init(2773480762,1595750129),new l.init(1359893119,2917565137),new l.init(2600822924,725511199),new l.init(528734635,4215389547),new l.init(1541459225,327033209)])},_doProcessBlock:function(y,S){for(var k=this._hash.words,C=k[0],x=k[1],E=k[2],_=k[3],T=k[4],D=k[5],P=k[6],M=k[7],$=C.high,I=C.low,N=x.high,j=x.low,U=E.high,z=E.low,G=_.high,X=_.low,ie=T.high,ee=T.low,W=D.high,q=D.low,Q=P.high,ne=P.low,ae=M.high,re=M.low,Ce=$,we=I,ve=N,me=j,xe=U,Be=z,Ke=G,ze=X,be=ie,_e=ee,Ne=W,Se=q,$e=Q,Xe=ne,rt=ae,nt=re,gt=0;gt<80;gt++){var yt,$t,Ct=m[gt];if(gt<16)$t=Ct.high=y[S+gt*2]|0,yt=Ct.low=y[S+gt*2+1]|0;else{var Dt=m[gt-15],on=Dt.high,lt=Dt.low,xt=(on>>>1|lt<<31)^(on>>>8|lt<<24)^on>>>7,Ye=(lt>>>1|on<<31)^(lt>>>8|on<<24)^(lt>>>7|on<<25),Ue=m[gt-2],ut=Ue.high,St=Ue.low,Ht=(ut>>>19|St<<13)^(ut<<3|St>>>29)^ut>>>6,bt=(St>>>19|ut<<13)^(St<<3|ut>>>29)^(St>>>6|ut<<26),Fe=m[gt-7],At=Fe.high,tn=Fe.low,sn=m[gt-16],Gt=sn.high,Zt=sn.low;yt=Ye+tn,$t=xt+At+(yt>>>0>>0?1:0),yt=yt+bt,$t=$t+Ht+(yt>>>0>>0?1:0),yt=yt+Zt,$t=$t+Gt+(yt>>>0>>0?1:0),Ct.high=$t,Ct.low=yt}var nr=be&Ne^~be&$e,Ar=_e&Se^~_e&Xe,ji=Ce&ve^Ce&xe^ve&xe,Ho=we&me^we&Be^me&Be,Mt=(Ce>>>28|we<<4)^(Ce<<30|we>>>2)^(Ce<<25|we>>>7),vt=(we>>>28|Ce<<4)^(we<<30|Ce>>>2)^(we<<25|Ce>>>7),Bt=(be>>>14|_e<<18)^(be>>>18|_e<<14)^(be<<23|_e>>>9),jt=(_e>>>14|be<<18)^(_e>>>18|be<<14)^(_e<<23|be>>>9),rn=p[gt],en=rn.high,dn=rn.low,Sn=nt+jt,qn=rt+Bt+(Sn>>>0>>0?1:0),Sn=Sn+Ar,qn=qn+nr+(Sn>>>0>>0?1:0),Sn=Sn+dn,qn=qn+en+(Sn>>>0>>0?1:0),Sn=Sn+yt,qn=qn+$t+(Sn>>>0>>0?1:0),Dr=vt+Ho,ur=Mt+ji+(Dr>>>0>>0?1:0);rt=$e,nt=Xe,$e=Ne,Xe=Se,Ne=be,Se=_e,_e=ze+Sn|0,be=Ke+qn+(_e>>>0>>0?1:0)|0,Ke=xe,ze=Be,xe=ve,Be=me,ve=Ce,me=we,we=Sn+Dr|0,Ce=qn+ur+(we>>>0>>0?1:0)|0}I=C.low=I+we,C.high=$+Ce+(I>>>0>>0?1:0),j=x.low=j+me,x.high=N+ve+(j>>>0>>0?1:0),z=E.low=z+Be,E.high=U+xe+(z>>>0>>0?1:0),X=_.low=X+ze,_.high=G+Ke+(X>>>0>>0?1:0),ee=T.low=ee+_e,T.high=ie+be+(ee>>>0<_e>>>0?1:0),q=D.low=q+Se,D.high=W+Ne+(q>>>0>>0?1:0),ne=P.low=ne+Xe,P.high=Q+$e+(ne>>>0>>0?1:0),re=M.low=re+nt,M.high=ae+rt+(re>>>0>>0?1:0)},_doFinalize:function(){var y=this._data,S=y.words,k=this._nDataBytes*8,C=y.sigBytes*8;S[C>>>5]|=128<<24-C%32,S[(C+128>>>10<<5)+30]=Math.floor(k/4294967296),S[(C+128>>>10<<5)+31]=k,y.sigBytes=S.length*4,this._process();var x=this._hash.toX32();return x},clone:function(){var y=a.clone.call(this);return y._hash=this._hash.clone(),y},blockSize:1024/32});r.SHA512=a._createHelper(g),r.HmacSHA512=a._createHmacHelper(g)})(),n.SHA512})})(xE)),xE.exports}var CE={exports:{}},N_t=CE.exports,ole;function F_t(){return ole||(ole=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),GA(),p3e())})(N_t,function(n){return(function(){var r=n,o=r.x64,a=o.Word,s=o.WordArray,l=r.algo,c=l.SHA512,d=l.SHA384=c.extend({_doReset:function(){this._hash=new s.init([new a.init(3418070365,3238371032),new a.init(1654270250,914150663),new a.init(2438529370,812702999),new a.init(355462360,4144912697),new a.init(1731405415,4290775857),new a.init(2394180231,1750603025),new a.init(3675008525,1694076839),new a.init(1203062813,3204075428)])},_doFinalize:function(){var h=c._doFinalize.call(this);return h.sigBytes-=16,h}});r.SHA384=c._createHelper(d),r.HmacSHA384=c._createHmacHelper(d)})(),n.SHA384})})(CE)),CE.exports}var wE={exports:{}},j_t=wE.exports,sle;function V_t(){return sle||(sle=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),GA())})(j_t,function(n){return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.x64,d=c.Word,h=o.algo,p=[],m=[],g=[];(function(){for(var k=1,C=0,x=0;x<24;x++){p[k+5*C]=(x+1)*(x+2)/2%64;var E=C%5,_=(2*k+3*C)%5;k=E,C=_}for(var k=0;k<5;k++)for(var C=0;C<5;C++)m[k+5*C]=C+(2*k+3*C)%5*5;for(var T=1,D=0;D<24;D++){for(var P=0,M=0,$=0;$<7;$++){if(T&1){var I=(1<<$)-1;I<32?M^=1<>>24)&16711935|(T<<24|T>>>8)&4278255360,D=(D<<8|D>>>24)&16711935|(D<<24|D>>>8)&4278255360;var P=x[_];P.high^=D,P.low^=T}for(var M=0;M<24;M++){for(var $=0;$<5;$++){for(var I=0,N=0,j=0;j<5;j++){var P=x[$+5*j];I^=P.high,N^=P.low}var U=y[$];U.high=I,U.low=N}for(var $=0;$<5;$++)for(var z=y[($+4)%5],G=y[($+1)%5],X=G.high,ie=G.low,I=z.high^(X<<1|ie>>>31),N=z.low^(ie<<1|X>>>31),j=0;j<5;j++){var P=x[$+5*j];P.high^=I,P.low^=N}for(var ee=1;ee<25;ee++){var I,N,P=x[ee],W=P.high,q=P.low,Q=p[ee];Q<32?(I=W<>>32-Q,N=q<>>32-Q):(I=q<>>64-Q,N=W<>>64-Q);var ne=y[m[ee]];ne.high=I,ne.low=N}var ae=y[0],re=x[0];ae.high=re.high,ae.low=re.low;for(var $=0;$<5;$++)for(var j=0;j<5;j++){var ee=$+5*j,P=x[ee],Ce=y[ee],we=y[($+1)%5+5*j],ve=y[($+2)%5+5*j];P.high=Ce.high^~we.high&ve.high,P.low=Ce.low^~we.low&ve.low}var P=x[0],me=g[M];P.high^=me.high,P.low^=me.low}},_doFinalize:function(){var k=this._data,C=k.words;this._nDataBytes*8;var x=k.sigBytes*8,E=this.blockSize*32;C[x>>>5]|=1<<24-x%32,C[(r.ceil((x+1)/E)*E>>>5)-1]|=128,k.sigBytes=C.length*4,this._process();for(var _=this._state,T=this.cfg.outputLength/8,D=T/8,P=[],M=0;M>>24)&16711935|(I<<24|I>>>8)&4278255360,N=(N<<8|N>>>24)&16711935|(N<<24|N>>>8)&4278255360,P.push(N),P.push(I)}return new s.init(P,T)},clone:function(){for(var k=l.clone.call(this),C=k._state=this._state.slice(0),x=0;x<25;x++)C[x]=C[x].clone();return k}});o.SHA3=l._createHelper(S),o.HmacSHA3=l._createHmacHelper(S)})(Math),n.SHA3})})(wE)),wE.exports}var EE={exports:{}},z_t=EE.exports,ale;function U_t(){return ale||(ale=1,(function(e,t){(function(n,r){e.exports=r(Oi())})(z_t,function(n){/** @preserve (c) 2012 by Cédric Mesnil. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */return(function(r){var o=n,a=o.lib,s=a.WordArray,l=a.Hasher,c=o.algo,d=s.create([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8,3,10,14,4,9,15,8,1,2,7,0,6,13,11,5,12,1,9,11,10,0,8,12,4,13,3,7,15,14,5,6,2,4,0,5,9,7,12,2,10,14,1,3,8,11,6,15,13]),h=s.create([5,14,7,0,9,2,11,4,13,6,15,8,1,10,3,12,6,11,3,7,0,13,5,10,14,15,8,12,4,9,1,2,15,5,1,3,7,14,6,9,11,8,12,2,10,0,4,13,8,6,4,1,3,11,15,0,5,12,2,13,9,7,10,14,12,15,10,4,1,5,8,7,6,2,13,14,0,3,9,11]),p=s.create([11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8,7,6,8,13,11,9,7,15,7,12,15,9,11,7,13,12,11,13,6,7,14,9,13,15,14,8,13,6,5,12,7,5,11,12,14,15,14,15,9,8,9,14,5,6,8,6,5,12,9,15,5,11,6,8,13,12,5,12,13,14,11,8,5,6]),m=s.create([8,9,9,11,13,15,15,5,7,7,8,11,14,14,12,6,9,13,15,7,12,8,9,11,7,7,12,7,6,15,13,11,9,7,15,11,8,6,6,14,12,13,5,14,13,13,7,5,15,5,8,11,14,14,6,14,6,9,12,9,12,5,15,8,8,5,12,9,12,5,14,6,8,13,6,5,15,13,11,11]),g=s.create([0,1518500249,1859775393,2400959708,2840853838]),y=s.create([1352829926,1548603684,1836072691,2053994217,0]),S=c.RIPEMD160=l.extend({_doReset:function(){this._hash=s.create([1732584193,4023233417,2562383102,271733878,3285377520])},_doProcessBlock:function(D,P){for(var M=0;M<16;M++){var $=P+M,I=D[$];D[$]=(I<<8|I>>>24)&16711935|(I<<24|I>>>8)&4278255360}var N=this._hash.words,j=g.words,U=y.words,z=d.words,G=h.words,X=p.words,ie=m.words,ee,W,q,Q,ne,ae,re,Ce,we,ve;ae=ee=N[0],re=W=N[1],Ce=q=N[2],we=Q=N[3],ve=ne=N[4];for(var me,M=0;M<80;M+=1)me=ee+D[P+z[M]]|0,M<16?me+=k(W,q,Q)+j[0]:M<32?me+=C(W,q,Q)+j[1]:M<48?me+=x(W,q,Q)+j[2]:M<64?me+=E(W,q,Q)+j[3]:me+=_(W,q,Q)+j[4],me=me|0,me=T(me,X[M]),me=me+ne|0,ee=ne,ne=Q,Q=T(q,10),q=W,W=me,me=ae+D[P+G[M]]|0,M<16?me+=_(re,Ce,we)+U[0]:M<32?me+=E(re,Ce,we)+U[1]:M<48?me+=x(re,Ce,we)+U[2]:M<64?me+=C(re,Ce,we)+U[3]:me+=k(re,Ce,we)+U[4],me=me|0,me=T(me,ie[M]),me=me+ve|0,ae=ve,ve=we,we=T(Ce,10),Ce=re,re=me;me=N[1]+q+we|0,N[1]=N[2]+Q+ve|0,N[2]=N[3]+ne+ae|0,N[3]=N[4]+ee+re|0,N[4]=N[0]+W+Ce|0,N[0]=me},_doFinalize:function(){var D=this._data,P=D.words,M=this._nDataBytes*8,$=D.sigBytes*8;P[$>>>5]|=128<<24-$%32,P[($+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,D.sigBytes=(P.length+1)*4,this._process();for(var I=this._hash,N=I.words,j=0;j<5;j++){var U=N[j];N[j]=(U<<8|U>>>24)&16711935|(U<<24|U>>>8)&4278255360}return I},clone:function(){var D=l.clone.call(this);return D._hash=this._hash.clone(),D}});function k(D,P,M){return D^P^M}function C(D,P,M){return D&P|~D&M}function x(D,P,M){return(D|~P)^M}function E(D,P,M){return D&M|P&~M}function _(D,P,M){return D^(P|~M)}function T(D,P){return D<>>32-P}o.RIPEMD160=l._createHelper(S),o.HmacRIPEMD160=l._createHmacHelper(S)})(),n.RIPEMD160})})(EE)),EE.exports}var TE={exports:{}},H_t=TE.exports,lle;function hG(){return lle||(lle=1,(function(e,t){(function(n,r){e.exports=r(Oi())})(H_t,function(n){(function(){var r=n,o=r.lib,a=o.Base,s=r.enc,l=s.Utf8,c=r.algo;c.HMAC=a.extend({init:function(d,h){d=this._hasher=new d.init,typeof h=="string"&&(h=l.parse(h));var p=d.blockSize,m=p*4;h.sigBytes>m&&(h=d.finalize(h)),h.clamp();for(var g=this._oKey=h.clone(),y=this._iKey=h.clone(),S=g.words,k=y.words,C=0;C>>2]&255;I.sigBytes-=N}};a.BlockCipher=g.extend({cfg:g.cfg.extend({mode:k,padding:x}),reset:function(){var I;g.reset.call(this);var N=this.cfg,j=N.iv,U=N.mode;this._xformMode==this._ENC_XFORM_MODE?I=U.createEncryptor:(I=U.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==I?this._mode.init(this,j&&j.words):(this._mode=I.call(U,this,j&&j.words),this._mode.__creator=I)},_doProcessBlock:function(I,N){this._mode.processBlock(I,N)},_doFinalize:function(){var I,N=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(N.pad(this._data,this.blockSize),I=this._process(!0)):(I=this._process(!0),N.unpad(I)),I},blockSize:128/32});var E=a.CipherParams=s.extend({init:function(I){this.mixIn(I)},toString:function(I){return(I||this.formatter).stringify(this)}}),_=o.format={},T=_.OpenSSL={stringify:function(I){var N,j=I.ciphertext,U=I.salt;return U?N=l.create([1398893684,1701076831]).concat(U).concat(j):N=j,N.toString(h)},parse:function(I){var N,j=h.parse(I),U=j.words;return U[0]==1398893684&&U[1]==1701076831&&(N=l.create(U.slice(2,4)),U.splice(0,4),j.sigBytes-=16),E.create({ciphertext:j,salt:N})}},D=a.SerializableCipher=s.extend({cfg:s.extend({format:T}),encrypt:function(I,N,j,U){U=this.cfg.extend(U);var z=I.createEncryptor(j,U),G=z.finalize(N),X=z.cfg;return E.create({ciphertext:G,key:j,iv:X.iv,algorithm:I,mode:X.mode,padding:X.padding,blockSize:I.blockSize,formatter:U.format})},decrypt:function(I,N,j,U){U=this.cfg.extend(U),N=this._parse(N,U.format);var z=I.createDecryptor(j,U).finalize(N.ciphertext);return z},_parse:function(I,N){return typeof I=="string"?N.parse(I,this):I}}),P=o.kdf={},M=P.OpenSSL={execute:function(I,N,j,U,z){if(U||(U=l.random(64/8)),z)var G=m.create({keySize:N+j,hasher:z}).compute(I,U);else var G=m.create({keySize:N+j}).compute(I,U);var X=l.create(G.words.slice(N),j*4);return G.sigBytes=N*4,E.create({key:G,iv:X,salt:U})}},$=a.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:M}),encrypt:function(I,N,j,U){U=this.cfg.extend(U);var z=U.kdf.execute(j,I.keySize,I.ivSize,U.salt,U.hasher);U.iv=z.iv;var G=D.encrypt.call(this,I,N,z.key,U);return G.mixIn(z),G},decrypt:function(I,N,j,U){U=this.cfg.extend(U),N=this._parse(N,U.format);var z=U.kdf.execute(j,I.keySize,I.ivSize,N.salt,U.hasher);U.iv=z.iv;var G=D.decrypt.call(this,I,N,z.key,U);return G}})})()})})(LE)),LE.exports}var DE={exports:{}},Y_t=DE.exports,fle;function X_t(){return fle||(fle=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Ea())})(Y_t,function(n){return n.mode.CFB=(function(){var r=n.lib.BlockCipherMode.extend();r.Encryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize;o.call(this,a,s,c,l),this._prevBlock=a.slice(s,s+c)}}),r.Decryptor=r.extend({processBlock:function(a,s){var l=this._cipher,c=l.blockSize,d=a.slice(s,s+c);o.call(this,a,s,c,l),this._prevBlock=d}});function o(a,s,l,c){var d,h=this._iv;h?(d=h.slice(0),this._iv=void 0):d=this._prevBlock,c.encryptBlock(d,0);for(var p=0;p>24&255)===255){var c=l>>16&255,d=l>>8&255,h=l&255;c===255?(c=0,d===255?(d=0,h===255?h=0:++h):++d):++c,l=0,l+=c<<16,l+=d<<8,l+=h}else l+=1<<24;return l}function a(l){return(l[0]=o(l[0]))===0&&(l[1]=o(l[1])),l}var s=r.Encryptor=r.extend({processBlock:function(l,c){var d=this._cipher,h=d.blockSize,p=this._iv,m=this._counter;p&&(m=this._counter=p.slice(0),this._iv=void 0),a(m);var g=m.slice(0);d.encryptBlock(g,0);for(var y=0;y>>2]|=l<<24-c%4*8,r.sigBytes+=l},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Ansix923})})($E)),$E.exports}var BE={exports:{}},aSt=BE.exports,yle;function lSt(){return yle||(yle=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Ea())})(aSt,function(n){return n.pad.Iso10126={pad:function(r,o){var a=o*4,s=a-r.sigBytes%a;r.concat(n.lib.WordArray.random(s-1)).concat(n.lib.WordArray.create([s<<24],1))},unpad:function(r){var o=r.words[r.sigBytes-1>>>2]&255;r.sigBytes-=o}},n.pad.Iso10126})})(BE)),BE.exports}var NE={exports:{}},uSt=NE.exports,ble;function cSt(){return ble||(ble=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Ea())})(uSt,function(n){return n.pad.Iso97971={pad:function(r,o){r.concat(n.lib.WordArray.create([2147483648],1)),n.pad.ZeroPadding.pad(r,o)},unpad:function(r){n.pad.ZeroPadding.unpad(r),r.sigBytes--}},n.pad.Iso97971})})(NE)),NE.exports}var FE={exports:{}},dSt=FE.exports,_le;function fSt(){return _le||(_le=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Ea())})(dSt,function(n){return n.pad.ZeroPadding={pad:function(r,o){var a=o*4;r.clamp(),r.sigBytes+=a-(r.sigBytes%a||a)},unpad:function(r){for(var o=r.words,a=r.sigBytes-1,a=r.sigBytes-1;a>=0;a--)if(o[a>>>2]>>>24-a%4*8&255){r.sigBytes=a+1;break}}},n.pad.ZeroPadding})})(FE)),FE.exports}var jE={exports:{}},hSt=jE.exports,Sle;function pSt(){return Sle||(Sle=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Ea())})(hSt,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})(jE)),jE.exports}var VE={exports:{}},vSt=VE.exports,kle;function mSt(){return kle||(kle=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Ea())})(vSt,function(n){return(function(r){var o=n,a=o.lib,s=a.CipherParams,l=o.enc,c=l.Hex,d=o.format;d.Hex={stringify:function(h){return h.ciphertext.toString(c)},parse:function(h){var p=c.parse(h);return s.create({ciphertext:p})}}})(),n.format.Hex})})(VE)),VE.exports}var zE={exports:{}},gSt=zE.exports,xle;function ySt(){return xle||(xle=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Jm(),Qm(),N0(),Ea())})(gSt,function(n){return(function(){var r=n,o=r.lib,a=o.BlockCipher,s=r.algo,l=[],c=[],d=[],h=[],p=[],m=[],g=[],y=[],S=[],k=[];(function(){for(var E=[],_=0;_<256;_++)_<128?E[_]=_<<1:E[_]=_<<1^283;for(var T=0,D=0,_=0;_<256;_++){var P=D^D<<1^D<<2^D<<3^D<<4;P=P>>>8^P&255^99,l[T]=P,c[P]=T;var M=E[T],$=E[M],I=E[$],N=E[P]*257^P*16843008;d[T]=N<<24|N>>>8,h[T]=N<<16|N>>>16,p[T]=N<<8|N>>>24,m[T]=N;var N=I*16843009^$*65537^M*257^T*16843008;g[P]=N<<24|N>>>8,y[P]=N<<16|N>>>16,S[P]=N<<8|N>>>24,k[P]=N,T?(T=M^E[E[E[I^M]]],D^=E[E[D]]):T=D=1}})();var C=[0,1,2,4,8,16,32,64,128,27,54],x=s.AES=a.extend({_doReset:function(){var E;if(!(this._nRounds&&this._keyPriorReset===this._key)){for(var _=this._keyPriorReset=this._key,T=_.words,D=_.sigBytes/4,P=this._nRounds=D+6,M=(P+1)*4,$=this._keySchedule=[],I=0;I6&&I%D==4&&(E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255]):(E=E<<8|E>>>24,E=l[E>>>24]<<24|l[E>>>16&255]<<16|l[E>>>8&255]<<8|l[E&255],E^=C[I/D|0]<<24),$[I]=$[I-D]^E);for(var N=this._invKeySchedule=[],j=0;j>>24]]^y[l[E>>>16&255]]^S[l[E>>>8&255]]^k[l[E&255]]}}},encryptBlock:function(E,_){this._doCryptBlock(E,_,this._keySchedule,d,h,p,m,l)},decryptBlock:function(E,_){var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T,this._doCryptBlock(E,_,this._invKeySchedule,g,y,S,k,c);var T=E[_+1];E[_+1]=E[_+3],E[_+3]=T},_doCryptBlock:function(E,_,T,D,P,M,$,I){for(var N=this._nRounds,j=E[_]^T[0],U=E[_+1]^T[1],z=E[_+2]^T[2],G=E[_+3]^T[3],X=4,ie=1;ie>>24]^P[U>>>16&255]^M[z>>>8&255]^$[G&255]^T[X++],W=D[U>>>24]^P[z>>>16&255]^M[G>>>8&255]^$[j&255]^T[X++],q=D[z>>>24]^P[G>>>16&255]^M[j>>>8&255]^$[U&255]^T[X++],Q=D[G>>>24]^P[j>>>16&255]^M[U>>>8&255]^$[z&255]^T[X++];j=ee,U=W,z=q,G=Q}var ee=(I[j>>>24]<<24|I[U>>>16&255]<<16|I[z>>>8&255]<<8|I[G&255])^T[X++],W=(I[U>>>24]<<24|I[z>>>16&255]<<16|I[G>>>8&255]<<8|I[j&255])^T[X++],q=(I[z>>>24]<<24|I[G>>>16&255]<<16|I[j>>>8&255]<<8|I[U&255])^T[X++],Q=(I[G>>>24]<<24|I[j>>>16&255]<<16|I[U>>>8&255]<<8|I[z&255])^T[X++];E[_]=ee,E[_+1]=W,E[_+2]=q,E[_+3]=Q},keySize:256/32});r.AES=a._createHelper(x)})(),n.AES})})(zE)),zE.exports}var UE={exports:{}},bSt=UE.exports,Cle;function _St(){return Cle||(Cle=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Jm(),Qm(),N0(),Ea())})(bSt,function(n){return(function(){var r=n,o=r.lib,a=o.WordArray,s=o.BlockCipher,l=r.algo,c=[57,49,41,33,25,17,9,1,58,50,42,34,26,18,10,2,59,51,43,35,27,19,11,3,60,52,44,36,63,55,47,39,31,23,15,7,62,54,46,38,30,22,14,6,61,53,45,37,29,21,13,5,28,20,12,4],d=[14,17,11,24,1,5,3,28,15,6,21,10,23,19,12,4,26,8,16,7,27,20,13,2,41,52,31,37,47,55,30,40,51,45,33,48,44,49,39,56,34,53,46,42,50,36,29,32],h=[1,2,4,6,8,10,12,14,15,17,19,21,23,25,27,28],p=[{0:8421888,268435456:32768,536870912:8421378,805306368:2,1073741824:512,1342177280:8421890,1610612736:8389122,1879048192:8388608,2147483648:514,2415919104:8389120,2684354560:33280,2952790016:8421376,3221225472:32770,3489660928:8388610,3758096384:0,4026531840:33282,134217728:0,402653184:8421890,671088640:33282,939524096:32768,1207959552:8421888,1476395008:512,1744830464:8421378,2013265920:2,2281701376:8389120,2550136832:33280,2818572288:8421376,3087007744:8389122,3355443200:8388610,3623878656:32770,3892314112:514,4160749568:8388608,1:32768,268435457:2,536870913:8421888,805306369:8388608,1073741825:8421378,1342177281:33280,1610612737:512,1879048193:8389122,2147483649:8421890,2415919105:8421376,2684354561:8388610,2952790017:33282,3221225473:514,3489660929:8389120,3758096385:32770,4026531841:0,134217729:8421890,402653185:8421376,671088641:8388608,939524097:512,1207959553:32768,1476395009:8388610,1744830465:2,2013265921:33282,2281701377:32770,2550136833:8389122,2818572289:514,3087007745:8421888,3355443201:8389120,3623878657:0,3892314113:33280,4160749569:8421378},{0:1074282512,16777216:16384,33554432:524288,50331648:1074266128,67108864:1073741840,83886080:1074282496,100663296:1073758208,117440512:16,134217728:540672,150994944:1073758224,167772160:1073741824,184549376:540688,201326592:524304,218103808:0,234881024:16400,251658240:1074266112,8388608:1073758208,25165824:540688,41943040:16,58720256:1073758224,75497472:1074282512,92274688:1073741824,109051904:524288,125829120:1074266128,142606336:524304,159383552:0,176160768:16384,192937984:1074266112,209715200:1073741840,226492416:540672,243269632:1074282496,260046848:16400,268435456:0,285212672:1074266128,301989888:1073758224,318767104:1074282496,335544320:1074266112,352321536:16,369098752:540688,385875968:16384,402653184:16400,419430400:524288,436207616:524304,452984832:1073741840,469762048:540672,486539264:1073758208,503316480:1073741824,520093696:1074282512,276824064:540688,293601280:524288,310378496:1074266112,327155712:16384,343932928:1073758208,360710144:1074282512,377487360:16,394264576:1073741824,411041792:1074282496,427819008:1073741840,444596224:1073758224,461373440:524304,478150656:0,494927872:16400,511705088:1074266128,528482304:540672},{0:260,1048576:0,2097152:67109120,3145728:65796,4194304:65540,5242880:67108868,6291456:67174660,7340032:67174400,8388608:67108864,9437184:67174656,10485760:65792,11534336:67174404,12582912:67109124,13631488:65536,14680064:4,15728640:256,524288:67174656,1572864:67174404,2621440:0,3670016:67109120,4718592:67108868,5767168:65536,6815744:65540,7864320:260,8912896:4,9961472:256,11010048:67174400,12058624:65796,13107200:65792,14155776:67109124,15204352:67174660,16252928:67108864,16777216:67174656,17825792:65540,18874368:65536,19922944:67109120,20971520:256,22020096:67174660,23068672:67108868,24117248:0,25165824:67109124,26214400:67108864,27262976:4,28311552:65792,29360128:67174400,30408704:260,31457280:65796,32505856:67174404,17301504:67108864,18350080:260,19398656:67174656,20447232:0,21495808:65540,22544384:67109120,23592960:256,24641536:67174404,25690112:65536,26738688:67174660,27787264:65796,28835840:67108868,29884416:67109124,30932992:67174400,31981568:4,33030144:65792},{0:2151682048,65536:2147487808,131072:4198464,196608:2151677952,262144:0,327680:4198400,393216:2147483712,458752:4194368,524288:2147483648,589824:4194304,655360:64,720896:2147487744,786432:2151678016,851968:4160,917504:4096,983040:2151682112,32768:2147487808,98304:64,163840:2151678016,229376:2147487744,294912:4198400,360448:2151682112,425984:0,491520:2151677952,557056:4096,622592:2151682048,688128:4194304,753664:4160,819200:2147483648,884736:4194368,950272:4198464,1015808:2147483712,1048576:4194368,1114112:4198400,1179648:2147483712,1245184:0,1310720:4160,1376256:2151678016,1441792:2151682048,1507328:2147487808,1572864:2151682112,1638400:2147483648,1703936:2151677952,1769472:4198464,1835008:2147487744,1900544:4194304,1966080:64,2031616:4096,1081344:2151677952,1146880:2151682112,1212416:0,1277952:4198400,1343488:4194368,1409024:2147483648,1474560:2147487808,1540096:64,1605632:2147483712,1671168:4096,1736704:2147487744,1802240:2151678016,1867776:4160,1933312:2151682048,1998848:4194304,2064384:4198464},{0:128,4096:17039360,8192:262144,12288:536870912,16384:537133184,20480:16777344,24576:553648256,28672:262272,32768:16777216,36864:537133056,40960:536871040,45056:553910400,49152:553910272,53248:0,57344:17039488,61440:553648128,2048:17039488,6144:553648256,10240:128,14336:17039360,18432:262144,22528:537133184,26624:553910272,30720:536870912,34816:537133056,38912:0,43008:553910400,47104:16777344,51200:536871040,55296:553648128,59392:16777216,63488:262272,65536:262144,69632:128,73728:536870912,77824:553648256,81920:16777344,86016:553910272,90112:537133184,94208:16777216,98304:553910400,102400:553648128,106496:17039360,110592:537133056,114688:262272,118784:536871040,122880:0,126976:17039488,67584:553648256,71680:16777216,75776:17039360,79872:537133184,83968:536870912,88064:17039488,92160:128,96256:553910272,100352:262272,104448:553910400,108544:0,112640:553648128,116736:16777344,120832:262144,124928:537133056,129024:536871040},{0:268435464,256:8192,512:270532608,768:270540808,1024:268443648,1280:2097152,1536:2097160,1792:268435456,2048:0,2304:268443656,2560:2105344,2816:8,3072:270532616,3328:2105352,3584:8200,3840:270540800,128:270532608,384:270540808,640:8,896:2097152,1152:2105352,1408:268435464,1664:268443648,1920:8200,2176:2097160,2432:8192,2688:268443656,2944:270532616,3200:0,3456:270540800,3712:2105344,3968:268435456,4096:268443648,4352:270532616,4608:270540808,4864:8200,5120:2097152,5376:268435456,5632:268435464,5888:2105344,6144:2105352,6400:0,6656:8,6912:270532608,7168:8192,7424:268443656,7680:270540800,7936:2097160,4224:8,4480:2105344,4736:2097152,4992:268435464,5248:268443648,5504:8200,5760:270540808,6016:270532608,6272:270540800,6528:270532616,6784:8192,7040:2105352,7296:2097160,7552:0,7808:268435456,8064:268443656},{0:1048576,16:33555457,32:1024,48:1049601,64:34604033,80:0,96:1,112:34603009,128:33555456,144:1048577,160:33554433,176:34604032,192:34603008,208:1025,224:1049600,240:33554432,8:34603009,24:0,40:33555457,56:34604032,72:1048576,88:33554433,104:33554432,120:1025,136:1049601,152:33555456,168:34603008,184:1048577,200:1024,216:34604033,232:1,248:1049600,256:33554432,272:1048576,288:33555457,304:34603009,320:1048577,336:33555456,352:34604032,368:1049601,384:1025,400:34604033,416:1049600,432:1,448:0,464:34603008,480:33554433,496:1024,264:1049600,280:33555457,296:34603009,312:1,328:33554432,344:1048576,360:1025,376:34604032,392:33554433,408:34603008,424:0,440:34604033,456:1049601,472:1024,488:33555456,504:1048577},{0:134219808,1:131072,2:134217728,3:32,4:131104,5:134350880,6:134350848,7:2048,8:134348800,9:134219776,10:133120,11:134348832,12:2080,13:0,14:134217760,15:133152,2147483648:2048,2147483649:134350880,2147483650:134219808,2147483651:134217728,2147483652:134348800,2147483653:133120,2147483654:133152,2147483655:32,2147483656:134217760,2147483657:2080,2147483658:131104,2147483659:134350848,2147483660:0,2147483661:134348832,2147483662:134219776,2147483663:131072,16:133152,17:134350848,18:32,19:2048,20:134219776,21:134217760,22:134348832,23:131072,24:0,25:131104,26:134348800,27:134219808,28:134350880,29:133120,30:2080,31:134217728,2147483664:131072,2147483665:2048,2147483666:134348832,2147483667:133152,2147483668:32,2147483669:134348800,2147483670:134217728,2147483671:134219808,2147483672:134350880,2147483673:134217760,2147483674:134219776,2147483675:0,2147483676:133120,2147483677:2080,2147483678:131104,2147483679:134350848}],m=[4160749569,528482304,33030144,2064384,129024,8064,504,2147483679],g=l.DES=s.extend({_doReset:function(){for(var C=this._key,x=C.words,E=[],_=0;_<56;_++){var T=c[_]-1;E[_]=x[T>>>5]>>>31-T%32&1}for(var D=this._subKeys=[],P=0;P<16;P++){for(var M=D[P]=[],$=h[P],_=0;_<24;_++)M[_/6|0]|=E[(d[_]-1+$)%28]<<31-_%6,M[4+(_/6|0)]|=E[28+(d[_+24]-1+$)%28]<<31-_%6;M[0]=M[0]<<1|M[0]>>>31;for(var _=1;_<7;_++)M[_]=M[_]>>>(_-1)*4+3;M[7]=M[7]<<5|M[7]>>>27}for(var I=this._invSubKeys=[],_=0;_<16;_++)I[_]=D[15-_]},encryptBlock:function(C,x){this._doCryptBlock(C,x,this._subKeys)},decryptBlock:function(C,x){this._doCryptBlock(C,x,this._invSubKeys)},_doCryptBlock:function(C,x,E){this._lBlock=C[x],this._rBlock=C[x+1],y.call(this,4,252645135),y.call(this,16,65535),S.call(this,2,858993459),S.call(this,8,16711935),y.call(this,1,1431655765);for(var _=0;_<16;_++){for(var T=E[_],D=this._lBlock,P=this._rBlock,M=0,$=0;$<8;$++)M|=p[$][((P^T[$])&m[$])>>>0];this._lBlock=P,this._rBlock=D^M}var I=this._lBlock;this._lBlock=this._rBlock,this._rBlock=I,y.call(this,1,1431655765),S.call(this,8,16711935),S.call(this,2,858993459),y.call(this,16,65535),y.call(this,4,252645135),C[x]=this._lBlock,C[x+1]=this._rBlock},keySize:64/32,ivSize:64/32,blockSize:64/32});function y(C,x){var E=(this._lBlock>>>C^this._rBlock)&x;this._rBlock^=E,this._lBlock^=E<>>C^this._lBlock)&x;this._lBlock^=E,this._rBlock^=E<192.");var E=x.slice(0,2),_=x.length<4?x.slice(0,2):x.slice(2,4),T=x.length<6?x.slice(0,2):x.slice(4,6);this._des1=g.createEncryptor(a.create(E)),this._des2=g.createEncryptor(a.create(_)),this._des3=g.createEncryptor(a.create(T))},encryptBlock:function(C,x){this._des1.encryptBlock(C,x),this._des2.decryptBlock(C,x),this._des3.encryptBlock(C,x)},decryptBlock:function(C,x){this._des3.decryptBlock(C,x),this._des2.encryptBlock(C,x),this._des1.decryptBlock(C,x)},keySize:192/32,ivSize:64/32,blockSize:64/32});r.TripleDES=s._createHelper(k)})(),n.TripleDES})})(UE)),UE.exports}var HE={exports:{}},SSt=HE.exports,wle;function kSt(){return wle||(wle=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Jm(),Qm(),N0(),Ea())})(SSt,function(n){return(function(){var r=n,o=r.lib,a=o.StreamCipher,s=r.algo,l=s.RC4=a.extend({_doReset:function(){for(var h=this._key,p=h.words,m=h.sigBytes,g=this._S=[],y=0;y<256;y++)g[y]=y;for(var y=0,S=0;y<256;y++){var k=y%m,C=p[k>>>2]>>>24-k%4*8&255;S=(S+g[y]+C)%256;var x=g[y];g[y]=g[S],g[S]=x}this._i=this._j=0},_doProcessBlock:function(h,p){h[p]^=c.call(this)},keySize:256/32,ivSize:0});function c(){for(var h=this._S,p=this._i,m=this._j,g=0,y=0;y<4;y++){p=(p+1)%256,m=(m+h[p])%256;var S=h[p];h[p]=h[m],h[m]=S,g|=h[(h[p]+h[m])%256]<<24-y*8}return this._i=p,this._j=m,g}r.RC4=a._createHelper(l);var d=s.RC4Drop=l.extend({cfg:l.cfg.extend({drop:192}),_doReset:function(){l._doReset.call(this);for(var h=this.cfg.drop;h>0;h--)c.call(this)}});r.RC4Drop=a._createHelper(d)})(),n.RC4})})(HE)),HE.exports}var WE={exports:{}},xSt=WE.exports,Ele;function CSt(){return Ele||(Ele=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Jm(),Qm(),N0(),Ea())})(xSt,function(n){return(function(){var r=n,o=r.lib,a=o.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.Rabbit=a.extend({_doReset:function(){for(var m=this._key.words,g=this.cfg.iv,y=0;y<4;y++)m[y]=(m[y]<<8|m[y]>>>24)&16711935|(m[y]<<24|m[y]>>>8)&4278255360;var S=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],k=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var y=0;y<4;y++)p.call(this);for(var y=0;y<8;y++)k[y]^=S[y+4&7];if(g){var C=g.words,x=C[0],E=C[1],_=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;k[0]^=_,k[1]^=D,k[2]^=T,k[3]^=P,k[4]^=_,k[5]^=D,k[6]^=T,k[7]^=P;for(var y=0;y<4;y++)p.call(this)}},_doProcessBlock:function(m,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,m[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var m=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=m[y]+g[y],k=S&65535,C=S>>>16,x=((k*k>>>17)+k*C>>>15)+C*C,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=x^E}m[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,m[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,m[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,m[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,m[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,m[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,m[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,m[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.Rabbit=a._createHelper(h)})(),n.Rabbit})})(WE)),WE.exports}var GE={exports:{}},wSt=GE.exports,Tle;function ESt(){return Tle||(Tle=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Jm(),Qm(),N0(),Ea())})(wSt,function(n){return(function(){var r=n,o=r.lib,a=o.StreamCipher,s=r.algo,l=[],c=[],d=[],h=s.RabbitLegacy=a.extend({_doReset:function(){var m=this._key.words,g=this.cfg.iv,y=this._X=[m[0],m[3]<<16|m[2]>>>16,m[1],m[0]<<16|m[3]>>>16,m[2],m[1]<<16|m[0]>>>16,m[3],m[2]<<16|m[1]>>>16],S=this._C=[m[2]<<16|m[2]>>>16,m[0]&4294901760|m[1]&65535,m[3]<<16|m[3]>>>16,m[1]&4294901760|m[2]&65535,m[0]<<16|m[0]>>>16,m[2]&4294901760|m[3]&65535,m[1]<<16|m[1]>>>16,m[3]&4294901760|m[0]&65535];this._b=0;for(var k=0;k<4;k++)p.call(this);for(var k=0;k<8;k++)S[k]^=y[k+4&7];if(g){var C=g.words,x=C[0],E=C[1],_=(x<<8|x>>>24)&16711935|(x<<24|x>>>8)&4278255360,T=(E<<8|E>>>24)&16711935|(E<<24|E>>>8)&4278255360,D=_>>>16|T&4294901760,P=T<<16|_&65535;S[0]^=_,S[1]^=D,S[2]^=T,S[3]^=P,S[4]^=_,S[5]^=D,S[6]^=T,S[7]^=P;for(var k=0;k<4;k++)p.call(this)}},_doProcessBlock:function(m,g){var y=this._X;p.call(this),l[0]=y[0]^y[5]>>>16^y[3]<<16,l[1]=y[2]^y[7]>>>16^y[5]<<16,l[2]=y[4]^y[1]>>>16^y[7]<<16,l[3]=y[6]^y[3]>>>16^y[1]<<16;for(var S=0;S<4;S++)l[S]=(l[S]<<8|l[S]>>>24)&16711935|(l[S]<<24|l[S]>>>8)&4278255360,m[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var m=this._X,g=this._C,y=0;y<8;y++)c[y]=g[y];g[0]=g[0]+1295307597+this._b|0,g[1]=g[1]+3545052371+(g[0]>>>0>>0?1:0)|0,g[2]=g[2]+886263092+(g[1]>>>0>>0?1:0)|0,g[3]=g[3]+1295307597+(g[2]>>>0>>0?1:0)|0,g[4]=g[4]+3545052371+(g[3]>>>0>>0?1:0)|0,g[5]=g[5]+886263092+(g[4]>>>0>>0?1:0)|0,g[6]=g[6]+1295307597+(g[5]>>>0>>0?1:0)|0,g[7]=g[7]+3545052371+(g[6]>>>0>>0?1:0)|0,this._b=g[7]>>>0>>0?1:0;for(var y=0;y<8;y++){var S=m[y]+g[y],k=S&65535,C=S>>>16,x=((k*k>>>17)+k*C>>>15)+C*C,E=((S&4294901760)*S|0)+((S&65535)*S|0);d[y]=x^E}m[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,m[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,m[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,m[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,m[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,m[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,m[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,m[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.RabbitLegacy=a._createHelper(h)})(),n.RabbitLegacy})})(GE)),GE.exports}var KE={exports:{}},TSt=KE.exports,Ale;function ASt(){return Ale||(Ale=1,(function(e,t){(function(n,r,o){e.exports=r(Oi(),Jm(),Qm(),N0(),Ea())})(TSt,function(n){return(function(){var r=n,o=r.lib,a=o.BlockCipher,s=r.algo;const l=16,c=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],d=[[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946],[1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055],[3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504],[976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462]];var h={pbox:[],sbox:[]};function p(k,C){let x=C>>24&255,E=C>>16&255,_=C>>8&255,T=C&255,D=k.sbox[0][x]+k.sbox[1][E];return D=D^k.sbox[2][_],D=D+k.sbox[3][T],D}function m(k,C,x){let E=C,_=x,T;for(let D=0;D1;--D)E=E^k.pbox[D],_=p(k,E)^_,T=E,E=_,_=T;return T=E,E=_,_=T,_=_^k.pbox[1],E=E^k.pbox[0],{left:E,right:_}}function y(k,C,x){for(let P=0;P<4;P++){k.sbox[P]=[];for(let M=0;M<256;M++)k.sbox[P][M]=d[P][M]}let E=0;for(let P=0;P=x&&(E=0);let _=0,T=0,D=0;for(let P=0;PLle.enc.Base64.stringify(Lle.enc.Utf8.parse(e)),PSt=e=>{if(!e||typeof e!="object")return"";try{const t=JSON.stringify(e);return Mz(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},Mp=e=>!e||typeof e!="string"||e.trim().length===0||e.length>100?!1:!/[\x00-\x1F\x7F]/.test(e),RSt=e=>{if(!e||typeof e!="string")return!1;const t=e.trim();return t.length===0||t==="no_data"?!1:e.length<=1024},MSt={NORMAL:"normal"},OSt=()=>({vod_id:"",vod_name:"",vod_pic:"",vod_remarks:"",vod_content:"",vod_play_from:"",vod_play_url:"",vod_time:"",vod_year:"",vod_area:"",vod_lang:"",vod_actor:"",vod_director:"",vod_writer:"",vod_blurb:"",vod_class:"",vod_tag:"",vod_score:"",vod_hits:0,vod_duration:"",vod_total:0,vod_serial:0,vod_tv:"",vod_weekday:"",vod_status:MSt.NORMAL}),$St=()=>({page:1,pageSize:20,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),BSt=()=>({key:"",name:"",type:0,api:"",searchable:1,quickSearch:1,filterable:1,order:0,ext:""});class NSt{constructor(){this.cache=new Map,this.cacheTimeout=300*1e3}async getRecommendVideos(t,n={}){if(!Mp(t))throw new Error("无效的模块名称");const{apiUrl:r,...o}=n,a=`home_${t}_${JSON.stringify(n)}`,s=this.getFromCache(a);if(s)return s;try{const l={...o};r&&(l.apiUrl=r);const c=await f_t(t,l),d={categories:c.class||[],filters:c.filters||{},videos:(c.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(c)};return this.setCache(a,d),d}catch(l){throw console.error("获取首页推荐视频失败:",l),l}}async getCategoryVideos(t,n){if(!Mp(t))throw new Error("无效的模块名称");const{typeId:r,page:o=1,filters:a={},apiUrl:s,extend:l}=n;if(!r)throw new Error("分类ID不能为空");const c=`category_${t}_${r}_${o}_${JSON.stringify(a)}`,d=this.getFromCache(c);if(d)return d;try{const h={t:r,pg:o};Object.keys(a).length>0&&(h.ext=PSt(a));const p=ua(l);p&&(h.extend=p),s&&(h.apiUrl=s);const m=await U1(t,h),g={videos:(m.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(m,o),filters:m.filters||{},total:m.total||0};return this.setCache(c,g),g}catch(h){throw console.error("获取分类视频失败:",h),h}}async getVideoDetails(t,n,r,o=!1,a=null){if(!Mp(t))throw new Error("无效的模块名称");if(!RSt(n))throw new Error("无效的视频ID");const s=`detail_${t}_${n}`;if(o)console.log("跳过缓存,强制获取最新视频详情:",{module:t,videoId:n});else{const l=this.getFromCache(s);if(l)return console.log("使用缓存的视频详情:",{module:t,videoId:n}),l}try{const l={ids:n};r&&(l.apiUrl=r);const c=ua(a);c&&(l.extend=c);const d=await h_t(t,l);if(!d.list||d.list.length===0)throw new Error("视频不存在");const h=this.formatVideoInfo(d.list[0]);return h.vod_play_url&&(h.playList=this.parsePlayUrls(h.vod_play_url,h.vod_play_from)),this.setCache(s,h),h}catch(l){throw console.error("获取视频详情失败:",l),l}}async searchVideo(t,n){if(!Mp(t))throw new Error("无效的模块名称");const{keyword:r,page:o=1,extend:a,apiUrl:s}=n;if(!r||r.trim().length===0)throw new Error("搜索关键词不能为空");try{const l={wd:r.trim(),pg:o},c=ua(a);c&&(l.extend=c),s&&(l.apiUrl=s);const d=await v_t(t,l);return{videos:(d.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(d,o),keyword:r.trim(),total:d.total||0,rawResponse:d}}catch(l){throw console.error("搜索视频失败:",l),l}}async getPlayUrl(t,n,r,o=null){if(!Mp(t))throw new Error("无效的模块名称");if(!n)throw new Error("播放地址不能为空");try{const a={play:n};r&&(a.apiUrl=r);const s=ua(o);s&&(a.extend=s);const l=await f3e(t,a);return{url:l.url||n,headers:l.headers||{},parse:l.parse||!1,jx:l.jx||""}}catch(a){throw console.error("获取播放地址失败:",a),a}}async parseVideoUrl(t,n,r={}){if(!t)throw new Error("解析器名称不能为空");if(!n)throw new Error("视频地址不能为空");try{const o=await y_t(t,{url:n,...r});return{url:o.url||n,type:o.type||"mp4",headers:o.headers||{},success:o.success!==!1}}catch(o){throw console.error("解析视频地址失败:",o),o}}async parseEpisodePlayUrl(t,n){if(!Mp(t))throw new Error("无效的模块名称");const{play:r,flag:o,apiUrl:a,extend:s}=n;if(!r)throw new Error("播放地址不能为空");try{console.log("VideoService: 开始解析选集播放地址",{module:t,params:n});const l={play:r,extend:ua(s)};o&&(l.flag=o),a&&(l.apiUrl=a);const c=await p_t(t,l);return console.log("VideoService: 选集播放解析结果",c),c}catch(l){throw console.error("VideoService: 解析选集播放地址失败:",l),l}}async executeT4Action(t,n,r={}){if(!Mp(t))throw new Error("无效的模块名称");if(!n||n.trim().length===0)throw new Error("动作名称不能为空");try{const o={action:n.trim(),value:r.value||"",extend:ua(r.extend),apiUrl:r.apiUrl};console.log("执行T4 action:",{module:t,actionData:o});const a=await WA(t,o);return console.log("T4 action执行结果:",a),a}catch(o){throw console.error("T4 action执行失败:",o),o}}async refreshModuleData(t,n=null,r=null){if(!Mp(t))throw new Error("无效的模块名称");try{this.clearModuleCache(t);const o=ua(n),a=await m_t(t,o,r);return{success:!0,message:a.msg||"刷新成功",lastUpdate:a.data?.lastUpdate||new Date().toISOString()}}catch(o){throw console.error("刷新模块数据失败:",o),o}}formatVideoInfo(t){const n=OSt();return Object.keys(n).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),t.vod_hits&&(n.vod_hits=parseInt(t.vod_hits)||0),t.vod_score&&(n.vod_score=parseFloat(t.vod_score)||0),n}parsePlayUrls(t,n){if(!t)return[];const r=n?n.split("$$$"):["默认"],o=t.split("$$$");return r.map((a,s)=>({from:a.trim(),urls:this.parseEpisodeUrls(o[s]||""),index:s}))}parseEpisodeUrls(t){return t?t.split("#").map((n,r)=>{const[o,a]=n.split("$");return{name:o||`第${r+1}集`,url:a||"",index:r}}).filter(n=>n.url):[]}createPagination(t,n=1){const r=$St();r.page=n;const o=t.total||t.recordcount||0,a=t.pagecount||t.totalPages||0,s=t.limit||t.pagesize||20,l=t.list||[];return r.total=o,r.pageSize=s,a>0?(r.totalPages=a,r.hasNext=n0?(r.totalPages=Math.ceil(o/s),r.hasNext=nd.vod_id==="no_data"||d.vod_name==="no_data"||typeof d=="string"&&d.includes("no_data"))||l.length===0?(r.hasNext=!1,r.totalPages=n):(r.hasNext=!0,r.totalPages=n+1),r.hasPrev=n>1,r}getFromCache(t){const n=this.cache.get(t);return n&&Date.now()-n.timestamp{const n=`${cG.PROXY}/${e}`;return t?`${n}/${t}`:n},FSt=async(e,t="",n={})=>{const r=KA(e,t);return B0(r,n)},jSt=async(e,t="",n={})=>{const r=KA(e,t);return d3e(r,n)},VSt=async(e,t="",n={})=>{const r=KA(e,t);return c_t(r,n)},zSt=async(e,t="",n={})=>{const r=KA(e,t);return d_t(r,n)},USt=async(e,t="",n={})=>{const{method:r="GET",params:o,data:a}=n;switch(r.toUpperCase()){case"GET":return FSt(e,t,o);case"POST":return jSt(e,t,a);case"PUT":return VSt(e,t,a);case"DELETE":return zSt(e,t,o);default:throw new Error(`不支持的请求方法: ${r}`)}};class HSt{constructor(){this.configUrl=null,this.configData=null,this.lastFetchTime=null,this.cacheExpiry=300*1e3,this.liveConfigUrl=null,this.loadConfigFromStorage()}async setConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("配置地址格式不正确,请输入有效的HTTP/HTTPS地址");if(!await this.validateConfigUrl(t))throw new Error("配置地址无法访问或数据格式不正确");return this.configUrl=t,this.saveConfigToStorage(),await this.autoSetLiveConfigUrl(),console.log("配置地址设置成功:",t),!0}catch(n){throw console.error("设置配置地址失败:",n),n}}async setLiveConfigUrl(t){try{if(!t||typeof t!="string")throw new Error("直播配置地址不能为空");if(!/^https?:\/\/.+/.test(t))throw new Error("直播配置地址格式不正确,请输入有效的HTTP/HTTPS地址");return this.liveConfigUrl=t,this.saveConfigToStorage(),console.log("直播配置地址设置成功:",t),!0}catch(n){throw console.error("设置直播配置地址失败:",n),n}}getLiveConfigUrl(){return this.liveConfigUrl}async autoSetLiveConfigUrl(){try{if(this.liveConfigUrl)return!1;const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("自动设置直播配置地址成功:",n.url),!0)}catch(t){return console.error("自动设置直播配置地址失败:",t),!1}}async resetLiveConfigUrl(){try{const t=await this.getConfigData();if(!t||!t.lives||!Array.isArray(t.lives)||t.lives.length===0)return console.log("点播配置中未找到lives链接,无法重置"),!1;const n=t.lives[0];return!n||!n.url?(console.log("lives配置中未找到有效的url,无法重置"),!1):(this.liveConfigUrl=n.url,this.saveConfigToStorage(),console.log("直播配置地址重置成功:",n.url),!0)}catch(t){return console.error("重置直播配置地址失败:",t),!1}}getConfigUrl(){return this.configUrl}async validateConfigUrl(t){try{const n=await lo.get(t,{timeout:1e4,headers:{Accept:"application/json"}});if(!n.data)return!1;const r=n.data;if(!r.sites||!Array.isArray(r.sites))return!1;if(r.sites.length>0){const o=r.sites[0];if(!o.key||!o.name||!o.api)return!1}return!0}catch(n){return console.error("验证配置地址失败:",n),!1}}async getConfigData(t=!1){try{if(!this.configUrl)throw new Error("未设置配置地址");const n=Date.now(),r=this.configData&&this.lastFetchTime&&n-this.lastFetchTime{try{this.addSite(r)?n.success++:(n.failed++,n.errors.push(`第${o+1}个站点添加失败`))}catch(a){n.failed++,n.errors.push(`第${o+1}个站点添加失败: ${a.message}`)}}),console.log("批量导入站点完成:",n),n}exportSites(){return this.getAllSites()}async testSiteConnection(t){const n=this.sites.get(t);if(!n)throw new Error("站点不存在");try{const r=await USt(n.key,"",{method:"GET",params:{test:!0}});return{success:!0,message:"连接成功",responseTime:Date.now(),data:r}}catch(r){return{success:!1,message:r.message||"连接失败",error:r}}}getSiteStats(){const t=this.getAllSites();return{total:t.length,searchable:t.filter(n=>n.searchable).length,filterable:t.filter(n=>n.filterable).length,quickSearch:t.filter(n=>n.quickSearch).length,byType:this.groupSitesByType(t)}}groupSitesByType(t){const n={};return t.forEach(r=>{const o=r.type||0;n[o]||(n[o]=[]),n[o].push(r)}),n}searchSites(t){if(!t||t.trim().length===0)return this.getAllSites();const n=t.trim().toLowerCase();return this.getAllSites().filter(r=>r.name.toLowerCase().includes(n)||r.key.toLowerCase().includes(n)||r.api&&r.api.toLowerCase().includes(n))}formatSiteInfo(t){const n=BSt();return Object.keys(n).forEach(r=>{t[r]!==void 0&&(n[r]=t[r])}),n.searchable=t.searchable?1:0,n.quickSearch=t.quickSearch?1:0,n.filterable=t.filterable?1:0,n.type=parseInt(t.type)||0,n.order=parseInt(t.order)||0,n}loadSitesFromStorage(){try{const t=localStorage.getItem("drplayer_sites"),n=localStorage.getItem("drplayer_current_site");t&&JSON.parse(t).forEach(o=>{this.sites.set(o.key,o)}),n&&(this.currentSite=this.sites.get(n)),console.log("从本地存储加载站点配置成功")}catch(t){console.error("加载站点配置失败:",t)}}saveSitesToStorage(){try{const t=this.getAllSites();localStorage.setItem("drplayer_sites",JSON.stringify(t)),this.currentSite?localStorage.setItem("drplayer_current_site",this.currentSite.key):localStorage.removeItem("drplayer_current_site"),console.log("保存站点配置到本地存储成功")}catch(t){console.error("保存站点配置失败:",t)}}emitSiteChange(t){console.log("站点已切换:",t.name),typeof window<"u"&&window.dispatchEvent(new CustomEvent("siteChange",{detail:{site:t}}))}clearAllSites(){this.sites.clear(),this.currentSite=null,this.saveSitesToStorage(),console.log("已清空所有站点配置")}async initializeFromConfig(){try{ml.getConfigStatus().hasConfigUrl&&await this.loadSitesFromConfig()}catch(t){console.error("从配置服务初始化失败:",t)}}async loadSitesFromConfig(t=!1){try{const n=await ml.getSites(t);if(n&&n.length>0){const r=this.currentSite,o=Array.from(this.sites.values()).filter(a=>a.isLocal);return this.sites.clear(),o.forEach(a=>{this.sites.set(a.key,a)}),n.forEach(a=>{const s=this.formatSiteInfo(a);s.isFromConfig=!0,this.sites.set(s.key,s)}),this.handleSmartSiteSwitch(r),this.saveSitesToStorage(),console.log(`从配置加载了 ${n.length} 个站点`),this.emitSitesUpdate(),n}return[]}catch(n){throw console.error("从配置加载站点失败:",n),n}}async refreshConfig(){try{return await this.loadSitesFromConfig(!0)}catch(t){throw console.error("刷新配置失败:",t),t}}getConfigStatus(){return ml.getConfigStatus()}async setConfigUrl(t){try{const n=await ml.setConfigUrl(t);return n&&await this.loadSitesFromConfig(!0),n}catch(n){throw console.error("设置配置地址失败:",n),n}}getConfigUrl(){return ml.getConfigUrl()}emitSitesUpdate(){typeof window<"u"&&window.dispatchEvent(new CustomEvent("sitesUpdate",{detail:{sites:this.getAllSites(),count:this.sites.size}}))}handleSmartSiteSwitch(t){let n=!1;if(t&&t.key)if(this.sites.has(t.key))this.currentSite=this.sites.get(t.key),console.log("保持当前源:",this.currentSite.name);else{const o=this.getAllSites();if(o.length>0){const a=o.find(s=>s.type===4)||o[0];this.currentSite=a,n=!0,console.log("自动切换到新源:",this.currentSite.name),this.emitSiteChange(this.currentSite)}}else{const r=this.getAllSites();if(r.length>0){const o=r.find(a=>a.type===4)||r[0];this.currentSite=o,n=!0,console.log("设置默认源:",this.currentSite.name),this.emitSiteChange(this.currentSite)}}n&&this.emitReloadSource()}emitReloadSource(){typeof window<"u"&&(window.dispatchEvent(new CustomEvent("reloadSource",{detail:{site:this.currentSite,timestamp:Date.now()}})),console.log("触发重载源事件"))}}const Ds=new WSt,GSt={key:0,class:"filter-section"},KSt={class:"filter-content"},qSt={class:"filter-header-with-reset"},YSt={class:"filter-group-row"},XSt={class:"filter-group-title"},ZSt={class:"filter-options-container"},JSt={class:"filter-options"},QSt={__name:"FilterSection",props:{filters:{type:Array,default:null},selectedFilters:{type:Object,default:()=>({})},visible:{type:Boolean,default:!1}},emits:["update:visible","update:selectedFilters","toggle-filter","reset-filters"],setup(e,{emit:t}){const n=e,r=t,o=F(()=>n.selectedFilters&&Object.keys(n.selectedFilters).length>0),a=(c,d)=>n.selectedFilters?.[c]===d,s=(c,d,h)=>{r("toggle-filter",{filterKey:c,filterValue:d,filterName:h})},l=()=>{r("reset-filters")};return(c,d)=>{const h=Pe("a-button"),p=Pe("a-tag");return e.filters?(H(),J("div",GSt,[O(xs,{name:"collapse"},{default:de(()=>[wi(L("div",KSt,[L("div",qSt,[o.value?(H(),Je(h,{key:0,type:"text",size:"small",onClick:l,class:"filter-reset-btn",title:"重置所有筛选条件"},{icon:de(()=>[O(et(df))]),_:1})):Me("",!0)]),(H(!0),J(Ft,null,pn(e.filters,m=>(H(),J("div",{key:m.key,class:"filter-group"},[L("div",YSt,[L("div",XSt,Ve(m.name),1),L("div",ZSt,[L("div",JSt,[(H(!0),J(Ft,null,pn(m.value,g=>(H(),Je(p,{key:g.v,color:a(m.key,g.v)?"green":"",checkable:!0,checked:a(m.key,g.v),onCheck:y=>s(m.key,g.v,g.n),class:"filter-option-tag"},{default:de(()=>[We(Ve(g.n),1)]),_:2},1032,["color","checked","onCheck"]))),128))])])])]))),128))],512),[[Qo,e.visible]])]),_:1})])):Me("",!0)}}},e6t=_r(QSt,[["__scopeId","data-v-90bc92fe"]]),t6t={class:"category-nav-container"},n6t={key:0,class:"special-category-header"},r6t={class:"special-category-title"},i6t={class:"category-name"},o6t=["onClick"],s6t={class:"category-name"},a6t={__name:"CategoryNavigation",props:{classList:{type:Object,default:()=>({})},trigger:{type:String,default:"click"},hasRecommendVideos:{type:Boolean,default:!1},activeKey:{type:String,default:""},filters:{type:Object,default:()=>({})},selectedFilters:{type:Object,default:()=>({})},specialCategoryState:{type:Object,default:()=>({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null})}},emits:["tab-change","open-category-modal","toggle-filter","reset-filters","close-special-category"],setup(e,{emit:t}){const n=e,r=t,o=()=>n.hasRecommendVideos?"recommendTuijian404":n.classList?.class&&n.classList.class.length>0?n.classList.class[0].type_id:"recommendTuijian404",a=fe(n.activeKey||o()),s=fe(null),l=fe({});let c=null;Pt(()=>[n.hasRecommendVideos,n.classList,n.activeKey],()=>{const C=n.activeKey||o();a.value!==C&&(a.value=C,n.activeKey||d(C))},{immediate:!0}),Pt(a,(C,x)=>{x&&l.value[x]&&(l.value[x]=!1)});const d=C=>{a.value=C,r("tab-change",C)},h=C=>{p(C)&&(l.value[C]=!l.value[C])},p=C=>{const x=n.filters[C];return x&&Object.keys(x).length>0},m=C=>n.filters[C]||null,g=C=>{r("toggle-filter",C)},y=()=>{r("reset-filters")},S=()=>{r("open-category-modal")},k=()=>{console.log("关闭特殊分类"),r("close-special-category")};return vn(()=>{const C=s.value;if(!C)return;const x=C.querySelector(".arco-tabs-nav-tab-list");x&&(c=E=>{Math.abs(E.deltaY)>Math.abs(E.deltaX)&&(x.scrollLeft+=E.deltaY,E.preventDefault())},x.addEventListener("wheel",c,{passive:!1}))}),Oo(()=>{const x=s.value?.querySelector?.(".arco-tabs-nav-tab-list");x&&c&&x.removeEventListener("wheel",c)}),(C,x)=>{const E=Pe("a-tab-pane"),_=Pe("a-tabs");return H(),J("div",t6t,[L("div",{class:"category-nav-wrapper",ref_key:"navWrapperRef",ref:s},[e.specialCategoryState.isActive?(H(),J("div",n6t,[L("div",r6t,[L("span",i6t,Ve(e.specialCategoryState.categoryData?.type_name||"特殊分类"),1),x[1]||(x[1]=L("span",{class:"category-type"},"(源内搜索)",-1))])])):(H(),Je(_,{key:1,"active-key":a.value,"onUpdate:activeKey":x[0]||(x[0]=T=>a.value=T),type:"line",position:"top",editable:!1,onChange:d},{default:de(()=>[e.hasRecommendVideos?(H(),Je(E,{key:"recommendTuijian404"},{title:de(()=>[...x[2]||(x[2]=[L("span",null,"推荐",-1)])]),_:1})):Me("",!0),(H(!0),J(Ft,null,pn(e.classList?.class||[],T=>(H(),Je(E,{key:T.type_id},{title:de(()=>[L("div",{class:"category-tab-title",onClick:us(D=>T.type_id===a.value&&p(T.type_id)?h(T.type_id):d(T.type_id),["stop"])},[L("span",s6t,Ve(T.type_name),1),T.type_id===a.value&&p(T.type_id)?(H(),Je(et(FH),{key:0,class:le(["filter-icon",{"filter-icon-active":l.value[T.type_id]}])},null,8,["class"])):Me("",!0)],8,o6t)]),_:2},1024))),128))]),_:1},8,["active-key"])),e.specialCategoryState.isActive?(H(),J("div",{key:2,class:"special-category-close",onClick:k},[O(et(ds)),x[3]||(x[3]=L("span",null,"返回",-1))])):(H(),J("div",{key:3,class:"category-manage",onClick:S},[O(et(Eve))]))],512),m(a.value)&&l.value[a.value]?(H(),Je(e6t,{key:0,filters:m(a.value),selectedFilters:e.selectedFilters[a.value]||{},visible:!0,onToggleFilter:g,onResetFilters:y},null,8,["filters","selectedFilters"])):Me("",!0)])}}},l6t=_r(a6t,[["__scopeId","data-v-268f8902"]]),u6t="modulepreload",c6t=function(e){return"/apps/drplayer/"+e},Dle={},Of=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){let d=function(h){return Promise.all(h.map(p=>Promise.resolve(p).then(m=>({status:"fulfilled",value:m}),m=>({status:"rejected",reason:m}))))};var s=d;document.getElementsByTagName("link");const l=document.querySelector("meta[property=csp-nonce]"),c=l?.nonce||l?.getAttribute("nonce");o=d(n.map(h=>{if(h=c6t(h),h in Dle)return;Dle[h]=!0;const p=h.endsWith(".css"),m=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${m}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":u6t,p||(g.as="script"),g.crossOrigin="",g.href=h,c&&g.setAttribute("nonce",c),document.head.appendChild(g),p)return new Promise((y,S)=>{g.addEventListener("load",y),g.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${h}`)))})}))}function a(l){const c=new Event("vite:preloadError",{cancelable:!0});if(c.payload=l,window.dispatchEvent(c),!c.defaultPrevented)throw l}return o.then(l=>{for(const c of l||[])c.status==="rejected"&&a(c.reason);return t().catch(a)})},d6t={name:"ActionDialog",props:{visible:{type:Boolean,default:!1},title:{type:String,default:""},width:{type:[Number,String],default:400},height:{type:[Number,String],default:"auto"},bottom:{type:Number,default:0},canceledOnTouchOutside:{type:Boolean,default:!0},dimAmount:{type:Number,default:.45},showClose:{type:Boolean,default:!0},escapeToClose:{type:Boolean,default:!0},customClass:{type:String,default:""},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["update:visible","close","open","opened","closed","toast","reset"],setup(e,{emit:t}){const n=fe(!1),r=fe(!1),o=()=>{r.value=window.innerWidth<=768},a=F(()=>{const p={};return r.value?(p.width="95vw",p.maxWidth="95vw",p.margin="0 auto",e.height&&e.height!=="auto"&&(p.maxHeight="85vh")):(e.width&&(p.width=typeof e.width=="number"?`${e.width}px`:e.width,p.maxWidth="90vw"),e.height&&e.height!=="auto"&&(p.height=typeof e.height=="number"?`${e.height}px`:e.height,p.maxHeight="90vh")),e.bottom>0&&(p.marginBottom=`${e.bottom}px`),p}),s=F(()=>{const p={};return e.height&&e.height!=="auto"&&(p.maxHeight="calc(100% - 120px)",p.overflowY="auto"),p}),l=()=>{e.canceledOnTouchOutside&&c()},c=async()=>{n.value||(t("close"),n.value=!0,await new Promise(p=>setTimeout(p,300)),t("update:visible",!1),n.value=!1,t("closed"))},d=p=>{p.key==="Escape"&&e.escapeToClose&&e.visible&&c()};return Pt(()=>e.visible,p=>{p?(t("open"),o(),_n(()=>{t("opened")}),document.addEventListener("keydown",d),window.addEventListener("resize",o),document.body.style.overflow="hidden"):(document.removeEventListener("keydown",d),window.removeEventListener("resize",o),document.body.style.overflow="")},{immediate:!0}),{isClosing:n,isMobile:r,dialogStyle:a,contentStyle:s,handleMaskClick:l,handleClose:c,cleanup:()=>{document.removeEventListener("keydown",d),window.removeEventListener("resize",o),document.body.style.overflow=""}}},beforeUnmount(){this.cleanup()}},f6t={key:1,class:"action-dialog-header"},h6t={class:"action-dialog-title"},p6t={key:2,class:"action-dialog-footer"};function v6t(e,t,n,r,o,a){return H(),Je(Um,{to:"body"},[O(xs,{name:"action-mask",appear:""},{default:de(()=>[n.visible?(H(),J("div",{key:0,class:le(["action-mask modal-backdrop",{closing:r.isClosing}]),style:Ge({"--dim-amount":n.dimAmount}),onClick:t[2]||(t[2]=(...s)=>r.handleMaskClick&&r.handleMaskClick(...s))},[O(xs,{name:"action-dialog",appear:""},{default:de(()=>[n.visible&&!r.isClosing?(H(),J("div",{key:0,class:le(["action-dialog glass-effect card-modern animate-bounce-in",[n.customClass,{"action-dialog-mobile":r.isMobile}]]),style:Ge(r.dialogStyle),onClick:t[1]||(t[1]=us(()=>{},["stop"]))},[t[4]||(t[4]=L("div",{class:"action-dialog-bg gradient-primary"},null,-1)),n.showClose?(H(),J("button",{key:0,class:"action-dialog-close btn-modern-icon",onClick:t[0]||(t[0]=(...s)=>r.handleClose&&r.handleClose(...s)),title:"关闭"},[...t[3]||(t[3]=[L("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[L("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),L("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):Me("",!0),n.title||e.$slots.header?(H(),J("div",f6t,[dt(e.$slots,"header",{},()=>[L("h3",h6t,Ve(n.title),1)],!0)])):Me("",!0),L("div",{class:"action-dialog-content",style:Ge(r.contentStyle)},[dt(e.$slots,"default",{},void 0,!0)],4),e.$slots.footer?(H(),J("div",p6t,[dt(e.$slots,"footer",{},void 0,!0)])):Me("",!0)],6)):Me("",!0)]),_:3})],6)):Me("",!0)]),_:3})])}const Jh=_r(d6t,[["render",v6t],["__scopeId","data-v-814adcb8"]]),xi={INPUT:"input",EDIT:"edit",MULTI_INPUT:"multiInput",MULTI_INPUT_X:"multiInputX",MENU:"menu",SELECT:"select",MSGBOX:"msgbox",WEBVIEW:"webview",HELP:"help"},fy={PARSE_ERROR:"PARSE_ERROR",VALIDATION_ERROR:"VALIDATION_ERROR",NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",USER_CANCEL:"USER_CANCEL"},hi={OK_CANCEL:0,OK_ONLY:1,CANCEL_ONLY:2,CUSTOM:3},Hc=e=>e==null?hi.OK_CANCEL:Object.values(hi).includes(e)?e:hi.CUSTOM,hy=(e,t,n=null)=>({type:e,message:t,details:n}),pG=e=>{try{return typeof e=="string"?JSON.parse(e):e&&typeof e=="object"&&e.config?e.config:e}catch(t){throw hy(fy.PARSE_ERROR,"无法解析Action配置",t)}},v3e=e=>{if(!e||typeof e!="object")throw hy(fy.VALIDATION_ERROR,"Action配置必须是一个对象");if(!e.actionId)throw hy(fy.VALIDATION_ERROR,"actionId是必需的");if(!Object.values(xi).includes(e.type))throw hy(fy.VALIDATION_ERROR,`不支持的Action类型: ${e.type}`);return!0},wb=e=>{if(!e)return[];try{return e.startsWith("[")||e.startsWith("{")?JSON.parse(e):e.includes(":=")?e.split(",").map(t=>{const n=t.trim(),[r,o]=n.split(":=");return{name:r?r.trim():n,value:o?o.trim():n}}).filter(t=>t.name):e.split("|").map(t=>{const[n,r]=t.split("=");return{name:n||t,value:r||t}})}catch(t){return console.warn("解析selectData失败:",t),[]}},m3e=(e,t="200x200")=>{const[n,r]=t.split("x").map(o=>parseInt(o)||200);return`https://api.qrserver.com/v1/create-qr-code/?size=${n}x${r}&data=${encodeURIComponent(e)}`},g3e=(e,t)=>{let n;return function(...o){const a=()=>{clearTimeout(n),e(...o)};clearTimeout(n),n=setTimeout(a,t)}},m6t=Hm(()=>Of(()=>Promise.resolve().then(()=>UBt),void 0)),g6t=Hm(()=>Of(()=>Promise.resolve().then(()=>MNt),void 0)),y6t=Hm(()=>Of(()=>Promise.resolve().then(()=>MFt),void 0)),b6t=Hm(()=>Of(()=>Promise.resolve().then(()=>wjt),void 0)),_6t=Hm(()=>Of(()=>Promise.resolve().then(()=>Jjt),void 0)),S6t=Hm(()=>Of(()=>Promise.resolve().then(()=>nzt),void 0)),k6t={name:"ActionRenderer",components:{ActionDialog:Jh,InputAction:m6t,MultiInputAction:g6t,MenuAction:y6t,MsgBoxAction:b6t,WebViewAction:_6t,HelpAction:S6t},props:{actionData:{type:[String,Object],default:null},visible:{type:Boolean,default:!0},autoShow:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["action","close","error","success","special-action"],setup(e,{emit:t}){const n=fe(null),r=fe(null),o=fe(!1),a=fe(e.visible),s={[xi.INPUT]:"InputAction",[xi.EDIT]:"InputAction",[xi.MULTI_INPUT]:"MultiInputAction",[xi.MULTI_INPUT_X]:"MultiInputAction",[xi.MENU]:"MenuAction",[xi.SELECT]:"MenuAction",[xi.MSGBOX]:"MsgBoxAction",[xi.WEBVIEW]:"WebViewAction",[xi.HELP]:"HelpAction"},l=F(()=>{if(!n.value)return console.log("ActionRenderer currentComponent: parsedConfig.value 为空"),null;const D=s[n.value.type]||null;return console.log("ActionRenderer currentComponent:",{type:n.value.type,component:D,parsedConfig:n.value}),D}),c=D=>{try{if(console.log("ActionRenderer parseConfig 开始解析:",D),!D){n.value=null;return}const P=pG(D);console.log("ActionRenderer parseConfig 解析后的配置:",P),v3e(P),d(P),n.value=P,r.value=null,console.log("ActionRenderer parseConfig 设置 parsedConfig.value:",n.value),e.autoShow?(a.value=!0,console.log("ActionRenderer parseConfig 设置 isVisible.value = true, autoShow:",e.autoShow)):console.log("ActionRenderer parseConfig autoShow 为 false,不自动显示")}catch(P){console.error("解析Action配置失败:",P),r.value=P,n.value=null}},d=D=>{const{actionId:P}=D},h=async D=>{const{actionId:P}=D;switch(P){case"__self_search__":if(console.log("🚀 [ActionRenderer DEBUG] 处理__self_search__专项动作"),console.log("🚀 [ActionRenderer DEBUG] actionData:",JSON.stringify(D,null,2)),!D.tid){console.error("🚀 [ActionRenderer ERROR] 源内搜索参数不完整:缺少tid"),ir("源内搜索参数不完整:缺少tid","error"),g();break}const M={tid:D.tid,type_id:D.tid,name:D.name,type_name:D.name||`搜索: ${D.tid}`,isSpecialCategory:!0,actionData:D};console.log("🚀 [ActionRenderer DEBUG] 构造的 specialCategory:",JSON.stringify(M,null,2)),console.log("🚀 [ActionRenderer DEBUG] 即将触发 special-action 事件"),ir(D.msg||"执行源内搜索","info"),t("special-action","__self_search__",M),console.log("🚀 [ActionRenderer DEBUG] special-action 事件已触发,关闭组件"),g();break;case"__detail__":ir("跳转到详情页","info"),t("special-action","detail",D),g();break;case"__ktvplayer__":ir("启动KTV播放","info"),t("special-action","ktv-player",D),g();break;case"__refresh_list__":ir("刷新列表","info"),t("special-action","refresh-list",D),g();break;case"__copy__":if(D.content)try{await navigator.clipboard.writeText(D.content),ir("已复制到剪贴板","success")}catch{ir("复制失败","error")}g();break;case"__keep__":D.msg&&ir(D.msg,"info"),D.reset&&(n.value=null);break;default:ir(`未知的专项动作: ${P}`,"warning"),g();break}},p=async D=>{if(n.value)try{o.value=!0;const P={action:n.value.actionId,value:typeof D=="object"?JSON.stringify(D):D};e.extend&&(P.extend=e.extend),e.apiUrl&&(P.apiUrl=e.apiUrl),console.log("ActionRenderer准备调用T4接口:",{module:e.module,actionData:P,apiUrl:e.apiUrl});let M=null;if(e.module?(M=await E(e.module,P),console.log("T4接口返回结果:",M)):(M=await t("action",n.value.actionId,D),console.log("父组件处理结果:",M)),M){if(typeof M=="string")try{M=JSON.parse(M)}catch{ir(M,"success"),t("success",D),g();return}if(typeof M=="object"){if(console.log("处理API返回的对象结果:",M),M.error)throw hy(fy.NETWORK_ERROR,M.error);if(M.toast&&ir(M.toast,"success"),(M.message||M.msg)&&ir(M.message||M.msg,"success"),M.action){console.log("检测到动态action,重新解析:",M.action),c(M.action);return}if(M.actionId){console.log("检测到专项动作:",M.actionId),await h(M);return}if(M.code!==void 0)if(M.code===0||M.code===200){if(M.data&&typeof M.data=="object"){const $={...M.data};if($.action||$.actionId){if(console.log("在data字段中检测到action:",$),$.action){c($.action);return}if($.actionId){await h($);return}}}ir(M.message||M.msg||"操作成功","success")}else throw hy(fy.NETWORK_ERROR,M.message||M.msg||`操作失败,错误码: ${M.code}`)}}t("success",D),g()}catch(P){console.error("执行Action失败:",P),r.value=P,ir(P.message||"操作失败","error")}finally{o.value=!1}},m=()=>{g()},g=()=>{a.value=!1,n.value=null,t("close")},y=async(D,P)=>{if(typeof D=="object"&&D.type){console.log("ActionRenderer接收到新的动作配置:",D),a.value=!1,await new Promise(M=>setTimeout(M,100)),c(D);return}await p({action:D,value:P})},S=()=>{r.value=null},k=(D,P)=>{console.log("🔗 [ActionRenderer DEBUG] 接收到子组件的 special-action 事件"),console.log("🔗 [ActionRenderer DEBUG] actionType:",D),console.log("🔗 [ActionRenderer DEBUG] actionData:",JSON.stringify(P,null,2)),console.log("🔗 [ActionRenderer DEBUG] 向父组件传递 special-action 事件"),t("special-action",D,P),g()};Pt(()=>e.actionData,D=>{c(D)},{immediate:!0}),Pt(()=>e.visible,D=>{a.value=D});const C=D=>{D&&c(D),a.value=!0},x=()=>{a.value=!1},E=async(D,P)=>{try{return o.value=!0,await t("action",D,P)}catch(M){throw r.value=M,M}finally{o.value=!1}};return{parsedConfig:n,currentComponent:l,error:r,isLoading:o,isVisible:a,handleSubmit:p,handleCancel:m,handleClose:g,handleAction:y,handleToast:(D,P="success")=>{ir(D,P)},handleReset:()=>{console.log("InputAction触发重置事件")},handleSpecialActionFromChild:k,clearError:S,show:C,hide:x,executeAction:E}}},x6t={class:"action-renderer"},C6t={class:"action-error"},w6t={key:0};function E6t(e,t,n,r,o,a){const s=Pe("ActionDialog");return H(),J("div",x6t,[r.parsedConfig?(H(),Je(Wa(r.currentComponent),{key:0,config:r.parsedConfig,visible:r.isVisible,module:n.module,extend:n.extend,"api-url":n.apiUrl,onSubmit:r.handleSubmit,onCancel:r.handleCancel,onClose:r.handleClose,onAction:r.handleAction,onToast:r.handleToast,onReset:r.handleReset,onSpecialAction:r.handleSpecialActionFromChild},null,40,["config","visible","module","extend","api-url","onSubmit","onCancel","onClose","onAction","onToast","onReset","onSpecialAction"])):Me("",!0),r.error?(H(),Je(s,{key:1,visible:!!r.error,title:"错误",width:"400",onClose:r.clearError},{footer:de(()=>[L("button",{class:"action-button action-button-primary",onClick:t[0]||(t[0]=(...l)=>r.clearError&&r.clearError(...l))}," 确定 ")]),default:de(()=>[L("div",C6t,[L("p",null,[L("strong",null,Ve(r.error.type),1)]),L("p",null,Ve(r.error.message),1),r.error.details?(H(),J("pre",w6t,Ve(JSON.stringify(r.error.details,null,2)),1)):Me("",!0)])]),_:1},8,["visible","onClose"])):Me("",!0),r.isLoading?(H(),Je(s,{key:2,visible:r.isLoading,title:"处理中",width:"300","show-close":!1},{default:de(()=>[...t[1]||(t[1]=[L("div",{class:"action-loading"}," 正在处理,请稍候... ",-1)])]),_:1},8,["visible"])):Me("",!0)])}const hS=_r(k6t,[["render",E6t],["__scopeId","data-v-86062fb2"]]);function y3e(e){if(!e||typeof e!="string")return"icon-file";const t=e.toLowerCase().split(".").pop(),n={doc:"icon-file_word",docx:"icon-file_word",xls:"icon-file_excel",xlsx:"icon-file_excel",ppt:"icon-file_ppt",pptx:"icon-file_ppt",pdf:"icon-file_pdf",txt:"icon-file_txt",rtf:"icon-file_txt",md:"icon-file_txt"},r={jpg:"icon-file_img",jpeg:"icon-file_img",png:"icon-file_img",gif:"icon-file_img",bmp:"icon-file_img",svg:"icon-file_img",webp:"icon-file_img",ico:"icon-file_img"},o={mp4:"icon-file_video",avi:"icon-file_video",mkv:"icon-file_video",mov:"icon-file_video",wmv:"icon-file_video",flv:"icon-file_video",webm:"icon-file_video",m4v:"icon-file_video",rmvb:"icon-file_video",rm:"icon-file_video"},a={mp3:"icon-file_music",wav:"icon-file_music",flac:"icon-file_music",aac:"icon-file_music",ogg:"icon-file_music",wma:"icon-file_music",m4a:"icon-file_music"},s={zip:"icon-file_zip",rar:"icon-file_zip","7z":"icon-file_zip",tar:"icon-file_zip",gz:"icon-file_zip",bz2:"icon-file_zip"},l={exe:"icon-file_exe",msi:"icon-file_exe",dmg:"icon-file_exe",pkg:"icon-file_exe",deb:"icon-file_exe",rpm:"icon-file_exe"},c={html:"icon-file_html",htm:"icon-file_html",css:"icon-file_code",js:"icon-file_code",ts:"icon-file_code",vue:"icon-file_code",jsx:"icon-file_code",tsx:"icon-file_code",php:"icon-file_code",py:"icon-file_code",java:"icon-file_code",cpp:"icon-file_code",c:"icon-file_code",cs:"icon-file_code",go:"icon-file_code",rs:"icon-file_code",swift:"icon-file_code",kt:"icon-file_code",rb:"icon-file_code",json:"icon-file_code",xml:"icon-file_code",yaml:"icon-file_code",yml:"icon-file_code"},d={ai:"icon-file_ai",psd:"icon-file_psd",sketch:"icon-file_psd",fig:"icon-file_psd",xd:"icon-file_psd"},h={dwg:"icon-file_cad",dxf:"icon-file_cad",step:"icon-file_cad",iges:"icon-file_cad"},p={swf:"icon-file_flash",fla:"icon-file_flash"},m={iso:"icon-file_iso",img:"icon-file_iso",bin:"icon-file_iso"},g={torrent:"icon-file_bt"},y={cloud:"icon-file_cloud",gdoc:"icon-file_cloud",gsheet:"icon-file_cloud",gslides:"icon-file_cloud"};return n[t]?n[t]:r[t]?r[t]:o[t]?o[t]:a[t]?a[t]:s[t]?s[t]:l[t]?l[t]:c[t]?c[t]:d[t]?d[t]:h[t]?h[t]:p[t]?p[t]:m[t]?m[t]:g[t]?g[t]:y[t]?y[t]:"icon-file"}function T6t(e){return e&&e.vod_tag&&e.vod_tag.includes("folder")}function A6t(e){return e&&e.vod_tag&&!e.vod_tag.includes("folder")}const I6t=["onClick"],L6t={class:"video_list_item_img"},D6t={key:1,class:"folder-icon-container"},P6t={key:2,class:"file-icon-container"},R6t={style:{width:"30%"}},M6t=["href"],O6t=["innerHTML"],$6t={class:"video_list_item_title"},B6t={class:"title-text"},N6t={key:0,class:"loading-container"},F6t={key:1,class:"no-more-data"},j6t={key:2,class:"empty-state"},V6t={__name:"VideoGrid",props:{videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!1},statsText:{type:String,default:""},showStats:{type:Boolean,default:!1},sourceRoute:{type:Object,default:()=>({})},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""},folderState:{type:Object,default:null}},emits:["load-more","scroll-bottom","refresh-list","special-action","folder-navigate"],setup(e,{expose:t,emit:n}){const r=e,o=n,a=El(),s=rA(),l=fe(null),c=fe(null),d=fe(0),h=fe(null),p=fe(!1),m=fe(null),g=async U=>{if(U&&U.vod_id){if(U.vod_tag&&U.vod_tag.includes("folder")){o("folder-navigate",{vod_id:U.vod_id,vod_name:U.vod_name,vod_tag:U.vod_tag});return}if(U.vod_tag==="action")try{const G=JSON.parse(U.vod_id);m.value=G,p.value=!0;return}catch{await y(U.vod_id);return}s.setLastClicked(U.vod_id,U.vod_name);const z={name:U.vod_name,pic:U.vod_pic,year:U.vod_year,area:U.vod_area,type:U.vod_type,remarks:U.vod_remarks,content:U.vod_content,actor:U.vod_actor,director:U.vod_director,sourceRouteName:r.sourceRoute?.name||"",sourceRouteParams:JSON.stringify(r.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(r.sourceRoute?.query||{}),sourcePic:U.vod_pic};r.folderState&&r.folderState.isActive&&(z.folderState=JSON.stringify(r.folderState)),a.push({name:"VideoDetail",params:{id:U.vod_id},query:z})}},y=async U=>{try{const z=await Cd.executeT4Action(r.module||"default",U,{apiUrl:r.apiUrl,extend:r.extend.ext});z&&z.action?(m.value=z.action,p.value=!0):z?ir(z,"success"):wt.error({content:`无法获取动作配置: ${U}`,duration:3e3,closable:!0})}catch(z){console.error("T4 action执行失败:",z),wt.error({content:`动作执行失败: ${z.message}`,duration:3e3,closable:!0})}};let S=!1;const k=()=>{S||(S=!0,_n(()=>{setTimeout(()=>{try{const U=l.value;if(!U){S=!1;return}const z=U.closest(".content-area")||U.parentElement,G=U.querySelector(".stats-footer"),X=r.showStats&&G?G.offsetHeight:0,ie=document.querySelector(".category-nav-container"),ee=ie?ie.offsetHeight:0;let W=z?z.offsetHeight:0;W<=0&&(W=Math.max(window.innerHeight-120,500));const q=r.videos?r.videos.length:0,Q=U.offsetWidth||Math.max(window.innerWidth-240,800),ae=Math.min(Math.floor(Q/200),8),re=328,we=(q>0?Math.ceil(q/Math.max(ae,1)):0)*re+16;let ve=4;if(q===0)ve=Math.min(W*.4,300);else if(we5&&(W=me,d.value=me)}catch(U){console.warn("updateScrollAreaHeight error:",U)}finally{S=!1}},100)}))},C=U=>{const z=U?.target||U?.srcElement,G=z?.closest?z.closest(".arco-scrollbar-container"):z;if(!G)return;const X=G.scrollHeight-G.clientHeight,ie=G.scrollTop;X-ie<50&&(o("scroll-bottom"),o("load-more"))};let x=!1;const E=()=>{x||(x=!0,_n(()=>{setTimeout(()=>{try{document.querySelectorAll(".video_list_item_title .title-text").forEach(z=>{const X=z.parentElement.offsetWidth-16;z.scrollWidth>X?z.setAttribute("data-overflow","true"):z.removeAttribute("data-overflow")})}catch(U){console.warn("checkTextOverflow error:",U)}finally{x=!1}},100)}))};vn(()=>{E(),k(),window.addEventListener("resize",k),setTimeout(()=>{const z=document.querySelector(".category-nav-container");if(z&&l.value){let G=null;const X=new MutationObserver(()=>{G&&clearTimeout(G),G=setTimeout(()=>{l.value&&!S&&k()},200)});X.observe(z,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["class","style"]}),l.value._filterObserver=X}},200)}),Oo(()=>{window.removeEventListener("resize",k),l.value?._filterObserver&&l.value._filterObserver.disconnect()});let _=null,T=0,D=!1,P="";const M=U=>!U||U.length===0?"":U.map(z=>z.vod_id||"").join(",");Pt([()=>r.videos,()=>r.showStats],([U,z])=>{const G=M(U);U.length===T&&z===D&&G===P||(T=U.length,D=z,P=G,_&&clearTimeout(_),_=setTimeout(()=>{l.value&&!S&&!x&&_n(()=>{E(),k()})},200))},{deep:!1});const $=U=>{U&&c.value&&requestAnimationFrame(()=>{const z=c.value?.$el?.querySelector(".arco-scrollbar-container");z&&z.scrollTo({top:U,behavior:"smooth"})})},I=()=>c.value&&c.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0,N=()=>{p.value=!1,m.value=null},j=(U,z)=>{o("special-action",U,z),p.value=!1,m.value=null};return t({checkTextOverflow:E,restoreScrollPosition:$,getCurrentScrollPosition:I}),(U,z)=>{const G=Pe("a-image"),X=Pe("a-grid-item"),ie=Pe("a-grid"),ee=Pe("a-spin"),W=Pe("a-scrollbar");return H(),J("div",{class:"video-grid-container",ref_key:"containerRef",ref:l},[O(W,{onScroll:C,class:"video-scroll-container",ref_key:"scrollbarRef",ref:c,style:Ge({height:d.value+"px",overflow:"auto"})},{default:de(()=>[O(ie,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(H(!0),J(Ft,null,pn(e.videos,q=>(H(),Je(X,{key:q.vod_id,class:"video_list_hover"},{default:de(()=>[L("div",{class:"video_list_item",onClick:Q=>g(q)},[L("div",L6t,[q.vod_pic&&q.vod_pic.trim()!==""?(H(),Je(G,{key:0,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:q.vod_pic},null,8,["src"])):q.vod_tag&&q.vod_tag.includes("folder")?(H(),J("div",D6t,[...z[0]||(z[0]=[L("i",{class:"iconfont icon-wenjianjia folder-icon"},null,-1)])])):q.vod_tag&&!q.vod_tag.includes("folder")?(H(),J("div",P6t,[(H(),J("svg",R6t,[L("use",{href:`#${et(y3e)(q.vod_name)}`},null,8,M6t)]))])):(H(),Je(G,{key:3,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:q.vod_pic||"/default-poster.svg"},null,8,["src"])),q.vod_remarks?(H(),J("div",{key:4,class:"video_remarks_overlay",innerHTML:q.vod_remarks},null,8,O6t)):Me("",!0)]),L("div",$6t,[L("span",B6t,Ve(q.vod_name),1)])],8,I6t)]),_:2},1024))),128))]),_:1}),e.loading?(H(),J("div",N6t,[O(ee),z[1]||(z[1]=L("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(H(),J("div",F6t," 没有更多数据了 ")):e.videos.length===0&&!e.loading?(H(),J("div",j6t," 暂无视频数据 ")):Me("",!0),z[2]||(z[2]=L("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"]),p.value?(H(),Je(hS,{key:0,ref_key:"actionRendererRef",ref:h,"action-data":m.value,module:r.module,extend:r.extend,"api-url":r.apiUrl,onClose:N,onSpecialAction:j},null,8,["action-data","module","extend","api-url"])):Me("",!0)],512)}}},O4=_r(V6t,[["__scopeId","data-v-972a231f"]]),z6t={class:"category-modal-content"},U6t=["onClick"],H6t={__name:"CategoryModal",props:{visible:{type:Boolean,default:!1},classList:{type:Object,required:!0},hasRecommendVideos:{type:Boolean,default:!1},activeKey:{type:String,required:!0}},emits:["update:visible","select-category"],setup(e,{emit:t}){const n=t,r=()=>{n("update:visible",!1)},o=a=>{n("select-category",a),r()};return(a,s)=>{const l=Pe("a-modal");return H(),Je(l,{visible:e.visible,title:"全部分类",footer:!1,width:"80%",class:"category-modal",onCancel:r},{default:de(()=>[L("div",z6t,[e.hasRecommendVideos?(H(),J("div",{key:0,class:le(["category-item",{active:e.activeKey==="recommendTuijian404"}]),onClick:s[0]||(s[0]=c=>o("recommendTuijian404"))}," 推荐 ",2)):Me("",!0),(H(!0),J(Ft,null,pn(e.classList.class,c=>(H(),J("div",{key:c.type_id,class:le(["category-item",{active:e.activeKey===c.type_id}]),onClick:d=>o(c.type_id)},Ve(c.type_name),11,U6t))),128))])]),_:1},8,["visible"])}}},W6t=_r(H6t,[["__scopeId","data-v-14f43b3d"]]),G6t={key:0,class:"folder-breadcrumb"},K6t={class:"breadcrumb-container"},q6t={key:0,class:"current-item"},Y6t=["onClick"],X6t={class:"breadcrumb-actions"},Z6t={__name:"FolderBreadcrumb",props:{breadcrumbs:{type:Array,default:()=>[]}},emits:["navigate","go-back","go-home","exit-folder"],setup(e,{emit:t}){const n=e,r=t,o=(c,d)=>{console.log("🗂️ [DEBUG] 面包屑点击:",c,d),r("navigate",c,d)},a=()=>{if(n.breadcrumbs.length>1){const c=n.breadcrumbs.length-2,d=n.breadcrumbs[c];console.log("🗂️ [DEBUG] 返回上级:",d),r("go-back",d,c)}},s=()=>{if(n.breadcrumbs.length>1){const c=n.breadcrumbs[0];console.log("🗂️ [DEBUG] 返回根目录:",c),r("go-home",c,0)}},l=()=>{console.log("🗂️ [DEBUG] 退出Folder模式"),r("exit-folder")};return(c,d)=>{const h=Pe("a-breadcrumb-item"),p=Pe("a-breadcrumb"),m=Pe("a-button");return e.breadcrumbs.length>0?(H(),J("div",G6t,[L("div",K6t,[O(p,{separator:">"},{default:de(()=>[(H(!0),J(Ft,null,pn(e.breadcrumbs,(g,y)=>(H(),Je(h,{key:g.vod_id,class:le(["breadcrumb-item",{"is-current":y===e.breadcrumbs.length-1}])},{default:de(()=>[y===e.breadcrumbs.length-1?(H(),J("span",q6t,Ve(g.vod_name),1)):(H(),J("a",{key:1,onClick:S=>o(g,y),class:"breadcrumb-link"},Ve(g.vod_name),9,Y6t))]),_:2},1032,["class"]))),128))]),_:1})]),L("div",X6t,[O(m,{size:"small",type:"text",onClick:a,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:de(()=>[O(et(Al))]),default:de(()=>[d[0]||(d[0]=We(" 返回上级 ",-1))]),_:1},8,["disabled"]),e.breadcrumbs.length>1?(H(),Je(m,{key:0,size:"small",type:"text",onClick:s,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:de(()=>[O(et(l3))]),default:de(()=>[d[1]||(d[1]=We(" 返回根目录 ",-1))]),_:1},8,["disabled"])):Me("",!0),O(m,{size:"small",type:"primary",onClick:l,class:"action-btn exit-btn"},{icon:de(()=>[O(et(ds))]),default:de(()=>[d[2]||(d[2]=We(" 退出目录模式 ",-1))]),_:1})])])):Me("",!0)}}},J6t=_r(Z6t,[["__scopeId","data-v-670af4b8"]]),Q6t={class:"video-list-container"},ekt={class:"content-area"},tkt={key:0,class:"tab-content"},nkt={key:1,class:"tab-content"},rkt={key:0,class:"category-loading-container"},ikt={key:2,class:"tab-content"},okt={key:0,class:"category-loading-container"},skt={key:3,class:"tab-content"},akt={key:0,class:"category-loading-container"},lkt=300,ukt={__name:"VideoList",props:{classList:Object,recommendVideos:{type:Array,default:()=>[]},trigger:{type:String,default:"click"},sourceRoute:{type:Object,default:()=>({})},returnToActiveKey:{type:String,default:""},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""},specialCategoryState:{type:Object,default:()=>({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null})},folderNavigationState:{type:Object,default:()=>({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1})}},emits:["activeKeyChange","special-action","close-special-category","folder-navigate"],setup(e,{expose:t,emit:n}){const r=e,o=n,a=eS();let s=null;const l=fe(!1),c=(Se,$e=50)=>{s&&clearTimeout(s),s=setTimeout(()=>{l.value||(l.value=!0,_n(()=>{a.updateStats(Se),l.value=!1}))},$e)},d=fe(""),h=Yt({}),p=Yt({}),m=Yt({}),g=Yt({}),y=Yt({}),S=Yt({}),k=fe(!1),C=fe(null),x=Yt({}),E=Yt({});let _=null;const T=Se=>{_&&clearTimeout(_),_=setTimeout(Se,lkt)},D=F(()=>r.recommendVideos&&r.recommendVideos.length>0),P=F(()=>r.folderNavigationState?.isActive||!1),M=F(()=>r.folderNavigationState?.breadcrumbs||[]),$=F(()=>r.folderNavigationState?.currentData||[]),I=F(()=>r.folderNavigationState?.currentBreadcrumb||null),N=F(()=>{const Se=I.value?.vod_id;return r.folderNavigationState?.loading||E[Se]||!1}),j=F(()=>{const Se=I.value?.vod_id;return x[Se]?.hasNext||!1}),U=F(()=>ee({isActive:P.value,currentBreadcrumb:I.value,currentData:$.value})),z=()=>r.returnToActiveKey?r.returnToActiveKey:D.value?"recommendTuijian404":r.classList?.class&&r.classList.class.length>0?r.classList.class[0].type_id:"recommendTuijian404",G=(Se,$e,Xe)=>{S[d.value]||(S[d.value]={}),S[d.value][Se]===$e?(delete S[d.value][Se],Object.keys(S[d.value]).length===0&&delete S[d.value]):S[d.value][Se]=$e,P.value&&I.value?Ke(I.value):ie(d.value)},X=Se=>{delete S[Se],P.value&&I.value?Ke(I.value):ie(Se)},ie=Se=>{delete h[Se],delete p[Se],m[Se]=!1,d.value===Se&&W(Se,!0)},ee=(Se,$e=null)=>{const Xe=r.classList?.class?.find($t=>$t.type_id===Se)?.type_name||"",rt=p[Se]?.page||1,nt=h[Se]?.length||0,gt=p[Se]?.total;let yt=`${Xe}:当前第 ${rt} 页,已加载 ${nt} 条`;if(gt&&(yt+=` / 共 ${gt} 条`),$e&&$e.isActive&&$e.currentBreadcrumb){const $t=$e.currentBreadcrumb.vod_name||"未知目录",Ct=$e.currentData?.length||0;yt+=`,当前目录:${$t},项目数:${Ct}`}return yt},W=async(Se,$e=!1)=>{if(console.log(Se,"选中分类id"),!h.hasOwnProperty(Se)||$e){g[Se]=!0;try{const Xe=await Ds.getCurrentSite();let rt,nt;if(Se==="recommendTuijian404")rt=r.recommendVideos||[],nt={page:1,hasNext:!1};else{const gt=S[Se]||{},yt=await Cd.getCategoryVideos(Xe.key,{typeId:Se,page:1,filters:gt,extend:Xe.ext,apiUrl:Xe.api});rt=yt.videos||[],nt=yt.pagination||{page:1,hasNext:!1}}if(h[Se]=rt,p[Se]=nt,m[Se]=!1,Se===d.value){const gt=P.value?{isActive:P.value,currentBreadcrumb:I.value,currentData:$.value}:null;a.updateStats(ee(Se,gt))}}catch(Xe){console.error("获取视频列表失败:",Xe),h[Se]=[],p[Se]={page:1,hasNext:!1},m[Se]=!1}finally{g[Se]=!1}}},q=Se=>!Se||Se.length===0?!0:Se.some($e=>$e.vod_id==="no_data"),Q=(Se,$e)=>{if(!$e||$e.length===0)return!0;if(!Se||Se.length===0)return!1;const Xe=Se.slice(-$e.length).map(nt=>nt.vod_id),rt=$e.map(nt=>nt.vod_id);return JSON.stringify(Xe)===JSON.stringify(rt)},ne=async Se=>{if(!(m[Se]||!p[Se]?.hasNext)){m[Se]=!0;try{const $e=await Ds.getCurrentSite(),Xe=p[Se].page+1;let rt=[],nt={page:Xe,hasNext:!1};if(Se==="recommendTuijian404")return;{const gt=S[Se]||{},yt=await Cd.getCategoryVideos($e.key,{typeId:Se,page:Xe,filters:gt,extend:$e.ext,apiUrl:$e.api});rt=yt.videos||[],nt=yt.pagination||{page:Xe,hasNext:!1}}if(q(rt)||Q(h[Se],rt)){console.log("检测到无效数据或重复数据,停止翻页"),p[Se]={...p[Se],hasNext:!1};return}if(h[Se]=[...h[Se],...rt],p[Se]=nt,Se===d.value){const gt=P.value?{isActive:P.value,currentBreadcrumb:I.value,currentData:$.value}:null;c(ee(Se,gt))}}catch($e){console.error("加载更多数据失败:",$e),p[Se]={...p[Se],hasNext:!1}}finally{m[Se]=!1}}},ae=async Se=>{if(!(E[Se]||!x[Se]?.hasNext)){E[Se]=!0;try{const $e=x[Se].page+1,Xe=await U1(r.module,{t:Se,pg:$e,extend:ua(r.extend),apiUrl:r.apiUrl});if(Xe&&Xe.list&&Xe.list.length>0){const rt=Xe.list;if(q(rt)||Q($.value,rt)){console.log("目录翻页检测到无效数据或重复数据,停止翻页"),x[Se]={...x[Se],hasNext:!1};return}const nt=[...$.value,...rt],gt={isActive:P.value,breadcrumbs:M.value,currentBreadcrumb:I.value,currentData:nt,loading:!1,hasMore:!0};if(x[Se]={page:$e,hasNext:Xe.page{P.value&&_e(),d.value=Se,W(Se),o("activeKeyChange",Se)},Ce=Se=>{const{filterKey:$e,filterValue:Xe,filterName:rt}=Se;G($e,Xe)},we=()=>{X(d.value)},ve=()=>{k.value=!0},me=Se=>{d.value=Se,W(Se),o("activeKeyChange",Se);const $e=P.value?{isActive:P.value,currentBreadcrumb:I.value,currentData:$.value}:null;c(ee(Se,$e),100)};Pt(()=>r.recommendVideos,Se=>{Se&&Se.length>0?(h.recommendTuijian404=Se,p.recommendTuijian404={page:1,hasNext:!1},m.recommendTuijian404=!1,console.log("推荐数据已更新:",Se.length,"条")):(h.recommendTuijian404=[],p.recommendTuijian404={page:1,hasNext:!1},m.recommendTuijian404=!1);const $e=z();d.value!==$e&&(d.value=$e,W($e),o("activeKeyChange",$e))},{immediate:!0}),Pt(()=>r.classList,(Se,$e)=>{if(console.log("🗂️ [DEBUG] ========== VideoList classList watch 触发 =========="),console.log("🗂️ [DEBUG] oldClassList:",$e),console.log("🗂️ [DEBUG] newClassList:",Se),console.log("🗂️ [DEBUG] classList是否发生变化:",Se!==$e),console.log("🗂️ [DEBUG] 当前activeKey.value:",d.value),console.log("🗂️ [DEBUG] 当前folderIsActive.value:",P.value),console.log("🗂️ [DEBUG] 当前folderNavigationState:",JSON.stringify(r.folderNavigationState,null,2)),Se!==$e&&(console.log("🗂️ [DEBUG] classList发生变化,清除筛选状态"),Object.keys(S).forEach(rt=>{delete S[rt]}),Object.keys(y).forEach(rt=>{delete y[rt]}),console.log("🗂️ [DEBUG] 筛选状态已清除")),P.value){console.log("🗂️ [DEBUG] 当前处于folder模式,跳过activeKey重置");return}const Xe=z();d.value!==Xe&&(d.value=Xe,W(Xe),o("activeKeyChange",Xe))},{immediate:!0}),Pt(()=>r.folderNavigationState,(Se,$e)=>{},{deep:!0,immediate:!0}),vn(()=>{d.value=z(),r.returnToActiveKey||W(d.value),o("activeKeyChange",d.value)}),Oo(()=>{s&&clearTimeout(s)}),t({getCurrentState:()=>({activeKey:d.value,currentPage:p[d.value]?.page||1,videos:h[d.value]||[],hasMore:p[d.value]?.hasNext||!1,hasData:h[d.value]&&h[d.value].length>0,scrollPosition:C.value?C.value.getCurrentScrollPosition():0}),restoreState:Se=>{Se.activeKey&&Se.activeKey!==d.value&&(d.value=Se.activeKey,o("activeKeyChange",Se.activeKey),(!h[Se.activeKey]||h[Se.activeKey].length===0)&&W(Se.activeKey))},restoreFullState:Se=>{if(Se.activeKey){d.value=Se.activeKey,Se.videos&&Se.videos.length>0&&(h[Se.activeKey]=[...Se.videos],p[Se.activeKey]={page:Se.currentPage||1,hasNext:Se.hasMore||!1},console.log(`恢复分类 ${Se.activeKey} 的完整状态:`,{videos:Se.videos.length,page:Se.currentPage,hasMore:Se.hasMore,scrollPosition:Se.scrollPosition})),o("activeKeyChange",Se.activeKey);const $e=P.value?{isActive:P.value,currentBreadcrumb:I.value,currentData:$.value}:null;c(ee(Se.activeKey,$e),100),Se.scrollPosition&&C.value&&setTimeout(()=>{C.value.restoreScrollPosition(Se.scrollPosition)},200)}},refreshCurrentCategory:()=>{d.value&&(console.log("刷新当前分类:",d.value),h[d.value]=[],p[d.value]={page:1,hasNext:!0},m[d.value]=!1,W(d.value))},setSpecialCategoryData:(Se,$e,Xe)=>{console.log("设置特殊分类数据:",{categoryId:Se,videosCount:$e?.length,pagination:Xe}),h[Se]=$e||[],p[Se]={page:Xe?.page||1,hasNext:Xe?.hasNext||!1,total:Xe?.total||0},m[Se]=!1;const rt=P.value?{isActive:P.value,currentBreadcrumb:I.value,currentData:$.value}:null;c(ee(Se,rt),100)}});const xe=async Se=>{T(async()=>{await Be(Se)})},Be=async Se=>{let $e=[];try{const Xe=P.value?M.value:[],rt=Xe.findIndex(Ct=>Ct.vod_id===Se.vod_id);rt>=0?$e=Xe.slice(0,rt+1):$e=[...Xe,{vod_id:Se.vod_id,vod_name:Se.vod_name}];const nt={isActive:!0,breadcrumbs:$e,currentData:[],currentBreadcrumb:{vod_id:Se.vod_id,vod_name:Se.vod_name},loading:!0};o("folder-navigate",nt),console.log("props.extend:",r.extend),console.log("processExtendParam(props.extend):",ua(r.extend));const gt=S[d.value]||{};console.log("🗂️ [DEBUG] 目录模式应用筛选条件:",gt);const yt={t:Se.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(gt).length>0&&console.log("🗂️ [DEBUG] 目录模式编码后的筛选条件:",yt.ext);const $t=await U1(r.module,yt);if($t&&$t.list&&$t.list.length>0){const Ct=$t.list;x[Se.vod_id]={page:$t.page||1,hasNext:$t.page<$t.pagecount||!1,total:$t.total||0},E[Se.vod_id]=!1;const Dt={isActive:!0,breadcrumbs:$e,currentData:Ct,currentBreadcrumb:{vod_id:Se.vod_id,vod_name:Se.vod_name},loading:!1};if(o("folder-navigate",Dt),d.value){const on={isActive:!0,currentBreadcrumb:{vod_id:Se.vod_id,vod_name:Se.vod_name},currentData:Ct},lt=ee(d.value,on);c(lt)}}else{console.warn("T4分类接口返回数据为空");const Ct={isActive:!0,breadcrumbs:$e,currentData:[],currentBreadcrumb:{vod_id:Se.vod_id,vod_name:Se.vod_name},loading:!1};if(o("folder-navigate",Ct),d.value){const Dt={isActive:!0,currentBreadcrumb:{vod_id:Se.vod_id,vod_name:Se.vod_name},currentData:[]},on=ee(d.value,Dt);c(on)}}}catch(Xe){console.error("Folder导航失败:",Xe);const rt={isActive:!0,breadcrumbs:$e,currentData:[],currentBreadcrumb:{vod_id:Se.vod_id,vod_name:Se.vod_name},loading:!1};if(o("folder-navigate",rt),d.value){const nt={isActive:!0,currentBreadcrumb:{vod_id:Se.vod_id,vod_name:Se.vod_name},currentData:[]},gt=ee(d.value,nt);c(gt)}}},Ke=async Se=>{try{const $e=M.value,Xe=$e.findIndex(Ct=>Ct.vod_id===Se.vod_id),rt=Xe>=0?$e.slice(0,Xe+1):$e,nt={isActive:P.value,breadcrumbs:rt,currentBreadcrumb:Se,currentData:$.value,loading:!0,hasMore:j.value};o("folder-navigate",nt);const gt=S[d.value]||{},yt={t:Se.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(gt).length>0;const $t=await U1(r.module,yt);if($t&&$t.list&&$t.list.length>0){const Ct=$t.list;if(x[Se.vod_id]={page:$t.page||1,hasNext:$t.page<$t.pagecount||!1,total:$t.total||0},E[Se.vod_id]=!1,o("folder-navigate",{isActive:!0,breadcrumbs:rt,currentData:Ct,currentBreadcrumb:Se,loading:!1,hasMore:!0}),d.value){const on={isActive:!0,currentBreadcrumb:Se,currentData:Ct},lt=ee(d.value,on);c(lt),console.log("🗂️ [DEBUG] 面包屑导航更新统计信息:",lt)}}}catch($e){console.error("🗂️ [ERROR] 面包屑导航失败:",$e)}},ze=()=>{console.log("🗂️ [DEBUG] 返回上一级folder");const Se=M.value;if(Se.length>1){const $e=Se.slice(0,-1),Xe=$e[$e.length-1];Ke(Xe)}else be()},be=async()=>{console.log("🗂️ [DEBUG] 返回folder根目录");const Se=M.value;if(Se.length>0){const $e=Se[0];o("folder-navigate",{isActive:!0,breadcrumbs:[$e],currentData:[],currentBreadcrumb:$e,loading:!0});try{const rt=S[d.value]||{};console.log("🗂️ [DEBUG] 返回根目录,应用筛选条件:",rt);const nt={t:$e.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(rt).length>0;const gt=await U1(r.module,nt);if(gt&>.list&>.list.length>0){const yt=gt.list;x[$e.vod_id]={page:gt.page||1,hasNext:gt.page{if(o("folder-navigate",{isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),d.value&&h[d.value]){const $e=ee(d.value,null);c($e)}},Ne=()=>{d.value&&(h[d.value]=[],p[d.value]={page:1,hasNext:!0},m[d.value]=!1,W(d.value))};return(Se,$e)=>{const Xe=Pe("a-spin");return H(),J("div",Q6t,[O(l6t,{classList:e.classList,trigger:e.trigger,hasRecommendVideos:D.value,activeKey:d.value,filters:r.classList?.filters||{},selectedFilters:S,specialCategoryState:r.specialCategoryState,onTabChange:re,onOpenCategoryModal:ve,onToggleFilter:Ce,onResetFilters:we,onCloseSpecialCategory:$e[0]||($e[0]=()=>o("close-special-category"))},null,8,["classList","trigger","hasRecommendVideos","activeKey","filters","selectedFilters","specialCategoryState"]),P.value?(H(),Je(J6t,{key:0,breadcrumbs:M.value,onNavigate:Ke,onGoBack:ze,onGoHome:be,onExitFolder:_e},null,8,["breadcrumbs"])):Me("",!0),L("div",ekt,[P.value?(H(),J("div",tkt,[O(O4,{videos:$.value,loading:N.value,hasMore:j.value,statsText:U.value,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,folderState:e.folderNavigationState,onLoadMore:$e[1]||($e[1]=rt=>ae(I.value?.vod_id)),onScrollBottom:$e[2]||($e[2]=rt=>ae(I.value?.vod_id)),onRefreshList:Ne,onSpecialAction:$e[3]||($e[3]=(rt,nt)=>o("special-action",rt,nt)),onFolderNavigate:xe},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url","folderState"])])):e.specialCategoryState.isActive?(H(),J("div",nkt,[g[e.specialCategoryState.categoryData?.type_id]?(H(),J("div",rkt,[O(Xe,{size:24}),$e[12]||($e[12]=L("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(H(),Je(O4,{key:1,videos:h[e.specialCategoryState.categoryData?.type_id]||[],loading:m[e.specialCategoryState.categoryData?.type_id]||!1,hasMore:p[e.specialCategoryState.categoryData?.type_id]?.hasNext||!1,statsText:`${e.specialCategoryState.categoryData?.type_name||"特殊分类"}:共 ${h[e.specialCategoryState.categoryData?.type_id]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:$e[4]||($e[4]=rt=>ne(e.specialCategoryState.categoryData?.type_id)),onScrollBottom:$e[5]||($e[5]=rt=>ne(e.specialCategoryState.categoryData?.type_id)),onRefreshList:Ne,onSpecialAction:$e[6]||($e[6]=(rt,nt)=>o("special-action",rt,nt)),onFolderNavigate:xe},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url"]))])):d.value==="recommendTuijian404"?(H(),J("div",ikt,[g[d.value]?(H(),J("div",okt,[O(Xe,{size:24}),$e[13]||($e[13]=L("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(H(),Je(O4,{key:1,videos:h[d.value]||[],loading:m[d.value]||!1,hasMore:!1,statsText:`推荐视频:共 ${h[d.value]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onRefreshList:Ne,onSpecialAction:$e[7]||($e[7]=(rt,nt)=>o("special-action",rt,nt))},null,8,["videos","loading","statsText","sourceRoute","module","extend","api-url"]))])):(H(),J("div",skt,[g[d.value]?(H(),J("div",akt,[O(Xe,{size:24}),$e[14]||($e[14]=L("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(H(),Je(O4,{key:1,ref_key:"videoGridRef",ref:C,videos:h[d.value]||[],loading:m[d.value]||!1,hasMore:p[d.value]?.hasNext||!1,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:$e[8]||($e[8]=rt=>ne(d.value)),onScrollBottom:$e[9]||($e[9]=rt=>ne(d.value)),onRefreshList:Ne,onSpecialAction:$e[10]||($e[10]=(rt,nt)=>o("special-action",rt,nt)),onFolderNavigate:xe},null,8,["videos","loading","hasMore","sourceRoute","module","extend","api-url"]))]))]),O(W6t,{visible:k.value,"onUpdate:visible":$e[11]||($e[11]=rt=>k.value=rt),classList:e.classList,hasRecommendVideos:D.value,activeKey:d.value,onSelectCategory:me},null,8,["visible","classList","hasRecommendVideos","activeKey"])])}}},ckt=_r(ukt,[["__scopeId","data-v-7a0b195f"]]),dkt={class:"search-results-container"},fkt={class:"search-header"},hkt={class:"search-info"},pkt={key:0,class:"search-keyword"},vkt={key:1,class:"search-count"},mkt={class:"search-actions"},gkt={key:0,class:"error-container"},ykt={class:"error-text"},bkt={key:1,class:"loading-container"},_kt=["onClick"],Skt={class:"video_list_item_img"},kkt={key:1,class:"folder-icon-container"},xkt={key:2,class:"file-icon-container"},Ckt={style:{width:"30%"}},wkt=["href"],Ekt=["innerHTML"],Tkt={class:"video_list_item_title"},Akt={class:"title-text"},Ikt={key:3,class:"empty-state"},Lkt={key:4,class:"loading-container"},Dkt={key:5,class:"no-more-data"},Pkt={__name:"SearchResults",props:{keyword:{type:String,default:""},videos:{type:Array,default:()=>[]},loading:{type:Boolean,default:!1},error:{type:String,default:null},currentPage:{type:Number,default:1},totalPages:{type:Number,default:1},hasMore:{type:Boolean,default:!1},sourceRoute:{type:Object,default:()=>({})},scrollPosition:{type:Number,default:0},module:{type:String,default:""},extend:{type:String,default:""},apiUrl:{type:String,default:""}},emits:["video-click","exit-search","load-more","refresh-list"],setup(e,{emit:t}){const n=El(),r=eS(),o=BA(),a=rA(),s=e,l=t,c=fe(null),d=fe(null),h=fe(0),p=fe(null),m=fe(!1),g=fe(null),y=P=>{const M=P?.target||P?.srcElement,$=M?.closest?M.closest(".arco-scrollbar-container"):M;if(!$)return;const I=$.scrollHeight-$.clientHeight,N=$.scrollTop;I-N<50&&s.hasMore&&!s.loading&&l("load-more")},S=()=>{_n(()=>{setTimeout(()=>{const P=c.value;if(!P)return;const M=P.closest(".content-area")||P.parentElement;let $=M?M.offsetHeight:0;$<=0&&($=Math.max(window.innerHeight-120,500));const I=document.querySelector(".search-header"),N=I?I.offsetHeight:60,j=s.videos?s.videos.length:0,U=P.offsetWidth||Math.max(window.innerWidth-240,800),G=Math.min(Math.floor(U/200),8),X=328,ie=j>0?Math.ceil(j/Math.max(G,1)):0,ee=ie*X+80;let W=4;const q=$-N;if(j===0)W=Math.min(q*.3,200),console.log(`无搜索结果数据,使用保守高度减值: ${W}px`);else if(ee{if(!s.keyword)return"";const P=s.videos.length,M=s.currentPage,$=s.hasMore;if(P===0)return`搜索"${s.keyword}":无结果`;let I=`搜索"${s.keyword}":第${M}页,共${P}条`;return $?I+=",可继续加载":I+=",已全部加载",I},C=()=>{const P=k();P&&r.updateStats(P)},x=()=>{_n(()=>{setTimeout(()=>{document.querySelectorAll(".search-results-container .title-text").forEach(M=>{const I=M.parentElement.offsetWidth-16;M.scrollWidth>I?M.setAttribute("data-overflow","true"):M.removeAttribute("data-overflow")})},100)})},E=P=>{if(P&&P.vod_id){if(P.vod_tag==="action")try{const M=JSON.parse(P.vod_id);console.log("SearchResults解析action配置:",M),g.value=M,m.value=!0;return}catch{console.log("SearchResults vod_id不是JSON格式,作为普通文本处理:",P.vod_id),wt.info({content:P.vod_id,duration:3e3,closable:!0});return}if(a.setLastClicked(P.vod_id,P.vod_name),s.keyword){const $=d.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0;o.saveSearchState(s.keyword,s.currentPage,s.videos,s.hasMore,s.loading,$),console.log("保存搜索状态:",{keyword:s.keyword,currentPage:s.currentPage,videosCount:s.videos.length,scrollPosition:$})}n.push({name:"VideoDetail",params:{id:P.vod_id},query:{name:P.vod_name,pic:P.vod_pic,year:P.vod_year,area:P.vod_area,type:P.vod_type,remarks:P.vod_remarks,content:P.vod_content,actor:P.vod_actor,director:P.vod_director,sourceRouteName:s.sourceRoute?.name,sourceRouteParams:JSON.stringify(s.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(s.sourceRoute?.query||{}),fromSearch:"true",sourcePic:P.vod_pic}})}},_=()=>{r.clearStats(),l("exit-search")};vn(()=>{x(),S(),C(),window.addEventListener("resize",S),s.scrollPosition>0&&_n(()=>{requestAnimationFrame(()=>{const P=d.value?.$el?.querySelector(".arco-scrollbar-container");P&&(P.scrollTo({top:s.scrollPosition,behavior:"smooth"}),console.log("SearchResults恢复滚动位置:",s.scrollPosition))})})}),Oo(()=>{window.removeEventListener("resize",S)}),Pt(()=>s.videos,()=>{S(),x(),C()}),Pt([()=>s.keyword,()=>s.currentPage,()=>s.hasMore],()=>{C()});const T=()=>{m.value=!1,g.value=null},D=(P,M)=>{switch(console.log("处理专项动作:",P,M),P){case"__self_search__":console.log("执行源内搜索:",M);break;case"detail":console.log("跳转到详情页:",M);break;case"ktv-player":console.log("启动KTV播放:",M);break;case"refresh-list":console.log("刷新列表:",M),l("refresh-list");break;default:console.log("未知的专项动作:",P,M);break}};return(P,M)=>{const $=Pe("icon-close"),I=Pe("a-button"),N=Pe("icon-exclamation-circle"),j=Pe("a-spin"),U=Pe("a-image"),z=Pe("a-grid-item"),G=Pe("a-grid"),X=Pe("icon-search"),ie=Pe("a-scrollbar");return H(),J("div",dkt,[L("div",fkt,[L("div",hkt,[e.keyword?(H(),J("span",pkt," 搜索结果:"+Ve(e.keyword),1)):Me("",!0),e.videos.length>0?(H(),J("span",vkt," 共找到 "+Ve(e.videos.length)+" 个结果 ",1)):Me("",!0)]),L("div",mkt,[O(I,{type:"outline",size:"small",onClick:_},{icon:de(()=>[O($)]),default:de(()=>[M[0]||(M[0]=We(" 清除搜索 ",-1))]),_:1})])]),L("div",{class:"search-grid-container",ref_key:"containerRef",ref:c},[O(ie,{ref_key:"scrollbarRef",ref:d,onScroll:y,class:"search-scroll-container",style:Ge("height:"+h.value+"px; overflow: auto;")},{default:de(()=>[e.error?(H(),J("div",gkt,[O(N,{class:"error-icon"}),L("p",ykt,Ve(e.error),1)])):e.loading&&e.videos.length===0?(H(),J("div",bkt,[O(j,{size:32}),M[1]||(M[1]=L("p",{class:"loading-text"},"正在搜索...",-1))])):e.videos.length>0?(H(),Je(G,{key:2,cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(H(!0),J(Ft,null,pn(e.videos,ee=>(H(),Je(z,{key:ee.vod_id,class:"video_list_hover"},{default:de(()=>[L("div",{class:"video_list_item",onClick:W=>E(ee)},[L("div",Skt,[ee.vod_pic&&ee.vod_pic.trim()!==""?(H(),Je(U,{key:0,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ee.vod_pic},null,8,["src"])):et(T6t)(ee)?(H(),J("div",kkt,[...M[2]||(M[2]=[L("i",{class:"iconfont icon-wenjianjia folder-icon"},null,-1)])])):et(A6t)(ee)?(H(),J("div",xkt,[(H(),J("svg",Ckt,[L("use",{href:`#${et(y3e)(ee.vod_name)}`},null,8,wkt)]))])):(H(),Je(U,{key:3,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ee.vod_pic||"/default-poster.svg"},null,8,["src"])),ee.vod_remarks?(H(),J("div",{key:4,class:"video_remarks_overlay",innerHTML:ee.vod_remarks},null,8,Ekt)):Me("",!0)]),L("div",Tkt,[L("span",Akt,Ve(ee.vod_name),1)])],8,_kt)]),_:2},1024))),128))]),_:1})):!e.loading&&!e.error&&e.keyword?(H(),J("div",Ikt,[O(X,{class:"empty-icon"}),M[3]||(M[3]=L("p",{class:"empty-text"},"没有找到相关内容",-1)),M[4]||(M[4]=L("p",{class:"empty-desc"},"尝试使用其他关键词搜索",-1))])):Me("",!0),e.loading&&e.videos.length>0?(H(),J("div",Lkt,[O(j),M[5]||(M[5]=L("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(H(),J("div",Dkt," 没有更多数据了 ")):Me("",!0),M[6]||(M[6]=L("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"])],512),m.value?(H(),Je(hS,{key:0,ref_key:"actionRendererRef",ref:p,"action-data":g.value,module:s.module,extend:s.extend,"api-url":s.apiUrl,onClose:T,onSpecialAction:D},null,8,["action-data","module","extend","api-url"])):Me("",!0)])}}},b3e=_r(Pkt,[["__scopeId","data-v-7a9e3b4a"]]),pS=Xm("site",()=>{const e=fe(Ds.getCurrentSite()||JSON.parse(localStorage.getItem("site-nowSite"))||null),t=r=>{e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),r&&r.key&&Ds.setCurrentSite(r.key),console.log("站点已切换:",r)},n=()=>{const r=Ds.getCurrentSite();r&&(!e.value||r.key!==e.value.key)&&(e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),console.log("从 siteService 同步站点:",r))};return typeof window<"u"&&window.addEventListener("siteChange",r=>{const{site:o}=r.detail;o&&(!e.value||o.key!==e.value.key)&&(e.value=o,localStorage.setItem("site-nowSite",JSON.stringify(o)),console.log("响应 siteService 站点变化:",o))}),n(),{nowSite:e,setCurrentSite:t,syncFromSiteService:n}}),Rkt={class:"current-time"},Mkt={class:"main-container"},Okt={key:0,class:"global-loading-overlay"},$kt={class:"global-loading-content"},Bkt={__name:"Video",setup(e){const{nowSite:t,setCurrentSite:n}=pS();eS();const r=BA(),o=_5(),a=El(),s=xe=>{const Be=xe.getFullYear(),Ke=String(xe.getMonth()+1).padStart(2,"0"),ze=String(xe.getDate()).padStart(2,"0"),be=String(xe.getHours()).padStart(2,"0"),_e=String(xe.getMinutes()).padStart(2,"0"),Ne=String(xe.getSeconds()).padStart(2,"0");return`${Be}-${Ke}-${ze} ${be}:${_e}:${Ne}`},l=fe(s(new Date)),c=fe(""),d=fe(null),h=Yt({sites:[],now_site_title:"hipy影视",now_site:{},visible:!1,form_title:"",recommendVideos:[],classList:{},videoList:{}}),p=Yt({isSearching:!1,searchKeyword:"",searchResults:[],searchLoading:!1,searchError:null,currentPage:1,totalPages:1,hasMore:!1,scrollPosition:0}),m=Yt({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null}),g=a0({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),y=fe(!1),S=Yt({activeKey:null,scrollPosition:0,savedAt:null}),k=fe(null),C=async(xe=!1)=>{try{if(Ds.getConfigStatus().hasConfigUrl)try{await Ds.loadSitesFromConfig(xe)}catch(Ke){console.error("从配置地址加载站点数据失败:",Ke)}h.sites=Ds.getAllSites(),h.sites.length}catch(Be){console.error("获取站点配置失败:",Be)}},x=()=>{const xe=Ds.getCurrentSite();xe?(h.now_site=xe,h.now_site_title=xe.name,n(xe)):t&&t.name?(h.now_site=t,h.now_site_title=t.name,Ds.setCurrentSite(t.key)):(h.now_site={},h.now_site_title="hipy影视")},E=()=>{if(!h.now_site||!h.now_site.key){const xe=Ds.getCurrentSite();if(xe)h.now_site=xe,h.now_site_title=xe.name;else if(h.sites.length>0){const Be=h.sites.find(Ke=>Ke.type===4)||h.sites[0];h.now_site=Be,h.now_site_title=Be.name,Ds.setCurrentSite(Be.key)}}else if(!h.sites.some(Be=>Be.key===h.now_site.key)&&h.sites.length>0){const Be=h.sites.find(Ke=>Ke.type===4)||h.sites[0];h.now_site=Be,h.now_site_title=Be.name,Ds.setCurrentSite(Be.key)}h.new_site=h.now_site},_=()=>{k.value=setInterval(()=>{l.value=s(new Date)},1e3)},T=()=>{window.location.reload()},D=xe=>{console.log("收到重载源事件:",xe.detail),T()},P=()=>{},M=()=>{},$=()=>{},I=xe=>h.new_site=xe,N=()=>{h.now_site=h.new_site,n(h.now_site),h.visible=!1,C(!0),E()},j=xe=>{h.now_site=xe,n(xe),h.now_site_title=xe.name,h.visible=!1,g.value?.isActive&&(g.value={isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1},S.activeKey=null,S.scrollPosition=0,S.savedAt=null),U(xe)},U=async xe=>{if(!(!xe||!xe.key)){y.value=!0,h.classList={class:[],filters:{}},h.recommendVideos=[];try{const Be=await Cd.getRecommendVideos(xe.key,{extend:xe.ext,apiUrl:xe.api});h.classList={class:Be.categories,filters:Be.filters},h.recommendVideos=Be.videos||[]}catch(Be){console.error("获取分类列表失败:",Be),h.classList={class:[],filters:{}},h.recommendVideos=[]}finally{y.value=!1}}},z=async xe=>{if(!xe||!xe.trim()){p.isSearching=!1,p.searchKeyword="",p.searchResults=[];return}const Be=xe.trim();p.searchKeyword=Be,p.isSearching=!0,p.searchLoading=!0,p.searchError=null,p.currentPage=1;try{if(!h.now_site||!h.now_site.key)throw new Error("请先选择数据源");const Ke=await Cd.searchVideo(h.now_site.key,{keyword:Be,page:1,extend:h.now_site.ext,apiUrl:h.now_site.api});p.searchResults=Ke.videos||[],p.totalPages=Ke.pagination?.totalPages||1,p.hasMore=Ke.pagination?.hasNext||!1}catch(Ke){console.error("搜索失败:",Ke),p.searchError=Ke.message||"搜索失败,请重试",p.searchResults=[]}finally{p.searchLoading=!1}},G=async()=>{if(p.searchLoading||!p.searchKeyword||!p.hasMore)return;p.searchLoading=!0;const xe=p.currentPage+1;try{const Be=await Cd.searchVideo(h.now_site.key,{keyword:p.searchKeyword,page:xe,extend:h.now_site.ext,apiUrl:h.now_site.api}),Ke=Be.videos||[],ze=new Set(p.searchResults.map(_e=>_e.vod_id)),be=Ke.filter(_e=>!ze.has(_e.vod_id)&&_e.vod_id!=="no_data"&&_e.vod_name!=="no_data");be.length===0?p.hasMore=!1:(p.searchResults=[...p.searchResults,...be],p.hasMore=Be.pagination?.hasNext!==!1),p.currentPage=xe,p.totalPages=Be.pagination?.totalPages||p.totalPages}catch(Be){console.error("搜索加载更多失败:",Be),p.searchError=Be.message||"加载失败,请重试"}finally{p.searchLoading=!1}},X=()=>{p.isSearching=!1,p.searchKeyword="",p.searchResults=[],p.searchError=null,p.currentPage=1},ie=xe=>{c.value=xe},ee=xe=>{if(xe&&xe.vod_id){let Be="false";p.isSearching?Be="true":c.value&&r.saveVideoState(c.value,1,[],!0,!1,window.scrollY);const Ke={name:xe.vod_name,pic:xe.vod_pic,year:xe.vod_year,area:xe.vod_area,type:xe.vod_type,remarks:xe.vod_remarks,content:xe.vod_content,actor:xe.vod_actor,director:xe.vod_director,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify({...o.query,activeKey:c.value}),fromSearch:Be,sourcePic:xe.vod_pic};g.value?.isActive&&(Ke.folderState=JSON.stringify({isActive:g.value.isActive,breadcrumbs:g.value.breadcrumbs,currentBreadcrumb:g.value.currentBreadcrumb})),a.push({name:"VideoDetail",params:{id:xe.vod_id},query:Ke})}},W=()=>{p.isSearching||d.value&&d.value.refreshCurrentCategory()},q=async(xe,Be)=>{switch(xe){case"__self_search__":await Q(Be);break;default:console.warn("🎯 [WARN] 未知的特殊动作类型:",xe);break}},Q=async xe=>{try{m.isActive||(m.originalClassList=h.classList,m.originalRecommendVideos=h.recommendVideos);const Be=xe.tid||xe.type_id||xe.actionData?.tid,Ke=xe.name||xe.type_name||`搜索: ${Be}`;if(!Be){console.error("🔍 [ERROR] 源内搜索参数不完整:缺少tid"),wt.error("源内搜索参数不完整:缺少tid");return}const ze=await Cd.getCategoryVideos(h.now_site?.key||t?.key,{typeId:Be,page:1,filters:{},apiUrl:h.now_site?.api,extend:h.now_site?.ext}),be={class:[{type_id:Be,type_name:Ke}],filters:{}};m.isActive=!0,m.categoryData={type_id:Be,type_name:Ke,originalData:xe,videos:ze.videos||[],pagination:ze.pagination||{}},h.classList=be,h.recommendVideos=[],c.value=Be,await _n(),d.value&&ze.videos&&d.value.setSpecialCategoryData(Be,ze.videos,ze.pagination)}catch(Be){console.error("处理源内搜索失败:",Be),wt.error(`源内搜索失败: ${Be.message}`)}},ne=()=>{m.isActive&&(h.classList=m.originalClassList,h.recommendVideos=m.originalRecommendVideos,m.isActive=!1,m.categoryData=null,m.originalClassList=null,m.originalRecommendVideos=null,c.value="recommendTuijian404")};let ae=!1,re=null;const Ce=async xe=>{if(!xe||typeof xe!="object"){console.error("navigationData 无效:",xe);return}if(!ae){re&&(clearTimeout(re),re=null),ae=!0;try{xe.isActive&&!g.value?.isActive&&(S.activeKey=c.value,S.scrollPosition=window.scrollY||0,S.savedAt=Date.now()),!xe.isActive&&g.value?.isActive&&(S.activeKey&&(c.value=S.activeKey),S.scrollPosition&&_n(()=>{window.scrollTo(0,S.scrollPosition)}),S.activeKey=null,S.scrollPosition=0,S.savedAt=null),await _n();const Be=ze=>{if(ze===null||typeof ze!="object")return ze;if(ze instanceof Date)return new Date(ze.getTime());if(ze instanceof Array)return ze.map(be=>Be(be));if(typeof ze=="object"){const be={};return Object.keys(ze).forEach(_e=>{be[_e]=Be(ze[_e])}),be}return ze},Ke={isActive:!!xe.isActive,breadcrumbs:Be(xe.breadcrumbs||[]),currentData:Be(xe.currentData||[]),currentBreadcrumb:Be(xe.currentBreadcrumb||null),loading:!!xe.loading};g.value=Ke}catch(Be){console.error("更新folder状态时出错:",Be)}finally{ae=!1,re=null}}},we=()=>{h.visible=!0;const xe=h.sites.filter(Be=>Be.type===4);h.form_title=`请选择数据源(${xe.length})`,E()},ve=()=>{y.value=!1},me=async xe=>{if(!xe||!xe.trim()){wt.error("推送内容不能为空");return}const Be=h.sites.find(Ke=>Ke.key==="push_agent");if(!Be){wt.error("没有找到push_agent服务,请检查源配置");return}try{a.push({name:"VideoDetail",params:{id:xe.trim()},query:{name:`推送内容-${xe.trim()}`,pic:"",year:"",area:"",type:"",type_name:"",remarks:"",content:"",actor:"",director:"",fromPush:"true",tempSiteName:Be.name,tempSiteApi:Be.api,tempSiteKey:Be.key,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify(o.query),sourcePic:""}}),wt.success(`正在推送内容: ${xe.trim()}`)}catch(Ke){console.error("推送失败:",Ke),wt.error("推送失败,请重试")}};return vn(async()=>{C(),x(),window.addEventListener("reloadSource",D);const xe=o.query._restoreSearch,Be=o.query._returnToActiveKey,Ke=o.query.folderState;if(xe==="true"){const Se=r.getPageState("search");if(Se&&Se.keyword&&!r.isStateExpired("search")){p.isSearching=!0,p.searchKeyword=Se.keyword,p.searchResults=Se.videos||[],p.currentPage=Se.currentPage||1,p.hasMore=Se.hasMore||!1,p.searchLoading=!1,p.searchError=null,p.scrollPosition=Se.scrollPosition||0;const $e={...o.query};delete $e._restoreSearch,a.replace({query:$e}),await U(h.now_site),_();return}}const ze=r.getPageState("video"),be=r.isStateExpired("video");let _e=!1,Ne=!1;if(Be){if(c.value=Be,Ke)try{const $e=JSON.parse(Ke),Xe={isActive:$e.isActive,breadcrumbs:$e.breadcrumbs||[],currentBreadcrumb:$e.currentBreadcrumb,currentData:[],loading:!1};if(g.value=Xe,$e.currentBreadcrumb&&$e.currentBreadcrumb.vod_id){g.value={...g.value,loading:!0};try{const rt={t:$e.currentBreadcrumb.vod_id,apiUrl:h.now_site?.api,extend:h.now_site?.ext},nt=await U1(h.now_site?.key||t?.key,rt);if(nt&&nt.list){const gt={...g.value,currentData:nt.list,loading:!1};g.value=gt}else g.value={...g.value,loading:!1}}catch(rt){console.error("获取folder数据失败:",rt),g.value={...g.value,loading:!1}}}Ne=!0}catch($e){console.error("解析folder状态失败:",$e)}Ne||(_e=!0);const Se={...o.query};delete Se._returnToActiveKey,delete Se.folderState,a.replace({query:Se})}else ze&&ze.activeKey&&!be&&(c.value=ze.activeKey,_e=!0);await U(h.now_site),_(),_e&&!Ne&&setTimeout(()=>{d.value&&d.value.restoreFullState({activeKey:c.value,currentPage:ze?.currentPage||1,videos:ze?.videos||[],hasMore:ze?.hasMore||!0,scrollPosition:ze?.scrollPosition||0})},100)}),Oo(()=>{if(k.value&&clearInterval(k.value),window.removeEventListener("reloadSource",D),c.value&&d.value){const xe=d.value.getCurrentState();r.saveVideoState(c.value,xe.currentPage,xe.videos,xe.hasMore,!1,xe.scrollPosition)}}),(xe,Be)=>{const Ke=Pe("a-spin"),ze=Pe("a-button"),be=Pe("a-layout-content");return H(),J(Ft,null,[O(b4t,{onHandleOpenForm:we,onRefreshPage:T,onMinimize:P,onMaximize:M,onCloseWindow:$,onOnSearch:z,onHandlePush:me,now_site_title:h.now_site_title},{default:de(()=>[L("div",Rkt,[L("span",null,Ve(l.value),1)])]),_:1},8,["now_site_title"]),L("div",Mkt,[y.value?(H(),J("div",Okt,[L("div",$kt,[O(Ke,{size:32}),Be[2]||(Be[2]=L("div",{class:"loading-text"},"正在切换数据源...",-1)),O(ze,{type:"outline",size:"small",onClick:ve,class:"close-loading-btn"},{default:de(()=>[...Be[1]||(Be[1]=[We(" 手动关闭 ",-1)])]),_:1})])])):Me("",!0),O(be,{class:"content"},{default:de(()=>[p.isSearching?(H(),Je(b3e,{key:0,keyword:p.searchKeyword,videos:p.searchResults,loading:p.searchLoading,error:p.searchError,currentPage:p.currentPage,totalPages:p.totalPages,hasMore:p.hasMore,scrollPosition:p.scrollPosition,sourceRoute:{name:et(o).name,params:et(o).params,query:et(o).query},module:h.now_site?.key||et(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,onLoadMore:G,onExitSearch:X,onVideoClick:ee,onRefreshList:W},null,8,["keyword","videos","loading","error","currentPage","totalPages","hasMore","scrollPosition","sourceRoute","module","extend","api-url"])):(H(),Je(ckt,{key:1,ref_key:"videoListRef",ref:d,classList:h.classList,recommendVideos:h.recommendVideos,sourceRoute:{name:et(o).name,params:et(o).params,query:{...et(o).query,activeKey:c.value,folderState:g.value.value?.isActive?JSON.stringify({isActive:g.value.value.isActive,breadcrumbs:g.value.value.breadcrumbs,currentBreadcrumb:g.value.value.currentBreadcrumb}):void 0}},returnToActiveKey:et(o).query._returnToActiveKey,module:h.now_site?.key||et(t)?.key,extend:h.now_site?.ext,"api-url":h.now_site?.api,specialCategoryState:m,folderNavigationState:g.value,onActiveKeyChange:ie,onSpecialAction:q,onCloseSpecialCategory:ne,onFolderNavigate:Ce},null,8,["classList","recommendVideos","sourceRoute","returnToActiveKey","module","extend","api-url","specialCategoryState","folderNavigationState"]))]),_:1})]),O(a4t,{visible:h.visible,title:h.form_title,sites:h.sites,currentSiteKey:h.now_site.key,"onUpdate:visible":Be[0]||(Be[0]=_e=>h.visible=_e),onConfirmClear:N,onConfirmChange:j,onChangeRule:I},null,8,["visible","title","sites","currentSiteKey"])],64)}}},Nkt=_r(Bkt,[["__scopeId","data-v-5660f461"]]),_3e=async(e,t={})=>{const{snifferUrl:n="http://localhost:57573/sniffer",timeout:r=10,mode:o="0",is_pc:a="0"}=t;if(!e)throw new Error("URL或解析数据参数不能为空");if(!n)throw new Error("嗅探器接口地址不能为空");try{let s;if(typeof e=="object"&&e.parse===1){const{url:p,js:m,parse_extra:g}=e;if(!p)throw new Error("T4解析数据中缺少URL");const y=typeof p=="string"?p:p.toString?p.toString():String(p);console.log("处理T4解析数据:",e),console.log("提取的URL:",y),console.log("=== 调试结束 ===");const S=new URLSearchParams({url:y,mode:o,is_pc:a,timeout:(r*1e3).toString()});m&&S.set("script",m),s=`${n}?${S.toString()}`,g&&(s+=g)}else{const p=typeof e=="string"?e:e.toString(),m=new URLSearchParams({url:p,mode:o,is_pc:a,timeout:(r*1e3).toString()});s=`${n}?${m.toString()}`}console.log("嗅探请求URL:",s);const l=new AbortController,c=setTimeout(()=>l.abort(),r*1e3+5e3),d=await fetch(s,{method:"GET",signal:l.signal,headers:{Accept:"application/json","Content-Type":"application/json"}});if(clearTimeout(c),!d.ok)throw new Error(`嗅探请求失败: ${d.status} ${d.statusText}`);const h=await d.json();if(console.log("嗅探响应结果:",h),h.code!==200)throw new Error(h.msg||"嗅探失败");return{success:!0,data:h.data,message:h.msg||"嗅探成功",timestamp:h.timestamp}}catch(s){throw console.error("嗅探请求失败:",s),s.name==="AbortError"?new Error(`嗅探超时(${r}秒)`):s.message.includes("Failed to fetch")?new Error("无法连接到嗅探器服务,请检查嗅探器是否正常运行"):s}},vG=()=>{try{const e=localStorage.getItem("addressSettings");if(e){const t=JSON.parse(e);return{enabled:t.proxySniffEnabled||!1,url:t.proxySniff||"http://localhost:57573/sniffer",timeout:t.snifferTimeout||10}}}catch(e){console.error("获取嗅探器配置失败:",e)}return{enabled:!1,url:"http://localhost:57573/sniffer",timeout:10}},CT=()=>{const e=vG();if(!(e.url&&e.url.trim()!==""&&e.url!=="undefined"))return!1;try{const n=localStorage.getItem("addressSettings");if(n)return JSON.parse(n).proxySniffEnabled===!0}catch(n){console.error("检查嗅探器配置失败:",n)}return!0},S3e=async(e,t={})=>{const n=vG();if(!n.enabled)throw new Error("嗅探功能未启用");if(!n.url)throw new Error("嗅探器接口地址未配置");const r={snifferUrl:n.url,timeout:n.timeout,...t};return await _3e(e,r)},Fkt=Object.freeze(Object.defineProperty({__proto__:null,getSnifferConfig:vG,isSnifferEnabled:CT,sniffVideo:_3e,sniffVideoWithConfig:S3e},Symbol.toStringTag,{value:"Module"}));class Ple{static validateParserConfig(t){const n=[];if(!t)return{valid:!1,errors:["解析器配置不能为空"]};if(t.name||n.push("解析器名称不能为空"),!t.url)n.push("解析器URL不能为空");else try{new URL(t.url)}catch{n.push("解析器URL格式无效")}return(!t.type||!["json","sniffer"].includes(t.type))&&n.push("解析器类型必须是 json 或 sniffer"),t.type==="json"&&(t.urlPath||n.push("JSON解析器必须配置URL提取路径(urlPath)")),t.type,{valid:n.length===0,errors:n}}static async testParserConfig(t,n="https://example.com/test.mp4"){try{console.log("🧪 [解析器测试] 开始测试解析器配置:",{parser:t.name,testUrl:n,isDefaultTestUrl:n==="https://example.com/test.mp4"});const r=this.validateParserConfig(t);if(!r.valid)return{success:!1,message:"配置验证失败: "+r.errors.join(", ")};let o;return t.type==="json"?(console.log("🧪 [解析器测试] 使用JSON解析器测试"),o=await this.parseWithJsonParser(t,{url:n})):t.type==="sniffer"&&(console.log("🧪 [解析器测试] 使用嗅探解析器测试"),o=await this.parseWithSnifferParser(t,{url:n})),{success:o.success,message:o.success?"解析器测试成功":o.message,testResult:o}}catch(r){return{success:!1,message:"解析器测试失败: "+r.message}}}static async parseWithJsonParser(t,n){try{if(console.log("🔍 [JSON解析] 开始解析:",{parser:t.name,data:n,dataType:typeof n,isTestUrl:n&&typeof n=="object"&&n.url==="https://example.com/test.mp4"}),!t.url)throw new Error("解析器URL未配置");let r;if(n&&typeof n=="object"?(r=n.url||n.play_url||n,console.log("从T4数据结构提取的目标URL:",r)):(r=n,console.log("直接使用的目标URL:",r)),!r||typeof r!="string")throw new Error("无效的视频URL");console.log("要解析的视频URL:",r);const o=t.url+encodeURIComponent(r);console.log("拼接后的解析地址:",o);const a=JSON.parse(localStorage.getItem("addressSettings")||"{}"),s=a.proxyAccessEnabled||!1,l=a.proxyAccess||"";let c=o;s&&l?(console.log("🔄 [代理访问] 使用代理访问接口:",l),l.includes("${url}")?(c=l.replace(/\$\{url\}/g,encodeURIComponent(o)),console.log("🔄 [代理访问] 替换占位符后的最终URL:",c)):console.warn("⚠️ [代理访问] 代理访问链接中未找到${url}占位符,将直接访问原地址")):console.log("🔄 [直接访问] 代理访问接口未启用,直接访问解析地址");const d={method:t.method||"GET",url:c,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",Referer:o,...t.headers},timeout:3e4},h=await lo(d);console.log("JSON解析响应:",h.data);const p=this.parseJsonResponse(h.data,t);return{success:!0,url:p.url,headers:p.headers||{},qualities:p.qualities||[],message:"解析成功"}}catch(r){return console.error("JSON解析失败:",r),{success:!1,message:r.message||"JSON解析失败"}}}static async parseWithSnifferParser(t,n){try{if(console.log("开始嗅探解析:",{parser:t.name,data:n}),!t.url)throw new Error("解析器URL未配置");const r=this.buildSnifferUrl(t,n);console.log("嗅探URL:",r);const o=await lo({method:"GET",url:r,headers:{"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",Referer:n.referer||"",...t.headers},timeout:3e4,maxRedirects:5});console.log("嗅探解析响应状态:",o.status);const a=this.extractVideoUrlFromSniffer(o,t);if(!a)throw new Error("未能从嗅探响应中提取到视频URL");return{success:!0,url:a,headers:{Referer:t.url,"User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},qualities:[],message:"嗅探解析成功"}}catch(r){return console.error("嗅探解析失败:",r),{success:!1,message:r.message||"嗅探解析失败"}}}static parseJsonResponse(t,n){try{let r=t;typeof r=="string"&&(r=JSON.parse(r));const o={url:this.extractValueByPath(r,n.urlPath||"url"),headers:{},qualities:[]};if(n.headersPath&&(o.headers=this.extractValueByPath(r,n.headersPath)||{}),n.qualitiesPath){const a=this.extractValueByPath(r,n.qualitiesPath);Array.isArray(a)&&(o.qualities=a.map(s=>({name:s.name||s.quality||"Unknown",url:s.url||s.playUrl||s.src})))}return o}catch(r){throw console.error("解析JSON响应失败:",r),new Error("解析JSON响应失败: "+r.message)}}static buildSnifferUrl(t,n){let r=t.url,o;if(n&&typeof n=="object"?(o=n.url||n.play_url||n,console.log("从T4数据结构提取的嗅探目标URL:",o)):(o=n,console.log("直接使用的嗅探目标URL:",o)),!o||typeof o!="string")throw new Error("无效的视频URL");if(r.includes("{url}")?r=r.replace(/\{url\}/g,encodeURIComponent(o)):r=r+encodeURIComponent(o),r=r.replace(/\{time\}/g,Date.now()),t.params){const a=new URLSearchParams;Object.entries(t.params).forEach(([s,l])=>{a.append(s,l)}),r+=(r.includes("?")?"&":"?")+a.toString()}return r}static extractVideoUrlFromSniffer(t,n){try{if(t.headers.location){const r=t.headers.location;if(this.isVideoUrl(r))return r}if(t.data){let r=t.data;if(typeof r=="object"){const o=this.extractValueByPath(r,n.urlPath||"url");if(o&&this.isVideoUrl(o))return o}if(typeof r=="string"){const o=/(https?:\/\/[^\s"'<>]+\.(?:mp4|m3u8|flv|avi|mkv|mov|wmv|webm)(?:\?[^\s"'<>]*)?)/gi,a=r.match(o);if(a&&a.length>0)return a[0]}}if(n.extractRule){const r=new RegExp(n.extractRule,"gi"),o=t.data.match(r);if(o&&o.length>0)return o[0]}return null}catch(r){return console.error("提取视频URL失败:",r),null}}static extractValueByPath(t,n){try{return n.split(".").reduce((r,o)=>{const a=o.match(/^(\w+)\[(\d+)\]$/);if(a){const[,s,l]=a;return r?.[s]?.[parseInt(l)]}return r?.[o]},t)}catch(r){return console.error("提取路径值失败:",r,{path:n,obj:t}),null}}static isVideoUrl(t){if(!t||typeof t!="string")return!1;const n=[".mp4",".m3u8",".flv",".avi",".mkv",".mov",".wmv",".webm"],r=t.toLowerCase();return n.some(o=>r.includes(o))||r.includes("video")||r.includes("stream")}}const qA=Xm("favorite",()=>{const e=fe([]),t=()=>{try{const m=localStorage.getItem("drplayer-favorites");m&&(e.value=JSON.parse(m))}catch(m){console.error("加载收藏数据失败:",m),e.value=[]}},n=()=>{try{localStorage.setItem("drplayer-favorites",JSON.stringify(e.value))}catch(m){console.error("保存收藏数据失败:",m)}},r=m=>{const g={id:m.vod_id,name:m.vod_name,pic:m.vod_pic,year:m.vod_year,area:m.vod_area,type_name:m.type_name,remarks:m.vod_remarks,director:m.vod_director,actor:m.vod_actor,api_info:{module:m.module||"",api_url:m.api_url||"",site_name:m.site_name||"",ext:m.ext||null},created_at:new Date().toISOString(),updated_at:new Date().toISOString()};return e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url)===-1?(e.value.unshift(g),n(),!0):!1},o=(m,g)=>{const y=e.value.findIndex(S=>S.id===m&&S.api_info.api_url===g);return y!==-1?(e.value.splice(y,1),n(),!0):!1},a=(m,g)=>e.value.some(y=>y.id===m&&y.api_info.api_url===g),s=(m,g)=>e.value.find(y=>y.id===m&&y.api_info.api_url===g),l=()=>{e.value=[],n()},c=()=>{const m={version:"1.0",export_time:new Date().toISOString(),favorites:e.value},g=new Blob([JSON.stringify(m,null,2)],{type:"application/json"}),y=URL.createObjectURL(g),S=document.createElement("a");S.href=y,S.download=`drplayer-favorites-${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S),URL.revokeObjectURL(y)},d=m=>new Promise((g,y)=>{const S=new FileReader;S.onload=k=>{try{const C=JSON.parse(k.target.result);if(!C.favorites||!Array.isArray(C.favorites))throw new Error("无效的收藏数据格式");let x=0;C.favorites.forEach(E=>{e.value.some(T=>T.id===E.id&&T.api_info.api_url===E.api_info.api_url)||(e.value.push({...E,updated_at:new Date().toISOString()}),x++)}),n(),g(x)}catch(C){y(C)}},S.onerror=()=>{y(new Error("文件读取失败"))},S.readAsText(m)}),h=F(()=>e.value.length),p=F(()=>{const m={};return e.value.forEach(g=>{const y=g.api_info?.site_name||"";let S="影视";y.includes("[书]")?S="小说":y.includes("[画]")?S="漫画":y.includes("[密]")?S="密":y.includes("[听]")?S="音频":y.includes("[儿]")&&(S="少儿"),m[S]||(m[S]=[]),m[S].push(g)}),m});return t(),{favorites:e,favoriteCount:h,favoritesByType:p,addFavorite:r,removeFavorite:o,isFavorited:a,getFavorite:s,clearFavorites:l,exportFavorites:c,importFavorites:d,loadFavorites:t,saveFavorites:n}}),mG=Xm("history",()=>{const e=fe([]),t=F(()=>e.value.length),n=F(()=>[...e.value].sort((g,y)=>new Date(y.updated_at)-new Date(g.updated_at))),r=F(()=>{const g={};return e.value.forEach(y=>{const S=y.api_info?.site_name||"";let k="影视";S.includes("[书]")?k="小说":S.includes("[画]")?k="漫画":S.includes("[密]")?k="密":S.includes("[听]")?k="音频":S.includes("[儿]")&&(k="少儿"),g[k]||(g[k]=[]),g[k].push(y)}),g}),o=()=>{try{const g=localStorage.getItem("drplayer_histories");g&&(e.value=JSON.parse(g))}catch(g){console.error("加载观看历史失败:",g),e.value=[]}},a=()=>{try{localStorage.setItem("drplayer_histories",JSON.stringify(e.value))}catch(g){console.error("保存观看历史失败:",g)}},s=(g,y,S)=>{const k=new Date().toISOString();console.log("=== historyStore.addToHistory 调试 ==="),console.log("传入的videoInfo.api_info:",g.api_info),console.log("传入的videoInfo.api_info.ext:",g.api_info.ext);const C=e.value.findIndex(E=>E.id===g.id&&E.api_info.api_url===g.api_info.api_url),x={...g,current_route_name:y.name,current_route_index:y.index,current_episode_name:S.name,current_episode_index:S.index,current_episode_url:S.url,updated_at:k};C!==-1?(e.value[C]={...e.value[C],...x},console.log("更新后的历史记录api_info:",e.value[C].api_info)):(x.created_at=k,e.value.push(x),console.log("新添加的历史记录api_info:",x.api_info)),console.log("=== historyStore.addToHistory 调试结束 ==="),a()},l=g=>{if(!g||!g.id||!g.api_info||!g.api_info.api_url)return console.error("删除历史记录失败:参数无效",g),!1;const y=e.value.findIndex(S=>S.id===g.id&&S.api_info.api_url===g.api_info.api_url);return y!==-1?(e.value.splice(y,1),a(),console.log("删除历史记录成功:",g.name),!0):(console.warn("未找到要删除的历史记录:",g),!1)},c=()=>{e.value=[],a()},d=()=>{const g=JSON.stringify(e.value,null,2),y=new Blob([g],{type:"application/json"}),S=document.createElement("a");S.href=URL.createObjectURL(y),S.download=`drplayer_histories_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(S),S.click(),document.body.removeChild(S)},h=g=>{try{const y=JSON.parse(g);if(!Array.isArray(y))throw new Error("导入的数据格式不正确");const S=y.filter(k=>k.id&&k.name&&k.pic&&k.api_info&&k.current_route_name&&k.current_episode_name);return S.forEach(k=>{const C=e.value.findIndex(x=>x.id===k.id&&x.api_info.api_url===k.api_info.api_url);if(C===-1)e.value.push(k);else{const x=e.value[C],E=new Date(k.updated_at),_=new Date(x.updated_at);E>_&&(e.value[C]=k)}}),a(),S.length}catch(y){throw new Error(`导入失败: ${y.message}`)}},p=(g,y)=>e.value.find(S=>S.id===g&&S.api_info.api_url===y);return{histories:e,historyCount:t,sortedHistories:n,historiesByType:r,loadHistories:o,saveHistories:a,addToHistory:s,removeFromHistory:l,clearHistories:c,exportHistories:d,importHistories:h,getHistoryByVideo:p,getWatchProgress:(g,y)=>{const S=p(g,y);return S?{routeName:S.current_route_name,routeIndex:S.current_route_index,episodeName:S.current_episode_name,episodeIndex:S.current_episode_index,episodeUrl:S.current_episode_url,lastWatchTime:S.updated_at}:null}}}),gG=Xm("parser",()=>{const e=fe([]),t=fe(!1),n=fe(null),r=F(()=>e.value.filter(_=>_.enabled!==!1)),o=F(()=>e.value.filter(_=>_.enabled===!1)),a=F(()=>e.value.length),s=async _=>{t.value=!0,n.value=null;try{const T=await fetch(_);if(!T.ok)throw new Error(`HTTP ${T.status}: ${T.statusText}`);const D=await T.json();if(D.parses&&Array.isArray(D.parses))return e.value=D.parses.map((P,M)=>({...P,id:P.id||`parser_${Date.now()}_${M}`,enabled:P.enabled!==!1,order:M})),c(),!0;throw new Error("配置数据格式错误:缺少parses字段")}catch(T){return n.value=T.message,console.error("加载解析配置失败:",T),!1}finally{t.value=!1}},l=()=>{try{const _=localStorage.getItem("drplayer_parsers");if(_){const T=JSON.parse(_);if(Array.isArray(T))return e.value=T,!0}}catch(_){console.error("从本地存储加载解析配置失败:",_)}return!1},c=()=>{try{localStorage.setItem("drplayer_parsers",JSON.stringify(e.value))}catch(_){console.error("保存解析配置到本地存储失败:",_)}},d=_=>{const T={..._,id:`parser_${Date.now()}_${Math.random().toString(36).substr(2,9)}`,enabled:!0,order:e.value.length};return e.value.push(T),c(),T},h=(_,T)=>{const D=e.value.findIndex(P=>P.id===_);return D!==-1?(e.value[D]={...e.value[D],...T},c(),!0):!1},p=_=>{const T=e.value.findIndex(D=>D.id===_);return T!==-1?(e.value.splice(T,1),c(),!0):!1},m=_=>{const T=e.value.find(D=>D.id===_);return T?(T.enabled=!T.enabled,c(),T.enabled):!1},g=_=>{e.value=_.map((T,D)=>({...T,order:D})),c()},y=_=>{const T=[...e.value];T.forEach(D=>{_.has(D.id)&&(D.order=_.get(D.id))}),T.sort((D,P)=>D.order-P.order),T.forEach((D,P)=>{D.order=P}),e.value=T,c()},S=async(_,T)=>{try{const D=_.url.replace(/\{url\}/g,encodeURIComponent(T)),P=await fetch(D,{method:"GET",headers:_.header||{},timeout:1e4});if(!P.ok)throw new Error(`HTTP ${P.status}: ${P.statusText}`);const M=await P.text(),$=/https?:\/\/[^\s]+\.(mp4|m3u8|flv)/i.test(M);return{success:!0,hasVideoUrl:$,response:M,message:$?"解析成功,检测到视频链接":"解析完成,但未检测到视频链接"}}catch(D){return{success:!1,error:D.message,message:`解析失败: ${D.message}`}}},k=()=>{const _={parses:e.value.map(M=>({name:M.name,url:M.url,type:M.type,ext:M.ext,header:M.header})),exportTime:new Date().toISOString(),version:"1.0"},T=new Blob([JSON.stringify(_,null,2)],{type:"application/json"}),D=URL.createObjectURL(T),P=document.createElement("a");P.href=D,P.download=`drplayer_parsers_${new Date().toISOString().split("T")[0]}.json`,document.body.appendChild(P),P.click(),document.body.removeChild(P),URL.revokeObjectURL(D)},C=async _=>{try{const T=await _.text(),D=JSON.parse(T);if(D.parses&&Array.isArray(D.parses)){const P=D.parses.map((M,$)=>({...M,id:`imported_${Date.now()}_${$}`,enabled:!0,order:e.value.length+$}));return e.value.push(...P),c(),{success:!0,count:P.length}}else throw new Error("导入文件格式错误:缺少parses字段")}catch(T){return{success:!1,error:T.message}}},x=()=>{e.value=[],c()};return l(),{parsers:e,loading:t,error:n,enabledParsers:r,disabledParsers:o,parserCount:a,loadParsers:()=>{l()},loadParsersFromConfig:s,loadFromLocalStorage:l,saveToLocalStorage:c,addParser:d,updateParser:h,deleteParser:p,toggleParser:m,reorderParsers:g,reorderParsersById:y,testParser:S,exportParsers:k,importParsers:C,clearAllParsers:x}}),Bn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},jkt=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=Vkt},Vkt=Number.MAX_SAFE_INTEGER||9007199254740991;let lr=(function(e){return e.NETWORK_ERROR="networkError",e.MEDIA_ERROR="mediaError",e.KEY_SYSTEM_ERROR="keySystemError",e.MUX_ERROR="muxError",e.OTHER_ERROR="otherError",e})({}),Wt=(function(e){return e.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",e.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",e.KEY_SYSTEM_NO_SESSION="keySystemNoSession",e.KEY_SYSTEM_NO_CONFIGURED_LICENSE="keySystemNoConfiguredLicense",e.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED="keySystemServerCertificateRequestFailed",e.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED="keySystemServerCertificateUpdateFailed",e.KEY_SYSTEM_SESSION_UPDATE_FAILED="keySystemSessionUpdateFailed",e.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED="keySystemStatusOutputRestricted",e.KEY_SYSTEM_STATUS_INTERNAL_ERROR="keySystemStatusInternalError",e.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR="keySystemDestroyMediaKeysError",e.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR="keySystemDestroyCloseSessionError",e.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR="keySystemDestroyRemoveSessionError",e.MANIFEST_LOAD_ERROR="manifestLoadError",e.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",e.MANIFEST_PARSING_ERROR="manifestParsingError",e.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",e.LEVEL_EMPTY_ERROR="levelEmptyError",e.LEVEL_LOAD_ERROR="levelLoadError",e.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",e.LEVEL_PARSING_ERROR="levelParsingError",e.LEVEL_SWITCH_ERROR="levelSwitchError",e.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",e.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",e.SUBTITLE_LOAD_ERROR="subtitleTrackLoadError",e.SUBTITLE_TRACK_LOAD_TIMEOUT="subtitleTrackLoadTimeOut",e.FRAG_LOAD_ERROR="fragLoadError",e.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",e.FRAG_DECRYPT_ERROR="fragDecryptError",e.FRAG_PARSING_ERROR="fragParsingError",e.FRAG_GAP="fragGap",e.REMUX_ALLOC_ERROR="remuxAllocError",e.KEY_LOAD_ERROR="keyLoadError",e.KEY_LOAD_TIMEOUT="keyLoadTimeOut",e.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",e.BUFFER_INCOMPATIBLE_CODECS_ERROR="bufferIncompatibleCodecsError",e.BUFFER_APPEND_ERROR="bufferAppendError",e.BUFFER_APPENDING_ERROR="bufferAppendingError",e.BUFFER_STALLED_ERROR="bufferStalledError",e.BUFFER_FULL_ERROR="bufferFullError",e.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",e.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",e.ASSET_LIST_LOAD_ERROR="assetListLoadError",e.ASSET_LIST_LOAD_TIMEOUT="assetListLoadTimeout",e.ASSET_LIST_PARSING_ERROR="assetListParsingError",e.INTERSTITIAL_ASSET_ITEM_ERROR="interstitialAssetItemError",e.INTERNAL_EXCEPTION="internalException",e.INTERNAL_ABORTED="aborted",e.ATTACH_MEDIA_ERROR="attachMediaError",e.UNKNOWN="unknown",e})({}),Ie=(function(e){return e.MEDIA_ATTACHING="hlsMediaAttaching",e.MEDIA_ATTACHED="hlsMediaAttached",e.MEDIA_DETACHING="hlsMediaDetaching",e.MEDIA_DETACHED="hlsMediaDetached",e.MEDIA_ENDED="hlsMediaEnded",e.STALL_RESOLVED="hlsStallResolved",e.BUFFER_RESET="hlsBufferReset",e.BUFFER_CODECS="hlsBufferCodecs",e.BUFFER_CREATED="hlsBufferCreated",e.BUFFER_APPENDING="hlsBufferAppending",e.BUFFER_APPENDED="hlsBufferAppended",e.BUFFER_EOS="hlsBufferEos",e.BUFFERED_TO_END="hlsBufferedToEnd",e.BUFFER_FLUSHING="hlsBufferFlushing",e.BUFFER_FLUSHED="hlsBufferFlushed",e.MANIFEST_LOADING="hlsManifestLoading",e.MANIFEST_LOADED="hlsManifestLoaded",e.MANIFEST_PARSED="hlsManifestParsed",e.LEVEL_SWITCHING="hlsLevelSwitching",e.LEVEL_SWITCHED="hlsLevelSwitched",e.LEVEL_LOADING="hlsLevelLoading",e.LEVEL_LOADED="hlsLevelLoaded",e.LEVEL_UPDATED="hlsLevelUpdated",e.LEVEL_PTS_UPDATED="hlsLevelPtsUpdated",e.LEVELS_UPDATED="hlsLevelsUpdated",e.AUDIO_TRACKS_UPDATED="hlsAudioTracksUpdated",e.AUDIO_TRACK_SWITCHING="hlsAudioTrackSwitching",e.AUDIO_TRACK_SWITCHED="hlsAudioTrackSwitched",e.AUDIO_TRACK_LOADING="hlsAudioTrackLoading",e.AUDIO_TRACK_LOADED="hlsAudioTrackLoaded",e.AUDIO_TRACK_UPDATED="hlsAudioTrackUpdated",e.SUBTITLE_TRACKS_UPDATED="hlsSubtitleTracksUpdated",e.SUBTITLE_TRACKS_CLEARED="hlsSubtitleTracksCleared",e.SUBTITLE_TRACK_SWITCH="hlsSubtitleTrackSwitch",e.SUBTITLE_TRACK_LOADING="hlsSubtitleTrackLoading",e.SUBTITLE_TRACK_LOADED="hlsSubtitleTrackLoaded",e.SUBTITLE_TRACK_UPDATED="hlsSubtitleTrackUpdated",e.SUBTITLE_FRAG_PROCESSED="hlsSubtitleFragProcessed",e.CUES_PARSED="hlsCuesParsed",e.NON_NATIVE_TEXT_TRACKS_FOUND="hlsNonNativeTextTracksFound",e.INIT_PTS_FOUND="hlsInitPtsFound",e.FRAG_LOADING="hlsFragLoading",e.FRAG_LOAD_EMERGENCY_ABORTED="hlsFragLoadEmergencyAborted",e.FRAG_LOADED="hlsFragLoaded",e.FRAG_DECRYPTED="hlsFragDecrypted",e.FRAG_PARSING_INIT_SEGMENT="hlsFragParsingInitSegment",e.FRAG_PARSING_USERDATA="hlsFragParsingUserdata",e.FRAG_PARSING_METADATA="hlsFragParsingMetadata",e.FRAG_PARSED="hlsFragParsed",e.FRAG_BUFFERED="hlsFragBuffered",e.FRAG_CHANGED="hlsFragChanged",e.FPS_DROP="hlsFpsDrop",e.FPS_DROP_LEVEL_CAPPING="hlsFpsDropLevelCapping",e.MAX_AUTO_LEVEL_UPDATED="hlsMaxAutoLevelUpdated",e.ERROR="hlsError",e.DESTROYING="hlsDestroying",e.KEY_LOADING="hlsKeyLoading",e.KEY_LOADED="hlsKeyLoaded",e.LIVE_BACK_BUFFER_REACHED="hlsLiveBackBufferReached",e.BACK_BUFFER_REACHED="hlsBackBufferReached",e.STEERING_MANIFEST_LOADED="hlsSteeringManifestLoaded",e.ASSET_LIST_LOADING="hlsAssetListLoading",e.ASSET_LIST_LOADED="hlsAssetListLoaded",e.INTERSTITIALS_UPDATED="hlsInterstitialsUpdated",e.INTERSTITIALS_BUFFERED_TO_BOUNDARY="hlsInterstitialsBufferedToBoundary",e.INTERSTITIAL_ASSET_PLAYER_CREATED="hlsInterstitialAssetPlayerCreated",e.INTERSTITIAL_STARTED="hlsInterstitialStarted",e.INTERSTITIAL_ASSET_STARTED="hlsInterstitialAssetStarted",e.INTERSTITIAL_ASSET_ENDED="hlsInterstitialAssetEnded",e.INTERSTITIAL_ASSET_ERROR="hlsInterstitialAssetError",e.INTERSTITIAL_ENDED="hlsInterstitialEnded",e.INTERSTITIALS_PRIMARY_RESUMED="hlsInterstitialsPrimaryResumed",e.PLAYOUT_LIMIT_REACHED="hlsPlayoutLimitReached",e.EVENT_CUE_ENTER="hlsEventCueEnter",e})({});var bi={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},Jn={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class b1{constructor(t,n=0,r=0){this.halfLife=void 0,this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.halfLife=t,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=n,this.totalWeight_=r}sample(t,n){const r=Math.pow(this.alpha_,t);this.estimate_=n*(1-r)+r*this.estimate_,this.totalWeight_+=t}getTotalWeight(){return this.totalWeight_}getEstimate(){if(this.alpha_){const t=1-Math.pow(this.alpha_,this.totalWeight_);if(t)return this.estimate_/t}return this.estimate_}}class zkt{constructor(t,n,r,o=100){this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.defaultTTFB_=void 0,this.ttfb_=void 0,this.defaultEstimate_=r,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new b1(t),this.fast_=new b1(n),this.defaultTTFB_=o,this.ttfb_=new b1(t)}update(t,n){const{slow_:r,fast_:o,ttfb_:a}=this;r.halfLife!==t&&(this.slow_=new b1(t,r.getEstimate(),r.getTotalWeight())),o.halfLife!==n&&(this.fast_=new b1(n,o.getEstimate(),o.getTotalWeight())),a.halfLife!==t&&(this.ttfb_=new b1(t,a.getEstimate(),a.getTotalWeight()))}sample(t,n){t=Math.max(t,this.minDelayMs_);const r=8*n,o=t/1e3,a=r/o;this.fast_.sample(o,a),this.slow_.sample(o,a)}sampleTTFB(t){const n=t/1e3,r=Math.sqrt(2)*Math.exp(-Math.pow(n,2)/2);this.ttfb_.sample(r,Math.max(t,5))}canEstimate(){return this.fast_.getTotalWeight()>=this.minWeight_}getEstimate(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_}getEstimateTTFB(){return this.ttfb_.getTotalWeight()>=this.minWeight_?this.ttfb_.getEstimate():this.defaultTTFB_}get defaultEstimate(){return this.defaultEstimate_}destroy(){}}function Ukt(e,t,n){return(t=Wkt(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function mo(){return mo=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):qp}function Mle(e,t,n){return t[e]?t[e].bind(t):Kkt(e,n)}const $z=Oz();function qkt(e,t,n){const r=Oz();if(typeof console=="object"&&e===!0||typeof e=="object"){const o=["debug","log","info","warn","error"];o.forEach(a=>{r[a]=Mle(a,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.13`)}catch{return Oz()}o.forEach(a=>{$z[a]=Mle(a,e)})}else mo($z,r);return r}const fo=$z;function T0(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function Ykt(e){return typeof self<"u"&&e===self.ManagedMediaSource}function k3e(e,t){const n=Object.keys(e),r=Object.keys(t),o=n.length,a=r.length;return!o||!a||o===a&&!n.some(s=>r.indexOf(s)===-1)}function lc(e,t=!1){if(typeof TextDecoder<"u"){const d=new TextDecoder("utf-8").decode(e);if(t){const h=d.indexOf("\0");return h!==-1?d.substring(0,h):d}return d.replace(/\0/g,"")}const n=e.length;let r,o,a,s="",l=0;for(;l>4){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:s+=String.fromCharCode(r);break;case 12:case 13:o=e[l++],s+=String.fromCharCode((r&31)<<6|o&63);break;case 14:o=e[l++],a=e[l++],s+=String.fromCharCode((r&15)<<12|(o&63)<<6|(a&63)<<0);break}}return s}function zl(e){let t="";for(let n=0;n1||o===1&&(n=this.levelkeys[r[0]])!=null&&n.encrypted)return!0}return!1}get programDateTime(){return this._programDateTime===null&&this.rawProgramDateTime&&(this.programDateTime=Date.parse(this.rawProgramDateTime)),this._programDateTime}set programDateTime(t){if(!Bn(t)){this._programDateTime=this.rawProgramDateTime=null;return}this._programDateTime=t}get ref(){return Ks(this)?(this._ref||(this._ref={base:this.base,start:this.start,duration:this.duration,sn:this.sn,programDateTime:this.programDateTime}),this._ref):null}addStart(t){this.setStart(this.start+t)}setStart(t){this.start=t,this._ref&&(this._ref.start=t)}setDuration(t){this.duration=t,this._ref&&(this._ref.duration=t)}setKeyFormat(t){const n=this.levelkeys;if(n){var r;const o=n[t];o&&!((r=this._decryptdata)!=null&&r.keyId)&&(this._decryptdata=o.getDecryptData(this.sn,n))}}abortRequests(){var t,n;(t=this.loader)==null||t.abort(),(n=this.keyLoader)==null||n.abort()}setElementaryStreamInfo(t,n,r,o,a,s=!1){const{elementaryStreams:l}=this,c=l[t];if(!c){l[t]={startPTS:n,endPTS:r,startDTS:o,endDTS:a,partial:s};return}c.startPTS=Math.min(c.startPTS,n),c.endPTS=Math.max(c.endPTS,r),c.startDTS=Math.min(c.startDTS,o),c.endDTS=Math.max(c.endDTS,a)}}class Jkt extends C3e{constructor(t,n,r,o,a){super(r),this.fragOffset=0,this.duration=0,this.gap=!1,this.independent=!1,this.relurl=void 0,this.fragment=void 0,this.index=void 0,this.duration=t.decimalFloatingPoint("DURATION"),this.gap=t.bool("GAP"),this.independent=t.bool("INDEPENDENT"),this.relurl=t.enumeratedString("URI"),this.fragment=n,this.index=o;const s=t.enumeratedString("BYTERANGE");s&&this.setByteRange(s,a),a&&(this.fragOffset=a.fragOffset+a.duration)}get start(){return this.fragment.start+this.fragOffset}get end(){return this.start+this.duration}get loaded(){const{elementaryStreams:t}=this;return!!(t.audio||t.video||t.audiovideo)}}function w3e(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||w3e(n,t)}}function Qkt(e,t){const n=w3e(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const $le=Math.pow(2,32)-1,ext=[].push,E3e={video:1,audio:2,id3:3,text:4};function aa(e){return String.fromCharCode.apply(null,e)}function T3e(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function $r(e,t){const n=A3e(e,t);return n<0?4294967296+n:n}function Ble(e,t){let n=$r(e,t);return n*=Math.pow(2,32),n+=$r(e,t+4),n}function A3e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function txt(e){const t=e.byteLength;for(let n=0;n8&&e[n+4]===109&&e[n+5]===111&&e[n+6]===111&&e[n+7]===102)return!0;n=r>1?n+r:t}return!1}function fi(e,t){const n=[];if(!t.length)return n;const r=e.byteLength;for(let o=0;o1?o+a:r;if(s===t[0])if(t.length===1)n.push(e.subarray(o+8,l));else{const c=fi(e.subarray(o+8,l),t.slice(1));c.length&&ext.apply(n,c)}o=l}return n}function nxt(e){const t=[],n=e[0];let r=8;const o=$r(e,r);r+=4;let a=0,s=0;n===0?(a=$r(e,r),s=$r(e,r+4),r+=8):(a=Ble(e,r),s=Ble(e,r+8),r+=16),r+=2;let l=e.length+s;const c=T3e(e,r);r+=2;for(let d=0;d>>31===1)return fo.warn("SIDX has hierarchical references (not supported)"),null;const y=$r(e,h);h+=4,t.push({referenceSize:m,subsegmentDuration:y,info:{duration:y/o,start:l,end:l+m-1}}),l+=m,h+=4,r=h}return{earliestPresentationTime:a,timescale:o,version:n,referencesCount:c,references:t}}function I3e(e){const t=[],n=fi(e,["moov","trak"]);for(let o=0;o{const a=$r(o,4),s=t[a];s&&(s.default={duration:$r(o,12),flags:$r(o,20)})}),t}function rxt(e){const t=e.subarray(8),n=t.subarray(86),r=aa(t.subarray(4,8));let o=r,a;const s=r==="enca"||r==="encv";if(s){const d=fi(t,[r])[0].subarray(r==="enca"?28:78);fi(d,["sinf"]).forEach(p=>{const m=fi(p,["schm"])[0];if(m){const g=aa(m.subarray(4,8));if(g==="cbcs"||g==="cenc"){const y=fi(p,["frma"])[0];y&&(o=aa(y))}}})}const l=o;switch(o){case"avc1":case"avc2":case"avc3":case"avc4":{const c=fi(n,["avcC"])[0];c&&c.length>3&&(o+="."+dC(c[1])+dC(c[2])+dC(c[3]),a=cC(l==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const c=fi(t,[r])[0],d=fi(c.subarray(28),["esds"])[0];if(d&&d.length>7){let h=4;if(d[h++]!==3)break;h=RF(d,h),h+=2;const p=d[h++];if(p&128&&(h+=2),p&64&&(h+=d[h++]),d[h++]!==4)break;h=RF(d,h);const m=d[h++];if(m===64)o+="."+dC(m);else break;if(h+=12,d[h++]!==5)break;h=RF(d,h);const g=d[h++];let y=(g&248)>>3;y===31&&(y+=1+((g&7)<<3)+((d[h]&224)>>5)),o+="."+y}break}case"hvc1":case"hev1":{const c=fi(n,["hvcC"])[0];if(c&&c.length>12){const d=c[1],h=["","A","B","C"][d>>6],p=d&31,m=$r(c,2),g=(d&32)>>5?"H":"L",y=c[12],S=c.subarray(6,12);o+="."+h+p,o+="."+ixt(m).toString(16).toUpperCase(),o+="."+g+y;let k="";for(let C=S.length;C--;){const x=S[C];(x||k)&&(k="."+x.toString(16).toUpperCase()+k)}o+=k}a=cC(l=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{o=cC(o,n)||o;break}case"vp09":{const c=fi(n,["vpcC"])[0];if(c&&c.length>6){const d=c[4],h=c[5],p=c[6]>>4&15;o+="."+tf(d)+"."+tf(h)+"."+tf(p)}break}case"av01":{const c=fi(n,["av1C"])[0];if(c&&c.length>2){const d=c[1]>>>5,h=c[1]&31,p=c[2]>>>7?"H":"M",m=(c[2]&64)>>6,g=(c[2]&32)>>5,y=d===2&&m?g?12:10:m?10:8,S=(c[2]&16)>>4,k=(c[2]&8)>>3,C=(c[2]&4)>>2,x=c[2]&3;o+="."+d+"."+tf(h)+p+"."+tf(y)+"."+S+"."+k+C+x+"."+tf(1)+"."+tf(1)+"."+tf(1)+"."+0,a=cC("dav1",n)}break}}return{codec:o,encrypted:s,supplemental:a}}function cC(e,t){const n=fi(t,["dvvC"]),r=n.length?n[0]:fi(t,["dvcC"])[0];if(r){const o=r[2]>>1&127,a=r[2]<<5&32|r[3]>>3&31;return e+"."+tf(o)+"."+tf(a)}}function ixt(e){let t=0;for(let n=0;n<32;n++)t|=(e>>n&1)<<31-n;return t>>>0}function RF(e,t){const n=t+5;for(;e[t++]&128&&t{const a=r.subarray(8,24);a.some(s=>s!==0)||(fo.log(`[eme] Patching keyId in 'enc${o?"a":"v"}>sinf>>tenc' box: ${zl(a)} -> ${zl(n)}`),r.set(n,8))})}function sxt(e){const t=[];return L3e(e,n=>t.push(n.subarray(8,24))),t}function L3e(e,t){fi(e,["moov","trak"]).forEach(r=>{const o=fi(r,["mdia","minf","stbl","stsd"])[0];if(!o)return;const a=o.subarray(8);let s=fi(a,["enca"]);const l=s.length>0;l||(s=fi(a,["encv"])),s.forEach(c=>{const d=l?c.subarray(28):c.subarray(78);fi(d,["sinf"]).forEach(p=>{const m=D3e(p);m&&t(m,l)})})})}function D3e(e){const t=fi(e,["schm"])[0];if(t){const n=aa(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=fi(e,["schi","tenc"])[0];if(r)return r}}}function axt(e,t,n){const r={},o=fi(e,["moof","traf"]);for(let a=0;ar[a].duration)){let a=1/0,s=0;const l=fi(e,["sidx"]);for(let c=0;cp+m.info.duration||0,0);s=Math.max(s,h+d.earliestPresentationTime/d.timescale)}}s&&Bn(s)&&Object.keys(r).forEach(c=>{r[c].duration||(r[c].duration=s*r[c].timescale-r[c].start)})}return r}function lxt(e){const t={valid:null,remainder:null},n=fi(e,["moof"]);if(n.length<2)return t.remainder=e,t;const r=n[n.length-1];return t.valid=e.slice(0,r.byteOffset-8),t.remainder=e.slice(r.byteOffset-8),t}function Xc(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Nle(e,t){const n=[],r=t.samples,o=t.timescale,a=t.id;let s=!1;return fi(r,["moof"]).map(c=>{const d=c.byteOffset-8;fi(c,["traf"]).map(p=>{const m=fi(p,["tfdt"]).map(g=>{const y=g[0];let S=$r(g,4);return y===1&&(S*=Math.pow(2,32),S+=$r(g,8)),S/o})[0];return m!==void 0&&(e=m),fi(p,["tfhd"]).map(g=>{const y=$r(g,4),S=$r(g,0)&16777215,k=(S&1)!==0,C=(S&2)!==0,x=(S&8)!==0;let E=0;const _=(S&16)!==0;let T=0;const D=(S&32)!==0;let P=8;y===a&&(k&&(P+=8),C&&(P+=4),x&&(E=$r(g,P),P+=4),_&&(T=$r(g,P),P+=4),D&&(P+=4),t.type==="video"&&(s=YA(t.codec)),fi(p,["trun"]).map(M=>{const $=M[0],I=$r(M,0)&16777215,N=(I&1)!==0;let j=0;const U=(I&4)!==0,z=(I&256)!==0;let G=0;const X=(I&512)!==0;let ie=0;const ee=(I&1024)!==0,W=(I&2048)!==0;let q=0;const Q=$r(M,4);let ne=8;N&&(j=$r(M,ne),ne+=4),U&&(ne+=4);let ae=j+d;for(let re=0;re>1&63;return n===39||n===40}else return(t&31)===6}function _G(e,t,n,r){const o=P3e(e);let a=0;a+=t;let s=0,l=0,c=0;for(;a=o.length)break;c=o[a++],s+=c}while(c===255);l=0;do{if(a>=o.length)break;c=o[a++],l+=c}while(c===255);const d=o.length-a;let h=a;if(ld){fo.error(`Malformed SEI payload. ${l} is too small, only ${d} bytes left to parse.`);break}if(s===4){if(o[h++]===181){const m=T3e(o,h);if(h+=2,m===49){const g=$r(o,h);if(h+=4,g===1195456820){const y=o[h++];if(y===3){const S=o[h++],k=31&S,C=64&S,x=C?2+k*3:0,E=new Uint8Array(x);if(C){E[0]=S;for(let _=1;_16){const p=[];for(let y=0;y<16;y++){const S=o[h++].toString(16);p.push(S.length==1?"0"+S:S),(y===3||y===5||y===7||y===9)&&p.push("-")}const m=l-16,g=new Uint8Array(m);for(let y=0;y>24&255,a[1]=r>>16&255,a[2]=r>>8&255,a[3]=r&255,a.set(e,4),o=0,r=8;o0?(a=new Uint8Array(4),t.length>0&&new DataView(a.buffer).setUint32(0,t.length,!1)):a=new Uint8Array;const s=new Uint8Array(4);return n.byteLength>0&&new DataView(s.buffer).setUint32(0,n.byteLength,!1),dxt([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,o,s,n)}function hxt(e){const t=[];if(e instanceof ArrayBuffer){const n=e.byteLength;let r=0;for(;r+32>>24;if(a!==0&&a!==1)return{offset:n,size:t};const s=e.buffer,l=zl(new Uint8Array(s,n+12,16));let c=null,d=null,h=0;if(a===0)h=28;else{const m=e.getUint32(28);if(!m||r<32+m*16)return{offset:n,size:t};c=[];for(let g=0;g/\(Windows.+Firefox\//i.test(navigator.userAgent),Vy={audio:{a3ds:1,"ac-3":.95,"ac-4":1,alac:.9,alaw:1,dra1:1,"dts+":1,"dts-":1,dtsc:1,dtse:1,dtsh:1,"ec-3":.9,enca:1,fLaC:.9,flac:.9,FLAC:.9,g719:1,g726:1,m4ae:1,mha1:1,mha2:1,mhm1:1,mhm2:1,mlpa:1,mp4a:1,"raw ":1,Opus:1,opus:1,samr:1,sawb:1,sawp:1,sevc:1,sqcp:1,ssmv:1,twos:1,ulaw:1},video:{avc1:1,avc2:1,avc3:1,avc4:1,avcp:1,av01:.8,dav1:.8,drac:1,dva1:1,dvav:1,dvh1:.7,dvhe:.7,encv:1,hev1:.75,hvc1:.75,mjp2:1,mp4v:1,mvc1:1,mvc2:1,mvc3:1,mvc4:1,resv:1,rv60:1,s263:1,svc1:1,svc2:1,"vc-1":1,vp08:1,vp09:.9},text:{stpp:1,wvtt:1}};function SG(e,t){const n=Vy[t];return!!n&&!!n[e.slice(0,4)]}function y_(e,t,n=!0){return!e.split(",").some(r=>!kG(r,t,n))}function kG(e,t,n=!0){var r;const o=T0(n);return(r=o?.isTypeSupported(b_(e,t)))!=null?r:!1}function b_(e,t){return`${t}/mp4;codecs=${e}`}function Fle(e){if(e){const t=e.substring(0,4);return Vy.video[t]}return 2}function wT(e){const t=R3e();return e.split(",").reduce((n,r)=>{const a=t&&YA(r)?9:Vy.video[r];return a?(a*2+n)/(n?3:2):(Vy.audio[r]+n)/(n?2:1)},0)}const MF={};function vxt(e,t=!0){if(MF[e])return MF[e];const n={flac:["flac","fLaC","FLAC"],opus:["opus","Opus"],"mp4a.40.34":["mp3"]}[e];for(let o=0;ovxt(n.toLowerCase(),t))}function gxt(e,t){const n=[];if(e){const r=e.split(",");for(let o=0;o4||["ac-3","ec-3","alac","fLaC","Opus"].indexOf(e)!==-1)&&(jle(e,"audio")||jle(e,"video")))return e;if(t){const n=t.split(",");if(n.length>1){if(e){for(let r=n.length;r--;)if(n[r].substring(0,4)===e.substring(0,4))return n[r]}return n[0]}}return t||e}function jle(e,t){return SG(e,t)&&kG(e,t)}function yxt(e){const t=e.split(",");for(let n=0;n2&&r[0]==="avc1"&&(t[n]=`avc1.${parseInt(r[1]).toString(16)}${("000"+parseInt(r[2]).toString(16)).slice(-4)}`)}return t.join(",")}function bxt(e){if(e.startsWith("av01.")){const t=e.split("."),n=["0","111","01","01","01","0"];for(let r=t.length;r>4&&r<10;r++)t[r]=n[r-4];return t.join(".")}return e}function Vle(e){const t=T0(e)||{isTypeSupported:()=>!1};return{mpeg:t.isTypeSupported("audio/mpeg"),mp3:t.isTypeSupported('audio/mp4; codecs="mp3"'),ac3:t.isTypeSupported('audio/mp4; codecs="ac-3"')}}function Bz(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const _xt={supported:!0,powerEfficient:!0,smooth:!0},Sxt={supported:!1,smooth:!1,powerEfficient:!1},M3e={supported:!0,configurations:[],decodingInfoResults:[_xt]};function O3e(e,t){return{supported:!1,configurations:t,decodingInfoResults:[Sxt],error:e}}function kxt(e,t,n,r,o,a){const s=e.videoCodec,l=e.audioCodec?e.audioGroups:null,c=a?.audioCodec,d=a?.channels,h=d?parseInt(d):c?1/0:2;let p=null;if(l!=null&&l.length)try{l.length===1&&l[0]?p=t.groups[l[0]].channels:p=l.reduce((m,g)=>{if(g){const y=t.groups[g];if(!y)throw new Error(`Audio track group ${g} not found`);Object.keys(y.channels).forEach(S=>{m[S]=(m[S]||0)+y.channels[S]})}return m},{2:0})}catch{return!0}return s!==void 0&&(s.split(",").some(m=>YA(m))||e.width>1920&&e.height>1088||e.height>1920&&e.width>1088||e.frameRate>Math.max(r,30)||e.videoRange!=="SDR"&&e.videoRange!==n||e.bitrate>Math.max(o,8e6))||!!p&&Bn(h)&&Object.keys(p).some(m=>parseInt(m)>h)}function $3e(e,t,n,r={}){const o=e.videoCodec;if(!o&&!e.audioCodec||!n)return Promise.resolve(M3e);const a=[],s=xxt(e),l=s.length,c=Cxt(e,t,l>0),d=c.length;for(let h=l||1*d||1;h--;){const p={type:"media-source"};if(l&&(p.video=s[h%l]),d){p.audio=c[h%d];const m=p.audio.bitrate;p.video&&m&&(p.video.bitrate-=m)}a.push(p)}if(o){const h=navigator.userAgent;if(o.split(",").some(p=>YA(p))&&R3e())return Promise.resolve(O3e(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),a))}return Promise.all(a.map(h=>{const p=Ext(h);return r[p]||(r[p]=n.decodingInfo(h))})).then(h=>({supported:!h.some(p=>!p.supported),configurations:a,decodingInfoResults:h})).catch(h=>({supported:!1,configurations:a,decodingInfoResults:[],error:h}))}function xxt(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=B3e(e),o=e.width||640,a=e.height||480,s=e.frameRate||30,l=e.videoRange.toLowerCase();return n?n.map(c=>{const d={contentType:b_(bxt(c),"video"),width:o,height:a,bitrate:r,framerate:s};return l!=="sdr"&&(d.transferFunction=l),d}):[]}function Cxt(e,t,n){var r;const o=(r=e.audioCodec)==null?void 0:r.split(","),a=B3e(e);return o&&e.audioGroups?e.audioGroups.reduce((s,l)=>{var c;const d=l?(c=t.groups[l])==null?void 0:c.tracks:null;return d?d.reduce((h,p)=>{if(p.groupId===l){const m=parseFloat(p.channels||"");o.forEach(g=>{const y={contentType:b_(g,"audio"),bitrate:n?wxt(g,a):a};m&&(y.channels=""+m),h.push(y)})}return h},s):s},[]):[]}function wxt(e,t){if(t<=1)return 1;let n=128e3;return e==="ec-3"?n=768e3:e==="ac-3"&&(n=64e4),Math.min(t/2,n)}function B3e(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function Ext(e){let t="";const{audio:n,video:r}=e;if(r){const o=Bz(r.contentType);t+=`${o}_r${r.height}x${r.width}f${Math.ceil(r.framerate)}${r.transferFunction||"sd"}_${Math.ceil(r.bitrate/1e5)}`}if(n){const o=Bz(n.contentType);t+=`${r?"_":""}${o}_c${n.channels}`}return t}const Nz=["NONE","TYPE-0","TYPE-1",null];function Txt(e){return Nz.indexOf(e)>-1}const TT=["SDR","PQ","HLG"];function Axt(e){return!!e&&TT.indexOf(e)>-1}var YE={No:"",Yes:"YES",v2:"v2"};function zle(e){const{canSkipUntil:t,canSkipDateRanges:n,age:r}=e,o=r!!r).map(r=>r.substring(0,4)).join(","),"supplemental"in t){var n;this.supplemental=t.supplemental;const r=(n=t.supplemental)==null?void 0:n.videoCodec;r&&r!==t.videoCodec&&(this.codecSet+=`,${r.substring(0,4)}`)}this.addGroupId("audio",t.attrs.AUDIO),this.addGroupId("text",t.attrs.SUBTITLES)}get maxBitrate(){return Math.max(this.realBitrate,this.bitrate)}get averageBitrate(){return this._avgBitrate||this.realBitrate||this.bitrate}get attrs(){return this._attrs[0]}get codecs(){return this.attrs.CODECS||""}get pathwayId(){return this.attrs["PATHWAY-ID"]||"."}get videoRange(){return this.attrs["VIDEO-RANGE"]||"SDR"}get score(){return this.attrs.optionalFloat("SCORE",0)}get uri(){return this.url[0]||""}hasAudioGroup(t){return Hle(this._audioGroups,t)}hasSubtitleGroup(t){return Hle(this._subtitleGroups,t)}get audioGroups(){return this._audioGroups}get subtitleGroups(){return this._subtitleGroups}addGroupId(t,n){if(n){if(t==="audio"){let r=this._audioGroups;r||(r=this._audioGroups=[]),r.indexOf(n)===-1&&r.push(n)}else if(t==="text"){let r=this._subtitleGroups;r||(r=this._subtitleGroups=[]),r.indexOf(n)===-1&&r.push(n)}}}get urlId(){return 0}set urlId(t){}get audioGroupIds(){return this.audioGroups?[this.audioGroupId]:void 0}get textGroupIds(){return this.subtitleGroups?[this.textGroupId]:void 0}get audioGroupId(){var t;return(t=this.audioGroups)==null?void 0:t[0]}get textGroupId(){var t;return(t=this.subtitleGroups)==null?void 0:t[0]}addFallback(){}}function Hle(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function Ixt(){if(typeof matchMedia=="function"){const e=matchMedia("(dynamic-range: high)"),t=matchMedia("bad query");if(e.media!==t.media)return e.matches===!0}return!1}function Lxt(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||TT.slice(0);const o=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:o&&Ixt(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const Dxt=e=>{const t=new WeakSet;return(n,r)=>{if(e&&(r=e(n,r)),typeof r=="object"&&r!==null){if(t.has(r))return;t.add(r)}return r}},Co=(e,t)=>JSON.stringify(e,Dxt(t));function Pxt(e,t,n,r,o){const a=Object.keys(e),s=r?.channels,l=r?.audioCodec,c=o?.videoCodec,d=s&&parseInt(s)===2;let h=!1,p=!1,m=1/0,g=1/0,y=1/0,S=1/0,k=0,C=[];const{preferHDR:x,allowedVideoRanges:E}=Lxt(t,o);for(let M=a.length;M--;){const $=e[a[M]];h||(h=$.channels[2]>0),m=Math.min(m,$.minHeight),g=Math.min(g,$.minFramerate),y=Math.min(y,$.minBitrate),E.filter(N=>$.videoRanges[N]>0).length>0&&(p=!0)}m=Bn(m)?m:0,g=Bn(g)?g:0;const _=Math.max(1080,m),T=Math.max(30,g);y=Bn(y)?y:n,n=Math.max(y,n),p||(t=void 0);const D=a.length>1;return{codecSet:a.reduce((M,$)=>{const I=e[$];if($===M)return M;if(C=p?E.filter(N=>I.videoRanges[N]>0):[],D){if(I.minBitrate>n)return Zd($,`min bitrate of ${I.minBitrate} > current estimate of ${n}`),M;if(!I.hasDefaultAudio)return Zd($,"no renditions with default or auto-select sound found"),M;if(l&&$.indexOf(l.substring(0,4))%5!==0)return Zd($,`audio codec preference "${l}" not found`),M;if(s&&!d){if(!I.channels[s])return Zd($,`no renditions with ${s} channel sound found (channels options: ${Object.keys(I.channels)})`),M}else if((!l||d)&&h&&I.channels[2]===0)return Zd($,"no renditions with stereo sound found"),M;if(I.minHeight>_)return Zd($,`min resolution of ${I.minHeight} > maximum of ${_}`),M;if(I.minFramerate>T)return Zd($,`min framerate of ${I.minFramerate} > maximum of ${T}`),M;if(!C.some(N=>I.videoRanges[N]>0))return Zd($,`no variants with VIDEO-RANGE of ${Co(C)} found`),M;if(c&&$.indexOf(c.substring(0,4))%5!==0)return Zd($,`video codec preference "${c}" not found`),M;if(I.maxScore=wT(M)||I.fragmentError>e[M].fragmentError)?M:(S=I.minIndex,k=I.maxScore,$)},void 0),videoRanges:C,preferHDR:x,minFramerate:g,minBitrate:y,minIndex:S}}function Zd(e,t){fo.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function N3e(e){return e.reduce((t,n)=>{let r=t.groups[n.groupId];r||(r=t.groups[n.groupId]={tracks:[],channels:{2:0},hasDefault:!1,hasAutoSelect:!1}),r.tracks.push(n);const o=n.channels||"2";return r.channels[o]=(r.channels[o]||0)+1,r.hasDefault=r.hasDefault||n.default,r.hasAutoSelect=r.hasAutoSelect||n.autoselect,r.hasDefault&&(t.hasDefaultAudio=!0),r.hasAutoSelect&&(t.hasAutoSelectAudio=!0),t},{hasDefaultAudio:!1,hasAutoSelectAudio:!1,groups:{}})}function Rxt(e,t,n,r){return e.slice(n,r+1).reduce((o,a,s)=>{if(!a.codecSet)return o;const l=a.audioGroups;let c=o[a.codecSet];c||(o[a.codecSet]=c={minBitrate:1/0,minHeight:1/0,minFramerate:1/0,minIndex:s,maxScore:0,videoRanges:{SDR:0},channels:{2:0},hasDefaultAudio:!l,fragmentError:0}),c.minBitrate=Math.min(c.minBitrate,a.bitrate);const d=Math.min(a.height,a.width);return c.minHeight=Math.min(c.minHeight,d),c.minFramerate=Math.min(c.minFramerate,a.frameRate),c.minIndex=Math.min(c.minIndex,s),c.maxScore=Math.max(c.maxScore,a.score),c.fragmentError+=a.fragmentError,c.videoRanges[a.videoRange]=(c.videoRanges[a.videoRange]||0)+1,l&&l.forEach(h=>{if(!h)return;const p=t.groups[h];p&&(c.hasDefaultAudio=c.hasDefaultAudio||t.hasDefaultAudio?p.hasDefault:p.hasAutoSelect||!t.hasDefaultAudio&&!t.hasAutoSelectAudio,Object.keys(p.channels).forEach(m=>{c.channels[m]=(c.channels[m]||0)+p.channels[m]}))}),o},{})}function Wle(e){if(!e)return e;const{lang:t,assocLang:n,characteristics:r,channels:o,audioCodec:a}=e;return{lang:t,assocLang:n,characteristics:r,channels:o,audioCodec:a}}function pf(e,t,n){if("attrs"in e){const r=t.indexOf(e);if(r!==-1)return r}for(let r=0;rr.indexOf(o)===-1)}function jv(e,t){const{audioCodec:n,channels:r}=e;return(n===void 0||(t.audioCodec||"").substring(0,4)===n.substring(0,4))&&(r===void 0||r===(t.channels||"2"))}function $xt(e,t,n,r,o){const a=t[r],l=t.reduce((m,g,y)=>{const S=g.uri;return(m[S]||(m[S]=[])).push(y),m},{})[a.uri];l.length>1&&(r=Math.max.apply(Math,l));const c=a.videoRange,d=a.frameRate,h=a.codecSet.substring(0,4),p=Gle(t,r,m=>{if(m.videoRange!==c||m.frameRate!==d||m.codecSet.substring(0,4)!==h)return!1;const g=m.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return pf(e,y,o)>-1});return p>-1?p:Gle(t,r,m=>{const g=m.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return pf(e,y,o)>-1})}function Gle(e,t,n){for(let r=t;r>-1;r--)if(n(e[r]))return r;for(let r=t+1;r{var r;const{fragCurrent:o,partCurrent:a,hls:s}=this,{autoLevelEnabled:l,media:c}=s;if(!o||!c)return;const d=performance.now(),h=a?a.stats:o.stats,p=a?a.duration:o.duration,m=d-h.loading.start,g=s.minAutoLevel,y=o.level,S=this._nextAutoLevel;if(h.aborted||h.loaded&&h.loaded===h.total||y<=g){this.clearTimer(),this._nextAutoLevel=-1;return}if(!l)return;const k=S>-1&&S!==y,C=!!n||k;if(!C&&(c.paused||!c.playbackRate||!c.readyState))return;const x=s.mainForwardBufferInfo;if(!C&&x===null)return;const E=this.bwEstimator.getEstimateTTFB(),_=Math.abs(c.playbackRate);if(m<=Math.max(E,1e3*(p/(_*2))))return;const T=x?x.len/_:0,D=h.loading.first?h.loading.first-h.loading.start:-1,P=h.loaded&&D>-1,M=this.getBwEstimate(),$=s.levels,I=$[y],N=Math.max(h.loaded,Math.round(p*(o.bitrate||I.averageBitrate)/8));let j=P?m-D:m;j<1&&P&&(j=Math.min(m,h.loaded*8/M));const U=P?h.loaded*1e3/j:0,z=E/1e3,G=U?(N-h.loaded)/U:N*8/M+z;if(G<=T)return;const X=U?U*8:M,ie=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,ee=this.hls.config.abrBandWidthUpFactor;let W=Number.POSITIVE_INFINITY,q;for(q=y-1;q>g;q--){const re=$[q].maxBitrate,Ce=!$[q].details||ie;if(W=this.getTimeToLoadFrag(z,X,p*re,Ce),W=G||W>p*10)return;P?this.bwEstimator.sample(m-Math.min(E,D),h.loaded):this.bwEstimator.sampleTTFB(m);const Q=$[q].maxBitrate;this.getBwEstimate()*ee>Q&&this.resetEstimator(Q);const ne=this.findBestLevel(Q,g,q,0,T,1,1);ne>-1&&(q=ne),this.warn(`Fragment ${o.sn}${a?" part "+a.index:""} of level ${y} is loading too slowly; Fragment duration: ${o.duration.toFixed(3)} Time to underbuffer: ${T.toFixed(3)} s Estimated load time for current fragment: ${G.toFixed(3)} s Estimated load time for down switch fragment: ${W.toFixed(3)} s TTFB estimate: ${D|0} ms Current BW estimate: ${Bn(M)?M|0:"Unknown"} bps New BW estimate: ${this.getBwEstimate()|0} bps Switching to level ${q} @ ${Q|0} bps`),s.nextLoadLevel=s.nextAutoLevel=q,this.clearTimer();const ae=()=>{if(this.clearTimer(),this.fragCurrent===o&&this.hls.loadLevel===q&&q>0){const re=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${q>0?"and switching down":""} Fragment duration: ${o.duration.toFixed(3)} s Time to underbuffer: ${re.toFixed(3)} s`),o.abortRequests(),this.fragCurrent=this.partCurrent=null,q>g){let Ce=this.findBestLevel(this.hls.levels[g].bitrate,g,q,0,re,1,1);Ce===-1&&(Ce=g),this.hls.nextLoadLevel=this.hls.nextAutoLevel=Ce,this.resetEstimator(this.hls.levels[Ce].bitrate)}}};k||G>W*2?ae():this.timer=self.setInterval(ae,W*1e3),s.trigger(Ie.FRAG_LOAD_EMERGENCY_ABORTED,{frag:o,part:a,stats:h})},this.hls=t,this.bwEstimator=this.initEstimator(),this.registerListeners()}resetEstimator(t){t&&(this.log(`setting initial bwe to ${t}`),this.hls.config.abrEwmaDefaultEstimate=t),this.firstSelection=-1,this.bwEstimator=this.initEstimator()}initEstimator(){const t=this.hls.config;return new zkt(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.FRAG_LOADING,this.onFragLoading,this),t.on(Ie.FRAG_LOADED,this.onFragLoaded,this),t.on(Ie.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Ie.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ie.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ie.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ie.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(Ie.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.FRAG_LOADING,this.onFragLoading,this),t.off(Ie.FRAG_LOADED,this.onFragLoaded,this),t.off(Ie.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Ie.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ie.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ie.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ie.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(Ie.ERROR,this.onError,this))}destroy(){this.unregisterListeners(),this.clearTimer(),this.hls=this._abandonRulesCheck=this.supportedCache=null,this.fragCurrent=this.partCurrent=null}onManifestLoading(t,n){this.lastLoadedFragLevel=-1,this.firstSelection=-1,this.lastLevelLoadSec=0,this.supportedCache={},this.fragCurrent=this.partCurrent=null,this.onLevelsUpdated(),this.clearTimer()}onLevelsUpdated(){this.lastLoadedFragLevel>-1&&this.fragCurrent&&(this.lastLoadedFragLevel=this.fragCurrent.level),this._nextAutoLevel=-1,this.onMaxAutoLevelUpdated(),this.codecTiers=null,this.audioTracksByGroup=null}onMaxAutoLevelUpdated(){this.firstSelection=-1,this.nextAutoLevelKey=""}onFragLoading(t,n){const r=n.frag;if(!this.ignoreFragment(r)){if(!r.bitrateTest){var o;this.fragCurrent=r,this.partCurrent=(o=n.part)!=null?o:null}this.clearTimer(),this.timer=self.setInterval(this._abandonRulesCheck,100)}}onLevelSwitching(t,n){this.clearTimer()}onError(t,n){if(!n.fatal)switch(n.details){case Wt.BUFFER_ADD_CODEC_ERROR:case Wt.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Wt.FRAG_LOAD_TIMEOUT:{const r=n.frag,{fragCurrent:o,partCurrent:a}=this;if(r&&o&&r.sn===o.sn&&r.level===o.level){const s=performance.now(),l=a?a.stats:r.stats,c=s-l.loading.start,d=l.loading.first?l.loading.first-l.loading.start:-1;if(l.loaded&&d>-1){const p=this.bwEstimator.getEstimateTTFB();this.bwEstimator.sample(c-Math.min(p,d),l.loaded)}else this.bwEstimator.sampleTTFB(c)}break}}}getTimeToLoadFrag(t,n,r,o){const a=t+r/n,s=o?t+this.lastLevelLoadSec:0;return a+s}onLevelLoaded(t,n){const r=this.hls.config,{loading:o}=n.stats,a=o.end-o.first;Bn(a)&&(this.lastLevelLoadSec=a/1e3),n.details.live?this.bwEstimator.update(r.abrEwmaSlowLive,r.abrEwmaFastLive):this.bwEstimator.update(r.abrEwmaSlowVoD,r.abrEwmaFastVoD),this.timer>-1&&this._abandonRulesCheck(n.levelInfo)}onFragLoaded(t,{frag:n,part:r}){const o=r?r.stats:n.stats;if(n.type===Jn.MAIN&&this.bwEstimator.sampleTTFB(o.loading.first-o.loading.start),!this.ignoreFragment(n)){if(this.clearTimer(),n.level===this._nextAutoLevel&&(this._nextAutoLevel=-1),this.firstSelection=-1,this.hls.config.abrMaxWithRealBitrate){const a=r?r.duration:n.duration,s=this.hls.levels[n.level],l=(s.loaded?s.loaded.bytes:0)+o.loaded,c=(s.loaded?s.loaded.duration:0)+a;s.loaded={bytes:l,duration:c},s.realBitrate=Math.round(8*l/c)}if(n.bitrateTest){const a={stats:o,frag:n,part:r,id:n.type};this.onFragBuffered(Ie.FRAG_BUFFERED,a),n.bitrateTest=!1}else this.lastLoadedFragLevel=n.level}}onFragBuffered(t,n){const{frag:r,part:o}=n,a=o!=null&&o.stats.loaded?o.stats:r.stats;if(a.aborted||this.ignoreFragment(r))return;const s=a.parsing.end-a.loading.start-Math.min(a.loading.first-a.loading.start,this.bwEstimator.getEstimateTTFB());this.bwEstimator.sample(s,a.loaded),a.bwEstimate=this.getBwEstimate(),r.bitrateTest?this.bitrateTestDelay=s/1e3:this.bitrateTestDelay=0}ignoreFragment(t){return t.type!==Jn.MAIN||t.sn==="initSegment"}clearTimer(){this.timer>-1&&(self.clearInterval(this.timer),this.timer=-1)}get firstAutoLevel(){const{maxAutoLevel:t,minAutoLevel:n}=this.hls,r=this.getBwEstimate(),o=this.hls.config.maxStarvationDelay,a=this.findBestLevel(r,n,t,0,o,1,1);if(a>-1)return a;const s=this.hls.firstLevel,l=Math.min(Math.max(s,n),t);return this.warn(`Could not find best starting auto level. Defaulting to first in playlist ${s} clamped to ${l}`),l}get forcedAutoLevel(){return this.nextAutoLevelKey?-1:this._nextAutoLevel}get nextAutoLevel(){const t=this.forcedAutoLevel,r=this.bwEstimator.canEstimate(),o=this.lastLoadedFragLevel>-1;if(t!==-1&&(!r||!o||this.nextAutoLevelKey===this.getAutoLevelKey()))return t;const a=r&&o?this.getNextABRAutoLevel():this.firstAutoLevel;if(t!==-1){const s=this.hls.levels;if(s.length>Math.max(t,a)&&s[t].loadError<=s[a].loadError)return t}return this._nextAutoLevel=a,this.nextAutoLevelKey=this.getAutoLevelKey(),a}getAutoLevelKey(){return`${this.getBwEstimate()}_${this.getStarvationDelay().toFixed(2)}`}getNextABRAutoLevel(){const{fragCurrent:t,partCurrent:n,hls:r}=this;if(r.levels.length<=1)return r.loadLevel;const{maxAutoLevel:o,config:a,minAutoLevel:s}=r,l=n?n.duration:t?t.duration:0,c=this.getBwEstimate(),d=this.getStarvationDelay();let h=a.abrBandWidthFactor,p=a.abrBandWidthUpFactor;if(d){const k=this.findBestLevel(c,s,o,d,0,h,p);if(k>=0)return this.rebufferNotice=-1,k}let m=l?Math.min(l,a.maxStarvationDelay):a.maxStarvationDelay;if(!d){const k=this.bitrateTestDelay;k&&(m=(l?Math.min(l,a.maxLoadingDelay):a.maxLoadingDelay)-k,this.info(`bitrate test took ${Math.round(1e3*k)}ms, set first fragment max fetchDuration to ${Math.round(1e3*m)} ms`),h=p=1)}const g=this.findBestLevel(c,s,o,d,m,h,p);if(this.rebufferNotice!==g&&(this.rebufferNotice=g,this.info(`${d?"rebuffering expected":"buffer is empty"}, optimal quality level ${g}`)),g>-1)return g;const y=r.levels[s],S=r.loadLevelObj;return S&&y?.bitrate=n;X--){var G;const ie=y[X],ee=X>p;if(!ie)continue;if(C.useMediaCapabilities&&!ie.supportedResult&&!ie.supportedPromise){const Ce=navigator.mediaCapabilities;typeof Ce?.decodingInfo=="function"&&kxt(ie,I,D,P,t,M)?(ie.supportedPromise=$3e(ie,I,Ce,this.supportedCache),ie.supportedPromise.then(we=>{if(!this.hls)return;ie.supportedResult=we;const ve=this.hls.levels,me=ve.indexOf(ie);we.error?this.warn(`MediaCapabilities decodingInfo error: "${we.error}" for level ${me} ${Co(we)}`):we.supported?we.decodingInfoResults.some(xe=>xe.smooth===!1||xe.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${me} not smooth or powerEfficient: ${Co(we)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${me} ${Co(we)}`),me>-1&&ve.length>1&&(this.log(`Removing unsupported level ${me}`),this.hls.removeLevel(me),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(we=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${we}`)})):ie.supportedResult=M3e}if((T&&ie.codecSet!==T||D&&ie.videoRange!==D||ee&&P>ie.frameRate||!ee&&P>0&&PCe.smooth===!1))&&(!_||X!==N)){z.push(X);continue}const W=ie.details,q=(g?W?.partTarget:W?.averagetargetduration)||j;let Q;ee?Q=l*t:Q=s*t;const ne=j&&o>=j*2&&a===0?ie.averageBitrate:ie.maxBitrate,ae=this.getTimeToLoadFrag(U,Q,ne*q,W===void 0);if(Q>=ne&&(X===h||ie.loadError===0&&ie.fragmentError===0)&&(ae<=U||!Bn(ae)||E&&!this.bitrateTestDelay||ae${X} adjustedbw(${Math.round(Q)})-bitrate=${Math.round(Q-ne)} ttfb:${U.toFixed(1)} avgDuration:${q.toFixed(1)} maxFetchDuration:${d.toFixed(1)} fetchDuration:${ae.toFixed(1)} firstSelection:${_} codecSet:${ie.codecSet} videoRange:${ie.videoRange} hls.loadLevel:${k}`)),_&&(this.firstSelection=X),X}}return-1}set nextAutoLevel(t){const n=this.deriveNextAutoLevel(t);this._nextAutoLevel!==n&&(this.nextAutoLevelKey="",this._nextAutoLevel=n)}deriveNextAutoLevel(t){const{maxAutoLevel:n,minAutoLevel:r}=this.hls;return Math.min(Math.max(t,r),n)}}const F3e={search:function(e,t){let n=0,r=e.length-1,o=null,a=null;for(;n<=r;){o=(n+r)/2|0,a=e[o];const s=t(a);if(s>0)n=o+1;else if(s<0)r=o-1;else return a}return null}};function Nxt(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!Bn(t))return null;const r=e[0].programDateTime;if(t<(r||0))return null;const o=e[e.length-1].endProgramDateTime;if(t>=(o||0))return null;for(let a=0;a0&&l<15e-7&&(n+=15e-7),a&&e.level!==a.level&&a.end<=e.end&&(a=t[2+e.sn-t[0].sn]||null)}else n===0&&t[0].start===0&&(a=t[0]);if(a&&((!e||e.level===a.level)&&Kle(n,r,a)===0||Fxt(a,e,Math.min(o,r))))return a;const s=F3e.search(t,Kle.bind(null,n,r));return s&&(s!==e||!a)?s:a}function Fxt(e,t,n){if(t&&t.start===0&&t.level0){const r=t.tagList.reduce((o,a)=>(a[0]==="INF"&&(o+=parseFloat(a[1])),o),n);return e.start<=r}return!1}function Kle(e=0,t=0,n){if(n.start<=e&&n.start+n.duration>e)return 0;const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0));return n.start+n.duration-r<=e?1:n.start-r>e&&n.start?-1:0}function jxt(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function j3e(e,t,n){if(e&&e.startCC<=t&&e.endCC>=t){let r=e.fragments;const{fragmentHint:o}=e;o&&(r=r.concat(o));let a;return F3e.search(r,s=>s.cct?-1:(a=s,s.end<=n?1:s.start>n?-1:0)),a||null}return null}function IT(e){switch(e.details){case Wt.FRAG_LOAD_TIMEOUT:case Wt.KEY_LOAD_TIMEOUT:case Wt.LEVEL_LOAD_TIMEOUT:case Wt.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function V3e(e){return e.details.startsWith("key")}function z3e(e){return V3e(e)&&!!e.frag&&!e.frag.decryptdata}function qle(e,t){const n=IT(t);return e.default[`${n?"timeout":"error"}Retry`]}function xG(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function Yle(e){return uo(uo({},e),{errorRetry:null,timeoutRetry:null})}function LT(e,t,n,r){if(!e)return!1;const o=r?.code,a=t499)}function Fz(e){return e===0&&navigator.onLine===!1}var Ba={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},Qu={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class zxt extends ed{constructor(t){super("error-controller",t.logger),this.hls=void 0,this.playlistError=0,this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(Ie.ERROR,this.onError,this),t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Ie.ERROR,this.onError,this),t.off(Ie.ERROR,this.onErrorOut,this),t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===Jn.MAIN?t.level:this.getVariantIndex()}getVariantIndex(){var t;const n=this.hls,r=n.currentLevel;return(t=n.loadLevelObj)!=null&&t.details||r===-1?n.loadLevel:r}variantHasKey(t,n){if(t){var r;if((r=t.details)!=null&&r.hasKey(n))return!0;const o=t.audioGroups;if(o)return this.hls.allAudioTracks.filter(s=>o.indexOf(s.groupId)>=0).some(s=>{var l;return(l=s.details)==null?void 0:l.hasKey(n)})}return!1}onManifestLoading(){this.playlistError=0}onLevelUpdated(){this.playlistError=0}onError(t,n){var r;if(n.fatal)return;const o=this.hls,a=n.context;switch(n.details){case Wt.FRAG_LOAD_ERROR:case Wt.FRAG_LOAD_TIMEOUT:case Wt.KEY_LOAD_ERROR:case Wt.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case Wt.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction=py();return}case Wt.FRAG_GAP:case Wt.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=Ba.SendAlternateToPenaltyBox;return}case Wt.LEVEL_EMPTY_ERROR:case Wt.LEVEL_PARSING_ERROR:{var s;const c=n.parent===Jn.MAIN?n.level:o.loadLevel;n.details===Wt.LEVEL_EMPTY_ERROR&&((s=n.context)!=null&&(s=s.levelDetails)!=null&&s.live)?n.errorAction=this.getPlaylistRetryOrSwitchAction(n,c):(n.levelRetry=!1,n.errorAction=this.getLevelSwitchAction(n,c))}return;case Wt.LEVEL_LOAD_ERROR:case Wt.LEVEL_LOAD_TIMEOUT:typeof a?.level=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,a.level));return;case Wt.AUDIO_TRACK_LOAD_ERROR:case Wt.AUDIO_TRACK_LOAD_TIMEOUT:case Wt.SUBTITLE_LOAD_ERROR:case Wt.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=o.loadLevelObj;if(c&&(a.type===bi.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===bi.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,o.loadLevel),n.errorAction.action=Ba.SendAlternateToPenaltyBox,n.errorAction.flags=Qu.MoveAllAlternatesMatchingHost;return}}return;case Wt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:Ba.SendAlternateToPenaltyBox,flags:Qu.MoveAllAlternatesMatchingHDCP};return;case Wt.KEY_SYSTEM_SESSION_UPDATE_FAILED:case Wt.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case Wt.KEY_SYSTEM_NO_SESSION:n.errorAction={action:Ba.SendAlternateToPenaltyBox,flags:Qu.MoveAllAlternatesMatchingKey};return;case Wt.BUFFER_ADD_CODEC_ERROR:case Wt.REMUX_ALLOC_ERROR:case Wt.BUFFER_APPEND_ERROR:if(!n.errorAction){var l;n.errorAction=this.getLevelSwitchAction(n,(l=n.level)!=null?l:o.loadLevel)}return;case Wt.INTERNAL_EXCEPTION:case Wt.BUFFER_APPENDING_ERROR:case Wt.BUFFER_FULL_ERROR:case Wt.LEVEL_SWITCH_ERROR:case Wt.BUFFER_STALLED_ERROR:case Wt.BUFFER_SEEK_OVER_HOLE:case Wt.BUFFER_NUDGE_ON_STALL:n.errorAction=py();return}n.type===lr.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=py())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,o=qle(r.config.playlistLoadPolicy,t),a=this.playlistError++;if(LT(o,a,IT(t),t.response))return{action:Ba.RetryRequest,flags:Qu.None,retryConfig:o,retryCount:a};const l=this.getLevelSwitchAction(t,n);return o&&(l.retryConfig=o,l.retryCount=a),l}getFragRetryOrSwitchAction(t){const n=this.hls,r=this.getVariantLevelIndex(t.frag),o=n.levels[r],{fragLoadPolicy:a,keyLoadPolicy:s}=n.config,l=qle(V3e(t)?s:a,t),c=n.levels.reduce((h,p)=>h+p.fragmentError,0);if(o&&(t.details!==Wt.FRAG_GAP&&o.fragmentError++,!z3e(t)&<(l,c,IT(t),t.response)))return{action:Ba.RetryRequest,flags:Qu.None,retryConfig:l,retryCount:c};const d=this.getLevelSwitchAction(t,r);return l&&(d.retryConfig=l,d.retryCount=c),d}getLevelSwitchAction(t,n){const r=this.hls;n==null&&(n=r.loadLevel);const o=this.hls.levels[n];if(o){var a,s;const d=t.details;o.loadError++,d===Wt.BUFFER_APPEND_ERROR&&o.fragmentError++;let h=-1;const{levels:p,loadLevel:m,minAutoLevel:g,maxAutoLevel:y}=r;!r.autoLevelEnabled&&!r.config.preserveManualLevelOnError&&(r.loadLevel=-1);const S=(a=t.frag)==null?void 0:a.type,C=(S===Jn.AUDIO&&d===Wt.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(d===Wt.BUFFER_ADD_CODEC_ERROR||d===Wt.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:D})=>o.audioCodec!==D),E=t.sourceBufferName==="video"&&(d===Wt.BUFFER_ADD_CODEC_ERROR||d===Wt.BUFFER_APPEND_ERROR)&&p.some(({codecSet:D,audioCodec:P})=>o.codecSet!==D&&o.audioCodec===P),{type:_,groupId:T}=(s=t.context)!=null?s:{};for(let D=p.length;D--;){const P=(D+m)%p.length;if(P!==m&&P>=g&&P<=y&&p[P].loadError===0){var l,c;const M=p[P];if(d===Wt.FRAG_GAP&&S===Jn.MAIN&&t.frag){const $=p[P].details;if($){const I=Om(t.frag,$.fragments,t.frag.start);if(I!=null&&I.gap)continue}}else{if(_===bi.AUDIO_TRACK&&M.hasAudioGroup(T)||_===bi.SUBTITLE_TRACK&&M.hasSubtitleGroup(T))continue;if(S===Jn.AUDIO&&(l=o.audioGroups)!=null&&l.some($=>M.hasAudioGroup($))||S===Jn.SUBTITLE&&(c=o.subtitleGroups)!=null&&c.some($=>M.hasSubtitleGroup($))||C&&o.audioCodec===M.audioCodec||E&&o.codecSet===M.codecSet||!C&&o.codecSet!==M.codecSet)continue}h=P;break}}if(h>-1&&r.loadLevel!==h)return t.levelRetry=!0,this.playlistError=0,{action:Ba.SendAlternateToPenaltyBox,flags:Qu.None,nextAutoLevel:h}}return{action:Ba.SendAlternateToPenaltyBox,flags:Qu.MoveAllAlternatesMatchingHost}}onErrorOut(t,n){var r;switch((r=n.errorAction)==null?void 0:r.action){case Ba.DoNothing:break;case Ba.SendAlternateToPenaltyBox:this.sendAlternateToPenaltyBox(n),!n.errorAction.resolved&&n.details!==Wt.FRAG_GAP?n.fatal=!0:/MediaSource readyState: ended/.test(n.error.message)&&(this.warn(`MediaSource ended after "${n.sourceBufferName}" sourceBuffer append error. Attempting to recover from media error.`),this.hls.recoverMediaError());break}if(n.fatal){this.hls.stopLoad();return}}sendAlternateToPenaltyBox(t){const n=this.hls,r=t.errorAction;if(!r)return;const{flags:o}=r,a=r.nextAutoLevel;switch(o){case Qu.None:this.switchLevel(t,a);break;case Qu.MoveAllAlternatesMatchingHDCP:{const c=this.getVariantLevelIndex(t.frag),d=n.levels[c],h=d?.attrs["HDCP-LEVEL"];if(r.hdcpLevel=h,h==="NONE")this.warn("HDCP policy resticted output with HDCP-LEVEL=NONE");else if(h){n.maxHdcpLevel=Nz[Nz.indexOf(h)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}}case Qu.MoveAllAlternatesMatchingKey:{const c=t.decryptdata;if(c){const d=this.hls.levels,h=d.length;for(let m=h;m--;)if(this.variantHasKey(d[m],c)){var s,l;this.log(`Banned key found in level ${m} (${d[m].bitrate}bps) or audio group "${(s=d[m].audioGroups)==null?void 0:s.join(",")}" (${(l=t.frag)==null?void 0:l.type} fragment) ${zl(c.keyId||[])}`),d[m].fragmentError++,d[m].loadError++,this.log(`Removing level ${m} with key error (${t.error})`),this.hls.removeLevel(m)}const p=t.frag;if(this.hls.levels.length{const c=this.fragments[l];if(!c||s>=c.body.sn)return;if(!c.buffered&&(!c.loaded||a)){c.body.type===r&&this.removeFragment(c.body);return}const d=c.range[t];if(d){if(d.time.length===0){this.removeFragment(c.body);return}d.time.some(h=>{const p=!this.isTimeBuffered(h.startPTS,h.endPTS,n);return p&&this.removeFragment(c.body),p})}})}detectPartialFragments(t){const n=this.timeRanges;if(!n||t.frag.sn==="initSegment")return;const r=t.frag,o=_1(r),a=this.fragments[o];if(!a||a.buffered&&r.gap)return;const s=!r.relurl;Object.keys(n).forEach(l=>{const c=r.elementaryStreams[l];if(!c)return;const d=n[l],h=s||c.partial===!0;a.range[l]=this.getBufferedTimes(r,t.part,h,d)}),a.loaded=null,Object.keys(a.range).length?(a.buffered=!0,(a.body.endList=r.endList||a.body.endList)&&(this.endListFragments[a.body.type]=a),fC(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=Xle(r,o=>o.fragment.sn>=t))}fragBuffered(t,n){const r=_1(t);let o=this.fragments[r];!o&&n&&(o=this.fragments[r]={body:t,appendedPTS:null,loaded:null,buffered:!1,range:Object.create(null)},t.gap&&(this.hasGaps=!0)),o&&(o.loaded=null,o.buffered=!0)}getBufferedTimes(t,n,r,o){const a={time:[],partial:r},s=t.start,l=t.end,c=t.minEndPTS||l,d=t.maxStartPTS||s;for(let h=0;h=p&&c<=m){a.time.push({startPTS:Math.max(s,o.start(h)),endPTS:Math.min(l,o.end(h))});break}else if(sp){const g=Math.max(s,o.start(h)),y=Math.min(l,o.end(h));y>g&&(a.partial=!0,a.time.push({startPTS:g,endPTS:y}))}else if(l<=p)break}return a}getPartialFragment(t){let n=null,r,o,a,s=0;const{bufferPadding:l,fragments:c}=this;return Object.keys(c).forEach(d=>{const h=c[d];h&&fC(h)&&(o=h.body.start-l,a=h.body.end+l,t>=o&&t<=a&&(r=Math.min(t-o,a-t),s<=r&&(n=h.body,s=r)))}),n}isEndListAppended(t){const n=this.endListFragments[t];return n!==void 0&&(n.buffered||fC(n))}getState(t){const n=_1(t),r=this.fragments[n];return r?r.buffered?fC(r)?ca.PARTIAL:ca.OK:ca.APPENDING:ca.NOT_LOADED}isTimeBuffered(t,n,r){let o,a;for(let s=0;s=o&&n<=a)return!0;if(n<=o)return!1}return!1}onManifestLoading(){this.removeAllFragments()}onFragLoaded(t,n){if(n.frag.sn==="initSegment"||n.frag.bitrateTest)return;const r=n.frag,o=n.part?null:n,a=_1(r);this.fragments[a]={body:r,appendedPTS:null,loaded:o,buffered:!1,range:Object.create(null)}}onBufferAppended(t,n){const{frag:r,part:o,timeRanges:a,type:s}=n;if(r.sn==="initSegment")return;const l=r.type;if(o){let d=this.activePartLists[l];d||(this.activePartLists[l]=d=[]),d.push(o)}this.timeRanges=a;const c=a[s];this.detectEvictedFragments(s,c,l,o)}onFragBuffered(t,n){this.detectPartialFragments(n)}hasFragment(t){const n=_1(t);return!!this.fragments[n]}hasFragments(t){const{fragments:n}=this,r=Object.keys(n);if(!t)return r.length>0;for(let o=r.length;o--;){const a=n[r[o]];if(a?.body.type===t)return!0}return!1}hasParts(t){var n;return!!((n=this.activePartLists[t])!=null&&n.length)}removeFragmentsInRange(t,n,r,o,a){o&&!this.hasGaps||Object.keys(this.fragments).forEach(s=>{const l=this.fragments[s];if(!l)return;const c=l.body;c.type!==r||o&&!c.gap||c.startt&&(l.buffered||a)&&this.removeFragment(c)})}removeFragment(t){const n=_1(t);t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const o=t.sn;this.activePartLists[t.type]=Xle(r,a=>a.fragment.sn!==o)}delete this.fragments[n],t.endList&&delete this.endListFragments[t.type]}removeAllFragments(){var t;this.fragments=Object.create(null),this.endListFragments=Object.create(null),this.activePartLists=Object.create(null),this.hasGaps=!1;const n=(t=this.hls)==null||(t=t.latestLevelDetails)==null?void 0:t.partList;n&&n.forEach(r=>r.clearElementaryStreamInfo())}}function fC(e){var t,n,r;return e.buffered&&!!(e.body.gap||(t=e.range.video)!=null&&t.partial||(n=e.range.audio)!=null&&n.partial||(r=e.range.audiovideo)!=null&&r.partial)}function _1(e){return`${e.type}_${e.level}_${e.sn}`}function Xle(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var A0={cbc:0,ctr:1};class Hxt{constructor(t,n,r){this.subtle=void 0,this.aesIV=void 0,this.aesMode=void 0,this.subtle=t,this.aesIV=n,this.aesMode=r}decrypt(t,n){switch(this.aesMode){case A0.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t);case A0.ctr:return this.subtle.decrypt({name:"AES-CTR",counter:this.aesIV,length:64},n,t);default:throw new Error(`[AESCrypto] invalid aes mode ${this.aesMode}`)}}}function Wxt(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class Gxt{constructor(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.ksRows=0,this.keySize=0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.initTable()}uint8ArrayToUint32Array_(t){const n=new DataView(t),r=new Uint32Array(4);for(let o=0;o<4;o++)r[o]=n.getUint32(o*4);return r}initTable(){const t=this.sBox,n=this.invSBox,r=this.subMix,o=r[0],a=r[1],s=r[2],l=r[3],c=this.invSubMix,d=c[0],h=c[1],p=c[2],m=c[3],g=new Uint32Array(256);let y=0,S=0,k=0;for(k=0;k<256;k++)k<128?g[k]=k<<1:g[k]=k<<1^283;for(k=0;k<256;k++){let C=S^S<<1^S<<2^S<<3^S<<4;C=C>>>8^C&255^99,t[y]=C,n[C]=y;const x=g[y],E=g[x],_=g[E];let T=g[C]*257^C*16843008;o[y]=T<<24|T>>>8,a[y]=T<<16|T>>>16,s[y]=T<<8|T>>>24,l[y]=T,T=_*16843009^E*65537^x*257^y*16843008,d[C]=T<<24|T>>>8,h[C]=T<<16|T>>>16,p[C]=T<<8|T>>>24,m[C]=T,y?(y=x^g[g[g[_^x]]],S^=g[g[S]]):y=S=1}}expandKey(t){const n=this.uint8ArrayToUint32Array_(t);let r=!0,o=0;for(;o{const l=ArrayBuffer.isView(t)?t:new Uint8Array(t);this.softwareDecrypt(l,n,r,o);const c=this.flush();c?a(c.buffer):s(new Error("[softwareDecrypt] Failed to decrypt data"))}):this.webCryptoDecrypt(new Uint8Array(t),n,r,o)}softwareDecrypt(t,n,r,o){const{currentIV:a,currentResult:s,remainderData:l}=this;if(o!==A0.cbc||n.byteLength!==16)return fo.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(t=Xc(l,t),this.remainderData=null);const c=this.getValidChunk(t);if(!c.length)return null;a&&(r=a);let d=this.softwareDecrypter;d||(d=this.softwareDecrypter=new Gxt),d.expandKey(n);const h=s;return this.currentResult=d.decrypt(c.buffer,0,r),this.currentIV=c.slice(-16).buffer,h||null}webCryptoDecrypt(t,n,r,o){if(this.key!==n||!this.fastAesKey){if(!this.subtle)return Promise.resolve(this.onWebCryptoError(t,n,r,o));this.key=n,this.fastAesKey=new Kxt(this.subtle,n,o)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new Hxt(this.subtle,new Uint8Array(r),o).decrypt(t.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(fo.warn(`[decrypter]: WebCrypto Error, disable WebCrypto API, ${a.name}: ${a.message}`),this.onWebCryptoError(t,n,r,o)))}onWebCryptoError(t,n,r,o){const a=this.enableSoftwareAES;if(a){this.useSoftware=!0,this.logEnabled=!0,this.softwareDecrypt(t,n,r,o);const s=this.flush();if(s)return s.buffer}throw new Error("WebCrypto"+(a?" and softwareDecrypt":"")+": failed to decrypt data")}getValidChunk(t){let n=t;const r=t.length-t.length%Yxt;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(fo.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const Zle=Math.pow(2,17);class Xxt{constructor(t){this.config=void 0,this.loader=null,this.partLoadTimeout=-1,this.config=t}destroy(){this.loader&&(this.loader.destroy(),this.loader=null)}abort(){this.loader&&this.loader.abort()}load(t,n){const r=t.url;if(!r)return Promise.reject(new mh({type:lr.NETWORK_ERROR,details:Wt.FRAG_LOAD_ERROR,fatal:!1,frag:t,error:new Error(`Fragment does not have a ${r?"part list":"url"}`),networkDetails:null}));this.abort();const o=this.config,a=o.fLoader,s=o.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),t.gap)if(t.tagList.some(y=>y[0]==="GAP")){c(Qle(t));return}else t.gap=!1;const d=this.loader=a?new a(o):new s(o),h=Jle(t);t.loader=d;const p=Yle(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:Zle};t.stats=d.stats;const g={onSuccess:(y,S,k,C)=>{this.resetLoader(t,d);let x=y.data;k.resetIV&&t.decryptdata&&(t.decryptdata.iv=new Uint8Array(x.slice(0,16)),x=x.slice(16)),l({frag:t,part:null,payload:x,networkDetails:C})},onError:(y,S,k,C)=>{this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Wt.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:uo({url:r,data:void 0},y),error:new Error(`HTTP Error ${y.code} ${y.text}`),networkDetails:k,stats:C}))},onAbort:(y,S,k)=>{this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Wt.INTERNAL_ABORTED,fatal:!1,frag:t,error:new Error("Aborted"),networkDetails:k,stats:y}))},onTimeout:(y,S,k)=>{this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Wt.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${m.timeout}ms`),networkDetails:k,stats:y}))}};n&&(g.onProgress=(y,S,k,C)=>n({frag:t,part:null,payload:k,networkDetails:C})),d.load(h,m,g)})}loadPart(t,n,r){this.abort();const o=this.config,a=o.fLoader,s=o.loader;return new Promise((l,c)=>{if(this.loader&&this.loader.destroy(),t.gap||n.gap){c(Qle(t,n));return}const d=this.loader=a?new a(o):new s(o),h=Jle(t,n);t.loader=d;const p=Yle(o.fragLoadPolicy.default),m={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:Zle};n.stats=d.stats,d.load(h,m,{onSuccess:(g,y,S,k)=>{this.resetLoader(t,d),this.updateStatsFromPart(t,n);const C={frag:t,part:n,payload:g.data,networkDetails:k};r(C),l(C)},onError:(g,y,S,k)=>{this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Wt.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:uo({url:h.url,data:void 0},g),error:new Error(`HTTP Error ${g.code} ${g.text}`),networkDetails:S,stats:k}))},onAbort:(g,y,S)=>{t.stats.aborted=n.stats.aborted,this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Wt.INTERNAL_ABORTED,fatal:!1,frag:t,part:n,error:new Error("Aborted"),networkDetails:S,stats:g}))},onTimeout:(g,y,S)=>{this.resetLoader(t,d),c(new mh({type:lr.NETWORK_ERROR,details:Wt.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:n,error:new Error(`Timeout after ${m.timeout}ms`),networkDetails:S,stats:g}))}})})}updateStatsFromPart(t,n){const r=t.stats,o=n.stats,a=o.total;if(r.loaded+=o.loaded,a){const c=Math.round(t.duration/n.duration),d=Math.min(Math.round(r.loaded/a),c),p=(c-d)*Math.round(r.loaded/d);r.total=r.loaded+p}else r.total=Math.max(r.loaded,r.total);const s=r.loading,l=o.loading;s.start?s.first+=l.first-l.start:(s.start=l.start,s.first=l.first),s.end=l.end}resetLoader(t,n){t.loader=null,this.loader===n&&(self.clearTimeout(this.partLoadTimeout),this.loader=null),n.destroy()}}function Jle(e,t=null){const n=t||e,r={frag:e,part:t,responseType:"arraybuffer",url:n.url,headers:{},rangeStart:0,rangeEnd:0},o=n.byteRangeStartOffset,a=n.byteRangeEndOffset;if(Bn(o)&&Bn(a)){var s;let l=o,c=a;if(e.sn==="initSegment"&&Zxt((s=e.decryptdata)==null?void 0:s.method)){const d=a-o;d%16&&(c=a+(16-d%16)),o!==0&&(r.resetIV=!0,l=o-16)}r.rangeStart=l,r.rangeEnd=c}return r}function Qle(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:lr.MEDIA_ERROR,details:Wt.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new mh(r)}function Zxt(e){return e==="AES-128"||e==="AES-256"}class mh extends Error{constructor(t){super(t.error.message),this.data=void 0,this.data=t}}class U3e extends ed{constructor(t,n){super(t,n),this._boundTick=void 0,this._tickTimer=null,this._tickInterval=null,this._tickCallCount=0,this._boundTick=this.tick.bind(this)}destroy(){this.onHandlerDestroying(),this.onHandlerDestroyed()}onHandlerDestroying(){this.clearNextTick(),this.clearInterval()}onHandlerDestroyed(){}hasInterval(){return!!this._tickInterval}hasNextTick(){return!!this._tickTimer}setInterval(t){return this._tickInterval?!1:(this._tickCallCount=0,this._tickInterval=self.setInterval(this._boundTick,t),!0)}clearInterval(){return this._tickInterval?(self.clearInterval(this._tickInterval),this._tickInterval=null,!0):!1}clearNextTick(){return this._tickTimer?(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0):!1}tick(){this._tickCallCount++,this._tickCallCount===1&&(this.doTick(),this._tickCallCount>1&&this.tickImmediate(),this._tickCallCount=0)}tickImmediate(){this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)}doTick(){}}class wG{constructor(t,n,r,o=0,a=-1,s=!1){this.level=void 0,this.sn=void 0,this.part=void 0,this.id=void 0,this.size=void 0,this.partial=void 0,this.transmuxing=hC(),this.buffering={audio:hC(),video:hC(),audiovideo:hC()},this.level=t,this.sn=n,this.id=r,this.size=o,this.part=a,this.partial=s}}function hC(){return{start:0,executeStart:0,executeEnd:0,end:0}}const eue={length:0,start:()=>0,end:()=>0};class jr{static isBuffered(t,n){if(t){const r=jr.getBuffered(t);for(let o=r.length;o--;)if(n>=r.start(o)&&n<=r.end(o))return!0}return!1}static bufferedRanges(t){if(t){const n=jr.getBuffered(t);return jr.timeRangesToArray(n)}return[]}static timeRangesToArray(t){const n=[];for(let r=0;r1&&t.sort((h,p)=>h.start-p.start||p.end-h.end);let o=-1,a=[];if(r)for(let h=0;h=t[h].start&&n<=t[h].end&&(o=h);const p=a.length;if(p){const m=a[p-1].end;t[h].start-mm&&(a[p-1].end=t[h].end):a.push(t[h])}else a.push(t[h])}else a=t;let s=0,l,c=n,d=n;for(let h=0;h=p&&n<=m&&(o=h),n+r>=p&&n{const o=r.substring(2,r.length-1),a=n?.[o];return a===void 0?(e.playlistParsingError||(e.playlistParsingError=new Error(`Missing preceding EXT-X-DEFINE tag for Variable Reference: "${o}"`)),r):a})}return t}function nue(e,t,n){let r=e.variableList;r||(e.variableList=r={});let o,a;if("QUERYPARAM"in t){o=t.QUERYPARAM;try{const s=new self.URL(n).searchParams;if(s.has(o))a=s.get(o);else throw new Error(`"${o}" does not match any query parameter in URI: "${n}"`)}catch(s){e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE QUERYPARAM: ${s.message}`))}}else o=t.NAME,a=t.VALUE;o in r?e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE duplicate Variable Name declarations: "${o}"`)):r[o]=a||""}function Jxt(e,t,n){const r=t.IMPORT;if(n&&r in n){let o=e.variableList;o||(e.variableList=o={}),o[r]=n[r]}else e.playlistParsingError||(e.playlistParsingError=new Error(`EXT-X-DEFINE IMPORT attribute not found in Multivariant Playlist: "${r}"`))}const Qxt=/^(\d+)x(\d+)$/,rue=/(.+?)=(".*?"|.*?)(?:,|$)/g;class os{constructor(t,n){typeof t=="string"&&(t=os.parseAttrList(t,n)),mo(this,t)}get clientAttrs(){return Object.keys(this).filter(t=>t.substring(0,2)==="X-")}decimalInteger(t){const n=parseInt(this[t],10);return n>Number.MAX_SAFE_INTEGER?1/0:n}hexadecimalInteger(t){if(this[t]){let n=(this[t]||"0x").slice(2);n=(n.length&1?"0":"")+n;const r=new Uint8Array(n.length/2);for(let o=0;oNumber.MAX_SAFE_INTEGER?1/0:n}decimalFloatingPoint(t){return parseFloat(this[t])}optionalFloat(t,n){const r=this[t];return r?parseFloat(r):n}enumeratedString(t){return this[t]}enumeratedStringList(t,n){const r=this[t];return(r?r.split(/[ ,]+/):[]).reduce((o,a)=>(o[a.toLowerCase()]=!0,o),n)}bool(t){return this[t]==="YES"}decimalResolution(t){const n=Qxt.exec(this[t]);if(n!==null)return{width:parseInt(n[1],10),height:parseInt(n[2],10)}}static parseAttrList(t,n){let r;const o={};for(rue.lastIndex=0;(r=rue.exec(t))!==null;){const s=r[1].trim();let l=r[2];const c=l.indexOf('"')===0&&l.lastIndexOf('"')===l.length-1;let d=!1;if(c)l=l.slice(1,-1);else switch(s){case"IV":case"SCTE35-CMD":case"SCTE35-IN":case"SCTE35-OUT":d=!0}if(n&&(c||d))l=jz(n,l);else if(!d&&!c)switch(s){case"CLOSED-CAPTIONS":if(l==="NONE")break;case"ALLOWED-CPC":case"CLASS":case"ASSOC-LANGUAGE":case"AUDIO":case"BYTERANGE":case"CHANNELS":case"CHARACTERISTICS":case"CODECS":case"DATA-ID":case"END-DATE":case"GROUP-ID":case"ID":case"IMPORT":case"INSTREAM-ID":case"KEYFORMAT":case"KEYFORMATVERSIONS":case"LANGUAGE":case"NAME":case"PATHWAY-ID":case"QUERYPARAM":case"RECENTLY-REMOVED-DATERANGES":case"SERVER-URI":case"STABLE-RENDITION-ID":case"STABLE-VARIANT-ID":case"START-DATE":case"SUBTITLES":case"SUPPLEMENTAL-CODECS":case"URI":case"VALUE":case"VIDEO":case"X-ASSET-LIST":case"X-ASSET-URI":fo.warn(`${t}: attribute ${s} is missing quotes`)}o[s]=l}return o}}const eCt="com.apple.hls.interstitial";function tCt(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function nCt(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class W3e{constructor(t,n,r=0){var o;if(this.attr=void 0,this.tagAnchor=void 0,this.tagOrder=void 0,this._startDate=void 0,this._endDate=void 0,this._dateAtEnd=void 0,this._cue=void 0,this._badValueForSameId=void 0,this.tagAnchor=n?.tagAnchor||null,this.tagOrder=(o=n?.tagOrder)!=null?o:r,n){const a=n.attr;for(const s in a)if(Object.prototype.hasOwnProperty.call(t,s)&&t[s]!==a[s]){fo.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=s;break}t=mo(new os({}),a,t)}if(this.attr=t,n?(this._startDate=n._startDate,this._cue=n._cue,this._endDate=n._endDate,this._dateAtEnd=n._dateAtEnd):this._startDate=new Date(t["START-DATE"]),"END-DATE"in this.attr){const a=n?.endDate||new Date(this.attr["END-DATE"]);Bn(a.getTime())&&(this._endDate=a)}}get id(){return this.attr.ID}get class(){return this.attr.CLASS}get cue(){const t=this._cue;return t===void 0?this._cue=this.attr.enumeratedStringList(this.attr.CUE?"CUE":"X-CUE",{pre:!1,post:!1,once:!1}):t}get startTime(){const{tagAnchor:t}=this;return t===null||t.programDateTime===null?(fo.warn(`Expected tagAnchor Fragment with PDT set for DateRange "${this.id}": ${t}`),NaN):t.start+(this.startDate.getTime()-t.programDateTime)/1e3}get startDate(){return this._startDate}get endDate(){const t=this._endDate||this._dateAtEnd;if(t)return t;const n=this.duration;return n!==null?this._dateAtEnd=new Date(this._startDate.getTime()+n*1e3):null}get duration(){if("DURATION"in this.attr){const t=this.attr.decimalFloatingPoint("DURATION");if(Bn(t))return t}else if(this._endDate)return(this._endDate.getTime()-this._startDate.getTime())/1e3;return null}get plannedDuration(){return"PLANNED-DURATION"in this.attr?this.attr.decimalFloatingPoint("PLANNED-DURATION"):null}get endOnNext(){return this.attr.bool("END-ON-NEXT")}get isInterstitial(){return this.class===eCt}get isValid(){return!!this.id&&!this._badValueForSameId&&Bn(this.startDate.getTime())&&(this.duration===null||this.duration>=0)&&(!this.endOnNext||!!this.class)&&(!this.attr.CUE||!this.cue.pre&&!this.cue.post||this.cue.pre!==this.cue.post)&&(!this.isInterstitial||"X-ASSET-URI"in this.attr||"X-ASSET-LIST"in this.attr)}}const rCt=10;class iCt{constructor(t){this.PTSKnown=!1,this.alignedSliding=!1,this.averagetargetduration=void 0,this.endCC=0,this.endSN=0,this.fragments=void 0,this.fragmentHint=void 0,this.partList=null,this.dateRanges=void 0,this.dateRangeTagCount=0,this.live=!0,this.requestScheduled=-1,this.ageHeader=0,this.advancedDateTime=void 0,this.updated=!0,this.advanced=!0,this.misses=0,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=void 0,this.m3u8="",this.version=null,this.canBlockReload=!1,this.canSkipUntil=0,this.canSkipDateRanges=!1,this.skippedSegments=0,this.recentlyRemovedDateranges=void 0,this.partHoldBack=0,this.holdBack=0,this.partTarget=0,this.preloadHint=void 0,this.renditionReports=void 0,this.tuneInGoal=0,this.deltaUpdateFailed=void 0,this.driftStartTime=0,this.driftEndTime=0,this.driftStart=0,this.driftEnd=0,this.encryptedFragments=void 0,this.playlistParsingError=null,this.variableList=null,this.hasVariableRefs=!1,this.appliedTimelineOffset=void 0,this.fragments=[],this.encryptedFragments=[],this.dateRanges={},this.url=t}reloaded(t){if(!t){this.advanced=!0,this.updated=!0;return}const n=this.lastPartSn-t.lastPartSn,r=this.lastPartIndex-t.lastPartIndex;this.updated=this.endSN!==t.endSN||!!r||!!n||!this.live,this.advanced=this.endSN>t.endSN||n>0||n===0&&r>0,this.updated||this.advanced?this.misses=Math.floor(t.misses*.6):this.misses=t.misses+1}hasKey(t){return this.encryptedFragments.some(n=>{let r=n.decryptdata;return r||(n.setKeyFormat(t.keyFormat),r=n.decryptdata),!!r&&t.matches(r)})}get hasProgramDateTime(){return this.fragments.length?Bn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||rCt}get drift(){const t=this.driftEndTime-this.driftStartTime;return t>0?(this.driftEnd-this.driftStart)*1e3/t:1}get edge(){return this.partEnd||this.fragmentEnd}get partEnd(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].end:this.fragmentEnd}get fragmentEnd(){return this.fragments.length?this.fragments[this.fragments.length-1].end:0}get fragmentStart(){return this.fragments.length?this.fragments[0].start:0}get age(){return this.advancedDateTime?Math.max(Date.now()-this.advancedDateTime,0)/1e3:0}get lastPartIndex(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].index:-1}get maxPartIndex(){const t=this.partList;if(t){const n=this.lastPartIndex;if(n!==-1){for(let r=t.length;r--;)if(t[r].index>n)return t[r].index;return n}}return 0}get lastPartSn(){var t;return(t=this.partList)!=null&&t.length?this.partList[this.partList.length-1].fragment.sn:this.endSN}get expired(){if(this.live&&this.age&&this.misses<3){const t=this.partEnd-this.fragmentStart;return this.age>Math.max(t,this.totalduration)+this.levelTargetDuration}return!1}}function DT(e,t){return e.length===t.length?!e.some((n,r)=>n!==t[r]):!1}function iue(e,t){return!e&&!t?!0:!e||!t?!1:DT(e,t)}function vy(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function EG(e){switch(e){case"AES-128":case"AES-256":return A0.cbc;case"AES-256-CTR":return A0.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function TG(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function Vz(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function oCt(e){const t=Vz(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function G3e(e){const t=function(r,o,a){const s=r[o];r[o]=r[a],r[a]=s};t(e,0,3),t(e,1,2),t(e,4,5),t(e,6,7)}function K3e(e){const t=e.split(":");let n=null;if(t[0]==="data"&&t.length===2){const r=t[1].split(";"),o=r[r.length-1].split(",");if(o.length===2){const a=o[0]==="base64",s=o[1];a?(r.splice(-1,1),n=TG(s)):n=oCt(s)}}return n}const PT=typeof self<"u"?self:void 0;var ls={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.fps",PLAYREADY:"com.microsoft.playready",WIDEVINE:"com.widevine.alpha"},za={CLEARKEY:"org.w3.clearkey",FAIRPLAY:"com.apple.streamingkeydelivery",PLAYREADY:"com.microsoft.playready",WIDEVINE:"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"};function XE(e){switch(e){case za.FAIRPLAY:return ls.FAIRPLAY;case za.PLAYREADY:return ls.PLAYREADY;case za.WIDEVINE:return ls.WIDEVINE;case za.CLEARKEY:return ls.CLEARKEY}}function OF(e){switch(e){case ls.FAIRPLAY:return za.FAIRPLAY;case ls.PLAYREADY:return za.PLAYREADY;case ls.WIDEVINE:return za.WIDEVINE;case ls.CLEARKEY:return za.CLEARKEY}}function $4(e){const{drmSystems:t,widevineLicenseUrl:n}=e,r=t?[ls.FAIRPLAY,ls.WIDEVINE,ls.PLAYREADY,ls.CLEARKEY].filter(o=>!!t[o]):[];return!r[ls.WIDEVINE]&&n&&r.push(ls.WIDEVINE),r}const q3e=(function(e){return PT!=null&&(e=PT.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function sCt(e,t,n,r){let o;switch(e){case ls.FAIRPLAY:o=["cenc","sinf"];break;case ls.WIDEVINE:case ls.PLAYREADY:o=["cenc"];break;case ls.CLEARKEY:o=["cenc","keyids"];break;default:throw new Error(`Unknown key-system: ${e}`)}return aCt(o,t,n,r)}function aCt(e,t,n,r){return[{initDataTypes:e,persistentState:r.persistentState||"optional",distinctiveIdentifier:r.distinctiveIdentifier||"optional",sessionTypes:r.sessionTypes||[r.sessionType||"temporary"],audioCapabilities:t.map(a=>({contentType:`audio/mp4; codecs=${a}`,robustness:r.audioRobustness||"",encryptionScheme:r.audioEncryptionScheme||null})),videoCapabilities:n.map(a=>({contentType:`video/mp4; codecs=${a}`,robustness:r.videoRobustness||"",encryptionScheme:r.videoEncryptionScheme||null}))}]}function lCt(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function Y3e(e){const t=new Uint16Array(e.buffer,e.byteOffset,e.byteLength/2),n=String.fromCharCode.apply(null,Array.from(t)),r=n.substring(n.indexOf("<"),n.length),s=new DOMParser().parseFromString(r,"text/xml").getElementsByTagName("KID")[0];if(s){const l=s.childNodes[0]?s.childNodes[0].nodeValue:s.getAttribute("VALUE");if(l){const c=TG(l).subarray(0,16);return G3e(c),c}}return null}let pC={};class ym{static clearKeyUriToKeyIdMap(){pC={}}static setKeyIdForUri(t,n){pC[t]=n}constructor(t,n,r,o=[1],a=null,s){this.uri=void 0,this.method=void 0,this.keyFormat=void 0,this.keyFormatVersions=void 0,this.encrypted=void 0,this.isCommonEncryption=void 0,this.iv=null,this.key=null,this.keyId=null,this.pssh=null,this.method=t,this.uri=n,this.keyFormat=r,this.keyFormatVersions=o,this.iv=a,this.encrypted=t?t!=="NONE":!1,this.isCommonEncryption=this.encrypted&&!vy(t),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(x3e(s)))}matches(t){return t.uri===this.uri&&t.method===this.method&&t.encrypted===this.encrypted&&t.keyFormat===this.keyFormat&&DT(t.keyFormatVersions,this.keyFormatVersions)&&iue(t.iv,this.iv)&&iue(t.keyId,this.keyId)}isSupported(){if(this.method){if(vy(this.method)||this.method==="NONE")return!0;if(this.keyFormat==="identity")return this.method==="SAMPLE-AES";switch(this.keyFormat){case za.FAIRPLAY:case za.WIDEVINE:case za.PLAYREADY:case za.CLEARKEY:return["SAMPLE-AES","SAMPLE-AES-CENC","SAMPLE-AES-CTR"].indexOf(this.method)!==-1}}return!1}getDecryptData(t,n){if(!this.encrypted||!this.uri)return null;if(vy(this.method)){let a=this.iv;return a||(typeof t!="number"&&(fo.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),a=cCt(t)),new ym(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=pC[this.uri];if(a&&!DT(this.keyId,a)&&ym.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=K3e(this.uri);if(r)switch(this.keyFormat){case za.WIDEVINE:if(this.pssh=r,!this.keyId){const a=hxt(r.buffer);if(a.length){var o;const s=a[0];this.keyId=(o=s.kids)!=null&&o.length?s.kids[0]:null}}this.keyId||(this.keyId=oue(n));break;case za.PLAYREADY:{const a=new Uint8Array([154,4,240,121,152,64,66,134,171,146,230,91,224,136,95,149]);this.pssh=fxt(a,null,r),this.keyId=Y3e(r);break}default:{let a=r.subarray(0,16);if(a.length!==16){const s=new Uint8Array(16);s.set(a,16-a.length),a=s}this.keyId=a;break}}if(!this.keyId||this.keyId.byteLength!==16){let a;a=uCt(n),a||(a=oue(n),a||(a=pC[this.uri])),a&&(this.keyId=a,ym.setKeyIdForUri(this.uri,a))}return this}}function uCt(e){const t=e?.[za.WIDEVINE];return t?t.keyId:null}function oue(e){const t=e?.[za.PLAYREADY];if(t){const n=K3e(t.uri);if(n)return Y3e(n)}return null}function cCt(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const sue=/#EXT-X-STREAM-INF:([^\r\n]*)(?:[\r\n](?:#[^\r\n]*)?)*([^\r\n]+)|#EXT-X-(SESSION-DATA|SESSION-KEY|DEFINE|CONTENT-STEERING|START):([^\r\n]*)[\r\n]+/g,aue=/#EXT-X-MEDIA:(.*)/g,dCt=/^#EXT(?:INF|-X-TARGETDURATION):/m,$F=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),fCt=new RegExp([/#EXT-X-(PROGRAM-DATE-TIME|BYTERANGE|DATERANGE|DEFINE|KEY|MAP|PART|PART-INF|PLAYLIST-TYPE|PRELOAD-HINT|RENDITION-REPORT|SERVER-CONTROL|SKIP|START):(.+)/.source,/#EXT-X-(BITRATE|DISCONTINUITY-SEQUENCE|MEDIA-SEQUENCE|TARGETDURATION|VERSION): *(\d+)/.source,/#EXT-X-(DISCONTINUITY|ENDLIST|GAP|INDEPENDENT-SEGMENTS)/.source,/(#)([^:]*):(.*)/.source,/(#)(.*)(?:.*)\r?\n?/.source].join("|"));class vf{static findGroup(t,n){for(let r=0;r0&&a.length({id:d.attrs.AUDIO,audioCodec:d.audioCodec})),SUBTITLES:s.map(d=>({id:d.attrs.SUBTITLES,textCodec:d.textCodec})),"CLOSED-CAPTIONS":[]};let c=0;for(aue.lastIndex=0;(o=aue.exec(t))!==null;){const d=new os(o[1],r),h=d.TYPE;if(h){const p=l[h],m=a[h]||[];a[h]=m;const g=d.LANGUAGE,y=d["ASSOC-LANGUAGE"],S=d.CHANNELS,k=d.CHARACTERISTICS,C=d["INSTREAM-ID"],x={attrs:d,bitrate:0,id:c++,groupId:d["GROUP-ID"]||"",name:d.NAME||g||"",type:h,default:d.bool("DEFAULT"),autoselect:d.bool("AUTOSELECT"),forced:d.bool("FORCED"),lang:g,url:d.URI?vf.resolve(d.URI,n):""};if(y&&(x.assocLang=y),S&&(x.channels=S),k&&(x.characteristics=k),C&&(x.instreamId=C),p!=null&&p.length){const E=vf.findGroup(p,x.groupId)||p[0];due(x,E,"audioCodec"),due(x,E,"textCodec")}m.push(x)}}return a}static parseLevelPlaylist(t,n,r,o,a,s){var l;const c={url:n},d=new iCt(n),h=d.fragments,p=[];let m=null,g=0,y=0,S=0,k=0,C=0,x=null,E=new PF(o,c),_,T,D,P=-1,M=!1,$=null,I;if($F.lastIndex=0,d.m3u8=t,d.hasVariableRefs=tue(t),((l=$F.exec(t))==null?void 0:l[0])!=="#EXTM3U")return d.playlistParsingError=new Error("Missing format identifier #EXTM3U"),d;for(;(_=$F.exec(t))!==null;){M&&(M=!1,E=new PF(o,c),E.playlistOffset=S,E.setStart(S),E.sn=g,E.cc=k,C&&(E.bitrate=C),E.level=r,m&&(E.initSegment=m,m.rawProgramDateTime&&(E.rawProgramDateTime=m.rawProgramDateTime,m.rawProgramDateTime=null),$&&(E.setByteRange($),$=null)));const z=_[1];if(z){E.duration=parseFloat(z);const G=(" "+_[2]).slice(1);E.title=G||null,E.tagList.push(G?["INF",z,G]:["INF",z])}else if(_[3]){if(Bn(E.duration)){E.playlistOffset=S,E.setStart(S),D&&hue(E,D,d),E.sn=g,E.level=r,E.cc=k,h.push(E);const G=(" "+_[3]).slice(1);E.relurl=jz(d,G),zz(E,x,p),x=E,S+=E.duration,g++,y=0,M=!0}}else{if(_=_[0].match(fCt),!_){fo.warn("No matches on slow regex match for level playlist!");continue}for(T=1;T<_.length&&_[T]===void 0;T++);const G=(" "+_[T]).slice(1),X=(" "+_[T+1]).slice(1),ie=_[T+2]?(" "+_[T+2]).slice(1):null;switch(G){case"BYTERANGE":x?E.setByteRange(X,x):E.setByteRange(X);break;case"PROGRAM-DATE-TIME":E.rawProgramDateTime=X,E.tagList.push(["PROGRAM-DATE-TIME",X]),P===-1&&(P=h.length);break;case"PLAYLIST-TYPE":d.type&&ch(d,G,_),d.type=X.toUpperCase();break;case"MEDIA-SEQUENCE":d.startSN!==0?ch(d,G,_):h.length>0&&pue(d,G,_),g=d.startSN=parseInt(X);break;case"SKIP":{d.skippedSegments&&ch(d,G,_);const ee=new os(X,d),W=ee.decimalInteger("SKIPPED-SEGMENTS");if(Bn(W)){d.skippedSegments+=W;for(let Q=W;Q--;)h.push(null);g+=W}const q=ee.enumeratedString("RECENTLY-REMOVED-DATERANGES");q&&(d.recentlyRemovedDateranges=(d.recentlyRemovedDateranges||[]).concat(q.split(" ")));break}case"TARGETDURATION":d.targetduration!==0&&ch(d,G,_),d.targetduration=Math.max(parseInt(X),1);break;case"VERSION":d.version!==null&&ch(d,G,_),d.version=parseInt(X);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":d.live||ch(d,G,_),d.live=!1;break;case"#":(X||ie)&&E.tagList.push(ie?[X,ie]:[X]);break;case"DISCONTINUITY":k++,E.tagList.push(["DIS"]);break;case"GAP":E.gap=!0,E.tagList.push([G]);break;case"BITRATE":E.tagList.push([G,X]),C=parseInt(X)*1e3,Bn(C)?E.bitrate=C:C=0;break;case"DATERANGE":{const ee=new os(X,d),W=new W3e(ee,d.dateRanges[ee.ID],d.dateRangeTagCount);d.dateRangeTagCount++,W.isValid||d.skippedSegments?d.dateRanges[W.id]=W:fo.warn(`Ignoring invalid DATERANGE tag: "${X}"`),E.tagList.push(["EXT-X-DATERANGE",X]);break}case"DEFINE":{{const ee=new os(X,d);"IMPORT"in ee?Jxt(d,ee,s):nue(d,ee,n)}break}case"DISCONTINUITY-SEQUENCE":d.startCC!==0?ch(d,G,_):h.length>0&&pue(d,G,_),d.startCC=k=parseInt(X);break;case"KEY":{const ee=lue(X,n,d);if(ee.isSupported()){if(ee.method==="NONE"){D=void 0;break}D||(D={});const W=D[ee.keyFormat];W!=null&&W.matches(ee)||(W&&(D=mo({},D)),D[ee.keyFormat]=ee)}else fo.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${X}"`);break}case"START":d.startTimeOffset=uue(X);break;case"MAP":{const ee=new os(X,d);if(E.duration){const W=new PF(o,c);fue(W,ee,r,D),m=W,E.initSegment=m,m.rawProgramDateTime&&!E.rawProgramDateTime&&(E.rawProgramDateTime=m.rawProgramDateTime)}else{const W=E.byteRangeEndOffset;if(W){const q=E.byteRangeStartOffset;$=`${W-q}@${q}`}else $=null;fue(E,ee,r,D),m=E,M=!0}m.cc=k;break}case"SERVER-CONTROL":{I&&ch(d,G,_),I=new os(X),d.canBlockReload=I.bool("CAN-BLOCK-RELOAD"),d.canSkipUntil=I.optionalFloat("CAN-SKIP-UNTIL",0),d.canSkipDateRanges=d.canSkipUntil>0&&I.bool("CAN-SKIP-DATERANGES"),d.partHoldBack=I.optionalFloat("PART-HOLD-BACK",0),d.holdBack=I.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{d.partTarget&&ch(d,G,_);const ee=new os(X);d.partTarget=ee.decimalFloatingPoint("PART-TARGET");break}case"PART":{let ee=d.partList;ee||(ee=d.partList=[]);const W=y>0?ee[ee.length-1]:void 0,q=y++,Q=new os(X,d),ne=new Jkt(Q,E,c,q,W);ee.push(ne),E.duration+=ne.duration;break}case"PRELOAD-HINT":{const ee=new os(X,d);d.preloadHint=ee;break}case"RENDITION-REPORT":{const ee=new os(X,d);d.renditionReports=d.renditionReports||[],d.renditionReports.push(ee);break}default:fo.warn(`line parsed but not handled: ${_}`);break}}}x&&!x.relurl?(h.pop(),S-=x.duration,d.partList&&(d.fragmentHint=x)):d.partList&&(zz(E,x,p),E.cc=k,d.fragmentHint=E,D&&hue(E,D,d)),d.targetduration||(d.playlistParsingError=new Error("Missing Target Duration"));const N=h.length,j=h[0],U=h[N-1];if(S+=d.skippedSegments*d.targetduration,S>0&&N&&U){d.averagetargetduration=S/N;const z=U.sn;d.endSN=z!=="initSegment"?z:0,d.live||(U.endList=!0),P>0&&(pCt(h,P),j&&p.unshift(j))}return d.fragmentHint&&(S+=d.fragmentHint.duration),d.totalduration=S,p.length&&d.dateRangeTagCount&&j&&X3e(p,d),d.endCC=k,d}}function X3e(e,t){let n=e.length;if(!n)if(t.hasProgramDateTime){const l=t.fragments[t.fragments.length-1];e.push(l),n++}else return;const r=e[n-1],o=t.live?1/0:t.totalduration,a=Object.keys(t.dateRanges);for(let l=a.length;l--;){const c=t.dateRanges[a[l]],d=c.startDate.getTime();c.tagAnchor=r.ref;for(let h=n;h--;){var s;if(((s=e[h])==null?void 0:s.sn)=l||r===0){var s;const c=(((s=n[r+1])==null?void 0:s.start)||o)-a.start;if(t<=l+c*1e3){const d=n[r].sn-e.startSN;if(d<0)return-1;const h=e.fragments;if(h.length>n.length){const m=(n[r+1]||h[h.length-1]).sn-e.startSN;for(let g=m;g>d;g--){const y=h[g].programDateTime;if(t>=y&&tr);["video","audio","text"].forEach(r=>{const o=n.filter(a=>SG(a,r));o.length&&(t[`${r}Codec`]=o.map(a=>a.split("/")[0]).join(","),n=n.filter(a=>o.indexOf(a)===-1))}),t.unknownCodecs=n}function due(e,t,n){const r=t[n];r&&(e[n]=r)}function pCt(e,t){let n=e[t];for(let r=t;r--;){const o=e[r];if(!o)return;o.programDateTime=n.programDateTime-o.duration*1e3,n=o}}function zz(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function fue(e,t,n,r){e.relurl=t.URI,t.BYTERANGE&&e.setByteRange(t.BYTERANGE),e.level=n,e.sn="initSegment",r&&(e.levelkeys=r),e.initSegment=null}function hue(e,t,n){e.levelkeys=t;const{encryptedFragments:r}=n;(!r.length||r[r.length-1].levelkeys!==t)&&Object.keys(t).some(o=>t[o].isCommonEncryption)&&r.push(e)}function ch(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must not appear more than once (${n[0]})`)}function pue(e,t,n){e.playlistParsingError=new Error(`#EXT-X-${t} must appear before the first Media Segment (${n[0]})`)}function BF(e,t){const n=t.startPTS;if(Bn(n)){let r=0,o;t.sn>e.sn?(r=n-e.start,o=e):(r=e.start-n,o=t),o.duration!==r&&o.setDuration(r)}else t.sn>e.sn?e.cc===t.cc&&e.minEndPTS?t.setStart(e.start+(e.minEndPTS-e.start)):t.setStart(e.start+e.duration):t.setStart(Math.max(e.start-t.duration,0))}function Z3e(e,t,n,r,o,a,s){r-n<=0&&(s.warn("Fragment should have a positive duration",t),r=n+t.duration,a=o+t.duration);let c=n,d=r;const h=t.startPTS,p=t.endPTS;if(Bn(h)){const C=Math.abs(h-n);e&&C>e.totalduration?s.warn(`media timestamps and playlist times differ by ${C}s for level ${t.level} ${e.url}`):Bn(t.deltaPTS)?t.deltaPTS=Math.max(C,t.deltaPTS):t.deltaPTS=C,c=Math.max(n,h),n=Math.min(n,h),o=t.startDTS!==void 0?Math.min(o,t.startDTS):o,d=Math.min(r,p),r=Math.max(r,p),a=t.endDTS!==void 0?Math.max(a,t.endDTS):a}const m=n-t.start;t.start!==0&&t.setStart(n),t.setDuration(r-t.start),t.startPTS=n,t.maxStartPTS=c,t.startDTS=o,t.endPTS=r,t.minEndPTS=d,t.endDTS=a;const g=t.sn;if(!e||ge.endSN)return 0;let y;const S=g-e.startSN,k=e.fragments;for(k[S]=t,y=S;y>0;y--)BF(k[y],k[y-1]);for(y=S;y=0;h--){const p=o[h].initSegment;if(p){r=p;break}}e.fragmentHint&&delete e.fragmentHint.endPTS;let a;yCt(e,t,(h,p,m,g)=>{if((!t.startCC||t.skippedSegments)&&p.cc!==h.cc){const y=h.cc-p.cc;for(let S=m;S{var p;h&&(!h.initSegment||h.initSegment.relurl===((p=r)==null?void 0:p.relurl))&&(h.initSegment=r)}),t.skippedSegments){if(t.deltaUpdateFailed=s.some(h=>!h),t.deltaUpdateFailed){n.warn("[level-helper] Previous playlist missing segments skipped in delta playlist");for(let h=t.skippedSegments;h--;)s.shift();t.startSN=s[0].sn}else{t.canSkipDateRanges&&(t.dateRanges=mCt(e.dateRanges,t,n));const h=e.fragments.filter(p=>p.rawProgramDateTime);if(e.hasProgramDateTime&&!t.hasProgramDateTime)for(let p=1;p{p.elementaryStreams=h.elementaryStreams,p.stats=h.stats}),a?Z3e(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):J3e(e,t),s.length&&(t.totalduration=t.edge-s[0].start),t.driftStartTime=e.driftStartTime,t.driftStart=e.driftStart;const d=t.advancedDateTime;if(t.advanced&&d){const h=t.edge;t.driftStart||(t.driftStartTime=d,t.driftStart=h),t.driftEndTime=d,t.driftEnd=h}else t.driftEndTime=e.driftEndTime,t.driftEnd=e.driftEnd,t.advancedDateTime=e.advancedDateTime;t.requestScheduled===-1&&(t.requestScheduled=e.requestScheduled)}function mCt(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:o}=t,a=mo({},e);o&&o.forEach(c=>{delete a[c]});const l=Object.keys(a).length;return l?(Object.keys(r).forEach(c=>{const d=a[c],h=new W3e(r[c].attr,d);h.isValid?(a[c]=h,d||(h.tagOrder+=l)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${Co(r[c].attr)}"`)}),a):r}function gCt(e,t,n){if(e&&t){let r=0;for(let o=0,a=e.length;o<=a;o++){const s=e[o],l=t[o+r];s&&l&&s.index===l.index&&s.fragment.sn===l.fragment.sn?n(s,l):r--}}}function yCt(e,t,n){const r=t.skippedSegments,o=Math.max(e.startSN,t.startSN)-t.startSN,a=(e.fragmentHint?1:0)+(r?t.endSN:Math.min(e.endSN,t.endSN))-t.startSN,s=t.startSN-e.startSN,l=t.fragmentHint?t.fragments.concat(t.fragmentHint):t.fragments,c=e.fragmentHint?e.fragments.concat(e.fragmentHint):e.fragments;for(let d=o;d<=a;d++){const h=c[s+d];let p=l[d];if(r&&!p&&h&&(p=t.fragments[d]=h),h&&p){n(h,p,d,l);const m=h.relurl,g=p.relurl;if(m&&bCt(m,g)){t.playlistParsingError=vue(`media sequence mismatch ${p.sn}:`,e,t,h,p);return}else if(h.cc!==p.cc){t.playlistParsingError=vue(`discontinuity sequence mismatch (${h.cc}!=${p.cc})`,e,t,h,p);return}}}}function vue(e,t,n,r,o){return new Error(`${e} ${o.url} Playlist starting @${t.startSN} ${t.m3u8} Playlist starting @${n.startSN} ${n.m3u8}`)}function J3e(e,t,n=!0){const r=t.startSN+t.skippedSegments-e.startSN,o=e.fragments,a=r>=0;let s=0;if(a&&rt){const a=r[r.length-1].duration*1e3;a{var r;(r=t.details)==null||r.fragments.forEach(o=>{o.level=n,o.initSegment&&(o.initSegment.level=n)})})}function bCt(e,t){return e!==t&&t?gue(e)!==gue(t):!1}function gue(e){return e.replace(/\?[^?]*$/,"")}function Eb(e,t){for(let r=0,o=e.length;re.startCC)}function yue(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function r2e(e,t){const n=t.fragments;for(let r=0,o=n.length;r{const{config:s,fragCurrent:l,media:c,mediaBuffer:d,state:h}=this,p=c?c.currentTime:0,m=jr.bufferInfo(d||c,p,s.maxBufferHole),g=!m.len;if(this.log(`Media seeking to ${Bn(p)?p.toFixed(3):p}, state: ${h}, ${g?"out of":"in"} buffer`),this.state===an.ENDED)this.resetLoadingState();else if(l){const y=s.maxFragLookUpTolerance,S=l.start-y,k=l.start+l.duration+y;if(g||km.end){const C=p>k;(py&&(this.lastCurrentTime=p),!this.loadingParts){const S=Math.max(m.end,p),k=this.shouldLoadParts(this.getLevelDetails(),S);k&&(this.log(`LL-Part loading ON after seeking to ${p.toFixed(2)} with buffer @${S.toFixed(2)}`),this.loadingParts=k)}}this.hls.hasEnoughToStart||(this.log(`Setting ${g?"startPosition":"nextLoadPosition"} to ${p} for seek without enough to start`),this.nextLoadPosition=p,g&&(this.startPosition=p)),g&&this.state===an.IDLE&&this.tickImmediate()},this.onMediaEnded=()=>{this.log("setting startPosition to 0 because media ended"),this.startPosition=this.lastCurrentTime=0},this.playlistType=a,this.hls=t,this.fragmentLoader=new Xxt(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new CG(t.config)}registerListeners(){const{hls:t}=this;t.on(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ie.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ie.ERROR,this.onError,this)}doTick(){this.onTickEnd()}onTickEnd(){}startLoad(t){}stopLoad(){if(this.state===an.STOPPED)return;this.fragmentLoader.abort(),this.keyLoader.abort(this.playlistType);const t=this.fragCurrent;t!=null&&t.loader&&(t.abortRequests(),this.fragmentTracker.removeFragment(t)),this.resetTransmuxer(),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=an.STOPPED}get startPositionValue(){const{nextLoadPosition:t,startPosition:n}=this;return n===-1&&t?t:n}get bufferingEnabled(){return this.buffering}pauseBuffering(){this.buffering=!1}resumeBuffering(){this.buffering=!0}get inFlightFrag(){return{frag:this.fragCurrent,state:this.state}}_streamEnded(t,n){if(n.live||!this.media)return!1;const r=t.end||0,o=this.config.timelineOffset||0;if(r<=o)return!1;const a=t.buffered;this.config.maxBufferHole&&a&&a.length>1&&(t=jr.bufferedInfo(a,t.start,0));const s=t.nextStart;if(s&&s>o&&s{const s=a.frag;if(this.fragContextChanged(s)){this.warn(`${s.type} sn: ${s.sn}${a.part?" part: "+a.part.index:""} of ${this.fragInfo(s,!1,a.part)}) was dropped during download.`),this.fragmentTracker.removeFragment(s);return}s.stats.chunkCount++,this._handleFragmentLoadProgress(a)};this._doFragLoad(t,n,r,o).then(a=>{if(!a)return;const s=this.state,l=a.frag;if(this.fragContextChanged(l)){(s===an.FRAG_LOADING||!this.fragCurrent&&s===an.PARSING)&&(this.fragmentTracker.removeFragment(l),this.state=an.IDLE);return}"payload"in a&&(this.log(`Loaded ${l.type} sn: ${l.sn} of ${this.playlistLabel()} ${l.level}`),this.hls.trigger(Ie.FRAG_LOADED,a)),this._handleFragmentLoadComplete(a)}).catch(a=>{this.state===an.STOPPED||this.state===an.ERROR||(this.warn(`Frag error: ${a?.message||a}`),this.resetFragmentLoading(t))})}clearTrackerIfNeeded(t){var n;const{fragmentTracker:r}=this;if(r.getState(t)===ca.APPENDING){const a=t.type,s=this.getFwdBufferInfo(this.mediaBuffer,a),l=Math.max(t.duration,s?s.len:this.config.maxBufferLength),c=this.backtrackFragment;((c?t.sn-c.sn:0)===1||this.reduceMaxBufferLength(l,t.duration))&&r.removeFragment(t)}else((n=this.mediaBuffer)==null?void 0:n.buffered.length)===0?r.removeAllFragments():r.hasParts(t.type)&&(r.detectPartialFragments({frag:t,part:null,stats:t.stats,id:t.type}),r.getState(t)===ca.PARTIAL&&r.removeFragment(t))}checkLiveUpdate(t){if(t.updated&&!t.live){const n=t.fragments[t.fragments.length-1];this.fragmentTracker.detectPartialFragments({frag:n,part:null,stats:n.stats,id:n.type})}t.fragments[0]||(t.deltaUpdateFailed=!0)}waitForLive(t){const n=t.details;return n?.live&&n.type!=="EVENT"&&(this.levelLastLoaded!==t||n.expired)}flushMainBuffer(t,n,r=null){if(!(t-n))return;const o={startOffset:t,endOffset:n,type:r};this.hls.trigger(Ie.BUFFER_FLUSHING,o)}_loadInitSegment(t,n){this._doFragLoad(t,n).then(r=>{const o=r?.frag;if(!o||this.fragContextChanged(o)||!this.levels)throw new Error("init load aborted");return r}).then(r=>{const{hls:o}=this,{frag:a,payload:s}=r,l=a.decryptdata;if(s&&s.byteLength>0&&l!=null&&l.key&&l.iv&&vy(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,EG(l.method)).catch(d=>{throw o.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.FRAG_DECRYPT_ERROR,fatal:!1,error:d,reason:d.message,frag:a}),d}).then(d=>{const h=self.performance.now();return o.trigger(Ie.FRAG_DECRYPTED,{frag:a,payload:d,stats:{tstart:c,tdecrypt:h}}),r.payload=d,this.completeInitSegmentLoad(r)})}return this.completeInitSegmentLoad(r)}).catch(r=>{this.state===an.STOPPED||this.state===an.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}completeInitSegmentLoad(t){const{levels:n}=this;if(!n)throw new Error("init load aborted, missing levels");const r=t.frag.stats;this.state!==an.STOPPED&&(this.state=an.IDLE),t.frag.data=new Uint8Array(t.payload),r.parsing.start=r.buffering.start=self.performance.now(),r.parsing.end=r.buffering.end=self.performance.now(),this.tick()}unhandledEncryptionError(t,n){var r,o;const a=t.tracks;if(a&&!n.encrypted&&((r=a.audio)!=null&&r.encrypted||(o=a.video)!=null&&o.encrypted)&&(!this.config.emeEnabled||!this.keyLoader.emeController)){const s=this.media,l=new Error(`Encrypted track with no key in ${this.fragInfo(n)} (media ${s?"attached mediaKeys: "+s.mediaKeys:"detached"})`);return this.warn(l.message),!s||s.mediaKeys?!1:(this.hls.trigger(Ie.ERROR,{type:lr.KEY_SYSTEM_ERROR,details:Wt.KEY_SYSTEM_NO_KEYS,fatal:!1,error:l,frag:n}),this.resetTransmuxer(),!0)}return!1}fragContextChanged(t){const{fragCurrent:n}=this;return!t||!n||t.sn!==n.sn||t.level!==n.level}fragBufferedComplete(t,n){const r=this.mediaBuffer?this.mediaBuffer:this.media;if(this.log(`Buffered ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)} > buffer:${r?kCt.toString(jr.getBuffered(r)):"(detached)"})`),Ks(t)){var o;if(t.type!==Jn.SUBTITLE){const s=t.elementaryStreams;if(!Object.keys(s).some(l=>!!s[l])){this.state=an.IDLE;return}}const a=(o=this.levels)==null?void 0:o[t.level];a!=null&&a.fragmentError&&(this.log(`Resetting level fragment error count of ${a.fragmentError} on frag buffered`),a.fragmentError=0)}this.state=an.IDLE}_handleFragmentLoadComplete(t){const{transmuxer:n}=this;if(!n)return;const{frag:r,part:o,partsLoaded:a}=t,s=!a||a.length===0||a.some(c=>!c),l=new wG(r.level,r.sn,r.stats.chunkCount+1,0,o?o.index:-1,!s);n.flush(l)}_handleFragmentLoadProgress(t){}_doFragLoad(t,n,r=null,o){var a;this.fragCurrent=t;const s=n.details;if(!this.levels||!s)throw new Error(`frag load aborted, missing level${s?"":" detail"}s`);let l=null;if(t.encrypted&&!((a=t.decryptdata)!=null&&a.key)){if(this.log(`Loading key for ${t.sn} of [${s.startSN}-${s.endSN}], ${this.playlistLabel()} ${t.level}`),this.state=an.KEY_LOADING,this.fragCurrent=t,l=this.keyLoader.load(t).then(m=>{if(!this.fragContextChanged(m.frag))return this.hls.trigger(Ie.KEY_LOADED,m),this.state===an.KEY_LOADING&&(this.state=an.IDLE),m}),this.hls.trigger(Ie.KEY_LOADING,{frag:t}),this.fragCurrent===null)return this.log("context changed in KEY_LOADING"),Promise.resolve(null)}else t.encrypted||(l=this.keyLoader.loadClear(t,s.encryptedFragments,this.startFragRequested),l&&this.log("[eme] blocking frag load until media-keys acquired"));const c=this.fragPrevious;if(Ks(t)&&(!c||t.sn!==c.sn)){const m=this.shouldLoadParts(n.details,t.end);m!==this.loadingParts&&(this.log(`LL-Part loading ${m?"ON":"OFF"} loading sn ${c?.sn}->${t.sn}`),this.loadingParts=m)}if(r=Math.max(t.start,r||0),this.loadingParts&&Ks(t)){const m=s.partList;if(m&&o){r>s.fragmentEnd&&s.fragmentHint&&(t=s.fragmentHint);const g=this.getNextPart(m,t,r);if(g>-1){const y=m[g];t=this.fragCurrent=y.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${y.index} (${g}/${m.length-1}) of ${this.fragInfo(t,!1,y)}) cc: ${t.cc} [${s.startSN}-${s.endSN}], target: ${parseFloat(r.toFixed(3))}`),this.nextLoadPosition=y.start+y.duration,this.state=an.FRAG_LOADING;let S;return l?S=l.then(k=>!k||this.fragContextChanged(k.frag)?null:this.doFragPartsLoad(t,y,n,o)).catch(k=>this.handleFragLoadError(k)):S=this.doFragPartsLoad(t,y,n,o).catch(k=>this.handleFragLoadError(k)),this.hls.trigger(Ie.FRAG_LOADING,{frag:t,part:y,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING parts")):S}else if(!t.url||this.loadedEndOfParts(m,r))return Promise.resolve(null)}}if(Ks(t)&&this.loadingParts){var d;this.log(`LL-Part loading OFF after next part miss @${r.toFixed(2)} Check buffer at sn: ${t.sn} loaded parts: ${(d=s.partList)==null?void 0:d.filter(m=>m.loaded).map(m=>`[${m.start}-${m.end}]`)}`),this.loadingParts=!1}else if(!t.url)return Promise.resolve(null);this.log(`Loading ${t.type} sn: ${t.sn} of ${this.fragInfo(t,!1)}) cc: ${t.cc} ${"["+s.startSN+"-"+s.endSN+"]"}, target: ${parseFloat(r.toFixed(3))}`),Bn(t.sn)&&!this.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),this.state=an.FRAG_LOADING;const h=this.config.progressive;let p;return h&&l?p=l.then(m=>!m||this.fragContextChanged(m.frag)?null:this.fragmentLoader.load(t,o)).catch(m=>this.handleFragLoadError(m)):p=Promise.all([this.fragmentLoader.load(t,h?o:void 0),l]).then(([m])=>(!h&&o&&o(m),m)).catch(m=>this.handleFragLoadError(m)),this.hls.trigger(Ie.FRAG_LOADING,{frag:t,targetBufferTime:r}),this.fragCurrent===null?Promise.reject(new Error("frag load aborted, context changed in FRAG_LOADING")):p}doFragPartsLoad(t,n,r,o){return new Promise((a,s)=>{var l;const c=[],d=(l=r.details)==null?void 0:l.partList,h=p=>{this.fragmentLoader.loadPart(t,p,o).then(m=>{c[p.index]=m;const g=m.part;this.hls.trigger(Ie.FRAG_LOADED,m);const y=mue(r.details,t.sn,p.index+1)||t2e(d,t.sn,p.index+1);if(y)h(y);else return a({frag:t,part:g,partsLoaded:c})}).catch(s)};h(n)})}handleFragLoadError(t){if("data"in t){const n=t.data;n.frag&&n.details===Wt.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):n.frag&&n.type===lr.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(Ie.ERROR,n)}else this.hls.trigger(Ie.ERROR,{type:lr.OTHER_ERROR,details:Wt.INTERNAL_EXCEPTION,err:t,error:t,fatal:!0});return null}_handleTransmuxerFlush(t){const n=this.getCurrentContext(t);if(!n||this.state!==an.PARSING){!this.fragCurrent&&this.state!==an.STOPPED&&this.state!==an.ERROR&&(this.state=an.IDLE);return}const{frag:r,part:o,level:a}=n,s=self.performance.now();r.stats.parsing.end=s,o&&(o.stats.parsing.end=s);const l=this.getLevelDetails(),d=l&&r.sn>l.endSN||this.shouldLoadParts(l,r.end);d!==this.loadingParts&&(this.log(`LL-Part loading ${d?"ON":"OFF"} after parsing segment ending @${r.end.toFixed(2)}`),this.loadingParts=d),this.updateLevelTiming(r,o,a,t.partial)}shouldLoadParts(t,n){if(this.config.lowLatencyMode){if(!t)return this.loadingParts;if(t.partList){var r;const a=t.partList[0];if(a.fragment.type===Jn.SUBTITLE)return!1;const s=a.end+(((r=t.fragmentHint)==null?void 0:r.duration)||0);if(n>=s){var o;if((this.hls.hasEnoughToStart?((o=this.media)==null?void 0:o.currentTime)||this.lastCurrentTime:this.getLoadPosition())>a.start-a.fragment.duration)return!0}}}return!1}getCurrentContext(t){const{levels:n,fragCurrent:r}=this,{level:o,sn:a,part:s}=t;if(!(n!=null&&n[o]))return this.warn(`Levels object was unset while buffering fragment ${a} of ${this.playlistLabel()} ${o}. The current chunk will not be buffered.`),null;const l=n[o],c=l.details,d=s>-1?mue(c,a,s):null,h=d?d.fragment:e2e(c,a,r);return h?(r&&r!==h&&(h.stats=r.stats),{frag:h,part:d,level:l}):null}bufferFragmentData(t,n,r,o,a){if(this.state!==an.PARSING)return;const{data1:s,data2:l}=t;let c=s;if(l&&(c=Xc(s,l)),!c.length)return;const d=this.initPTS[n.cc],h=d?-d.baseTime/d.timescale:void 0,p={type:t.type,frag:n,part:r,chunkMeta:o,offset:h,parent:n.type,data:c};if(this.hls.trigger(Ie.BUFFER_APPENDING,p),t.dropped&&t.independent&&!r){if(a)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!jr.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,o=jr.bufferInfo(n,r,0),a=t.duration,s=Math.min(this.config.maxFragLookUpTolerance*2,a*.25),l=Math.max(Math.min(t.start-s,o.end-s),r+s);t.start-l>s&&this.flushMainBuffer(l,t.start)}getFwdBufferInfo(t,n){var r;const o=this.getLoadPosition();if(!Bn(o))return null;const s=this.lastCurrentTime>o||(r=this.media)!=null&&r.paused?0:this.config.maxBufferHole;return this.getFwdBufferInfoAtPos(t,o,n,s)}getFwdBufferInfoAtPos(t,n,r,o){const a=jr.bufferInfo(t,n,o);if(a.len===0&&a.nextStart!==void 0){const s=this.fragmentTracker.getBufferedFrag(n,r);if(s&&(a.nextStart<=s.end||s.gap)){const l=Math.max(Math.min(a.nextStart,s.end)-n,o);return jr.bufferInfo(t,n,l)}}return a}getMaxBufferLength(t){const{config:n}=this;let r;return t?r=Math.max(8*n.maxBufferSize/t,n.maxBufferLength):r=n.maxBufferLength,Math.min(r,n.maxMaxBufferLength)}reduceMaxBufferLength(t,n){const r=this.config,o=Math.max(Math.min(t-n,r.maxBufferLength),n),a=Math.max(t-n*3,r.maxMaxBufferLength/2,o);return a>=o?(r.maxMaxBufferLength=a,this.warn(`Reduce max buffer length to ${a}s`),!0):!1}getAppendedFrag(t,n=Jn.MAIN){const r=this.fragmentTracker?this.fragmentTracker.getAppendedFrag(t,n):null;return r&&"fragment"in r?r.fragment:r}getNextFragment(t,n){const r=n.fragments,o=r.length;if(!o)return null;const{config:a}=this,s=r[0].start,l=a.lowLatencyMode&&!!n.partList;let c=null;if(n.live){const p=a.initialLiveManifestSize;if(o=s?m:g)||c.start:t;this.log(`Setting startPosition to ${y} to match start frag at live edge. mainStart: ${m} liveSyncPosition: ${g} frag.start: ${(d=c)==null?void 0:d.start}`),this.startPosition=this.nextLoadPosition=y}}else t<=s&&(c=r[0]);if(!c){const p=this.loadingParts?n.partEnd:n.fragmentEnd;c=this.getFragmentAtPosition(t,p,n)}let h=this.filterReplacedPrimary(c,n);if(!h&&c){const p=c.sn-n.startSN;h=this.filterReplacedPrimary(r[p+1]||null,n)}return this.mapToInitFragWhenRequired(h)}isLoopLoading(t,n){const r=this.fragmentTracker.getState(t);return(r===ca.OK||r===ca.PARTIAL&&!!t.gap)&&this.nextLoadPosition>n}getNextFragmentLoopLoading(t,n,r,o,a){let s=null;if(t.gap&&(s=this.getNextFragment(this.nextLoadPosition,n),s&&!s.gap&&r.nextStart)){const l=this.getFwdBufferInfoAtPos(this.mediaBuffer?this.mediaBuffer:this.media,r.nextStart,o,0);if(l!==null&&r.len+l.len>=a){const c=s.sn;return this.loopSn!==c&&(this.log(`buffer full after gaps in "${o}" playlist starting at sn: ${c}`),this.loopSn=c),null}}return this.loopSn=void 0,s}get primaryPrefetch(){if(bue(this.config)){var t;if((t=this.hls.interstitialsManager)==null||(t=t.playingItem)==null?void 0:t.event)return!0}return!1}filterReplacedPrimary(t,n){if(!t)return t;if(bue(this.config)&&t.type!==Jn.SUBTITLE){const r=this.hls.interstitialsManager,o=r?.bufferingItem;if(o){const s=o.event;if(s){if(s.appendInPlace||Math.abs(t.start-o.start)>1||o.start===0)return null}else if(t.end<=o.start&&n?.live===!1||t.start>o.end&&o.nextEvent&&(o.nextEvent.appendInPlace||t.start-o.end>1))return null}const a=r?.playerQueue;if(a)for(let s=a.length;s--;){const l=a[s].interstitial;if(l.appendInPlace&&t.start>=l.startTime&&t.end<=l.resumeTime)return null}}return t}mapToInitFragWhenRequired(t){return t!=null&&t.initSegment&&!t.initSegment.data&&!this.bitrateTest?t.initSegment:t}getNextPart(t,n,r){let o=-1,a=!1,s=!0;for(let l=0,c=t.length;l-1&&rr.start)return!0}return!1}getInitialLiveFragment(t){const n=t.fragments,r=this.fragPrevious;let o=null;if(r){if(t.hasProgramDateTime&&(this.log(`Live playlist, switching playlist, load frag with same PDT: ${r.programDateTime}`),o=Nxt(n,r.endProgramDateTime,this.config.maxFragLookUpTolerance)),!o){const a=r.sn+1;if(a>=t.startSN&&a<=t.endSN){const s=n[a-t.startSN];r.cc===s.cc&&(o=s,this.log(`Live playlist, switching playlist, load frag with next SN: ${o.sn}`))}o||(o=j3e(t,r.cc,r.end),o&&this.log(`Live playlist, switching playlist, load frag with same CC: ${o.sn}`))}}else{const a=this.hls.liveSyncPosition;a!==null&&(o=this.getFragmentAtPosition(a,this.bitrateTest?t.fragmentEnd:t.edge,t))}return o}getFragmentAtPosition(t,n,r){const{config:o}=this;let{fragPrevious:a}=this,{fragments:s,endSN:l}=r;const{fragmentHint:c}=r,{maxFragLookUpTolerance:d}=o,h=r.partList,p=!!(this.loadingParts&&h!=null&&h.length&&c);p&&!this.bitrateTest&&h[h.length-1].fragment.sn===c.sn&&(s=s.concat(c),l=c.sn);let m;if(tn-d||(g=this.media)!=null&&g.paused||!this.startFragRequested?0:d;m=Om(a,s,t,S)}else m=s[s.length-1];if(m){const y=m.sn-r.startSN,S=this.fragmentTracker.getState(m);if((S===ca.OK||S===ca.PARTIAL&&m.gap)&&(a=m),a&&m.sn===a.sn&&(!p||h[0].fragment.sn>m.sn||!r.live)&&m.level===a.level){const C=s[y+1];m.sn${t.startSN} fragments: ${o}`),c}return a}waitForCdnTuneIn(t){return t.live&&t.canBlockReload&&t.partTarget&&t.tuneInGoal>Math.max(t.partHoldBack,t.partTarget*3)}setStartPosition(t,n){let r=this.startPosition;r=0&&(r=this.nextLoadPosition),r}handleFragLoadAborted(t,n){this.transmuxer&&t.type===this.playlistType&&Ks(t)&&t.stats.aborted&&(this.log(`Fragment ${t.sn}${n?" part "+n.index:""} of ${this.playlistLabel()} ${t.level} was aborted`),this.resetFragmentLoading(t))}resetFragmentLoading(t){(!this.fragCurrent||!this.fragContextChanged(t)&&this.state!==an.FRAG_LOADING_WAITING_RETRY)&&(this.state=an.IDLE)}onFragmentOrKeyLoadError(t,n){var r;if(n.chunkMeta&&!n.frag){const C=this.getCurrentContext(n.chunkMeta);C&&(n.frag=C.frag)}const o=n.frag;if(!o||o.type!==t||!this.levels)return;if(this.fragContextChanged(o)){var a;this.warn(`Frag load error must match current frag to retry ${o.url} > ${(a=this.fragCurrent)==null?void 0:a.url}`);return}const s=n.details===Wt.FRAG_GAP;s&&this.fragmentTracker.fragBuffered(o,!0);const l=n.errorAction;if(!l){this.state=an.ERROR;return}const{action:c,flags:d,retryCount:h=0,retryConfig:p}=l,m=!!p,g=m&&c===Ba.RetryRequest,y=m&&!l.resolved&&d===Qu.MoveAllAlternatesMatchingHost,S=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!g&&y&&Ks(o)&&!o.endList&&S&&!z3e(n))this.resetFragmentErrors(t),this.treatAsGap(o),l.resolved=!0;else if((g||y)&&h=n||r&&!Fz(0))&&(r&&this.log("Connection restored (online)"),this.resetStartWhenNotLoaded(),this.state=an.IDLE)}reduceLengthAndFlushBuffer(t){if(this.state===an.PARSING||this.state===an.PARSED){const n=t.frag,r=t.parent,o=this.getFwdBufferInfo(this.mediaBuffer,r),a=o&&o.len>.5;a&&this.reduceMaxBufferLength(o.len,n?.duration||10);const s=!a;return s&&this.warn(`Buffer full error while media.currentTime (${this.getLoadPosition()}) is not buffered, flush ${r} buffer`),n&&(this.fragmentTracker.removeFragment(n),this.nextLoadPosition=n.start),this.resetLoadingState(),s}return!1}resetFragmentErrors(t){t===Jn.AUDIO&&(this.fragCurrent=null),this.hls.hasEnoughToStart||(this.startFragRequested=!1),this.state!==an.STOPPED&&(this.state=an.IDLE)}afterBufferFlushed(t,n,r){if(!t)return;const o=jr.getBuffered(t);this.fragmentTracker.detectEvictedFragments(n,o,r),this.state===an.ENDED&&this.resetLoadingState()}resetLoadingState(){this.log("Reset loading state"),this.fragCurrent=null,this.fragPrevious=null,this.state!==an.STOPPED&&(this.state=an.IDLE)}resetStartWhenNotLoaded(){if(!this.hls.hasEnoughToStart){this.startFragRequested=!1;const t=this.levelLastLoaded,n=t?t.details:null;n!=null&&n.live?(this.log("resetting startPosition for live start"),this.startPosition=-1,this.setStartPosition(n,n.fragmentStart),this.resetLoadingState()):this.nextLoadPosition=this.startPosition}}resetWhenMissingContext(t){this.log(`Loading context changed while buffering sn ${t.sn} of ${this.playlistLabel()} ${t.level===-1?"":t.level}. This chunk will not be buffered.`),this.removeUnbufferedFrags(),this.resetStartWhenNotLoaded(),this.resetLoadingState()}removeUnbufferedFrags(t=0){this.fragmentTracker.removeFragmentsInRange(t,1/0,this.playlistType,!1,!0)}updateLevelTiming(t,n,r,o){const a=r.details;if(!a){this.warn("level.details undefined");return}if(!Object.keys(t.elementaryStreams).reduce((c,d)=>{const h=t.elementaryStreams[d];if(h){const p=h.endPTS-h.startPTS;if(p<=0)return this.warn(`Could not parse fragment ${t.sn} ${d} duration reliably (${p})`),c||!1;const m=o?0:Z3e(a,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(Ie.LEVEL_PTS_UPDATED,{details:a,level:r,drift:m,type:d,frag:t,start:h.startPTS,end:h.endPTS}),!0}return c},!1)){var l;if(r.fragmentError===0&&this.treatAsGap(t,r),((l=this.transmuxer)==null?void 0:l.error)===null){const c=new Error(`Found no media in fragment ${t.sn} of ${this.playlistLabel()} ${t.level} resetting transmuxer to fallback to playlist timing`);if(this.warn(c.message),this.hls.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.FRAG_PARSING_ERROR,fatal:!1,error:c,frag:t,reason:`Found no media in msn ${t.sn} of ${this.playlistLabel()} "${r.url}"`}),!this.hls)return;this.resetTransmuxer()}}this.state=an.PARSED,this.log(`Parsed ${t.type} sn: ${t.sn}${n?" part: "+n.index:""} of ${this.fragInfo(t,!1,n)})`),this.hls.trigger(Ie.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===Jn.MAIN?"level":"track"}fragInfo(t,n=!0,r){var o,a;return`${this.playlistLabel()} ${t.level} (${r?"part":"frag"}:[${((o=n&&!r?t.startPTS:(r||t).start)!=null?o:NaN).toFixed(3)}-${((a=n&&!r?t.endPTS:(r||t).end)!=null?a:NaN).toFixed(3)}]${r&&t.type==="main"?"INDEPENDENT="+(r.independent?"YES":"NO"):""}`}treatAsGap(t,n){n&&n.fragmentError++,t.gap=!0,this.fragmentTracker.removeFragment(t),this.fragmentTracker.fragBuffered(t,!0)}resetTransmuxer(){var t;(t=this.transmuxer)==null||t.reset()}recoverWorkerError(t){t.event==="demuxerWorker"&&(this.fragmentTracker.removeAllFragments(),this.transmuxer&&(this.transmuxer.destroy(),this.transmuxer=null),this.resetStartWhenNotLoaded(),this.resetLoadingState())}set state(t){const n=this._state;n!==t&&(this._state=t,this.log(`${n}->${t}`))}get state(){return this._state}}function bue(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class o2e{constructor(){this.chunks=[],this.dataLength=0}push(t){this.chunks.push(t),this.dataLength+=t.length}flush(){const{chunks:t,dataLength:n}=this;let r;if(t.length)t.length===1?r=t[0]:r=xCt(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function xCt(e,t){const n=new Uint8Array(t);let r=0;for(let o=0;o0)return e.subarray(n,n+r)}function LCt(e,t,n,r){const o=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],a=t[n+2],s=a>>2&15;if(s>12){const g=new Error(`invalid ADTS sampling index:${s}`);e.emit(Ie.ERROR,Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.FRAG_PARSING_ERROR,fatal:!0,error:g,reason:g.message});return}const l=(a>>6&3)+1,c=t[n+3]>>6&3|(a&1)<<2,d="mp4a.40."+l,h=o[s];let p=s;(l===5||l===29)&&(p-=3);const m=[l<<3|(p&14)>>1,(p&1)<<7|c<<3];return fo.log(`manifest codec:${r}, parsed codec:${d}, channels:${c}, rate:${h} (ADTS object type:${l} sampling index:${s})`),{config:m,samplerate:h,channelCount:c,codec:d,parsedCodec:d,manifestCodec:r}}function a2e(e,t){return e[t]===255&&(e[t+1]&246)===240}function l2e(e,t){return e[t+1]&1?7:9}function DG(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function DCt(e,t){return t+5=e.length)return!1;const r=DG(e,t);if(r<=n)return!1;const o=t+r;return o===e.length||MT(e,o)}return!1}function u2e(e,t,n,r,o){if(!e.samplerate){const a=LCt(t,n,r,o);if(!a)return;mo(e,a)}}function c2e(e){return 1024*9e4/e}function MCt(e,t){const n=l2e(e,t);if(t+n<=e.length){const r=DG(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function d2e(e,t,n,r,o){const a=c2e(e.samplerate),s=r+o*a,l=MCt(t,n);let c;if(l){const{frameLength:p,headerLength:m}=l,g=m+p,y=Math.max(0,n+g-t.length);y?(c=new Uint8Array(g-m),c.set(t.subarray(n+m,t.length),0)):c=t.subarray(n+m,n+g);const S={unit:c,pts:s};return y||e.samples.push(S),{sample:S,length:g,missing:y}}const d=t.length-n;return c=new Uint8Array(d),c.set(t.subarray(n,t.length),0),{sample:{unit:c,pts:s},length:d,missing:-1}}function OCt(e,t){return LG(e,t)&&XA(e,t+6)+10<=e.length-t}function $Ct(e){return e instanceof ArrayBuffer?e:e.byteOffset==0&&e.byteLength==e.buffer.byteLength?e.buffer:new Uint8Array(e).buffer}function FF(e,t=0,n=1/0){return BCt(e,t,n,Uint8Array)}function BCt(e,t,n,r){const o=NCt(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=FCt(e)?e.byteOffset:0,l=(s+e.byteLength)/a,c=(s+t)/a,d=Math.floor(Math.max(0,Math.min(c,l))),h=Math.floor(Math.min(d+Math.max(n,0),l));return new r(o,d,h-d)}function NCt(e){return e instanceof ArrayBuffer?e:e.buffer}function FCt(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function jCt(e){const t={key:e.type,description:"",data:"",mimeType:null,pictureType:null},n=3;if(e.size<2)return;if(e.data[0]!==n){console.log("Ignore frame with unrecognized character encoding");return}const r=e.data.subarray(1).indexOf(0);if(r===-1)return;const o=lc(FF(e.data,1,r)),a=e.data[2+r],s=e.data.subarray(3+r).indexOf(0);if(s===-1)return;const l=lc(FF(e.data,3+r,s));let c;return o==="-->"?c=lc(FF(e.data,4+r+s)):c=$Ct(e.data.subarray(4+r+s)),t.mimeType=o,t.pictureType=a,t.description=l,t.data=c,t}function VCt(e){if(e.size<2)return;const t=lc(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function zCt(e){if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=lc(e.data.subarray(n),!0);n+=r.length+1;const o=lc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=lc(e.data.subarray(1));return{key:e.type,info:"",data:t}}function UCt(e){if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=lc(e.data.subarray(n),!0);n+=r.length+1;const o=lc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=lc(e.data);return{key:e.type,info:"",data:t}}function HCt(e){return e.type==="PRIV"?VCt(e):e.type[0]==="W"?UCt(e):e.type==="APIC"?jCt(e):zCt(e)}function WCt(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=XA(e,4),r=10;return{type:t,size:n,data:e.subarray(r,r+n)}}const vC=10,GCt=10;function f2e(e){let t=0;const n=[];for(;LG(e,t);){const r=XA(e,t+6);e[t+5]>>6&1&&(t+=vC),t+=vC;const o=t+r;for(;t+GCt0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:nc.audioId3,duration:Number.POSITIVE_INFINITY});o{if(Bn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let mC=null;const YCt=[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],XCt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],ZCt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],JCt=[0,1,1,4];function p2e(e,t,n,r,o){if(n+24>t.length)return;const a=v2e(t,n);if(a&&n+a.frameLength<=t.length){const s=a.samplesPerFrame*9e4/a.sampleRate,l=r+o*s,c={unit:t.subarray(n,n+a.frameLength),pts:l,dts:l};return e.config=[],e.channelCount=a.channelCount,e.samplerate=a.sampleRate,e.samples.push(c),{sample:c,length:a.frameLength,missing:0}}}function v2e(e,t){const n=e[t+1]>>3&3,r=e[t+1]>>1&3,o=e[t+2]>>4&15,a=e[t+2]>>2&3;if(n!==1&&o!==0&&o!==15&&a!==3){const s=e[t+2]>>1&1,l=e[t+3]>>6,c=n===3?3-r:r===3?3:4,d=YCt[c*14+o-1]*1e3,p=XCt[(n===3?0:n===2?1:2)*3+a],m=l===3?1:2,g=ZCt[n][r],y=JCt[r],S=g*8*y,k=Math.floor(g*d/p+s)*y;if(mC===null){const E=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);mC=E?parseInt(E[1]):0}return!!mC&&mC<=87&&r===2&&d>=224e3&&l===0&&(e[t+3]=e[t+3]|128),{sampleRate:p,channelCount:m,frameLength:k,samplesPerFrame:S}}}function MG(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function m2e(e,t){return t+1{let n=0,r=5;t+=r;const o=new Uint32Array(1),a=new Uint32Array(1),s=new Uint8Array(1);for(;r>0;){s[0]=e[t];const l=Math.min(r,8),c=8-l;a[0]=4278190080>>>24+c<>c,n=n?n<t.length||t[n]!==11||t[n+1]!==119)return-1;const a=t[n+4]>>6;if(a>=3)return-1;const l=[48e3,44100,32e3][a],c=t[n+4]&63,h=[64,69,96,64,70,96,80,87,120,80,88,120,96,104,144,96,105,144,112,121,168,112,122,168,128,139,192,128,140,192,160,174,240,160,175,240,192,208,288,192,209,288,224,243,336,224,244,336,256,278,384,256,279,384,320,348,480,320,349,480,384,417,576,384,418,576,448,487,672,448,488,672,512,557,768,512,558,768,640,696,960,640,697,960,768,835,1152,768,836,1152,896,975,1344,896,976,1344,1024,1114,1536,1024,1115,1536,1152,1253,1728,1152,1254,1728,1280,1393,1920,1280,1394,1920][c*3+a]*2;if(n+h>t.length)return-1;const p=t[n+6]>>5;let m=0;p===2?m+=2:(p&1&&p!==1&&(m+=2),p&4&&(m+=2));const g=(t[n+6]<<8|t[n+7])>>12-m&1,S=[2,1,2,3,3,4,4,5][p]+g,k=t[n+5]>>3,C=t[n+5]&7,x=new Uint8Array([a<<6|k<<1|C>>2,(C&3)<<6|p<<3|g<<2|c>>4,c<<4&224]),E=1536/l*9e4,_=r+o*E,T=t.subarray(n,n+h);return e.config=x,e.channelCount=S,e.samplerate=l,e.samples.push({unit:T,pts:_}),h}class nwt extends RG{resetInitSegment(t,n,r,o){super.resetInitSegment(t,n,r,o),this._audioTrack={container:"audio/mpeg",type:"audio",id:2,pid:-1,sequenceNumber:0,segmentCodec:"mp3",samples:[],manifestCodec:n,duration:o,inputTimeScale:9e4,dropped:0}}static probe(t){if(!t)return!1;const n=k_(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&PG(n)!==void 0&&y2e(t,r)<=16)return!1;for(let o=t.length;r{const s=cxt(a);if(rwt.test(s.schemeIdUri)){const l=Sue(s,n);let c=s.eventDuration===4294967295?Number.POSITIVE_INFINITY:s.eventDuration/s.timeScale;c<=.001&&(c=Number.POSITIVE_INFINITY);const d=s.payload;r.samples.push({data:d,len:d.byteLength,dts:l,pts:l,type:nc.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=Sue(s,n);r.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:nc.misbklv,duration:Number.POSITIVE_INFINITY})}})}return r}demuxSampleAes(t,n,r){return Promise.reject(new Error("The MP4 demuxer does not support SAMPLE-AES decryption"))}destroy(){this.config=null,this.remainderData=null,this.videoTrack=this.audioTrack=this.id3Track=this.txtTrack=void 0}}function Sue(e,t){return Bn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class owt{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new CG(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,A0.cbc)}decryptAacSample(t,n,r){const o=t[n].unit;if(o.length<=16)return;const a=o.subarray(16,o.length-o.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length);this.decryptBuffer(s).then(l=>{const c=new Uint8Array(l);o.set(c,16),this.decrypter.isSync()||this.decryptAacSamples(t,n+1,r)}).catch(r)}decryptAacSamples(t,n,r){for(;;n++){if(n>=t.length){r();return}if(!(t[n].unit.length<32)&&(this.decryptAacSample(t,n,r),!this.decrypter.isSync()))return}}getAvcEncryptedData(t){const n=Math.floor((t.length-48)/160)*16+16,r=new Int8Array(n);let o=0;for(let a=32;a{a.data=this.getAvcDecryptedUnit(s,c),this.decrypter.isSync()||this.decryptAvcSamples(t,n,r+1,o)}).catch(o)}decryptAvcSamples(t,n,r,o){if(t instanceof Uint8Array)throw new Error("Cannot decrypt samples of type Uint8Array");for(;;n++,r=0){if(n>=t.length){o();return}const a=t[n].units;for(;!(r>=a.length);r++){const s=a[r];if(!(s.data.length<=48||s.type!==1&&s.type!==5)&&(this.decryptAvcSample(t,n,r,o,s),!this.decrypter.isSync()))return}}}}class _2e{constructor(){this.VideoSample=null}createVideoSample(t,n,r){return{key:t,frame:!1,pts:n,dts:r,units:[],length:0}}getLastNalUnit(t){var n;let r=this.VideoSample,o;if((!r||r.units.length===0)&&(r=t[t.length-1]),(n=r)!=null&&n.units){const a=r.units;o=a[a.length-1]}return o}pushAccessUnit(t,n){if(t.units.length&&t.frame){if(t.pts===void 0){const r=n.samples,o=r.length;if(o){const a=r[o-1];t.pts=a.pts,t.dts=a.dts}else{n.dropped++;return}}n.samples.push(t)}}parseNALu(t,n,r){const o=n.byteLength;let a=t.naluState||0;const s=a,l=[];let c=0,d,h,p,m=-1,g=0;for(a===-1&&(m=0,g=this.getNALuType(n,0),a=0,c=1);c=0){const y={data:n.subarray(m,h),type:g};l.push(y)}else{const y=this.getLastNalUnit(t.samples);y&&(s&&c<=4-s&&y.state&&(y.data=y.data.subarray(0,y.data.byteLength-s)),h>0&&(y.data=Xc(y.data,n.subarray(0,h)),y.state=0))}c=0&&a>=0){const y={data:n.subarray(m,o),type:g,state:a};l.push(y)}if(l.length===0){const y=this.getLastNalUnit(t.samples);y&&(y.data=Xc(y.data,n))}return t.naluState=a,l}}class Tb{constructor(t){this.data=void 0,this.bytesAvailable=void 0,this.word=void 0,this.bitsAvailable=void 0,this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}loadWord(){const t=this.data,n=this.bytesAvailable,r=t.byteLength-n,o=new Uint8Array(4),a=Math.min(4,n);if(a===0)throw new Error("no bytes available");o.set(t.subarray(r,r+a)),this.word=new DataView(o.buffer).getUint32(0),this.bitsAvailable=a*8,this.bytesAvailable-=a}skipBits(t){let n;t=Math.min(t,this.bytesAvailable*8+this.bitsAvailable),this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,n=t>>3,t-=n<<3,this.bytesAvailable-=n,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)}readBits(t){let n=Math.min(this.bitsAvailable,t);const r=this.word>>>32-n;if(t>32&&fo.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=n,this.bitsAvailable>0)this.word<<=n;else if(this.bytesAvailable>0)this.loadWord();else throw new Error("no bits available");return n=t-n,n>0&&this.bitsAvailable?r<>>t)!==0)return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()}skipUEG(){this.skipBits(1+this.skipLZ())}skipEG(){this.skipBits(1+this.skipLZ())}readUEG(){const t=this.skipLZ();return this.readBits(t+1)-1}readEG(){const t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)}readBoolean(){return this.readBits(1)===1}readUByte(){return this.readBits(8)}readUShort(){return this.readBits(16)}readUInt(){return this.readBits(32)}}class swt extends _2e{parsePES(t,n,r,o){const a=this.parseNALu(t,r.data,o);let s=this.VideoSample,l,c=!1;r.data=null,s&&a.length&&!t.audFound&&(this.pushAccessUnit(s,t),s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),a.forEach(d=>{var h,p;switch(d.type){case 1:{let S=!1;l=!0;const k=d.data;if(c&&k.length>4){const C=this.readSliceType(k);(C===2||C===4||C===7||C===9)&&(S=!0)}if(S){var m;(m=s)!=null&&m.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.frame=!0,s.key=S;break}case 5:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 6:{l=!0,_G(d.data,1,r.pts,n.samples);break}case 7:{var g,y;l=!0,c=!0;const S=d.data,k=this.readSPS(S);if(!t.sps||t.width!==k.width||t.height!==k.height||((g=t.pixelRatio)==null?void 0:g[0])!==k.pixelRatio[0]||((y=t.pixelRatio)==null?void 0:y[1])!==k.pixelRatio[1]){t.width=k.width,t.height=k.height,t.pixelRatio=k.pixelRatio,t.sps=[S];const C=S.subarray(1,4);let x="avc1.";for(let E=0;E<3;E++){let _=C[E].toString(16);_.length<2&&(_="0"+_),x+=_}t.codec=x}break}case 8:l=!0,t.pps=[d.data];break;case 9:l=!0,t.audFound=!0,(p=s)!=null&&p.frame&&(this.pushAccessUnit(s,t),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;case 12:l=!0;break;default:l=!1;break}s&&l&&s.units.push(d)}),o&&s&&(this.pushAccessUnit(s,t),this.VideoSample=null)}getNALuType(t,n){return t[n]&31}readSliceType(t){const n=new Tb(t);return n.readUByte(),n.readUEG(),n.readUEG()}skipScalingList(t,n){let r=8,o=8,a;for(let s=0;s{var h,p;switch(d.type){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts)),s.frame=!0,l=!0;break;case 16:case 17:case 18:case 21:if(l=!0,c){var m;(m=s)!=null&&m.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null)}s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 19:case 20:l=!0,(h=s)!=null&&h.frame&&!s.key&&(this.pushAccessUnit(s,t),s=this.VideoSample=null),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0,s.frame=!0;break;case 39:l=!0,_G(d.data,2,r.pts,n.samples);break;case 32:l=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=mo(t.params,this.readVPS(d.data)),this.initVPS=d.data),t.vps=[d.data];break;case 33:if(l=!0,c=!0,t.vps!==void 0&&t.vps[0]!==this.initVPS&&t.sps!==void 0&&!this.matchSPS(t.sps[0],d.data)&&(this.initVPS=t.vps[0],t.sps=t.pps=void 0),!t.sps){const g=this.readSPS(d.data);t.width=g.width,t.height=g.height,t.pixelRatio=g.pixelRatio,t.codec=g.codecString,t.sps=[],typeof t.params!="object"&&(t.params={});for(const y in g.params)t.params[y]=g.params[y]}this.pushParameterSet(t.sps,d.data,t.vps),s||(s=this.VideoSample=this.createVideoSample(!0,r.pts,r.dts)),s.key=!0;break;case 34:if(l=!0,typeof t.params=="object"){if(!t.pps){t.pps=[];const g=this.readPPS(d.data);for(const y in g)t.params[y]=g[y]}this.pushParameterSet(t.pps,d.data,t.vps)}break;case 35:l=!0,t.audFound=!0,(p=s)!=null&&p.frame&&(this.pushAccessUnit(s,t),s=null),s||(s=this.VideoSample=this.createVideoSample(!1,r.pts,r.dts));break;default:l=!1;break}s&&l&&s.units.push(d)}),o&&s&&(this.pushAccessUnit(s,t),this.VideoSample=null)}pushParameterSet(t,n,r){(r&&r[0]===this.initVPS||!r&&!t.length)&&t.push(n)}getNALuType(t,n){return(t[n]&126)>>>1}ebsp2rbsp(t){const n=new Uint8Array(t.byteLength);let r=0;for(let o=0;o=2&&t[o]===3&&t[o-1]===0&&t[o-2]===0||(n[r]=t[o],r++);return new Uint8Array(n.buffer,0,r)}pushAccessUnit(t,n){super.pushAccessUnit(t,n),this.initVPS&&(this.initVPS=null)}readVPS(t){const n=new Tb(t);n.readUByte(),n.readUByte(),n.readBits(4),n.skipBits(2),n.readBits(6);const r=n.readBits(3),o=n.readBoolean();return{numTemporalLayers:r+1,temporalIdNested:o}}readSPS(t){const n=new Tb(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.readBits(4);const r=n.readBits(3);n.readBoolean();const o=n.readBits(2),a=n.readBoolean(),s=n.readBits(5),l=n.readUByte(),c=n.readUByte(),d=n.readUByte(),h=n.readUByte(),p=n.readUByte(),m=n.readUByte(),g=n.readUByte(),y=n.readUByte(),S=n.readUByte(),k=n.readUByte(),C=n.readUByte(),x=[],E=[];for(let Se=0;Se0)for(let Se=r;Se<8;Se++)n.readBits(2);for(let Se=0;Se1&&n.readEG();for(let gt=0;gt0&&yt<16?(ne=$t[yt-1],ae=Ct[yt-1]):yt===255&&(ne=n.readBits(16),ae=n.readBits(16))}if(n.readBoolean()&&n.readBoolean(),n.readBoolean()&&(n.readBits(3),n.readBoolean(),n.readBoolean()&&(n.readUByte(),n.readUByte(),n.readUByte())),n.readBoolean()&&(n.readUEG(),n.readUEG()),n.readBoolean(),n.readBoolean(),n.readBoolean(),ve=n.readBoolean(),ve&&(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG()),n.readBoolean()&&(Ce=n.readBits(32),we=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const Ct=n.readBoolean(),Dt=n.readBoolean();let on=!1;(Ct||Dt)&&(on=n.readBoolean(),on&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),on&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let lt=0;lt<=r;lt++){re=n.readBoolean();const xt=re||n.readBoolean();let Ye=!1;xt?n.readEG():Ye=n.readBoolean();const Ue=Ye?1:n.readUEG()+1;if(Ct)for(let ut=0;ut>Se&1)<<31-Se)>>>0;let _e=be.toString(16);return s===1&&_e==="2"&&(_e="6"),{codecString:`hvc1.${Ke}${s}.${_e}.${a?"H":"L"}${C}.B0`,params:{general_tier_flag:a,general_profile_idc:s,general_profile_space:o,general_profile_compatibility_flags:[l,c,d,h],general_constraint_indicator_flags:[p,m,g,y,S,k],general_level_idc:C,bit_depth:j+8,bit_depth_luma_minus8:j,bit_depth_chroma_minus8:U,min_spatial_segmentation_idc:Q,chroma_format_idc:_,frame_rate:{fixed:re,fps:we/Ce}},width:xe,height:Be,pixelRatio:[ne,ae]}}readPPS(t){const n=new Tb(this.ebsp2rbsp(t));n.readUByte(),n.readUByte(),n.skipUEG(),n.skipUEG(),n.skipBits(2),n.skipBits(3),n.skipBits(2),n.skipUEG(),n.skipUEG(),n.skipEG(),n.skipBits(2),n.readBoolean()&&n.skipUEG(),n.skipEG(),n.skipEG(),n.skipBits(4);const o=n.readBoolean(),a=n.readBoolean();let s=1;return a&&o?s=0:a?s=3:o&&(s=2),{parallelismType:s}}matchSPS(t,n){return String.fromCharCode.apply(null,t).substr(3)===String.fromCharCode.apply(null,n).substr(3)}}const ba=188;class Yp{constructor(t,n,r,o){this.logger=void 0,this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.sampleAes=null,this.pmtParsed=!1,this.audioCodec=void 0,this.videoCodec=void 0,this._pmtId=-1,this._videoTrack=void 0,this._audioTrack=void 0,this._id3Track=void 0,this._txtTrack=void 0,this.aacOverFlow=null,this.remainderData=null,this.videoParser=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.logger=o,this.videoParser=null}static probe(t,n){const r=Yp.syncOffset(t);return r>0&&n.warn(`MPEG2-TS detected but first sync word found @ offset ${r}`),r!==-1}static syncOffset(t){const n=t.length;let r=Math.min(ba*5,n-ba)+1,o=0;for(;o1&&(s===0&&l>2||c+ba>r))return s}else{if(l)return-1;break}o++}return-1}static createTrack(t,n){return{container:t==="video"||t==="audio"?"video/mp2t":void 0,type:t,id:E3e[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:0,duration:t==="audio"?n:void 0}}resetInitSegment(t,n,r,o){this.pmtParsed=!1,this._pmtId=-1,this._videoTrack=Yp.createTrack("video"),this._videoTrack.duration=o,this._audioTrack=Yp.createTrack("audio",o),this._id3Track=Yp.createTrack("id3"),this._txtTrack=Yp.createTrack("text"),this._audioTrack.segmentCodec="aac",this.videoParser=null,this.aacOverFlow=null,this.remainderData=null,this.audioCodec=n,this.videoCodec=r}resetTimeStamp(){}resetContiguity(){const{_audioTrack:t,_videoTrack:n,_id3Track:r}=this;t&&(t.pesData=null),n&&(n.pesData=null),r&&(r.pesData=null),this.aacOverFlow=null,this.remainderData=null}demux(t,n,r=!1,o=!1){r||(this.sampleAes=null);let a;const s=this._videoTrack,l=this._audioTrack,c=this._id3Track,d=this._txtTrack;let h=s.pid,p=s.pesData,m=l.pid,g=c.pid,y=l.pesData,S=c.pesData,k=null,C=this.pmtParsed,x=this._pmtId,E=t.length;if(this.remainderData&&(t=Xc(this.remainderData,t),E=t.length,this.remainderData=null),E>4;let N;if(I>1){if(N=P+5+t[P+4],N===P+ba)continue}else N=P+4;switch($){case h:M&&(p&&(a=S1(p,this.logger))&&(this.readyVideoParser(s.segmentCodec),this.videoParser!==null&&this.videoParser.parsePES(s,d,a,!1)),p={data:[],size:0}),p&&(p.data.push(t.subarray(N,P+ba)),p.size+=P+ba-N);break;case m:if(M){if(y&&(a=S1(y,this.logger)))switch(l.segmentCodec){case"aac":this.parseAACPES(l,a);break;case"mp3":this.parseMPEGPES(l,a);break;case"ac3":this.parseAC3PES(l,a);break}y={data:[],size:0}}y&&(y.data.push(t.subarray(N,P+ba)),y.size+=P+ba-N);break;case g:M&&(S&&(a=S1(S,this.logger))&&this.parseID3PES(c,a),S={data:[],size:0}),S&&(S.data.push(t.subarray(N,P+ba)),S.size+=P+ba-N);break;case 0:M&&(N+=t[N]+1),x=this._pmtId=lwt(t,N);break;case x:{M&&(N+=t[N]+1);const j=uwt(t,N,this.typeSupported,r,this.observer,this.logger);h=j.videoPid,h>0&&(s.pid=h,s.segmentCodec=j.segmentVideoCodec),m=j.audioPid,m>0&&(l.pid=m,l.segmentCodec=j.segmentAudioCodec),g=j.id3Pid,g>0&&(c.pid=g),k!==null&&!C&&(this.logger.warn(`MPEG-TS PMT found at ${P} after unknown PID '${k}'. Backtracking to sync byte @${_} to parse all TS packets.`),k=null,P=_-188),C=this.pmtParsed=!0;break}case 17:case 8191:break;default:k=$;break}}else T++;T>0&&Wz(this.observer,new Error(`Found ${T} TS packet/s that do not start with 0x47`),void 0,this.logger),s.pesData=p,l.pesData=y,c.pesData=S;const D={audioTrack:l,videoTrack:s,id3Track:c,textTrack:d};return o&&this.extractRemainingSamples(D),D}flush(){const{remainderData:t}=this;this.remainderData=null;let n;return t?n=this.demux(t,-1,!1,!0):n={videoTrack:this._videoTrack,audioTrack:this._audioTrack,id3Track:this._id3Track,textTrack:this._txtTrack},this.extractRemainingSamples(n),this.sampleAes?this.decrypt(n,this.sampleAes):n}extractRemainingSamples(t){const{audioTrack:n,videoTrack:r,id3Track:o,textTrack:a}=t,s=r.pesData,l=n.pesData,c=o.pesData;let d;if(s&&(d=S1(s,this.logger))?(this.readyVideoParser(r.segmentCodec),this.videoParser!==null&&(this.videoParser.parsePES(r,a,d,!0),r.pesData=null)):r.pesData=s,l&&(d=S1(l,this.logger))){switch(n.segmentCodec){case"aac":this.parseAACPES(n,d);break;case"mp3":this.parseMPEGPES(n,d);break;case"ac3":this.parseAC3PES(n,d);break}n.pesData=null}else l!=null&&l.size&&this.logger.log("last AAC PES packet truncated,might overlap between fragments"),n.pesData=l;c&&(d=S1(c,this.logger))?(this.parseID3PES(o,d),o.pesData=null):o.pesData=c}demuxSampleAes(t,n,r){const o=this.demux(t,r,!0,!this.config.progressive),a=this.sampleAes=new owt(this.observer,this.config,n);return this.decrypt(o,a)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new swt:t==="hevc"&&(this.videoParser=new awt))}decrypt(t,n){return new Promise(r=>{const{audioTrack:o,videoTrack:a}=t;o.samples&&o.segmentCodec==="aac"?n.decryptAacSamples(o.samples,0,()=>{a.samples?n.decryptAvcSamples(a.samples,0,0,()=>{r(t)}):r(t)}):a.samples&&n.decryptAvcSamples(a.samples,0,0,()=>{r(t)})})}destroy(){this.observer&&this.observer.removeAllListeners(),this.config=this.logger=this.observer=null,this.aacOverFlow=this.videoParser=this.remainderData=this.sampleAes=null,this._videoTrack=this._audioTrack=this._id3Track=this._txtTrack=void 0}parseAACPES(t,n){let r=0;const o=this.aacOverFlow;let a=n.data;if(o){this.aacOverFlow=null;const p=o.missing,m=o.sample.unit.byteLength;if(p===-1)a=Xc(o.sample.unit,a);else{const g=m-p;o.sample.unit.set(a.subarray(0,p),g),t.samples.push(o.sample),r=o.missing}}let s,l;for(s=r,l=a.length;s0;)l+=c}}parseID3PES(t,n){if(n.pts===void 0){this.logger.warn("[tsdemuxer]: ID3 PES unknown PTS");return}const r=mo({},n,{type:this._videoTrack?nc.emsg:nc.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function Hz(e,t){return((e[t+1]&31)<<8)+e[t+2]}function lwt(e,t){return(e[t+10]&31)<<8|e[t+11]}function uwt(e,t,n,r,o,a){const s={audioPid:-1,videoPid:-1,id3Pid:-1,segmentVideoCodec:"avc",segmentAudioCodec:"aac"},l=(e[t+1]&15)<<8|e[t+2],c=t+3+l-4,d=(e[t+10]&15)<<8|e[t+11];for(t+=12+d;t0){let m=t+5,g=p;for(;g>2;){switch(e[m]){case 106:n.ac3!==!0?a.log("AC-3 audio found, not supported in this browser for now"):(s.audioPid=h,s.segmentAudioCodec="ac3");break}const S=e[m+1]+2;m+=S,g-=S}}break;case 194:case 135:return Wz(o,new Error("Unsupported EC-3 in M2TS found"),void 0,a),s;case 36:s.videoPid===-1&&(s.videoPid=h,s.segmentVideoCodec="hevc",a.log("HEVC in M2TS found"));break}t+=p+5}return s}function Wz(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(Ie.ERROR,Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.FRAG_PARSING_ERROR,fatal:!1,levelRetry:n,error:t,reason:t.message})}function jF(e,t){t.log(`${e} with AES-128-CBC encryption found in unencrypted stream`)}function S1(e,t){let n=0,r,o,a,s,l;const c=e.data;if(!e||e.size===0)return null;for(;c[0].length<19&&c.length>1;)c[0]=Xc(c[0],c[1]),c.splice(1,1);if(r=c[0],(r[0]<<16)+(r[1]<<8)+r[2]===1){if(o=(r[4]<<8)+r[5],o&&o>e.size-6)return null;const h=r[7];h&192&&(s=(r[9]&14)*536870912+(r[10]&255)*4194304+(r[11]&254)*16384+(r[12]&255)*128+(r[13]&254)/2,h&64?(l=(r[14]&14)*536870912+(r[15]&255)*4194304+(r[16]&254)*16384+(r[17]&255)*128+(r[18]&254)/2,s-l>60*9e4&&(t.warn(`${Math.round((s-l)/9e4)}s delta between PTS and DTS, align them`),s=l)):l=s),a=r[8];let p=a+9;if(e.size<=p)return null;e.size-=p;const m=new Uint8Array(e.size);for(let g=0,y=c.length;gS){p-=S;continue}else r=r.subarray(p),S-=p,p=0;m.set(r,n),n+=S}return o&&(o-=a+3),{data:m,pts:s,dts:l,len:o}}return null}class cwt{static getSilentFrame(t,n){switch(t){case"mp4a.40.2":if(n===1)return new Uint8Array([0,200,0,128,35,128]);if(n===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(n===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(n===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(n===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(n===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(n===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(n===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);break}}}const Op=Math.pow(2,32)-1;class Ut{static init(){Ut.types={avc1:[],avcC:[],hvc1:[],hvcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],dac3:[],"ac-3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]};let t;for(t in Ut.types)Ut.types.hasOwnProperty(t)&&(Ut.types[t]=[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3)]);const n=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),r=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]);Ut.HDLR_TYPES={video:n,audio:r};const o=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);Ut.STTS=Ut.STSC=Ut.STCO=a,Ut.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),Ut.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),Ut.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),Ut.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);const s=new Uint8Array([105,115,111,109]),l=new Uint8Array([97,118,99,49]),c=new Uint8Array([0,0,0,1]);Ut.FTYP=Ut.box(Ut.types.ftyp,s,c,s,l),Ut.DINF=Ut.box(Ut.types.dinf,Ut.box(Ut.types.dref,o))}static box(t,...n){let r=8,o=n.length;const a=o;for(;o--;)r+=n[o].byteLength;const s=new Uint8Array(r);for(s[0]=r>>24&255,s[1]=r>>16&255,s[2]=r>>8&255,s[3]=r&255,s.set(t,4),o=0,r=8;o>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,o>>24,o>>16&255,o>>8&255,o&255,85,196,0,0]))}static mdia(t){return Ut.box(Ut.types.mdia,Ut.mdhd(t.timescale||0,t.duration||0),Ut.hdlr(t.type),Ut.minf(t))}static mfhd(t){return Ut.box(Ut.types.mfhd,new Uint8Array([0,0,0,0,t>>24,t>>16&255,t>>8&255,t&255]))}static minf(t){return t.type==="audio"?Ut.box(Ut.types.minf,Ut.box(Ut.types.smhd,Ut.SMHD),Ut.DINF,Ut.stbl(t)):Ut.box(Ut.types.minf,Ut.box(Ut.types.vmhd,Ut.VMHD),Ut.DINF,Ut.stbl(t))}static moof(t,n,r){return Ut.box(Ut.types.moof,Ut.mfhd(t),Ut.traf(r,n))}static moov(t){let n=t.length;const r=[];for(;n--;)r[n]=Ut.trak(t[n]);return Ut.box.apply(null,[Ut.types.moov,Ut.mvhd(t[0].timescale||0,t[0].duration||0)].concat(r).concat(Ut.mvex(t)))}static mvex(t){let n=t.length;const r=[];for(;n--;)r[n]=Ut.trex(t[n]);return Ut.box.apply(null,[Ut.types.mvex,...r])}static mvhd(t,n){n*=t;const r=Math.floor(n/(Op+1)),o=Math.floor(n%(Op+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,t>>24&255,t>>16&255,t>>8&255,t&255,r>>24,r>>16&255,r>>8&255,r&255,o>>24,o>>16&255,o>>8&255,o&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return Ut.box(Ut.types.mvhd,a)}static sdtp(t){const n=t.samples||[],r=new Uint8Array(4+n.length);let o,a;for(o=0;o>>8&255),n.push(s&255),n=n.concat(Array.prototype.slice.call(a));for(o=0;o>>8&255),r.push(s&255),r=r.concat(Array.prototype.slice.call(a));const l=Ut.box(Ut.types.avcC,new Uint8Array([1,n[3],n[4],n[5],255,224|t.sps.length].concat(n).concat([t.pps.length]).concat(r))),c=t.width,d=t.height,h=t.pixelRatio[0],p=t.pixelRatio[1];return Ut.box(Ut.types.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,c>>8&255,c&255,d>>8&255,d&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),l,Ut.box(Ut.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ut.box(Ut.types.pasp,new Uint8Array([h>>24,h>>16&255,h>>8&255,h&255,p>>24,p>>16&255,p>>8&255,p&255])))}static esds(t){const n=t.config;return new Uint8Array([0,0,0,0,3,25,0,1,0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,...n,6,1,2])}static audioStsd(t){const n=t.samplerate||0;return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,t.channelCount||0,0,16,0,0,0,0,n>>8&255,n&255,0,0])}static mp4a(t){return Ut.box(Ut.types.mp4a,Ut.audioStsd(t),Ut.box(Ut.types.esds,Ut.esds(t)))}static mp3(t){return Ut.box(Ut.types[".mp3"],Ut.audioStsd(t))}static ac3(t){return Ut.box(Ut.types["ac-3"],Ut.audioStsd(t),Ut.box(Ut.types.dac3,t.config))}static stsd(t){const{segmentCodec:n}=t;if(t.type==="audio"){if(n==="aac")return Ut.box(Ut.types.stsd,Ut.STSD,Ut.mp4a(t));if(n==="ac3"&&t.config)return Ut.box(Ut.types.stsd,Ut.STSD,Ut.ac3(t));if(n==="mp3"&&t.codec==="mp3")return Ut.box(Ut.types.stsd,Ut.STSD,Ut.mp3(t))}else if(t.pps&&t.sps){if(n==="avc")return Ut.box(Ut.types.stsd,Ut.STSD,Ut.avc1(t));if(n==="hevc"&&t.vps)return Ut.box(Ut.types.stsd,Ut.STSD,Ut.hvc1(t))}else throw new Error("video track missing pps or sps");throw new Error(`unsupported ${t.type} segment codec (${n}/${t.codec})`)}static tkhd(t){const n=t.id,r=(t.duration||0)*(t.timescale||0),o=t.width||0,a=t.height||0,s=Math.floor(r/(Op+1)),l=Math.floor(r%(Op+1));return Ut.box(Ut.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,n>>24&255,n>>16&255,n>>8&255,n&255,0,0,0,0,s>>24,s>>16&255,s>>8&255,s&255,l>>24,l>>16&255,l>>8&255,l&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,o>>8&255,o&255,0,0,a>>8&255,a&255,0,0]))}static traf(t,n){const r=Ut.sdtp(t),o=t.id,a=Math.floor(n/(Op+1)),s=Math.floor(n%(Op+1));return Ut.box(Ut.types.traf,Ut.box(Ut.types.tfhd,new Uint8Array([0,0,0,0,o>>24,o>>16&255,o>>8&255,o&255])),Ut.box(Ut.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,a&255,s>>24,s>>16&255,s>>8&255,s&255])),Ut.trun(t,r.length+16+20+8+16+8+8),r)}static trak(t){return t.duration=t.duration||4294967295,Ut.box(Ut.types.trak,Ut.tkhd(t),Ut.mdia(t))}static trex(t){const n=t.id;return Ut.box(Ut.types.trex,new Uint8Array([0,0,0,0,n>>24,n>>16&255,n>>8&255,n&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))}static trun(t,n){const r=t.samples||[],o=r.length,a=12+16*o,s=new Uint8Array(a);let l,c,d,h,p,m;for(n+=8+a,s.set([t.type==="video"?1:0,0,15,1,o>>>24&255,o>>>16&255,o>>>8&255,o&255,n>>>24&255,n>>>16&255,n>>>8&255,n&255],0),l=0;l>>24&255,d>>>16&255,d>>>8&255,d&255,h>>>24&255,h>>>16&255,h>>>8&255,h&255,p.isLeading<<2|p.dependsOn,p.isDependedOn<<6|p.hasRedundancy<<4|p.paddingValue<<1|p.isNonSync,p.degradPrio&61440,p.degradPrio&15,m>>>24&255,m>>>16&255,m>>>8&255,m&255],12+16*l);return Ut.box(Ut.types.trun,s)}static initSegment(t){Ut.types||Ut.init();const n=Ut.moov(t);return Xc(Ut.FTYP,n)}static hvc1(t){const n=t.params,r=[t.vps,t.sps,t.pps],o=4,a=new Uint8Array([1,n.general_profile_space<<6|(n.general_tier_flag?32:0)|n.general_profile_idc,n.general_profile_compatibility_flags[0],n.general_profile_compatibility_flags[1],n.general_profile_compatibility_flags[2],n.general_profile_compatibility_flags[3],n.general_constraint_indicator_flags[0],n.general_constraint_indicator_flags[1],n.general_constraint_indicator_flags[2],n.general_constraint_indicator_flags[3],n.general_constraint_indicator_flags[4],n.general_constraint_indicator_flags[5],n.general_level_idc,240|n.min_spatial_segmentation_idc>>8,255&n.min_spatial_segmentation_idc,252|n.parallelismType,252|n.chroma_format_idc,248|n.bit_depth_luma_minus8,248|n.bit_depth_chroma_minus8,0,parseInt(n.frame_rate.fps),o-1|n.temporal_id_nested<<2|n.num_temporal_layers<<3|(n.frame_rate.fixed?64:0),r.length]);let s=a.length;for(let y=0;y>8,r[y][S].length&255]),s),s+=2,l.set(r[y][S],s),s+=r[y][S].length}const d=Ut.box(Ut.types.hvcC,l),h=t.width,p=t.height,m=t.pixelRatio[0],g=t.pixelRatio[1];return Ut.box(Ut.types.hvc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,h>>8&255,h&255,p>>8&255,p&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),d,Ut.box(Ut.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),Ut.box(Ut.types.pasp,new Uint8Array([m>>24,m>>16&255,m>>8&255,m&255,g>>24,g>>16&255,g>>8&255,g&255])))}}Ut.types=void 0;Ut.HDLR_TYPES=void 0;Ut.STTS=void 0;Ut.STSC=void 0;Ut.STCO=void 0;Ut.STSZ=void 0;Ut.VMHD=void 0;Ut.SMHD=void 0;Ut.STSD=void 0;Ut.FTYP=void 0;Ut.DINF=void 0;const S2e=9e4;function OG(e,t,n=1,r=!1){const o=e*t*n;return r?Math.round(o):o}function dwt(e,t,n=1,r=!1){return OG(e,t,1/n,r)}function m4(e,t=!1){return OG(e,1e3,1/S2e,t)}function fwt(e,t=1){return OG(e,S2e,1/t)}function kue(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const hwt=10*1e3,pwt=1024,vwt=1152,mwt=1536;let k1=null,VF=null;function xue(e,t,n,r){return{duration:t,size:n,cts:r,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:e?2:1,isNonSync:e?0:1}}}class ZE extends ed{constructor(t,n,r,o){if(super("mp4-remuxer",o),this.observer=void 0,this.config=void 0,this.typeSupported=void 0,this.ISGenerated=!1,this._initPTS=null,this._initDTS=null,this.nextVideoTs=null,this.nextAudioTs=null,this.videoSampleDuration=null,this.isAudioContiguous=!1,this.isVideoContiguous=!1,this.videoTrackConfig=void 0,this.observer=t,this.config=n,this.typeSupported=r,this.ISGenerated=!1,k1===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);k1=s?parseInt(s[1]):0}if(VF===null){const a=navigator.userAgent.match(/Safari\/(\d+)/i);VF=a?parseInt(a[1]):0}}destroy(){this.config=this.videoTrackConfig=this._initPTS=this._initDTS=null}resetTimeStamp(t){const n=this._initPTS;(!n||!t||t.trackId!==n.trackId||t.baseTime!==n.baseTime||t.timescale!==n.timescale)&&this.log(`Reset initPTS: ${n&&kue(n)} > ${t&&kue(t)}`),this._initPTS=this._initDTS=t}resetNextTimestamp(){this.log("reset next timestamp"),this.isVideoContiguous=!1,this.isAudioContiguous=!1}resetInitSegment(){this.log("ISGenerated flag reset"),this.ISGenerated=!1,this.videoTrackConfig=void 0}getVideoStartPts(t){let n=!1;const r=t[0].pts,o=t.reduce((a,s)=>{let l=s.pts,c=l-a;return c<-4294967296&&(n=!0,l=ec(l,r),c=l-a),c>0?a:l},r);return n&&this.debug("PTS rollover detected"),o}remux(t,n,r,o,a,s,l,c){let d,h,p,m,g,y,S=a,k=a;const C=t.pid>-1,x=n.pid>-1,E=n.samples.length,_=t.samples.length>0,T=l&&E>0||E>1;if((!C||_)&&(!x||T)||this.ISGenerated||l){if(this.ISGenerated){var P,M,$,I;const z=this.videoTrackConfig;(z&&(n.width!==z.width||n.height!==z.height||((P=n.pixelRatio)==null?void 0:P[0])!==((M=z.pixelRatio)==null?void 0:M[0])||(($=n.pixelRatio)==null?void 0:$[1])!==((I=z.pixelRatio)==null?void 0:I[1]))||!z&&T||this.nextAudioTs===null&&_)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(t,n,a,s));const N=this.isVideoContiguous;let j=-1,U;if(T&&(j=gwt(n.samples),!N&&this.config.forceKeyFrameOnDiscontinuity))if(y=!0,j>0){this.warn(`Dropped ${j} out of ${E} video samples due to a missing keyframe`);const z=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(j),n.dropped+=j,k+=(n.samples[0].pts-z)/n.inputTimeScale,U=k}else j===-1&&(this.warn(`No keyframe found out of ${E} video samples`),y=!1);if(this.ISGenerated){if(_&&T){const z=this.getVideoStartPts(n.samples),X=(ec(t.samples[0].pts,z)-z)/n.inputTimeScale;S+=Math.max(0,X),k+=Math.max(0,-X)}if(_){if(t.samplerate||(this.warn("regenerate InitSegment as audio detected"),p=this.generateIS(t,n,a,s)),h=this.remuxAudio(t,S,this.isAudioContiguous,s,x||T||c===Jn.AUDIO?k:void 0),T){const z=h?h.endPTS-h.startPTS:0;n.inputTimeScale||(this.warn("regenerate InitSegment as video detected"),p=this.generateIS(t,n,a,s)),d=this.remuxVideo(n,k,N,z)}}else T&&(d=this.remuxVideo(n,k,N,0));d&&(d.firstKeyFrame=j,d.independent=j!==-1,d.firstKeyFramePTS=U)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(g=k2e(r,a,this._initPTS,this._initDTS)),o.samples.length&&(m=x2e(o,a,this._initPTS))),{audio:h,video:d,initSegment:p,independent:y,text:m,id3:g}}computeInitPts(t,n,r,o){const a=Math.round(r*n);let s=ec(t,a);if(s0?Q-1:Q].dts&&(x=!0)}x&&s.sort(function(Q,ne){const ae=Q.dts-ne.dts,re=Q.pts-ne.pts;return ae||re}),y=s[0].dts,S=s[s.length-1].dts;const _=S-y,T=_?Math.round(_/(c-1)):g||t.inputTimeScale/30;if(r){const Q=y-E,ne=Q>T,ae=Q<-1;if((ne||ae)&&(ne?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${m4(Q,!0)} ms (${Q}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${m4(-Q,!0)} ms (${Q}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!ae||E>=s[0].pts||k1)){y=E;const re=s[0].pts-Q;if(ne)s[0].dts=y,s[0].pts=re;else{let Ce=!0;for(let we=0;were&&Ce);we++){const ve=s[we].pts;if(s[we].dts-=Q,s[we].pts-=Q,we0?ne.dts-s[Q-1].dts:T;if(Ce=Q>0?ne.pts-s[Q-1].pts:T,ve.stretchShortVideoTrack&&this.nextAudioTs!==null){const xe=Math.floor(ve.maxBufferHole*a),Be=(o?k+o*a:this.nextAudioTs+h)-ne.pts;Be>xe?(g=Be-me,g<0?g=me:j=!0,this.log(`It is approximately ${Be/90} ms to the next segment; using duration ${g/90} ms for the last video frame.`)):g=me}else g=me}const we=Math.round(ne.pts-ne.dts);U=Math.min(U,g),G=Math.max(G,g),z=Math.min(z,Ce),X=Math.max(X,Ce),l.push(xue(ne.key,g,re,we))}if(l.length){if(k1){if(k1<70){const Q=l[0].flags;Q.dependsOn=2,Q.isNonSync=0}}else if(VF&&X-z0&&(o&&Math.abs(E-(C+x))<9e3||Math.abs(ec(S[0].pts,E)-(C+x))<20*h),S.forEach(function(X){X.pts=ec(X.pts,E)}),!r||C<0){const X=S.length;if(S=S.filter(ie=>ie.pts>=0),X!==S.length&&this.warn(`Removed ${S.length-X} of ${X} samples (initPTS ${x} / ${s})`),!S.length)return;a===0?C=0:o&&!y?C=Math.max(0,E-x):C=S[0].pts-x}if(t.segmentCodec==="aac"){const X=this.config.maxAudioFramesDrift;for(let ie=0,ee=C+x;ie=X*h&&ne0){P+=k;try{D=new Uint8Array(P)}catch(ne){this.observer.emit(Ie.ERROR,Ie.ERROR,{type:lr.MUX_ERROR,details:Wt.REMUX_ALLOC_ERROR,fatal:!1,error:ne,bytes:P,reason:`fail allocating audio mdat ${P}`});return}m||(new DataView(D.buffer).setUint32(0,P),D.set(Ut.types.mdat,4))}else return;D.set(W,k);const Q=W.byteLength;k+=Q,g.push(xue(!0,d,Q,0)),T=q}const $=g.length;if(!$)return;const I=g[g.length-1];C=T-x,this.nextAudioTs=C+c*I.duration;const N=m?new Uint8Array(0):Ut.moof(t.sequenceNumber++,_/c,mo({},t,{samples:g}));t.samples=[];const j=(_-x)/s,U=C/s,G={data1:N,data2:D,startPTS:j,endPTS:U,startDTS:j,endDTS:U,type:"audio",hasAudio:!0,hasVideo:!1,nb:$};return this.isAudioContiguous=!0,G}}function ec(e,t){let n;if(t===null)return e;for(t4294967296;)e+=n;return e}function gwt(e){for(let t=0;ts.pts-l.pts);const a=e.samples;return e.samples=[],{samples:a}}class ywt extends ed{constructor(t,n,r,o){super("passthrough-remuxer",o),this.emitInitSegment=!1,this.audioCodec=void 0,this.videoCodec=void 0,this.initData=void 0,this.initPTS=null,this.initTracks=void 0,this.lastEndTime=null,this.isVideoContiguous=!1}destroy(){}resetTimeStamp(t){this.lastEndTime=null;const n=this.initPTS;n&&t&&n.baseTime===t.baseTime&&n.timescale===t.timescale||(this.initPTS=t)}resetNextTimestamp(){this.isVideoContiguous=!1,this.lastEndTime=null}resetInitSegment(t,n,r,o){this.audioCodec=n,this.videoCodec=r,this.generateInitSegment(t,o),this.emitInitSegment=!0}generateInitSegment(t,n){let{audioCodec:r,videoCodec:o}=this;if(!(t!=null&&t.byteLength)){this.initTracks=void 0,this.initData=void 0;return}const{audio:a,video:s}=this.initData=I3e(t);if(n)oxt(t,n);else{const c=a||s;c!=null&&c.encrypted&&this.warn(`Init segment with encrypted track with has no key ("${c.codec}")!`)}a&&(r=Cue(a,xo.AUDIO,this)),s&&(o=Cue(s,xo.VIDEO,this));const l={};a&&s?l.audiovideo={container:"video/mp4",codec:r+","+o,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:t,id:"main"}:a?l.audio={container:"audio/mp4",codec:r,encrypted:a.encrypted,initSegment:t,id:"audio"}:s?l.video={container:"video/mp4",codec:o,supplemental:s.supplemental,encrypted:s.encrypted,initSegment:t,id:"main"}:this.warn("initSegment does not contain moov or trak boxes."),this.initTracks=l}remux(t,n,r,o,a,s){var l,c;let{initPTS:d,lastEndTime:h}=this;const p={audio:void 0,video:void 0,text:o,id3:r,initSegment:void 0};Bn(h)||(h=this.lastEndTime=a||0);const m=n.samples;if(!m.length)return p;const g={initPTS:void 0,timescale:void 0,trackId:void 0};let y=this.initData;if((l=y)!=null&&l.length||(this.generateInitSegment(m),y=this.initData),!((c=y)!=null&&c.length))return this.warn("Failed to generate initSegment."),p;this.emitInitSegment&&(g.tracks=this.initTracks,this.emitInitSegment=!1);const S=axt(m,y,this),k=y.audio?S[y.audio.id]:null,C=y.video?S[y.video.id]:null,x=gC(C,1/0),E=gC(k,1/0),_=gC(C,0,!0),T=gC(k,0,!0);let D=a,P=0;const M=k&&(!C||!d&&E0?this.lastEndTime=N:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const j=!!y.audio,U=!!y.video;let z="";j&&(z+="audio"),U&&(z+="video");const G=(y.audio?y.audio.encrypted:!1)||(y.video?y.video.encrypted:!1),X={data1:m,startPTS:I,startDTS:I,endPTS:N,endDTS:N,type:z,hasAudio:j,hasVideo:U,nb:1,dropped:0,encrypted:G};p.audio=j&&!U?X:void 0,p.video=U?X:void 0;const ie=C?.sampleCount;if(ie){const ee=C.keyFrameIndex,W=ee!==-1;X.nb=ie,X.dropped=ee===0||this.isVideoContiguous?0:W?ee:ie,X.independent=W,X.firstKeyFrame=ee,W&&C.keyFrameStart&&(X.firstKeyFramePTS=(C.keyFrameStart-d.baseTime)/d.timescale),this.isVideoContiguous||(p.independent=W),this.isVideoContiguous||(this.isVideoContiguous=W),X.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${ee}/${ie} dropped: ${X.dropped} start: ${X.firstKeyFramePTS||"NA"}`)}return p.initSegment=g,p.id3=k2e(r,a,d,d),o.samples.length&&(p.text=x2e(o,a,d)),p}}function gC(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function bwt(e,t,n,r){if(e===null)return!0;const o=Math.max(r,1),a=t-e.baseTime/e.timescale;return Math.abs(a-n)>o}function Cue(e,t,n){const r=e.codec;return r&&r.length>4?r:t===xo.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?ET(r,!1):(n.warn(`Unhandled audio codec "${r}" in mp4 MAP`),r||"mp4a"):(n.warn(`Unhandled video codec "${r}" in mp4 MAP`),r||"avc1")}let gh;try{gh=self.performance.now.bind(self.performance)}catch{gh=Date.now}const JE=[{demux:iwt,remux:ywt},{demux:Yp,remux:ZE},{demux:ewt,remux:ZE},{demux:nwt,remux:ZE}];JE.splice(2,0,{demux:twt,remux:ZE});class wue{constructor(t,n,r,o,a,s){this.asyncResult=!1,this.logger=void 0,this.observer=void 0,this.typeSupported=void 0,this.config=void 0,this.id=void 0,this.demuxer=void 0,this.remuxer=void 0,this.decrypter=void 0,this.probe=void 0,this.decryptionPromise=null,this.transmuxConfig=void 0,this.currentTransmuxState=void 0,this.observer=t,this.typeSupported=n,this.config=r,this.id=a,this.logger=s}configure(t){this.transmuxConfig=t,this.decrypter&&this.decrypter.reset()}push(t,n,r,o){const a=r.transmuxing;a.executeStart=gh();let s=new Uint8Array(t);const{currentTransmuxState:l,transmuxConfig:c}=this;o&&(this.currentTransmuxState=o);const{contiguous:d,discontinuity:h,trackSwitch:p,accurateTimeOffset:m,timeOffset:g,initSegmentChange:y}=o||l,{audioCodec:S,videoCodec:k,defaultInitPts:C,duration:x,initSegmentData:E}=c,_=_wt(s,n);if(_&&vy(_.method)){const M=this.getDecrypter(),$=EG(_.method);if(M.isSync()){let I=M.softwareDecrypt(s,_.key.buffer,_.iv.buffer,$);if(r.part>-1){const j=M.flush();I=j&&j.buffer}if(!I)return a.executeEnd=gh(),zF(r);s=new Uint8Array(I)}else return this.asyncResult=!0,this.decryptionPromise=M.webCryptoDecrypt(s,_.key.buffer,_.iv.buffer,$).then(I=>{const N=this.push(I,null,r);return this.decryptionPromise=null,N}),this.decryptionPromise}const T=this.needsProbing(h,p);if(T){const M=this.configureTransmuxer(s);if(M)return this.logger.warn(`[transmuxer] ${M.message}`),this.observer.emit(Ie.ERROR,Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.FRAG_PARSING_ERROR,fatal:!1,error:M,reason:M.message}),a.executeEnd=gh(),zF(r)}(h||p||y||T)&&this.resetInitSegment(E,S,k,x,n),(h||y||T)&&this.resetInitialTimestamp(C),d||this.resetContiguity();const D=this.transmux(s,_,g,m,r);this.asyncResult=x_(D);const P=this.currentTransmuxState;return P.contiguous=!0,P.discontinuity=!1,P.trackSwitch=!1,a.executeEnd=gh(),D}flush(t){const n=t.transmuxing;n.executeStart=gh();const{decrypter:r,currentTransmuxState:o,decryptionPromise:a}=this;if(a)return this.asyncResult=!0,a.then(()=>this.flush(t));const s=[],{timeOffset:l}=o;if(r){const p=r.flush();p&&s.push(this.push(p.buffer,null,t))}const{demuxer:c,remuxer:d}=this;if(!c||!d){n.executeEnd=gh();const p=[zF(t)];return this.asyncResult?Promise.resolve(p):p}const h=c.flush(l);return x_(h)?(this.asyncResult=!0,h.then(p=>(this.flushRemux(s,p,t),s))):(this.flushRemux(s,h,t),this.asyncResult?Promise.resolve(s):s)}flushRemux(t,n,r){const{audioTrack:o,videoTrack:a,id3Track:s,textTrack:l}=n,{accurateTimeOffset:c,timeOffset:d}=this.currentTransmuxState;this.logger.log(`[transmuxer.ts]: Flushed ${this.id} sn: ${r.sn}${r.part>-1?" part: "+r.part:""} of ${this.id===Jn.MAIN?"level":"track"} ${r.level}`);const h=this.remuxer.remux(o,a,s,l,d,c,!0,this.id);t.push({remuxResult:h,chunkMeta:r}),r.transmuxing.executeEnd=gh()}resetInitialTimestamp(t){const{demuxer:n,remuxer:r}=this;!n||!r||(n.resetTimeStamp(t),r.resetTimeStamp(t))}resetContiguity(){const{demuxer:t,remuxer:n}=this;!t||!n||(t.resetContiguity(),n.resetNextTimestamp())}resetInitSegment(t,n,r,o,a){const{demuxer:s,remuxer:l}=this;!s||!l||(s.resetInitSegment(t,n,r,o),l.resetInitSegment(t,n,r,a))}destroy(){this.demuxer&&(this.demuxer.destroy(),this.demuxer=void 0),this.remuxer&&(this.remuxer.destroy(),this.remuxer=void 0)}transmux(t,n,r,o,a){let s;return n&&n.method==="SAMPLE-AES"?s=this.transmuxSampleAes(t,n,r,o,a):s=this.transmuxUnencrypted(t,r,o,a),s}transmuxUnencrypted(t,n,r,o){const{audioTrack:a,videoTrack:s,id3Track:l,textTrack:c}=this.demuxer.demux(t,n,!1,!this.config.progressive);return{remuxResult:this.remuxer.remux(a,s,l,c,n,r,!1,this.id),chunkMeta:o}}transmuxSampleAes(t,n,r,o,a){return this.demuxer.demuxSampleAes(t,n,r).then(s=>({remuxResult:this.remuxer.remux(s.audioTrack,s.videoTrack,s.id3Track,s.textTrack,r,o,!1,this.id),chunkMeta:a}))}configureTransmuxer(t){const{config:n,observer:r,typeSupported:o}=this;let a;for(let p=0,m=JE.length;p0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const zF=e=>({remuxResult:{},chunkMeta:e});function x_(e){return"then"in e&&e.then instanceof Function}class Swt{constructor(t,n,r,o,a){this.audioCodec=void 0,this.videoCodec=void 0,this.initSegmentData=void 0,this.duration=void 0,this.defaultInitPts=void 0,this.audioCodec=t,this.videoCodec=n,this.initSegmentData=r,this.duration=o,this.defaultInitPts=a||null}}class kwt{constructor(t,n,r,o,a,s){this.discontinuity=void 0,this.contiguous=void 0,this.accurateTimeOffset=void 0,this.trackSwitch=void 0,this.timeOffset=void 0,this.initSegmentChange=void 0,this.discontinuity=t,this.contiguous=n,this.accurateTimeOffset=r,this.trackSwitch=o,this.timeOffset=a,this.initSegmentChange=s}}let Eue=0;class C2e{constructor(t,n,r,o){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Eue++,this.observer=void 0,this.frag=null,this.part=null,this.useWorker=void 0,this.workerContext=null,this.transmuxer=null,this.onTransmuxComplete=void 0,this.onFlush=void 0,this.onWorkerMessage=c=>{const d=c.data,h=this.hls;if(!(!h||!(d!=null&&d.event)||d.instanceNo!==this.instanceNo))switch(d.event){case"init":{var p;const m=(p=this.workerContext)==null?void 0:p.objectURL;m&&self.URL.revokeObjectURL(m);break}case"transmuxComplete":{this.handleTransmuxComplete(d.data);break}case"flush":{this.onFlush(d.data);break}case"workerLog":{h.logger[d.data.logType]&&h.logger[d.data.logType](d.data.message);break}default:{d.data=d.data||{},d.data.frag=this.frag,d.data.part=this.part,d.data.id=this.id,h.trigger(d.event,d.data);break}}},this.onWorkerError=c=>{if(!this.hls)return;const d=new Error(`${c.message} (${c.filename}:${c.lineno})`);this.hls.config.enableWorker=!1,this.hls.logger.warn(`Error in "${this.id}" Web Worker, fallback to inline`),this.hls.trigger(Ie.ERROR,{type:lr.OTHER_ERROR,details:Wt.INTERNAL_EXCEPTION,fatal:!1,event:"demuxerWorker",error:d})};const a=t.config;this.hls=t,this.id=n,this.useWorker=!!a.enableWorker,this.onTransmuxComplete=r,this.onFlush=o;const s=(c,d)=>{d=d||{},d.frag=this.frag||void 0,c===Ie.ERROR&&(d=d,d.parent=this.id,d.part=this.part,this.error=d.error),this.hls.trigger(c,d)};this.observer=new IG,this.observer.on(Ie.FRAG_DECRYPTED,s),this.observer.on(Ie.ERROR,s);const l=Vle(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const c=this.hls.logger;if(a.workerPath||ECt()){try{a.workerPath?(c.log(`loading Web Worker ${a.workerPath} for "${n}"`),this.workerContext=ACt(a.workerPath)):(c.log(`injecting Web Worker for "${n}"`),this.workerContext=TCt());const{worker:h}=this.workerContext;h.addEventListener("message",this.onWorkerMessage),h.addEventListener("error",this.onWorkerError),h.postMessage({instanceNo:this.instanceNo,cmd:"init",typeSupported:l,id:n,config:Co(a)})}catch(h){c.warn(`Error setting up "${n}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new wue(this.observer,l,a,"",n,t.logger)}return}}this.transmuxer=new wue(this.observer,l,a,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Eue++;const n=this.hls.config,r=Vle(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,config:Co(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),ICt(this.hls.config.workerPath)}}destroy(){if(this.workerContext)this.terminateWorker(),this.onWorkerMessage=this.onWorkerError=null;else{const n=this.transmuxer;n&&(n.destroy(),this.transmuxer=null)}const t=this.observer;t&&t.removeAllListeners(),this.frag=null,this.part=null,this.observer=null,this.hls=null}push(t,n,r,o,a,s,l,c,d,h){var p,m;d.transmuxing.start=self.performance.now();const{instanceNo:g,transmuxer:y}=this,S=s?s.start:a.start,k=a.decryptdata,C=this.frag,x=!(C&&a.cc===C.cc),E=!(C&&d.level===C.level),_=C?d.sn-C.sn:-1,T=this.part?d.part-this.part.index:-1,D=_===0&&d.id>1&&d.id===C?.stats.chunkCount,P=!E&&(_===1||_===0&&(T===1||D&&T<=0)),M=self.performance.now();(E||_||a.stats.parsing.start===0)&&(a.stats.parsing.start=M),s&&(T||!P)&&(s.stats.parsing.start=M);const $=!(C&&((p=a.initSegment)==null?void 0:p.url)===((m=C.initSegment)==null?void 0:m.url)),I=new kwt(x,P,c,E,S,$);if(!P||x||$){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${d.sn}${d.part>-1?" part: "+d.part:""} ${this.id===Jn.MAIN?"level":"track"}: ${d.level} id: ${d.id} discontinuity: ${x} trackSwitch: ${E} contiguous: ${P} accurateTimeOffset: ${c} timeOffset: ${S} initSegmentChange: ${$}`);const N=new Swt(r,o,n,l,h);this.configureTransmuxer(N)}if(this.frag=a,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:g,cmd:"demux",data:t,decryptdata:k,chunkMeta:d,state:I},t instanceof ArrayBuffer?[t]:[]);else if(y){const N=y.push(t,k,d,I);x_(N)?N.then(j=>{this.handleTransmuxComplete(j)}).catch(j=>{this.transmuxerError(j,d,"transmuxer-interface push error")}):this.handleTransmuxComplete(N)}}flush(t){t.transmuxing.start=self.performance.now();const{instanceNo:n,transmuxer:r}=this;if(this.workerContext)this.workerContext.worker.postMessage({instanceNo:n,cmd:"flush",chunkMeta:t});else if(r){const o=r.flush(t);x_(o)?o.then(a=>{this.handleFlushResult(a,t)}).catch(a=>{this.transmuxerError(a,t,"transmuxer-interface flush error")}):this.handleFlushResult(o,t)}}transmuxerError(t,n,r){this.hls&&(this.error=t,this.hls.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.FRAG_PARSING_ERROR,chunkMeta:n,frag:this.frag||void 0,part:this.part||void 0,fatal:!1,error:t,err:t,reason:r}))}handleFlushResult(t,n){t.forEach(r=>{this.handleTransmuxComplete(r)}),this.onFlush(n)}configureTransmuxer(t){const{instanceNo:n,transmuxer:r}=this;this.workerContext?this.workerContext.worker.postMessage({instanceNo:n,cmd:"configure",config:t}):r&&r.configure(t)}handleTransmuxComplete(t){t.chunkMeta.transmuxing.end=self.performance.now(),this.onTransmuxComplete(t)}}const Tue=100;class xwt extends AG{constructor(t,n,r){super(t,n,r,"audio-stream-controller",Jn.AUDIO),this.mainAnchor=null,this.mainFragLoading=null,this.audioOnly=!1,this.bufferedTrack=null,this.switchingTrack=null,this.trackId=-1,this.waitingData=null,this.mainDetails=null,this.flushing=!1,this.bufferFlushed=!1,this.cachedTrackLoadedData=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.resetItem()}resetItem(){this.mainDetails=this.mainAnchor=this.mainFragLoading=this.bufferedTrack=this.switchingTrack=this.waitingData=this.cachedTrackLoadedData=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Ie.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ie.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(Ie.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ie.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Ie.BUFFER_RESET,this.onBufferReset,this),t.on(Ie.BUFFER_CREATED,this.onBufferCreated,this),t.on(Ie.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ie.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ie.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Ie.FRAG_LOADING,this.onFragLoading,this),t.on(Ie.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(Ie.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ie.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(Ie.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ie.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Ie.BUFFER_RESET,this.onBufferReset,this),t.off(Ie.BUFFER_CREATED,this.onBufferCreated,this),t.off(Ie.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ie.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ie.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Ie.FRAG_LOADING,this.onFragLoading,this),t.off(Ie.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:o,timescale:a,trackId:s}){if(r===Jn.MAIN){const l=n.cc,c=this.fragCurrent;if(this.initPTS[l]={baseTime:o,timescale:a,trackId:s},this.log(`InitPTS for cc: ${l} found from main: ${o/a} (${o}/${a}) trackId: ${s}`),this.mainAnchor=n,this.state===an.WAITING_INIT_PTS){const d=this.waitingData;(!d&&!this.loadingParts||d&&d.frag.cc!==l)&&this.syncWithAnchor(n,d?.frag)}else!this.hls.hasEnoughToStart&&c&&c.cc!==l?(c.abortRequests(),this.syncWithAnchor(n,c)):this.state===an.IDLE&&this.tick()}}getLoadPosition(){return!this.startFragRequested&&this.nextLoadPosition>=0?this.nextLoadPosition:super.getLoadPosition()}syncWithAnchor(t,n){var r;const o=((r=this.mainFragLoading)==null?void 0:r.frag)||null;if(n&&o?.cc===n.cc)return;const a=(o||t).cc,s=this.getLevelDetails(),l=this.getLoadPosition(),c=j3e(s,a,l);c&&(this.log(`Syncing with main frag at ${c.start} cc ${c.cc}`),this.startFragRequested=!1,this.nextLoadPosition=c.start,this.resetLoadingState(),this.state===an.IDLE&&this.doTickIdle())}startLoad(t,n){if(!this.levels){this.startPosition=t,this.state=an.STOPPED;return}const r=this.lastCurrentTime;this.stopLoad(),this.setInterval(Tue),r>0&&t===-1?(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r,this.state=an.IDLE):this.state=an.WAITING_TRACK,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}doTick(){switch(this.state){case an.IDLE:this.doTickIdle();break;case an.WAITING_TRACK:{const{levels:t,trackId:n}=this,r=t?.[n],o=r?.details;if(o&&!this.waitForLive(r)){if(this.waitForCdnTuneIn(o))break;this.state=an.WAITING_INIT_PTS}break}case an.FRAG_LOADING_WAITING_RETRY:{this.checkRetryDate();break}case an.WAITING_INIT_PTS:{const t=this.waitingData;if(t){const{frag:n,part:r,cache:o,complete:a}=t,s=this.mainAnchor;if(this.initPTS[n.cc]!==void 0){this.waitingData=null,this.state=an.FRAG_LOADING;const l=o.flush().buffer,c={frag:n,part:r,payload:l,networkDetails:null};this._handleFragmentLoadProgress(c),a&&super._handleFragmentLoadComplete(c)}else s&&s.cc!==t.frag.cc&&this.syncWithAnchor(s,t.frag)}else this.state=an.IDLE}}this.onTickEnd()}resetLoadingState(){const t=this.waitingData;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingData=null),super.resetLoadingState()}onTickEnd(){const{media:t}=this;t!=null&&t.readyState&&(this.lastCurrentTime=t.currentTime)}doTickIdle(){var t;const{hls:n,levels:r,media:o,trackId:a}=this,s=n.config;if(!this.buffering||!o&&!this.primaryPrefetch&&(this.startFragRequested||!s.startFragPrefetch)||!(r!=null&&r[a]))return;const l=r[a],c=l.details;if(!c||this.waitForLive(l)||this.waitForCdnTuneIn(c)){this.state=an.WAITING_TRACK,this.startFragRequested=!1;return}const d=this.mediaBuffer?this.mediaBuffer:this.media;this.bufferFlushed&&d&&(this.bufferFlushed=!1,this.afterBufferFlushed(d,xo.AUDIO,Jn.AUDIO));const h=this.getFwdBufferInfo(d,Jn.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){n.trigger(Ie.BUFFER_EOS,{type:"audio"}),this.state=an.ENDED;return}const p=h.len,m=n.maxBufferLength,g=c.fragments,y=g[0].start,S=this.getLoadPosition(),k=this.flushing?S:h.end;if(this.switchingTrack&&o){const E=S;c.PTSKnown&&Ey||h.nextStart)&&(this.log("Alt audio track ahead of main track, seek to start of alt audio track"),o.currentTime=y+.05)}if(p>=m&&!this.switchingTrack&&kx.end){const _=this.fragmentTracker.getFragAtPos(k,Jn.MAIN);_&&_.end>x.end&&(x=_,this.mainFragLoading={frag:_,targetBufferTime:null})}if(C.start>x.end)return}this.loadFragment(C,l,k)}onMediaDetaching(t,n){this.bufferFlushed=this.flushing=!1,super.onMediaDetaching(t,n)}onAudioTracksUpdated(t,{audioTracks:n}){this.resetTransmuxer(),this.levels=n.map(r=>new __(r))}onAudioTrackSwitching(t,n){const r=!!n.url;this.trackId=n.id;const{fragCurrent:o}=this;o&&(o.abortRequests(),this.removeUnbufferedFrags(o.start)),this.resetLoadingState(),r?(this.switchingTrack=n,this.flushAudioIfNeeded(n),this.state!==an.STOPPED&&(this.setInterval(Tue),this.state=an.IDLE,this.tick())):(this.resetTransmuxer(),this.switchingTrack=null,this.bufferedTrack=n,this.clearInterval())}onManifestLoading(){super.onManifestLoading(),this.bufferFlushed=this.flushing=this.audioOnly=!1,this.resetItem(),this.trackId=-1}onLevelLoaded(t,n){this.mainDetails=n.details;const r=this.cachedTrackLoadedData;r&&(this.cachedTrackLoadedData=null,this.onAudioTrackLoaded(Ie.AUDIO_TRACK_LOADED,r))}onAudioTrackLoaded(t,n){var r;const{levels:o}=this,{details:a,id:s,groupId:l,track:c}=n;if(!o){this.warn(`Audio tracks reset while loading track ${s} "${c.name}" of "${l}"`);return}const d=this.mainDetails;if(!d||a.endCC>d.endCC||d.expired){this.cachedTrackLoadedData=n,this.state!==an.STOPPED&&(this.state=an.WAITING_TRACK);return}this.cachedTrackLoadedData=null,this.log(`Audio track ${s} "${c.name}" of "${l}" loaded [${a.startSN},${a.endSN}]${a.lastPartSn?`[part-${a.lastPartSn}-${a.lastPartIndex}]`:""},duration:${a.totalduration}`);const h=o[s];let p=0;if(a.live||(r=h.details)!=null&&r.live){if(this.checkLiveUpdate(a),a.deltaUpdateFailed)return;if(h.details){var m;p=this.alignPlaylists(a,h.details,(m=this.levelLastLoaded)==null?void 0:m.details)}a.alignedSliding||(i2e(a,d),a.alignedSliding||RT(a,d),p=a.fragmentStart)}h.details=a,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(d,p),this.hls.trigger(Ie.AUDIO_TRACK_UPDATED,{details:a,id:s,groupId:n.groupId}),this.state===an.WAITING_TRACK&&!this.waitForCdnTuneIn(a)&&(this.state=an.IDLE),this.tick()}_handleFragmentLoadProgress(t){var n;const r=t.frag,{part:o,payload:a}=t,{config:s,trackId:l,levels:c}=this;if(!c){this.warn(`Audio tracks were reset while fragment load was in progress. Fragment ${r.sn} of level ${r.level} will not be buffered`);return}const d=c[l];if(!d){this.warn("Audio track is undefined on fragment load progress");return}const h=d.details;if(!h){this.warn("Audio track details undefined on fragment load progress"),this.removeUnbufferedFrags(r.start);return}const p=s.defaultAudioCodec||d.audioCodec||"mp4a.40.2";let m=this.transmuxer;m||(m=this.transmuxer=new C2e(this.hls,Jn.AUDIO,this._handleTransmuxComplete.bind(this),this._handleTransmuxerFlush.bind(this)));const g=this.initPTS[r.cc],y=(n=r.initSegment)==null?void 0:n.data;if(g!==void 0){const k=o?o.index:-1,C=k!==-1,x=new wG(r.level,r.sn,r.stats.chunkCount,a.byteLength,k,C);m.push(a,y,p,"",r,o,h.totalduration,!1,x,g)}else{this.log(`Unknown video PTS for cc ${r.cc}, waiting for video PTS before demuxing audio frag ${r.sn} of [${h.startSN} ,${h.endSN}],track ${l}`);const{cache:S}=this.waitingData=this.waitingData||{frag:r,part:o,cache:new o2e,complete:!1};S.push(new Uint8Array(a)),this.state!==an.STOPPED&&(this.state=an.WAITING_INIT_PTS)}}_handleFragmentLoadComplete(t){if(this.waitingData){this.waitingData.complete=!0;return}super._handleFragmentLoadComplete(t)}onBufferReset(){this.mediaBuffer=null}onBufferCreated(t,n){this.bufferFlushed=this.flushing=!1;const r=n.tracks.audio;r&&(this.mediaBuffer=r.buffer||null)}onFragLoading(t,n){!this.audioOnly&&n.frag.type===Jn.MAIN&&Ks(n.frag)&&(this.mainFragLoading=n,this.state===an.IDLE&&this.tick())}onFragBuffered(t,n){const{frag:r,part:o}=n;if(r.type!==Jn.AUDIO){!this.audioOnly&&r.type===Jn.MAIN&&!r.elementaryStreams.video&&!r.elementaryStreams.audiovideo&&(this.audioOnly=!0,this.mainFragLoading=null);return}if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${o?" p: "+o.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}, audioSwitch: ${this.switchingTrack?this.switchingTrack.name:"false"}`);return}if(Ks(r)){this.fragPrevious=r;const a=this.switchingTrack;a&&(this.bufferedTrack=a,this.switchingTrack=null,this.hls.trigger(Ie.AUDIO_TRACK_SWITCHED,uo({},a)))}this.fragBufferedComplete(r,o),this.media&&this.tick()}onError(t,n){var r;if(n.fatal){this.state=an.ERROR;return}switch(n.details){case Wt.FRAG_GAP:case Wt.FRAG_PARSING_ERROR:case Wt.FRAG_DECRYPT_ERROR:case Wt.FRAG_LOAD_ERROR:case Wt.FRAG_LOAD_TIMEOUT:case Wt.KEY_LOAD_ERROR:case Wt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Jn.AUDIO,n);break;case Wt.AUDIO_TRACK_LOAD_ERROR:case Wt.AUDIO_TRACK_LOAD_TIMEOUT:case Wt.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===an.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===bi.AUDIO_TRACK&&(this.state=an.IDLE);break;case Wt.BUFFER_ADD_CODEC_ERROR:case Wt.BUFFER_APPEND_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)||this.resetLoadingState();break;case Wt.BUFFER_FULL_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Wt.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==xo.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==xo.VIDEO){this.flushing=!1,this.bufferFlushed=!0,this.state===an.ENDED&&(this.state=an.IDLE);const r=this.mediaBuffer||this.media;r&&(this.afterBufferFlushed(r,n,Jn.AUDIO),this.tick())}}_handleTransmuxComplete(t){var n;const r="audio",{hls:o}=this,{remuxResult:a,chunkMeta:s}=t,l=this.getCurrentContext(s);if(!l){this.resetWhenMissingContext(s);return}const{frag:c,part:d,level:h}=l,{details:p}=h,{audio:m,text:g,id3:y,initSegment:S}=a;if(this.fragContextChanged(c)||!p){this.fragmentTracker.removeFragment(c);return}if(this.state=an.PARSING,this.switchingTrack&&m&&this.completeAudioSwitch(this.switchingTrack),S!=null&&S.tracks){const k=c.initSegment||c;if(this.unhandledEncryptionError(S,c))return;this._bufferInitSegment(h,S.tracks,k,s),o.trigger(Ie.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:r,tracks:S.tracks})}if(m){const{startPTS:k,endPTS:C,startDTS:x,endDTS:E}=m;d&&(d.elementaryStreams[xo.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),c.setElementaryStreamInfo(xo.AUDIO,k,C,x,E),this.bufferFragmentData(m,c,d,s)}if(y!=null&&(n=y.samples)!=null&&n.length){const k=mo({id:r,frag:c,details:p},y);o.trigger(Ie.FRAG_PARSING_METADATA,k)}if(g){const k=mo({id:r,frag:c,details:p},g);o.trigger(Ie.FRAG_PARSING_USERDATA,k)}}_bufferInitSegment(t,n,r,o){if(this.state!==an.PARSING||(n.video&&delete n.video,n.audiovideo&&delete n.audiovideo,!n.audio))return;const a=n.audio;a.id=Jn.AUDIO;const s=t.audioCodec;this.log(`Init audio buffer, container:${a.container}, codecs[level/parsed]=[${s}/${a.codec}]`),s&&s.split(",").length===1&&(a.levelCodec=s),this.hls.trigger(Ie.BUFFER_CODECS,n);const l=a.initSegment;if(l!=null&&l.byteLength){const c={type:"audio",frag:r,part:null,chunkMeta:o,parent:r.type,data:l};this.hls.trigger(Ie.BUFFER_APPENDING,c)}this.tickImmediate()}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);if(this.switchingTrack||o===ca.NOT_LOADED||o===ca.PARTIAL){var a;if(!Ks(t))this._loadInitSegment(t,n);else if((a=n.details)!=null&&a.live&&!this.initPTS[t.cc]){this.log(`Waiting for video PTS in continuity counter ${t.cc} of live stream before loading audio fragment ${t.sn} of level ${this.trackId}`),this.state=an.WAITING_INIT_PTS;const s=this.mainDetails;s&&s.fragmentStart!==n.details.fragmentStart&&RT(n.details,s)}else super.loadFragment(t,n,r)}else this.clearTrackerIfNeeded(t)}flushAudioIfNeeded(t){if(this.media&&this.bufferedTrack){const{name:n,lang:r,assocLang:o,characteristics:a,audioCodec:s,channels:l}=this.bufferedTrack;gm({name:n,lang:r,assocLang:o,characteristics:a,audioCodec:s,channels:l},t,jv)||(AT(t.url,this.hls)?(this.log("Switching audio track : flushing all audio"),super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"),this.bufferedTrack=null):this.bufferedTrack=t)}}completeAudioSwitch(t){const{hls:n}=this;this.flushAudioIfNeeded(t),this.bufferedTrack=t,this.switchingTrack=null,n.trigger(Ie.AUDIO_TRACK_SWITCHED,uo({},t))}}class $G extends ed{constructor(t,n){super(n,t.logger),this.hls=void 0,this.canLoad=!1,this.timer=-1,this.hls=t}destroy(){this.clearTimer(),this.hls=this.log=this.warn=null}clearTimer(){this.timer!==-1&&(self.clearTimeout(this.timer),this.timer=-1)}startLoad(){this.canLoad=!0,this.loadPlaylist()}stopLoad(){this.canLoad=!1,this.clearTimer()}switchParams(t,n,r){const o=n?.renditionReports;if(o){let a=-1;for(let s=0;s=0&&h>n.partTarget&&(c+=1)}const d=r&&zle(r);return new Ule(l,c>=0?c:void 0,d)}}}loadPlaylist(t){this.clearTimer()}loadingPlaylist(t,n){this.clearTimer()}shouldLoadPlaylist(t){return this.canLoad&&!!t&&!!t.url&&(!t.details||t.details.live)}getUrlWithDirectives(t,n){if(n)try{return n.addDirectives(t)}catch(r){this.warn(`Could not construct new URL with HLS Delivery Directives: ${r}`)}return t}playlistLoaded(t,n,r){const{details:o,stats:a}=n,s=self.performance.now(),l=a.loading.first?Math.max(0,s-a.loading.first):0;o.advancedDateTime=Date.now()-l;const c=this.hls.config.timelineOffset;if(c!==o.appliedTimelineOffset){const h=Math.max(c||0,0);o.appliedTimelineOffset=h,o.fragments.forEach(p=>{p.setStart(p.playlistOffset+h)})}if(o.live||r!=null&&r.live){const h="levelInfo"in n?n.levelInfo:n.track;if(o.reloaded(r),r&&o.fragments.length>0){vCt(r,o,this);const x=o.playlistParsingError;if(x){this.warn(x);const E=this.hls;if(!E.config.ignorePlaylistParsingErrors){var d;const{networkDetails:_}=n;E.trigger(Ie.ERROR,{type:lr.NETWORK_ERROR,details:Wt.LEVEL_PARSING_ERROR,fatal:!1,url:o.url,error:x,reason:x.message,level:n.level||void 0,parent:(d=o.fragments[0])==null?void 0:d.type,networkDetails:_,stats:a});return}o.playlistParsingError=null}}o.requestScheduled===-1&&(o.requestScheduled=a.loading.start);const p=this.hls.mainForwardBufferInfo,m=p?p.end-p.len:0,g=(o.edge-m)*1e3,y=Q3e(o,g);if(o.requestScheduled+y0){if($>o.targetduration*3)this.log(`Playlist last advanced ${M.toFixed(2)}s ago. Omitting segment and part directives.`),k=void 0,C=void 0;else if(r!=null&&r.tuneInGoal&&$-o.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${I} with playlist age: ${o.age}`),I=0;else{const N=Math.floor(I/o.targetduration);if(k+=N,C!==void 0){const j=Math.round(I%o.targetduration/o.partTarget);C+=j}this.log(`CDN Tune-in age: ${o.ageHeader}s last advanced ${M.toFixed(2)}s goal: ${I} skip sn ${N} to part ${C}`)}o.tuneInGoal=I}if(S=this.getDeliveryDirectives(o,n.deliveryDirectives,k,C),x||!P){o.requestScheduled=s,this.loadingPlaylist(h,S);return}}else(o.canBlockReload||o.canSkipUntil)&&(S=this.getDeliveryDirectives(o,n.deliveryDirectives,k,C));S&&k!==void 0&&o.canBlockReload&&(o.requestScheduled=a.loading.first+Math.max(y-l*2,y/2)),this.scheduleLoading(h,S,o)}else this.clearTimer()}scheduleLoading(t,n,r){const o=r||t.details;if(!o){this.loadingPlaylist(t,n);return}const a=self.performance.now(),s=o.requestScheduled;if(a>=s){this.loadingPlaylist(t,n);return}const l=s-a;this.log(`reload live playlist ${t.name||t.bitrate+"bps"} in ${Math.round(l)} ms`),this.clearTimer(),this.timer=self.setTimeout(()=>this.loadingPlaylist(t,n),l)}getDeliveryDirectives(t,n,r,o){let a=zle(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,o=n.part,a=YE.No),new Ule(r,o,a)}checkRetry(t){const n=t.details,r=IT(t),o=t.errorAction,{action:a,retryCount:s=0,retryConfig:l}=o||{},c=!!o&&!!l&&(a===Ba.RetryRequest||!o.resolved&&a===Ba.SendAlternateToPenaltyBox);if(c){var d;if(s>=l.maxNumRetry)return!1;if(r&&(d=t.context)!=null&&d.deliveryDirectives)this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${n}" without delivery-directives`),this.loadPlaylist();else{const h=xG(l,s);this.clearTimer(),this.timer=self.setTimeout(()=>this.loadPlaylist(),h),this.warn(`Retrying playlist loading ${s+1}/${l.maxNumRetry} after "${n}" in ${h}ms`)}t.levelRetry=!0,o.resolved=!0}return c}}function w2e(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[o]!==t[o])}function Gz(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class Cwt extends $G{constructor(t){super(t,"audio-track-controller"),this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0,this.registerListeners()}registerListeners(){const{hls:t}=this;t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ie.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ie.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ie.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Ie.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ie.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ie.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ie.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Ie.ERROR,this.onError,this)}destroy(){this.unregisterListeners(),this.tracks.length=0,this.tracksInGroup.length=0,this.currentTrack=null,super.destroy()}onManifestLoading(){this.tracks=[],this.tracksInGroup=[],this.groupIds=null,this.currentTrack=null,this.trackId=-1,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.audioTracks||[]}onAudioTrackLoaded(t,n){const{id:r,groupId:o,details:a}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==o){this.warn(`Audio track with id:${r} and group:${o} not found in active group ${s?.groupId}`);return}const l=s.details;s.details=n.details,this.log(`Audio track ${r} "${s.name}" lang:${s.lang} group:${o} loaded [${a.startSN}-${a.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,l)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.audioGroups||null,o=this.groupIds;let a=this.currentTrack;if(!r||o?.length!==r?.length||r!=null&&r.some(l=>o?.indexOf(l)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const l=this.tracks.filter(m=>!r||r.indexOf(m.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(m=>m.default)&&(this.selectDefaultTrack=!1),l.forEach((m,g)=>{m.id=g});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!a&&c){const m=pf(c,l,jv);if(m>-1)a=l[m];else{const g=pf(c,this.tracks);a=this.tracks[g]}}let d=this.findTrackId(a);d===-1&&a&&(d=this.findTrackId(null));const h={audioTracks:l};this.log(`Updating audio tracks, ${l.length} track(s) found in group(s): ${r?.join(",")}`),this.hls.trigger(Ie.AUDIO_TRACKS_UPDATED,h);const p=this.trackId;if(d!==-1&&p===-1)this.setAudioTrack(d);else if(l.length&&p===-1){var s;const m=new Error(`No audio track selected for current audio group-ID(s): ${(s=this.groupIds)==null?void 0:s.join(",")} track count: ${l.length}`);this.warn(m.message),this.hls.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:m})}}}onError(t,n){n.fatal||!n.context||n.context.type===bi.AUDIO_TRACK&&n.context.id===this.trackId&&(!this.groupIds||this.groupIds.indexOf(n.context.groupId)!==-1)&&this.checkRetry(n)}get allAudioTracks(){return this.tracks}get audioTracks(){return this.tracksInGroup}get audioTrack(){return this.trackId}set audioTrack(t){this.selectDefaultTrack=!1,this.setAudioTrack(t)}setAudioOption(t){const n=this.hls;if(n.config.audioPreference=t,t){const r=this.allAudioTracks;if(this.selectDefaultTrack=!1,r.length){const o=this.currentTrack;if(o&&gm(t,o,jv))return o;const a=pf(t,this.tracksInGroup,jv);if(a>-1){const s=this.tracksInGroup[a];return this.setAudioTrack(a),s}else if(o){let s=n.loadLevel;s===-1&&(s=n.firstAutoLevel);const l=$xt(t,n.levels,r,s,jv);if(l===-1)return null;n.nextLoadLevel=l}if(t.channels||t.audioCodec){const s=pf(t,r);if(s>-1)return r[s]}}}return null}setAudioTrack(t){const n=this.tracksInGroup;if(t<0||t>=n.length){this.warn(`Invalid audio track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,o=n[t],a=o.details&&!o.details.live;if(t===this.trackId&&o===r&&a||(this.log(`Switching to audio-track ${t} "${o.name}" lang:${o.lang} group:${o.groupId} channels:${o.channels}`),this.trackId=t,this.currentTrack=o,this.hls.trigger(Ie.AUDIO_TRACK_SWITCHING,uo({},o)),a))return;const s=this.switchParams(o.url,r?.details,o.details);this.loadPlaylist(s)}findTrackId(t){const n=this.tracksInGroup;for(let r=0;r{const r={label:"async-blocker",execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.append(r,t)})}prependBlocker(t){return new Promise(n=>{if(this.queues){const r={label:"async-blocker-prepend",execute:n,onStart:()=>{},onComplete:()=>{},onError:()=>{}};this.queues[t].unshift(r)}})}removeBlockers(){this.queues!==null&&[this.queues.video,this.queues.audio,this.queues.audiovideo].forEach(t=>{var n;const r=(n=t[0])==null?void 0:n.label;(r==="async-blocker"||r==="async-blocker-prepend")&&(t[0].execute(),t.splice(0,1))})}unblockAudio(t){if(this.queues===null)return;this.queues.audio[0]===t&&this.shiftAndExecuteNext("audio")}executeNext(t){if(this.queues===null||this.tracks===null)return;const n=this.queues[t];if(n.length){const o=n[0];try{o.execute()}catch(a){var r;if(o.onError(a),this.queues===null||this.tracks===null)return;const s=(r=this.tracks[t])==null?void 0:r.buffer;s!=null&&s.updating||this.shiftAndExecuteNext(t)}}}shiftAndExecuteNext(t){this.queues!==null&&(this.queues[t].shift(),this.executeNext(t))}current(t){var n;return((n=this.queues)==null?void 0:n[t][0])||null}toString(){const{queues:t,tracks:n}=this;return t===null||n===null?"":` ${this.list("video")} ${this.list("audio")} ${this.list("audiovideo")}}`}list(t){var n,r;return(n=this.queues)!=null&&n[t]||(r=this.tracks)!=null&&r[t]?`${t}: (${this.listSbInfo(t)}) ${this.listOps(t)}`:""}listSbInfo(t){var n;const r=(n=this.tracks)==null?void 0:n[t],o=r?.buffer;return o?`SourceBuffer${o.updating?" updating":""}${r.ended?" ended":""}${r.ending?" ending":""}`:"none"}listOps(t){var n;return((n=this.queues)==null?void 0:n[t].map(r=>r.label).join(", "))||""}}const Aue=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,E2e="HlsJsTrackRemovedError";class Ewt extends Error{constructor(t){super(t),this.name=E2e}}class Twt extends ed{constructor(t,n){super("buffer-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.details=null,this._objectUrl=null,this.operationQueue=null,this.bufferCodecEventsTotal=0,this.media=null,this.mediaSource=null,this.lastMpegAudioChunk=null,this.blockedAudioAppend=null,this.lastVideoAppendEnd=0,this.appendSource=void 0,this.transferData=void 0,this.overrides=void 0,this.appendErrors={audio:0,video:0,audiovideo:0},this.tracks={},this.sourceBuffers=[[null,null],[null,null]],this._onEndStreaming=r=>{var o;this.hls&&((o=this.mediaSource)==null?void 0:o.readyState)==="open"&&this.hls.pauseBuffering()},this._onStartStreaming=r=>{this.hls&&this.hls.resumeBuffering()},this._onMediaSourceOpen=r=>{const{media:o,mediaSource:a}=this;r&&this.log("Media source opened"),!(!o||!a)&&(a.removeEventListener("sourceopen",this._onMediaSourceOpen),o.removeEventListener("emptied",this._onMediaEmptied),this.updateDuration(),this.hls.trigger(Ie.MEDIA_ATTACHED,{media:o,mediaSource:a}),this.mediaSource!==null&&this.checkPendingTracks())},this._onMediaSourceClose=()=>{this.log("Media source closed")},this._onMediaSourceEnded=()=>{this.log("Media source ended")},this._onMediaEmptied=()=>{const{mediaSrc:r,_objectUrl:o}=this;r!==o&&this.error(`Media element src was set while attaching MediaSource (${o} > ${r})`)},this.hls=t,this.fragmentTracker=n,this.appendSource=Ykt(T0(t.config.preferManagedMediaSource)),this.initTracks(),this.registerListeners()}hasSourceTypes(){return Object.keys(this.tracks).length>0}destroy(){this.unregisterListeners(),this.details=null,this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.transferData=this.overrides=void 0,this.operationQueue&&(this.operationQueue.destroy(),this.operationQueue=null),this.hls=this.fragmentTracker=null,this._onMediaSourceOpen=this._onMediaSourceClose=null,this._onMediaSourceEnded=null,this._onStartStreaming=this._onEndStreaming=null}registerListeners(){const{hls:t}=this;t.on(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ie.BUFFER_RESET,this.onBufferReset,this),t.on(Ie.BUFFER_APPENDING,this.onBufferAppending,this),t.on(Ie.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Ie.BUFFER_EOS,this.onBufferEos,this),t.on(Ie.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ie.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ie.FRAG_PARSED,this.onFragParsed,this),t.on(Ie.FRAG_CHANGED,this.onFragChanged,this),t.on(Ie.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ie.BUFFER_RESET,this.onBufferReset,this),t.off(Ie.BUFFER_APPENDING,this.onBufferAppending,this),t.off(Ie.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ie.BUFFER_EOS,this.onBufferEos,this),t.off(Ie.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ie.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ie.FRAG_PARSED,this.onFragParsed,this),t.off(Ie.FRAG_CHANGED,this.onFragChanged,this),t.off(Ie.ERROR,this.onError,this)}transferMedia(){const{media:t,mediaSource:n}=this;if(!t)return null;const r={};if(this.operationQueue){const a=this.isUpdating();a||this.operationQueue.removeBlockers();const s=this.isQueued();(a||s)&&this.warn(`Transfering MediaSource with${s?" operations in queue":""}${a?" updating SourceBuffer(s)":""} ${this.operationQueue}`),this.operationQueue.destroy()}const o=this.transferData;return!this.sourceBufferCount&&o&&o.mediaSource===n?mo(r,o.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(r[s]=mo({},this.tracks[s]),this.removeBuffer(s)),a[0]=a[1]=null}),{media:t,mediaSource:n,tracks:r}}initTracks(){const t={};this.sourceBuffers=[[null,null],[null,null]],this.tracks=t,this.resetQueue(),this.resetAppendErrors(),this.lastMpegAudioChunk=this.blockedAudioAppend=null,this.lastVideoAppendEnd=0}onManifestLoading(){this.bufferCodecEventsTotal=0,this.details=null}onManifestParsed(t,n){var r;let o=2;(n.audio&&!n.video||!n.altAudio)&&(o=1),this.bufferCodecEventsTotal=o,this.log(`${o} bufferCodec event(s) expected.`),(r=this.transferData)!=null&&r.mediaSource&&this.sourceBufferCount&&o&&this.bufferCreated()}onMediaAttaching(t,n){const r=this.media=n.media;this.transferData=this.overrides=void 0;const o=T0(this.appendSource);if(o){const a=!!n.mediaSource;(a||n.overrides)&&(this.transferData=n,this.overrides=n.overrides);const s=this.mediaSource=n.mediaSource||new o;if(this.assignMediaSource(s),a)this._objectUrl=r.src,this.attachTransferred();else{const l=this._objectUrl=self.URL.createObjectURL(s);if(this.appendSource)try{r.removeAttribute("src");const c=self.ManagedMediaSource;r.disableRemotePlayback=r.disableRemotePlayback||c&&s instanceof c,Iue(r),Awt(r,l),r.load()}catch{r.src=l}else r.src=l}r.addEventListener("emptied",this._onMediaEmptied)}}assignMediaSource(t){var n,r;this.log(`${((n=this.transferData)==null?void 0:n.mediaSource)===t?"transferred":"created"} media source: ${(r=t.constructor)==null?void 0:r.name}`),t.addEventListener("sourceopen",this._onMediaSourceOpen),t.addEventListener("sourceended",this._onMediaSourceEnded),t.addEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(t.addEventListener("startstreaming",this._onStartStreaming),t.addEventListener("endstreaming",this._onEndStreaming))}attachTransferred(){const t=this.media,n=this.transferData;if(!n||!t)return;const r=this.tracks,o=n.tracks,a=o?Object.keys(o):null,s=a?a.length:0,l=()=>{Promise.resolve().then(()=>{this.media&&this.mediaSourceOpenOrEnded&&this._onMediaSourceOpen()})};if(o&&a&&s){if(!this.tracksReady){this.hls.config.startFragPrefetch=!0,this.log("attachTransferred: waiting for SourceBuffer track info");return}if(this.log(`attachTransferred: (bufferCodecEventsTotal ${this.bufferCodecEventsTotal}) required tracks: ${Co(r,(c,d)=>c==="initSegment"?void 0:d)}; transfer tracks: ${Co(o,(c,d)=>c==="initSegment"?void 0:d)}}`),!k3e(o,r)){n.mediaSource=null,n.tracks=void 0;const c=t.currentTime,d=this.details,h=Math.max(c,d?.fragments[0].start||0);if(h-c>1){this.log(`attachTransferred: waiting for playback to reach new tracks start time ${c} -> ${h}`);return}this.warn(`attachTransferred: resetting MediaSource for incompatible tracks ("${Object.keys(o)}"->"${Object.keys(r)}") start time: ${h} currentTime: ${c}`),this.onMediaDetaching(Ie.MEDIA_DETACHING,{}),this.onMediaAttaching(Ie.MEDIA_ATTACHING,n),t.currentTime=h;return}this.transferData=void 0,a.forEach(c=>{const d=c,h=o[d];if(h){const p=h.buffer;if(p){const m=this.fragmentTracker,g=h.id;if(m.hasFragments(g)||m.hasParts(g)){const k=jr.getBuffered(p);m.detectEvictedFragments(d,k,g,null,!0)}const y=UF(d),S=[d,p];this.sourceBuffers[y]=S,p.updating&&this.operationQueue&&this.operationQueue.prependBlocker(d),this.trackSourceBuffer(d,h)}}}),l(),this.bufferCreated()}else this.log("attachTransferred: MediaSource w/o SourceBuffers"),l()}get mediaSourceOpenOrEnded(){var t;const n=(t=this.mediaSource)==null?void 0:t.readyState;return n==="open"||n==="ended"}onMediaDetaching(t,n){const r=!!n.transferMedia;this.transferData=this.overrides=void 0;const{media:o,mediaSource:a,_objectUrl:s}=this;if(a){if(this.log(`media source ${r?"transferring":"detaching"}`),r)this.sourceBuffers.forEach(([l])=>{l&&this.removeBuffer(l)}),this.resetQueue();else{if(this.mediaSourceOpenOrEnded){const l=a.readyState==="open";try{const c=a.sourceBuffers;for(let d=c.length;d--;)l&&c[d].abort(),a.removeSourceBuffer(c[d]);l&&a.endOfStream()}catch(c){this.warn(`onMediaDetaching: ${c.message} while calling endOfStream`)}}this.sourceBufferCount&&this.onBufferReset()}a.removeEventListener("sourceopen",this._onMediaSourceOpen),a.removeEventListener("sourceended",this._onMediaSourceEnded),a.removeEventListener("sourceclose",this._onMediaSourceClose),this.appendSource&&(a.removeEventListener("startstreaming",this._onStartStreaming),a.removeEventListener("endstreaming",this._onEndStreaming)),this.mediaSource=null,this._objectUrl=null}o&&(o.removeEventListener("emptied",this._onMediaEmptied),r||(s&&self.URL.revokeObjectURL(s),this.mediaSrc===s?(o.removeAttribute("src"),this.appendSource&&Iue(o),o.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Ie.MEDIA_DETACHED,n)}onBufferReset(){this.sourceBuffers.forEach(([t])=>{t&&this.resetBuffer(t)}),this.initTracks()}resetBuffer(t){var n;const r=(n=this.tracks[t])==null?void 0:n.buffer;if(this.removeBuffer(t),r)try{var o;(o=this.mediaSource)!=null&&o.sourceBuffers.length&&this.mediaSource.removeSourceBuffer(r)}catch(a){this.warn(`onBufferReset ${t}`,a)}delete this.tracks[t]}removeBuffer(t){this.removeBufferListeners(t),this.sourceBuffers[UF(t)]=[null,null];const n=this.tracks[t];n&&(n.buffer=void 0)}resetQueue(){this.operationQueue&&this.operationQueue.destroy(),this.operationQueue=new wwt(this.tracks)}onBufferCodecs(t,n){var r;const o=this.tracks,a=Object.keys(n);this.log(`BUFFER_CODECS: "${a}" (current SB count ${this.sourceBufferCount})`);const s="audiovideo"in n&&(o.audio||o.video)||o.audiovideo&&("audio"in n||"video"in n),l=!s&&this.sourceBufferCount&&this.media&&a.some(c=>!o[c]);if(s||l){this.warn(`Unsupported transition between "${Object.keys(o)}" and "${a}" SourceBuffers`);return}a.forEach(c=>{var d,h;const p=n[c],{id:m,codec:g,levelCodec:y,container:S,metadata:k,supplemental:C}=p;let x=o[c];const E=(d=this.transferData)==null||(d=d.tracks)==null?void 0:d[c],_=E!=null&&E.buffer?E:x,T=_?.pendingCodec||_?.codec,D=_?.levelCodec;x||(x=o[c]={buffer:void 0,listeners:[],codec:g,supplemental:C,container:S,levelCodec:y,metadata:k,id:m});const P=qE(T,D),M=P?.replace(Aue,"$1");let $=qE(g,y);const I=(h=$)==null?void 0:h.replace(Aue,"$1");$&&P&&M!==I&&(c.slice(0,5)==="audio"&&($=ET($,this.appendSource)),this.log(`switching codec ${T} to ${$}`),$!==(x.pendingCodec||x.codec)&&(x.pendingCodec=$),x.container=S,this.appendChangeType(c,S,$))}),(this.tracksReady||this.sourceBufferCount)&&(n.tracks=this.sourceBufferTracks),!this.sourceBufferCount&&(this.bufferCodecEventsTotal>1&&!this.tracks.video&&!n.video&&((r=n.audio)==null?void 0:r.id)==="main"&&(this.log("Main audio-only"),this.bufferCodecEventsTotal=1),this.mediaSourceOpenOrEnded&&this.checkPendingTracks())}get sourceBufferTracks(){return Object.keys(this.tracks).reduce((t,n)=>{const r=this.tracks[n];return t[n]={id:r.id,container:r.container,codec:r.codec,levelCodec:r.levelCodec},t},{})}appendChangeType(t,n,r){const o=`${n};codecs=${r}`,a={label:`change-type=${o}`,execute:()=>{const s=this.tracks[t];if(s){const l=s.buffer;l!=null&&l.changeType&&(this.log(`changing ${t} sourceBuffer type to ${o}`),l.changeType(o),s.codec=r,s.container=n)}this.shiftAndExecuteNext(t)},onStart:()=>{},onComplete:()=>{},onError:s=>{this.warn(`Failed to change ${t} SourceBuffer type`,s)}};this.append(a,t,this.isPending(this.tracks[t]))}blockAudio(t){var n;const r=t.start,o=r+t.duration*.05;if(((n=this.fragmentTracker.getAppendedFrag(r,Jn.MAIN))==null?void 0:n.gap)===!0)return;const s={label:"block-audio",execute:()=>{var l;const c=this.tracks.video;(this.lastVideoAppendEnd>o||c!=null&&c.buffer&&jr.isBuffered(c.buffer,o)||((l=this.fragmentTracker.getAppendedFrag(o,Jn.MAIN))==null?void 0:l.gap)===!0)&&(this.blockedAudioAppend=null,this.shiftAndExecuteNext("audio"))},onStart:()=>{},onComplete:()=>{},onError:l=>{this.warn("Error executing block-audio operation",l)}};this.blockedAudioAppend={op:s,frag:t},this.append(s,"audio",!0)}unblockAudio(){const{blockedAudioAppend:t,operationQueue:n}=this;t&&n&&(this.blockedAudioAppend=null,n.unblockAudio(t.op))}onBufferAppending(t,n){const{tracks:r}=this,{data:o,type:a,parent:s,frag:l,part:c,chunkMeta:d,offset:h}=n,p=d.buffering[a],{sn:m,cc:g}=l,y=self.performance.now();p.start=y;const S=l.stats.buffering,k=c?c.stats.buffering:null;S.start===0&&(S.start=y),k&&k.start===0&&(k.start=y);const C=r.audio;let x=!1;a==="audio"&&C?.container==="audio/mpeg"&&(x=!this.lastMpegAudioChunk||d.id===1||this.lastMpegAudioChunk.sn!==d.sn,this.lastMpegAudioChunk=d);const E=r.video,_=E?.buffer;if(_&&m!=="initSegment"){const P=c||l,M=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(E.ending||E.ended)){const I=P.start+P.duration*.05,N=_.buffered,j=this.currentOp("video");!N.length&&!j?this.blockAudio(P):!j&&!jr.isBuffered(_,I)&&this.lastVideoAppendEndI||${var P;p.executeStart=self.performance.now();const M=(P=this.tracks[a])==null?void 0:P.buffer;M&&(x?this.updateTimestampOffset(M,T,.1,a,m,g):h!==void 0&&Bn(h)&&this.updateTimestampOffset(M,h,1e-6,a,m,g)),this.appendExecutor(o,a)},onStart:()=>{},onComplete:()=>{const P=self.performance.now();p.executeEnd=p.end=P,S.first===0&&(S.first=P),k&&k.first===0&&(k.first=P);const M={};this.sourceBuffers.forEach(([$,I])=>{$&&(M[$]=jr.getBuffered(I))}),this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Ie.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:d,parent:l.type,timeRanges:M})},onError:P=>{var M;const $={type:lr.MEDIA_ERROR,parent:l.type,details:Wt.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:d,error:P,err:P,fatal:!1},I=(M=this.media)==null?void 0:M.error;if(P.code===DOMException.QUOTA_EXCEEDED_ERR||P.name=="QuotaExceededError"||"quota"in P)$.details=Wt.BUFFER_FULL_ERROR;else if(P.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!I)$.errorAction=py(!0);else if(P.name===E2e&&this.sourceBufferCount===0)$.errorAction=py(!0);else{const N=++this.appendErrors[a];this.warn(`Failed ${N}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${I||"no media error"})`),(N>=this.hls.config.appendErrorMaxRetry||I)&&($.fatal=!0)}this.hls.trigger(Ie.ERROR,$)}};this.log(`queuing "${a}" append sn: ${m}${c?" p: "+c.index:""} of ${l.type===Jn.MAIN?"level":"track"} ${l.level} cc: ${g}`),this.append(D,a,this.isPending(this.tracks[a]))}getFlushOp(t,n,r){return this.log(`queuing "${t}" remove ${n}-${r}`),{label:"remove",execute:()=>{this.removeExecutor(t,n,r)},onStart:()=>{},onComplete:()=>{this.hls.trigger(Ie.BUFFER_FLUSHED,{type:t})},onError:o=>{this.warn(`Failed to remove ${n}-${r} from "${t}" SourceBuffer`,o)}}}onBufferFlushing(t,n){const{type:r,startOffset:o,endOffset:a}=n;r?this.append(this.getFlushOp(r,o,a),r):this.sourceBuffers.forEach(([s])=>{s&&this.append(this.getFlushOp(s,o,a),s)})}onFragParsed(t,n){const{frag:r,part:o}=n,a=[],s=o?o.elementaryStreams:r.elementaryStreams;s[xo.AUDIOVIDEO]?a.push("audiovideo"):(s[xo.AUDIO]&&a.push("audio"),s[xo.VIDEO]&&a.push("video"));const l=()=>{const c=self.performance.now();r.stats.buffering.end=c,o&&(o.stats.buffering.end=c);const d=o?o.stats:r.stats;this.hls.trigger(Ie.FRAG_BUFFERED,{frag:r,part:o,stats:d,id:r.type})};a.length===0&&this.warn(`Fragments must have at least one ElementaryStreamType set. type: ${r.type} level: ${r.level} sn: ${r.sn}`),this.blockBuffers(l,a).catch(c=>{this.warn(`Fragment buffered callback ${c}`),this.stepOperationQueue(this.sourceBufferTypes)})}onFragChanged(t,n){this.trimBuffers()}get bufferedToEnd(){return this.sourceBufferCount>0&&!this.sourceBuffers.some(([t])=>{if(t){const n=this.tracks[t];if(n)return!n.ended||n.ending}return!1})}onBufferEos(t,n){var r;this.sourceBuffers.forEach(([s])=>{if(s){const l=this.tracks[s];(!n.type||n.type===s)&&(l.ending=!0,l.ended||(l.ended=!0,this.log(`${s} buffer reached EOS`)))}});const o=((r=this.overrides)==null?void 0:r.endOfStream)!==!1;this.sourceBufferCount>0&&!this.sourceBuffers.some(([s])=>{var l;return s&&!((l=this.tracks[s])!=null&&l.ended)})?o?(this.log("Queueing EOS"),this.blockUntilOpen(()=>{this.tracksEnded();const{mediaSource:s}=this;if(!s||s.readyState!=="open"){s&&this.log(`Could not call mediaSource.endOfStream(). mediaSource.readyState: ${s.readyState}`);return}this.log("Calling mediaSource.endOfStream()"),s.endOfStream(),this.hls.trigger(Ie.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(Ie.BUFFERED_TO_END,void 0)):n.type==="video"&&this.unblockAudio()}tracksEnded(){this.sourceBuffers.forEach(([t])=>{if(t!==null){const n=this.tracks[t];n&&(n.ending=!1)}})}onLevelUpdated(t,{details:n}){n.fragments.length&&(this.details=n,this.updateDuration())}updateDuration(){this.blockUntilOpen(()=>{const t=this.getDurationAndRange();t&&this.updateMediaSource(t)})}onError(t,n){if(n.details===Wt.BUFFER_APPEND_ERROR&&n.frag){var r;const o=(r=n.errorAction)==null?void 0:r.nextAutoLevel;Bn(o)&&o!==n.frag.level&&this.resetAppendErrors()}}resetAppendErrors(){this.appendErrors={audio:0,video:0,audiovideo:0}}trimBuffers(){const{hls:t,details:n,media:r}=this;if(!r||n===null||!this.sourceBufferCount)return;const o=t.config,a=r.currentTime,s=n.levelTargetDuration,l=n.live&&o.liveBackBufferLength!==null?o.liveBackBufferLength:o.backBufferLength;if(Bn(l)&&l>=0){const d=Math.max(l,s),h=Math.floor(a/s)*s-d;this.flushBackBuffer(a,s,h)}const c=o.frontBufferFlushThreshold;if(Bn(c)&&c>0){const d=Math.max(o.maxBufferLength,c),h=Math.max(d,s),p=Math.floor(a/s)*s+h;this.flushFrontBuffer(a,s,p)}}flushBackBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const l=jr.getBuffered(a);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(Ie.BACK_BUFFER_REACHED,{bufferEnd:r});const c=this.tracks[o];if((s=this.details)!=null&&s.live)this.hls.trigger(Ie.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r});else if(c!=null&&c.ended){this.log(`Cannot flush ${o} back buffer while SourceBuffer is in ended state`);return}this.hls.trigger(Ie.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:o})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const s=jr.getBuffered(a),l=s.length;if(l<2)return;const c=s.start(l-1),d=s.end(l-1);if(r>c||t>=c&&t<=d)return;this.hls.trigger(Ie.BUFFER_FLUSHING,{startOffset:c,endOffset:1/0,type:o})}})}getDurationAndRange(){var t;const{details:n,mediaSource:r}=this;if(!n||!this.media||r?.readyState!=="open")return null;const o=n.edge;if(n.live&&this.hls.config.liveDurationInfinity){if(n.fragments.length&&r.setLiveSeekableRange){const d=Math.max(0,n.fragmentStart),h=Math.max(d,o);return{duration:1/0,start:d,end:h}}return{duration:1/0}}const a=(t=this.overrides)==null?void 0:t.duration;if(a)return Bn(a)?{duration:a}:null;const s=this.media.duration,l=Bn(r.duration)?r.duration:0;return o>l&&o>s||!Bn(s)?{duration:o}:null}updateMediaSource({duration:t,start:n,end:r}){const o=this.mediaSource;!this.media||!o||o.readyState!=="open"||(o.duration!==t&&(Bn(t)&&this.log(`Updating MediaSource duration to ${t.toFixed(3)}`),o.duration=t),n!==void 0&&r!==void 0&&(this.log(`MediaSource duration is set to ${o.duration}. Setting seekable range to ${n}-${r}.`),o.setLiveSeekableRange(n,r)))}get tracksReady(){const t=this.pendingTrackCount;return t>0&&(t>=this.bufferCodecEventsTotal||this.isPending(this.tracks.audiovideo))}checkPendingTracks(){const{bufferCodecEventsTotal:t,pendingTrackCount:n,tracks:r}=this;if(this.log(`checkPendingTracks (pending: ${n} codec events expected: ${t}) ${Co(r)}`),this.tracksReady){var o;const a=(o=this.transferData)==null?void 0:o.tracks;a&&Object.keys(a).length?this.attachTransferred():this.createSourceBuffers()}}bufferCreated(){if(this.sourceBufferCount){const t={};this.sourceBuffers.forEach(([n,r])=>{if(n){const o=this.tracks[n];t[n]={buffer:r,container:o.container,codec:o.codec,supplemental:o.supplemental,levelCodec:o.levelCodec,id:o.id,metadata:o.metadata}}}),this.hls.trigger(Ie.BUFFER_CREATED,{tracks:t}),this.log(`SourceBuffers created. Running queue: ${this.operationQueue}`),this.sourceBuffers.forEach(([n])=>{this.executeNext(n)})}else{const t=new Error("could not create source buffer for media codec(s)");this.hls.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.BUFFER_INCOMPATIBLE_CODECS_ERROR,fatal:!0,error:t,reason:t.message})}}createSourceBuffers(){const{tracks:t,sourceBuffers:n,mediaSource:r}=this;if(!r)throw new Error("createSourceBuffers called when mediaSource was null");for(const a in t){const s=a,l=t[s];if(this.isPending(l)){const c=this.getTrackCodec(l,s),d=`${l.container};codecs=${c}`;l.codec=c,this.log(`creating sourceBuffer(${d})${this.currentOp(s)?" Queued":""} ${Co(l)}`);try{const h=r.addSourceBuffer(d),p=UF(s),m=[s,h];n[p]=m,l.buffer=h}catch(h){var o;this.error(`error while trying to add sourceBuffer: ${h.message}`),this.shiftAndExecuteNext(s),(o=this.operationQueue)==null||o.removeBlockers(),delete this.tracks[s],this.hls.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.BUFFER_ADD_CODEC_ERROR,fatal:!1,error:h,sourceBufferName:s,mimeType:d,parent:l.id});return}this.trackSourceBuffer(s,l)}}this.bufferCreated()}getTrackCodec(t,n){const r=t.supplemental;let o=t.codec;r&&(n==="video"||n==="audiovideo")&&y_(r,"video")&&(o=gxt(o,r));const a=qE(o,t.levelCodec);return a?n.slice(0,5)==="audio"?ET(a,this.appendSource):a:""}trackSourceBuffer(t,n){const r=n.buffer;if(!r)return;const o=this.getTrackCodec(n,t);this.tracks[t]={buffer:r,codec:o,container:n.container,levelCodec:n.levelCodec,supplemental:n.supplemental,metadata:n.metadata,id:n.id,listeners:[]},this.removeBufferListeners(t),this.addBufferListener(t,"updatestart",this.onSBUpdateStart),this.addBufferListener(t,"updateend",this.onSBUpdateEnd),this.addBufferListener(t,"error",this.onSBUpdateError),this.appendSource&&this.addBufferListener(t,"bufferedchange",(a,s)=>{const l=s.removedRanges;l!=null&&l.length&&this.hls.trigger(Ie.BUFFER_FLUSHED,{type:a})})}get mediaSrc(){var t,n;const r=((t=this.media)==null||(n=t.querySelector)==null?void 0:n.call(t,"source"))||this.media;return r?.src}onSBUpdateStart(t){const n=this.currentOp(t);n&&n.onStart()}onSBUpdateEnd(t){var n;if(((n=this.mediaSource)==null?void 0:n.readyState)==="closed"){this.resetBuffer(t);return}const r=this.currentOp(t);r&&(r.onComplete(),this.shiftAndExecuteNext(t))}onSBUpdateError(t,n){var r;const o=new Error(`${t} SourceBuffer error. MediaSource readyState: ${(r=this.mediaSource)==null?void 0:r.readyState}`);this.error(`${o}`,n),this.hls.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.BUFFER_APPENDING_ERROR,sourceBufferName:t,error:o,fatal:!1});const a=this.currentOp(t);a&&a.onError(o)}updateTimestampOffset(t,n,r,o,a,s){const l=n-t.timestampOffset;Math.abs(l)>=r&&(this.log(`Updating ${o} SourceBuffer timestampOffset to ${n} (sn: ${a} cc: ${s})`),t.timestampOffset=n)}removeExecutor(t,n,r){const{media:o,mediaSource:a}=this,s=this.tracks[t],l=s?.buffer;if(!o||!a||!l){this.warn(`Attempting to remove from the ${t} SourceBuffer, but it does not exist`),this.shiftAndExecuteNext(t);return}const c=Bn(o.duration)?o.duration:1/0,d=Bn(a.duration)?a.duration:1/0,h=Math.max(0,n),p=Math.min(r,c,d);p>h&&(!s.ending||s.ended)?(s.ended=!1,this.log(`Removing [${h},${p}] from the ${t} SourceBuffer`),l.remove(h,p)):this.shiftAndExecuteNext(t)}appendExecutor(t,n){const r=this.tracks[n],o=r?.buffer;if(!o)throw new Ewt(`Attempting to append to the ${n} SourceBuffer, but it does not exist`);r.ending=!1,r.ended=!1,o.appendBuffer(t)}blockUntilOpen(t){if(this.isUpdating()||this.isQueued())this.blockBuffers(t).catch(n=>{this.warn(`SourceBuffer blocked callback ${n}`),this.stepOperationQueue(this.sourceBufferTypes)});else try{t()}catch(n){this.warn(`Callback run without blocking ${this.operationQueue} ${n}`)}}isUpdating(){return this.sourceBuffers.some(([t,n])=>t&&n.updating)}isQueued(){return this.sourceBuffers.some(([t])=>t&&!!this.currentOp(t))}isPending(t){return!!t&&!t.buffer}blockBuffers(t,n=this.sourceBufferTypes){if(!n.length)return this.log("Blocking operation requested, but no SourceBuffers exist"),Promise.resolve().then(t);const{operationQueue:r}=this,o=n.map(s=>this.appendBlocker(s));return n.length>1&&!!this.blockedAudioAppend&&this.unblockAudio(),Promise.all(o).then(s=>{r===this.operationQueue&&(t(),this.stepOperationQueue(this.sourceBufferTypes))})}stepOperationQueue(t){t.forEach(n=>{var r;const o=(r=this.tracks[n])==null?void 0:r.buffer;!o||o.updating||this.shiftAndExecuteNext(n)})}append(t,n,r){this.operationQueue&&this.operationQueue.append(t,n,r)}appendBlocker(t){if(this.operationQueue)return this.operationQueue.appendBlocker(t)}currentOp(t){return this.operationQueue?this.operationQueue.current(t):null}executeNext(t){t&&this.operationQueue&&this.operationQueue.executeNext(t)}shiftAndExecuteNext(t){this.operationQueue&&this.operationQueue.shiftAndExecuteNext(t)}get pendingTrackCount(){return Object.keys(this.tracks).reduce((t,n)=>t+(this.isPending(this.tracks[n])?1:0),0)}get sourceBufferCount(){return this.sourceBuffers.reduce((t,[n])=>t+(n?1:0),0)}get sourceBufferTypes(){return this.sourceBuffers.map(([t])=>t).filter(t=>!!t)}addBufferListener(t,n,r){const o=this.tracks[t];if(!o)return;const a=o.buffer;if(!a)return;const s=r.bind(this,t);o.listeners.push({event:n,listener:s}),a.addEventListener(n,s)}removeBufferListeners(t){const n=this.tracks[t];if(!n)return;const r=n.buffer;r&&(n.listeners.forEach(o=>{r.removeEventListener(o.event,o.listener)}),n.listeners.length=0)}}function Iue(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function Awt(e,t){const n=self.document.createElement("source");n.type="video/mp4",n.src=t,e.appendChild(n)}function UF(e){return e==="audio"?1:0}class BG{constructor(t){this.hls=void 0,this.autoLevelCapping=void 0,this.firstLevel=void 0,this.media=void 0,this.restrictedLevels=void 0,this.timer=void 0,this.clientRect=void 0,this.streamController=void 0,this.hls=t,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.firstLevel=-1,this.media=null,this.restrictedLevels=[],this.timer=void 0,this.clientRect=null,this.registerListeners()}setStreamController(t){this.streamController=t}destroy(){this.hls&&this.unregisterListener(),this.timer&&this.stopCapping(),this.media=null,this.clientRect=null,this.hls=this.streamController=null}registerListeners(){const{hls:t}=this;t.on(Ie.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ie.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ie.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Ie.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(Ie.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ie.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ie.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ie.MEDIA_DETACHING,this.onMediaDetaching,this)}onFpsDropLevelCapping(t,n){const r=this.hls.levels[n.droppedLevel];this.isLevelAllowed(r)&&this.restrictedLevels.push({bitrate:r.bitrate,height:r.height,width:r.width})}onMediaAttaching(t,n){this.media=n.media instanceof HTMLVideoElement?n.media:null,this.clientRect=null,this.timer&&this.hls.levels.length&&this.detectPlayerSize()}onManifestParsed(t,n){const r=this.hls;this.restrictedLevels=[],this.firstLevel=n.firstLevel,r.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onLevelsUpdated(t,n){this.timer&&Bn(this.autoLevelCapping)&&this.detectPlayerSize()}onBufferCodecs(t,n){this.hls.config.capLevelToPlayerSize&&n.video&&this.startCapping()}onMediaDetaching(){this.stopCapping(),this.media=null}detectPlayerSize(){if(this.media){if(this.mediaHeight<=0||this.mediaWidth<=0){this.clientRect=null;return}const t=this.hls.levels;if(t.length){const n=this.hls,r=this.getMaxLevel(t.length-1);r!==this.autoLevelCapping&&n.logger.log(`Setting autoLevelCapping to ${r}: ${t[r].height}p@${t[r].bitrate} for media ${this.mediaWidth}x${this.mediaHeight}`),n.autoLevelCapping=r,n.autoLevelEnabled&&n.autoLevelCapping>this.autoLevelCapping&&this.streamController&&this.streamController.nextLevelSwitch(),this.autoLevelCapping=n.autoLevelCapping}}}getMaxLevel(t){const n=this.hls.levels;if(!n.length)return-1;const r=n.filter((o,a)=>this.isLevelAllowed(o)&&a<=t);return this.clientRect=null,BG.getMaxLevelByMediaSize(r,this.mediaWidth,this.mediaHeight)}startCapping(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,self.clearInterval(this.timer),this.timer=self.setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())}stopCapping(){this.restrictedLevels=[],this.firstLevel=-1,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(self.clearInterval(this.timer),this.timer=void 0)}getDimensions(){if(this.clientRect)return this.clientRect;const t=this.media,n={width:0,height:0};if(t){const r=t.getBoundingClientRect();n.width=r.width,n.height=r.height,!n.width&&!n.height&&(n.width=r.right-r.left||t.width||0,n.height=r.bottom-r.top||t.height||0)}return this.clientRect=n,n}get mediaWidth(){return this.getDimensions().width*this.contentScaleFactor}get mediaHeight(){return this.getDimensions().height*this.contentScaleFactor}get contentScaleFactor(){let t=1;if(!this.hls.config.ignoreDevicePixelRatio)try{t=self.devicePixelRatio}catch{}return Math.min(t,this.hls.config.maxDevicePixelRatio)}isLevelAllowed(t){return!this.restrictedLevels.some(r=>t.bitrate===r.bitrate&&t.width===r.width&&t.height===r.height)}static getMaxLevelByMediaSize(t,n,r){if(!(t!=null&&t.length))return-1;const o=(l,c)=>c?l.width!==c.width||l.height!==c.height:!0;let a=t.length-1;const s=Math.max(n,r);for(let l=0;l=s||c.height>=s)&&o(c,t[l+1])){a=l;break}}return a}}const Iwt={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},du=Iwt,Lwt={HLS:"h"},Dwt=Lwt;class Ef{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof Ef?r:new Ef(r))),this.value=t,this.params=n}}const Pwt="Dict";function Rwt(e){return Array.isArray(e)?JSON.stringify(e):e instanceof Map?"Map{}":e instanceof Set?"Set{}":typeof e=="object"?JSON.stringify(e):String(e)}function Mwt(e,t,n,r){return new Error(`failed to ${e} "${Rwt(t)}" as ${n}`,{cause:r})}function Tf(e,t,n){return Mwt("serialize",e,t,n)}class T2e{constructor(t){this.description=t}}const Lue="Bare Item",Owt="Boolean";function $wt(e){if(typeof e!="boolean")throw Tf(e,Owt);return e?"?1":"?0"}function Bwt(e){return btoa(String.fromCharCode(...e))}const Nwt="Byte Sequence";function Fwt(e){if(ArrayBuffer.isView(e)===!1)throw Tf(e,Nwt);return`:${Bwt(e)}:`}const jwt="Integer";function Vwt(e){return e<-999999999999999||99999999999999912)throw Tf(e,Uwt);const n=t.toString();return n.includes(".")?n:`${n}.0`}const Wwt="String",Gwt=/[\x00-\x1f\x7f]+/;function Kwt(e){if(Gwt.test(e))throw Tf(e,Wwt);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function qwt(e){return e.description||e.toString().slice(7,-1)}const Ywt="Token";function Due(e){const t=qwt(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw Tf(t,Ywt);return t}function Kz(e){switch(typeof e){case"number":if(!Bn(e))throw Tf(e,Lue);return Number.isInteger(e)?A2e(e):Hwt(e);case"string":return Kwt(e);case"symbol":return Due(e);case"boolean":return $wt(e);case"object":if(e instanceof Date)return zwt(e);if(e instanceof Uint8Array)return Fwt(e);if(e instanceof T2e)return Due(e);default:throw Tf(e,Lue)}}const Xwt="Key";function qz(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw Tf(e,Xwt);return e}function NG(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${qz(t)}`:`;${qz(t)}=${Kz(n)}`).join("")}function L2e(e){return e instanceof Ef?`${Kz(e.value)}${NG(e.params)}`:Kz(e)}function Zwt(e){return`(${e.value.map(L2e).join(" ")})${NG(e.params)}`}function Jwt(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw Tf(e,Pwt);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([o,a])=>{a instanceof Ef||(a=new Ef(a));let s=qz(o);return a.value===!0?s+=NG(a.params):(s+="=",Array.isArray(a.value)?s+=Zwt(a):s+=L2e(a)),s}).join(`,${r}`)}function D2e(e,t){return Jwt(e,t)}const Jd="CMCD-Object",ps="CMCD-Request",Mv="CMCD-Session",$p="CMCD-Status",Qwt={br:Jd,ab:Jd,d:Jd,ot:Jd,tb:Jd,tpb:Jd,lb:Jd,tab:Jd,lab:Jd,url:Jd,pb:ps,bl:ps,tbl:ps,dl:ps,ltc:ps,mtp:ps,nor:ps,nrr:ps,rc:ps,sn:ps,sta:ps,su:ps,ttfb:ps,ttfbb:ps,ttlb:ps,cmsdd:ps,cmsds:ps,smrt:ps,df:ps,cs:ps,ts:ps,cid:Mv,pr:Mv,sf:Mv,sid:Mv,st:Mv,v:Mv,msd:Mv,bs:$p,bsd:$p,cdn:$p,rtp:$p,bg:$p,pt:$p,ec:$p,e:$p},eEt={REQUEST:ps};function tEt(e){return Object.keys(e).reduce((t,n)=>{var r;return(r=e[n])===null||r===void 0||r.forEach(o=>t[o]=n),t},{})}function nEt(e,t){const n={};if(!e)return n;const r=Object.keys(e),o=t?tEt(t):{};return r.reduce((a,s)=>{var l;const c=Qwt[s]||o[s]||eEt.REQUEST,d=(l=a[c])!==null&&l!==void 0?l:a[c]={};return d[s]=e[s],a},n)}function rEt(e){return["ot","sf","st","e","sta"].includes(e)}function iEt(e){return typeof e=="number"?Bn(e):e!=null&&e!==""&&e!==!1}const P2e="event";function oEt(e,t){const n=new URL(e),r=new URL(t);if(n.origin!==r.origin)return e;const o=n.pathname.split("/").slice(1),a=r.pathname.split("/").slice(1,-1);for(;o[0]===a[0];)o.shift(),a.shift();for(;a.length;)a.shift(),o.unshift("..");return o.join("/")+n.search+n.hash}const QE=e=>Math.round(e),Yz=(e,t)=>Array.isArray(e)?e.map(n=>Yz(n,t)):e instanceof Ef&&typeof e.value=="string"?new Ef(Yz(e.value,t),e.params):(t.baseUrl&&(e=oEt(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),yC=e=>QE(e/100)*100,sEt=(e,t)=>{let n=e;return t.version>=2&&(e instanceof Ef&&typeof e.value=="string"?n=new Ef([e]):typeof e=="string"&&(n=[e])),Yz(n,t)},aEt={br:QE,d:QE,bl:yC,dl:yC,mtp:yC,nor:sEt,rtp:yC,tb:QE},R2e="request",M2e="response",FG=["ab","bg","bl","br","bs","bsd","cdn","cid","cs","df","ec","lab","lb","ltc","msd","mtp","pb","pr","pt","sf","sid","sn","st","sta","tab","tb","tbl","tpb","ts","v"],lEt=["e"],uEt=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function ZA(e){return uEt.test(e)}function cEt(e){return FG.includes(e)||lEt.includes(e)||ZA(e)}const O2e=["d","dl","nor","ot","rtp","su"];function dEt(e){return FG.includes(e)||O2e.includes(e)||ZA(e)}const fEt=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function hEt(e){return FG.includes(e)||O2e.includes(e)||fEt.includes(e)||ZA(e)}const pEt=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function vEt(e){return pEt.includes(e)||ZA(e)}const mEt={[M2e]:hEt,[P2e]:cEt,[R2e]:dEt};function $2e(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,o=t.reportingMode||R2e,a=r===1?vEt:mEt[o];let s=Object.keys(e).filter(a);const l=t.filter;typeof l=="function"&&(s=s.filter(l));const c=o===M2e||o===P2e;c&&!s.includes("ts")&&s.push("ts"),r>1&&!s.includes("v")&&s.push("v");const d=mo({},aEt,t.formatters),h={version:r,reportingMode:o,baseUrl:t.baseUrl};return s.sort().forEach(p=>{let m=e[p];const g=d[p];if(typeof g=="function"&&(m=g(m,h)),p==="v"){if(r===1)return;m=r}p=="pr"&&m===1||(c&&p==="ts"&&!Bn(m)&&(m=Date.now()),iEt(m)&&(rEt(p)&&typeof m=="string"&&(m=new T2e(m)),n[p]=m))}),n}function gEt(e,t={}){const n={};if(!e)return n;const r=$2e(e,t),o=nEt(r,t?.customHeaderMap);return Object.entries(o).reduce((a,[s,l])=>{const c=D2e(l,{whitespace:!1});return c&&(a[s]=c),a},n)}function yEt(e,t,n){return mo(e,gEt(t,n))}const bEt="CMCD";function _Et(e,t={}){return e?D2e($2e(e,t),{whitespace:!1}):""}function SEt(e,t={}){if(!e)return"";const n=_Et(e,t);return encodeURIComponent(n)}function kEt(e,t={}){if(!e)return"";const n=SEt(e,t);return`${bEt}=${n}`}const Pue=/CMCD=[^&#]+/;function xEt(e,t,n){const r=kEt(t,n);if(!r)return e;if(Pue.test(e))return e.replace(Pue,r);const o=e.includes("?")?"&":"?";return`${e}${o}${r}`}class CEt{constructor(t){this.hls=void 0,this.config=void 0,this.media=void 0,this.sid=void 0,this.cid=void 0,this.useHeaders=!1,this.includeKeys=void 0,this.initialized=!1,this.starved=!1,this.buffering=!0,this.audioBuffer=void 0,this.videoBuffer=void 0,this.onWaiting=()=>{this.initialized&&(this.starved=!0),this.buffering=!0},this.onPlaying=()=>{this.initialized||(this.initialized=!0),this.buffering=!1},this.applyPlaylistData=o=>{try{this.apply(o,{ot:du.MANIFEST,su:!this.initialized})}catch(a){this.hls.logger.warn("Could not generate manifest CMCD data.",a)}},this.applyFragmentData=o=>{try{const{frag:a,part:s}=o,l=this.hls.levels[a.level],c=this.getObjectType(a),d={d:(s||a).duration*1e3,ot:c};(c===du.VIDEO||c===du.AUDIO||c==du.MUXED)&&(d.br=l.bitrate/1e3,d.tb=this.getTopBandwidth(c)/1e3,d.bl=this.getBufferLength(c));const h=s?this.getNextPart(s):this.getNextFrag(a);h!=null&&h.url&&h.url!==a.url&&(d.nor=h.url),this.apply(o,d)}catch(a){this.hls.logger.warn("Could not generate segment CMCD data.",a)}},this.hls=t;const n=this.config=t.config,{cmcd:r}=n;r!=null&&(n.pLoader=this.createPlaylistLoader(),n.fLoader=this.createFragmentLoader(),this.sid=r.sessionId||t.sessionId,this.cid=r.contentId,this.useHeaders=r.useHeaders===!0,this.includeKeys=r.includeKeys,this.registerListeners())}registerListeners(){const t=this.hls;t.on(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ie.MEDIA_DETACHED,this.onMediaDetached,this),t.on(Ie.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ie.MEDIA_DETACHED,this.onMediaDetached,this),t.off(Ie.BUFFER_CREATED,this.onBufferCreated,this)}destroy(){this.unregisterListeners(),this.onMediaDetached(),this.hls=this.config=this.audioBuffer=this.videoBuffer=null,this.onWaiting=this.onPlaying=this.media=null}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("waiting",this.onWaiting),this.media.addEventListener("playing",this.onPlaying)}onMediaDetached(){this.media&&(this.media.removeEventListener("waiting",this.onWaiting),this.media.removeEventListener("playing",this.onPlaying),this.media=null)}onBufferCreated(t,n){var r,o;this.audioBuffer=(r=n.tracks.audio)==null?void 0:r.buffer,this.videoBuffer=(o=n.tracks.video)==null?void 0:o.buffer}createData(){var t;return{v:1,sf:Dwt.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){mo(n,this.createData());const r=n.ot===du.INIT||n.ot===du.VIDEO||n.ot===du.MUXED;this.starved&&r&&(n.bs=!0,n.su=!0,this.starved=!1),n.su==null&&(n.su=this.buffering);const{includeKeys:o}=this;o&&(n=Object.keys(n).reduce((s,l)=>(o.includes(l)&&(s[l]=n[l]),s),{}));const a={baseUrl:t.url};this.useHeaders?(t.headers||(t.headers={}),yEt(t.headers,n,a)):t.url=xEt(t.url,n,a)}getNextFrag(t){var n;const r=(n=this.hls.levels[t.level])==null?void 0:n.details;if(r){const o=t.sn-r.startSN;return r.fragments[o+1]}}getNextPart(t){var n;const{index:r,fragment:o}=t,a=(n=this.hls.levels[o.level])==null||(n=n.details)==null?void 0:n.partList;if(a){const{sn:s}=o;for(let l=a.length-1;l>=0;l--){const c=a[l];if(c.index===r&&c.fragment.sn===s)return a[l+1]}}}getObjectType(t){const{type:n}=t;if(n==="subtitle")return du.TIMED_TEXT;if(t.sn==="initSegment")return du.INIT;if(n==="audio")return du.AUDIO;if(n==="main")return this.hls.audioTracks.length?du.VIDEO:du.MUXED}getTopBandwidth(t){let n=0,r;const o=this.hls;if(t===du.AUDIO)r=o.audioTracks;else{const a=o.maxAutoLevel,s=a>-1?a+1:o.levels.length;r=o.levels.slice(0,s)}return r.forEach(a=>{a.bitrate>n&&(n=a.bitrate)}),n>0?n:NaN}getBufferLength(t){const n=this.media,r=t===du.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:jr.bufferInfo(r,n.currentTime,this.config.maxBufferHole).len*1e3}createPlaylistLoader(){const{pLoader:t}=this.config,n=this.applyPlaylistData,r=t||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new r(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,l){n(a),this.loader.load(a,s,l)}}}createFragmentLoader(){const{fLoader:t}=this.config,n=this.applyFragmentData,r=t||this.config.loader;return class{constructor(a){this.loader=void 0,this.loader=new r(a)}get stats(){return this.loader.stats}get context(){return this.loader.context}destroy(){this.loader.destroy()}abort(){this.loader.abort()}load(a,s,l){n(a),this.loader.load(a,s,l)}}}}const wEt=3e5;class EEt extends ed{constructor(t){super("content-steering",t.logger),this.hls=void 0,this.loader=null,this.uri=null,this.pathwayId=".",this._pathwayPriority=null,this.timeToLoad=300,this.reloadTimer=-1,this.updated=0,this.started=!1,this.enabled=!0,this.levels=null,this.audioTracks=null,this.subtitleTracks=null,this.penalizedPathways={},this.hls=t,this.registerListeners()}registerListeners(){const t=this.hls;t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ie.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ie.ERROR,this.onError,this))}pathways(){return(this.levels||[]).reduce((t,n)=>(t.indexOf(n.pathwayId)===-1&&t.push(n.pathwayId),t),[])}get pathwayPriority(){return this._pathwayPriority}set pathwayPriority(t){this.updatePathwayPriority(t)}startLoad(){if(this.started=!0,this.clearTimeout(),this.enabled&&this.uri){if(this.updated){const t=this.timeToLoad*1e3-(performance.now()-this.updated);if(t>0){this.scheduleRefresh(this.uri,t);return}}this.loadSteeringManifest(this.uri)}}stopLoad(){this.started=!1,this.loader&&(this.loader.destroy(),this.loader=null),this.clearTimeout()}clearTimeout(){this.reloadTimer!==-1&&(self.clearTimeout(this.reloadTimer),this.reloadTimer=-1)}destroy(){this.unregisterListeners(),this.stopLoad(),this.hls=null,this.levels=this.audioTracks=this.subtitleTracks=null}removeLevel(t){const n=this.levels;n&&(this.levels=n.filter(r=>r!==t))}onManifestLoading(){this.stopLoad(),this.enabled=!0,this.timeToLoad=300,this.updated=0,this.uri=null,this.pathwayId=".",this.levels=this.audioTracks=this.subtitleTracks=null}onManifestLoaded(t,n){const{contentSteering:r}=n;r!==null&&(this.pathwayId=r.pathwayId,this.uri=r.uri,this.started&&this.startLoad())}onManifestParsed(t,n){this.audioTracks=n.audioTracks,this.subtitleTracks=n.subtitleTracks}onError(t,n){const{errorAction:r}=n;if(r?.action===Ba.SendAlternateToPenaltyBox&&r.flags===Qu.MoveAllAlternatesMatchingHost){const o=this.levels;let a=this._pathwayPriority,s=this.pathwayId;if(n.context){const{groupId:l,pathwayId:c,type:d}=n.context;l&&o?s=this.getPathwayForGroupId(l,d,s):c&&(s=c)}s in this.penalizedPathways||(this.penalizedPathways[s]=performance.now()),!a&&o&&(a=this.pathways()),a&&a.length>1&&(this.updatePathwayPriority(a),r.resolved=this.pathwayId!==s),n.details===Wt.BUFFER_APPEND_ERROR&&!n.fatal?r.resolved=!0:r.resolved||this.warn(`Could not resolve ${n.details} ("${n.error.message}") with content-steering for Pathway: ${s} levels: ${o&&o.length} priorities: ${Co(a)} penalized: ${Co(this.penalizedPathways)}`)}}filterParsedLevels(t){this.levels=t;let n=this.getLevelsForPathway(this.pathwayId);if(n.length===0){const r=t[0].pathwayId;this.log(`No levels found in Pathway ${this.pathwayId}. Setting initial Pathway to "${r}"`),n=this.getLevelsForPathway(r),this.pathwayId=r}return n.length!==t.length&&this.log(`Found ${n.length}/${t.length} levels in Pathway "${this.pathwayId}"`),n}getLevelsForPathway(t){return this.levels===null?[]:this.levels.filter(n=>t===n.pathwayId)}updatePathwayPriority(t){this._pathwayPriority=t;let n;const r=this.penalizedPathways,o=performance.now();Object.keys(r).forEach(a=>{o-r[a]>wEt&&delete r[a]});for(let a=0;a0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,n2e(n),this.hls.trigger(Ie.LEVELS_UPDATED,{levels:n});const d=this.hls.levels[l];c&&d&&this.levels&&(d.attrs["STABLE-VARIANT-ID"]!==c.attrs["STABLE-VARIANT-ID"]&&d.bitrate!==c.bitrate&&this.log(`Unstable Pathways change from bitrate ${c.bitrate} to ${d.bitrate}`),this.hls.nextLoadLevel=l);break}}}getPathwayForGroupId(t,n,r){const o=this.getLevelsForPathway(r).concat(this.levels||[]);for(let a=0;a{const{ID:s,"BASE-ID":l,"URI-REPLACEMENT":c}=a;if(n.some(h=>h.pathwayId===s))return;const d=this.getLevelsForPathway(l).map(h=>{const p=new os(h.attrs);p["PATHWAY-ID"]=s;const m=p.AUDIO&&`${p.AUDIO}_clone_${s}`,g=p.SUBTITLES&&`${p.SUBTITLES}_clone_${s}`;m&&(r[p.AUDIO]=m,p.AUDIO=m),g&&(o[p.SUBTITLES]=g,p.SUBTITLES=g);const y=B2e(h.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),S=new __({attrs:p,audioCodec:h.audioCodec,bitrate:h.bitrate,height:h.height,name:h.name,url:y,videoCodec:h.videoCodec,width:h.width});if(h.audioGroups)for(let k=1;k{this.log(`Loaded steering manifest: "${o}"`);const y=h.data;if(y?.VERSION!==1){this.log(`Steering VERSION ${y.VERSION} not supported!`);return}this.updated=performance.now(),this.timeToLoad=y.TTL;const{"RELOAD-URI":S,"PATHWAY-CLONES":k,"PATHWAY-PRIORITY":C}=y;if(S)try{this.uri=new self.URL(S,o).href}catch{this.enabled=!1,this.log(`Failed to parse Steering Manifest RELOAD-URI: ${S}`);return}this.scheduleRefresh(this.uri||m.url),k&&this.clonePathways(k);const x={steeringManifest:y,url:o.toString()};this.hls.trigger(Ie.STEERING_MANIFEST_LOADED,x),C&&this.updatePathwayPriority(C)},onError:(h,p,m,g)=>{if(this.log(`Error loading steering manifest: ${h.code} ${h.text} (${p.url})`),this.stopLoad(),h.code===410){this.enabled=!1,this.log(`Steering manifest ${p.url} no longer available`);return}let y=this.timeToLoad*1e3;if(h.code===429){const S=this.loader;if(typeof S?.getResponseHeader=="function"){const k=S.getResponseHeader("Retry-After");k&&(y=parseFloat(k)*1e3)}this.log(`Steering manifest ${p.url} rate limited`);return}this.scheduleRefresh(this.uri||p.url,y)},onTimeout:(h,p,m)=>{this.log(`Timeout loading steering manifest (${p.url})`),this.scheduleRefresh(this.uri||p.url)}};this.log(`Requesting steering manifest: ${o}`),this.loader.load(a,c,d)}scheduleRefresh(t,n=this.timeToLoad*1e3){this.clearTimeout(),this.reloadTimer=self.setTimeout(()=>{var r;const o=(r=this.hls)==null?void 0:r.media;if(o&&!o.ended){this.loadSteeringManifest(t);return}this.scheduleRefresh(t,this.timeToLoad*1e3)},n)}}function Rue(e,t,n,r){e&&Object.keys(t).forEach(o=>{const a=e.filter(s=>s.groupId===o).map(s=>{const l=mo({},s);return l.details=void 0,l.attrs=new os(l.attrs),l.url=l.attrs.URI=B2e(s.url,s.attrs["STABLE-RENDITION-ID"],"PER-RENDITION-URIS",n),l.groupId=l.attrs["GROUP-ID"]=t[o],l.attrs["PATHWAY-ID"]=r,l});e.push(...a)})}function B2e(e,t,n,r){const{HOST:o,PARAMS:a,[n]:s}=r;let l;t&&(l=s?.[t],l&&(e=l));const c=new self.URL(e);return o&&!l&&(c.host=o),a&&Object.keys(a).sort().forEach(d=>{d&&c.searchParams.set(d,a[d])}),c.href}class my extends ed{constructor(t){super("eme",t.logger),this.hls=void 0,this.config=void 0,this.media=null,this.keyFormatPromise=null,this.keySystemAccessPromises={},this._requestLicenseFailureCount=0,this.mediaKeySessions=[],this.keyIdToKeySessionPromise={},this.mediaKeys=null,this.setMediaKeysQueue=my.CDMCleanupPromise?[my.CDMCleanupPromise]:[],this.bannedKeyIds={},this.onMediaEncrypted=n=>{const{initDataType:r,initData:o}=n,a=`"${n.type}" event: init data type: "${r}"`;if(this.debug(a),o!==null){if(!this.keyFormatPromise){let s=Object.keys(this.keySystemAccessPromises);s.length||(s=$4(this.config));const l=s.map(OF).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=XE(s);if(r!=="sinf"||l!==ls.FAIRPLAY){this.log(`Ignoring "${n.type}" event with init data type: "${r}" for selected key-system ${l}`);return}let c;try{const g=aa(new Uint8Array(o)),y=TG(JSON.parse(g).sinf),S=D3e(y);if(!S)throw new Error("'schm' box missing or not cbcs/cenc with schi > tenc");c=new Uint8Array(S.subarray(8,24))}catch(g){this.warn(`${a} Failed to parse sinf: ${g}`);return}const d=zl(c),{keyIdToKeySessionPromise:h,mediaKeySessions:p}=this;let m=h[d];for(let g=0;gthis.generateRequestWithPreferredKeySession(y,r,o,"encrypted-event-key-match")),m.catch(C=>this.handleError(C));break}}m||this.handleError(new Error(`Key ID ${d} not encountered in playlist. Key-system sessions ${p.length}.`))}).catch(s=>this.handleError(s))}},this.onWaitingForKey=n=>{this.log(`"${n.type}" event`)},this.hls=t,this.config=t.config,this.registerListeners()}destroy(){this.onDestroying(),this.onMediaDetached();const t=this.config;t.requestMediaKeySystemAccessFunc=null,t.licenseXhrSetup=t.licenseResponseCallback=void 0,t.drmSystems=t.drmSystemOptions={},this.hls=this.config=this.keyIdToKeySessionPromise=null,this.onMediaEncrypted=this.onWaitingForKey=null}registerListeners(){this.hls.on(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Ie.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Ie.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(Ie.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Ie.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Ie.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(Ie.DESTROYING,this.onDestroying,this)}getLicenseServerUrl(t){const{drmSystems:n,widevineLicenseUrl:r}=this.config,o=n?.[t];if(o)return o.licenseUrl;if(t===ls.WIDEVINE&&r)return r}getLicenseServerUrlOrThrow(t){const n=this.getLicenseServerUrl(t);if(n===void 0)throw new Error(`no license server URL configured for key-system "${t}"`);return n}getServerCertificateUrl(t){const{drmSystems:n}=this.config,r=n?.[t];if(r)return r.serverCertificateUrl;this.log(`No Server Certificate in config.drmSystems["${t}"]`)}attemptKeySystemAccess(t){const n=this.hls.levels,r=(s,l,c)=>!!s&&c.indexOf(s)===l,o=n.map(s=>s.audioCodec).filter(r),a=n.map(s=>s.videoCodec).filter(r);return o.length+a.length===0&&a.push("avc1.42e01e"),new Promise((s,l)=>{const c=d=>{const h=d.shift();this.getMediaKeysPromise(h,o,a).then(p=>s({keySystem:h,mediaKeys:p})).catch(p=>{d.length?c(d):p instanceof Xu?l(p):l(new Xu({type:lr.KEY_SYSTEM_ERROR,details:Wt.KEY_SYSTEM_NO_ACCESS,error:p,fatal:!0},p.message))})};c(t)})}requestMediaKeySystemAccess(t,n){const{requestMediaKeySystemAccessFunc:r}=this.config;if(typeof r!="function"){let o=`Configured requestMediaKeySystemAccess is not a function ${r}`;return q3e===null&&self.location.protocol==="http:"&&(o=`navigator.requestMediaKeySystemAccess is not available over insecure protocol ${location.protocol}`),Promise.reject(new Error(o))}return r(t,n)}getMediaKeysPromise(t,n,r){var o;const a=sCt(t,n,r,this.config.drmSystemOptions||{});let s=this.keySystemAccessPromises[t],l=(o=s)==null?void 0:o.keySystemAccess;if(!l){this.log(`Requesting encrypted media "${t}" key-system access with config: ${Co(a)}`),l=this.requestMediaKeySystemAccess(t,a);const c=s=this.keySystemAccessPromises[t]={keySystemAccess:l};return l.catch(d=>{this.log(`Failed to obtain access to key-system "${t}": ${d}`)}),l.then(d=>{this.log(`Access for key-system "${d.keySystem}" obtained`);const h=this.fetchServerCertificate(t);this.log(`Create media-keys for "${t}"`);const p=c.mediaKeys=d.createMediaKeys().then(m=>(this.log(`Media-keys created for "${t}"`),c.hasMediaKeys=!0,h.then(g=>g?this.setMediaKeysServerCertificate(m,t,g):m)));return p.catch(m=>{this.error(`Failed to create media-keys for "${t}"}: ${m}`)}),p})}return l.then(()=>s.mediaKeys)}createMediaKeySessionContext({decryptdata:t,keySystem:n,mediaKeys:r}){this.log(`Creating key-system session "${n}" keyId: ${zl(t.keyId||[])} keyUri: ${t.uri}`);const o=r.createSession(),a={decryptdata:t,keySystem:n,mediaKeys:r,mediaKeysSession:o,keyStatus:"status-pending"};return this.mediaKeySessions.push(a),a}renewKeySession(t){const n=t.decryptdata;if(n.pssh){const r=this.createMediaKeySessionContext(t),o=bC(n),a="cenc";this.keyIdToKeySessionPromise[o]=this.generateRequestWithPreferredKeySession(r,a,n.pssh.buffer,"expired")}else this.warn("Could not renew expired session. Missing pssh initData.");this.removeSession(t)}updateKeySession(t,n){const r=t.mediaKeysSession;return this.log(`Updating key-session "${r.sessionId}" for keyId ${zl(t.decryptdata.keyId||[])} } (data length: ${n.byteLength})`),r.update(n)}getSelectedKeySystemFormats(){return Object.keys(this.keySystemAccessPromises).map(t=>({keySystem:t,hasMediaKeys:this.keySystemAccessPromises[t].hasMediaKeys})).filter(({hasMediaKeys:t})=>!!t).map(({keySystem:t})=>OF(t)).filter(t=>!!t)}getKeySystemAccess(t){return this.getKeySystemSelectionPromise(t).then(({keySystem:n,mediaKeys:r})=>this.attemptSetMediaKeys(n,r))}selectKeySystem(t){return new Promise((n,r)=>{this.getKeySystemSelectionPromise(t).then(({keySystem:o})=>{const a=OF(o);a?n(a):r(new Error(`Unable to find format for key-system "${o}"`))}).catch(r)})}selectKeySystemFormat(t){const n=Object.keys(t.levelkeys||{});return this.keyFormatPromise||(this.log(`Selecting key-system from fragment (sn: ${t.sn} ${t.type}: ${t.level}) key formats ${n.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(n)),this.keyFormatPromise}getKeyFormatPromise(t){const n=$4(this.config),r=t.map(XE).filter(o=>!!o&&n.indexOf(o)!==-1);return this.selectKeySystem(r)}getKeyStatus(t){const{mediaKeySessions:n}=this;for(let r=0;r(this.throwIfDestroyed(),this.log(`Handle encrypted media sn: ${t.frag.sn} ${t.frag.type}: ${t.frag.level} using key ${a}`),this.attemptSetMediaKeys(c,d).then(()=>(this.throwIfDestroyed(),this.createMediaKeySessionContext({keySystem:c,mediaKeys:d,decryptdata:n}))))).then(c=>{const d="cenc",h=n.pssh?n.pssh.buffer:null;return this.generateRequestWithPreferredKeySession(c,d,h,"playlist-key")});return l.catch(c=>this.handleError(c,t.frag)),this.keyIdToKeySessionPromise[r]=l,l}return s.catch(l=>{if(l instanceof Xu){const c=uo({},l.data);this.getKeyStatus(n)==="internal-error"&&(c.decryptdata=n);const d=new Xu(c,l.message);this.handleError(d,t.frag)}}),s}throwIfDestroyed(t="Invalid state"){if(!this.hls)throw new Error("invalid state")}handleError(t,n){if(this.hls)if(t instanceof Xu){n&&(t.data.frag=n);const r=t.data.decryptdata;this.error(`${t.message}${r?` (${zl(r.keyId||[])})`:""}`),this.hls.trigger(Ie.ERROR,t.data)}else this.error(t.message),this.hls.trigger(Ie.ERROR,{type:lr.KEY_SYSTEM_ERROR,details:Wt.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=bC(t),r=this.keyIdToKeySessionPromise[n];if(!r){const o=XE(t.keyFormat),a=o?[o]:$4(this.config);return this.attemptKeySystemAccess(a)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=$4(this.config)),t.length===0)throw new Xu({type:lr.KEY_SYSTEM_ERROR,details:Wt.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${Co({drmSystems:this.config.drmSystems})}`);return this.attemptKeySystemAccess(t)}attemptSetMediaKeys(t,n){if(this.mediaKeys===n)return Promise.resolve();const r=this.setMediaKeysQueue.slice();this.log(`Setting media-keys for "${t}"`);const o=Promise.all(r).then(()=>{if(!this.media)throw this.mediaKeys=null,new Error("Attempted to set mediaKeys without media element attached");return this.media.setMediaKeys(n)});return this.mediaKeys=n,this.setMediaKeysQueue.push(o),o.then(()=>{this.log(`Media-keys set for "${t}"`),r.push(o),this.setMediaKeysQueue=this.setMediaKeysQueue.filter(a=>r.indexOf(a)===-1)})}generateRequestWithPreferredKeySession(t,n,r,o){var a;const s=(a=this.config.drmSystems)==null||(a=a[t.keySystem])==null?void 0:a.generateRequest;if(s)try{const y=s.call(this.hls,n,r,t);if(!y)throw new Error("Invalid response from configured generateRequest filter");n=y.initDataType,r=y.initData?y.initData:null,t.decryptdata.pssh=r?new Uint8Array(r):null}catch(y){if(this.warn(y.message),this.hls&&this.hls.config.debug)throw y}if(r===null)return this.log(`Skipping key-session request for "${o}" (no initData)`),Promise.resolve(t);const l=bC(t.decryptdata),c=t.decryptdata.uri;this.log(`Generating key-session request for "${o}" keyId: ${l} URI: ${c} (init data type: ${n} length: ${r.byteLength})`);const d=new IG,h=t._onmessage=y=>{const S=t.mediaKeysSession;if(!S){d.emit("error",new Error("invalid state"));return}const{messageType:k,message:C}=y;this.log(`"${k}" message event for session "${S.sessionId}" message size: ${C.byteLength}`),k==="license-request"||k==="license-renewal"?this.renewLicense(t,C).catch(x=>{d.eventNames().length?d.emit("error",x):this.handleError(x)}):k==="license-release"?t.keySystem===ls.FAIRPLAY&&this.updateKeySession(t,Vz("acknowledged")).then(()=>this.removeSession(t)).catch(x=>this.handleError(x)):this.warn(`unhandled media key message type "${k}"`)},p=(y,S)=>{S.keyStatus=y;let k;y.startsWith("usable")?d.emit("resolved"):y==="internal-error"||y==="output-restricted"||y==="output-downscaled"?k=Mue(y,S.decryptdata):y==="expired"?k=new Error(`key expired (keyId: ${l})`):y==="released"?k=new Error("key released"):y==="status-pending"||this.warn(`unhandled key status change "${y}" (keyId: ${l})`),k&&(d.eventNames().length?d.emit("error",k):this.handleError(k))},m=t._onkeystatuseschange=y=>{if(!t.mediaKeysSession){d.emit("error",new Error("invalid state"));return}const k=this.getKeyStatuses(t);if(!Object.keys(k).some(_=>k[_]!=="status-pending"))return;if(k[l]==="expired"){this.log(`Expired key ${Co(k)} in key-session "${t.mediaKeysSession.sessionId}"`),this.renewKeySession(t);return}let x=k[l];if(x)p(x,t);else{var E;t.keyStatusTimeouts||(t.keyStatusTimeouts={}),(E=t.keyStatusTimeouts)[l]||(E[l]=self.setTimeout(()=>{if(!t.mediaKeysSession||!this.mediaKeys)return;const T=this.getKeyStatus(t.decryptdata);if(T&&T!=="status-pending")return this.log(`No status for keyId ${l} in key-session "${t.mediaKeysSession.sessionId}". Using session key-status ${T} from other session.`),p(T,t);this.log(`key status for ${l} in key-session "${t.mediaKeysSession.sessionId}" timed out after 1000ms`),x="internal-error",p(x,t)},1e3)),this.log(`No status for keyId ${l} (${Co(k)}).`)}};Kl(t.mediaKeysSession,"message",h),Kl(t.mediaKeysSession,"keystatuseschange",m);const g=new Promise((y,S)=>{d.on("error",S),d.on("resolved",y)});return t.mediaKeysSession.generateRequest(n,r).then(()=>{this.log(`Request generated for key-session "${t.mediaKeysSession.sessionId}" keyId: ${l} URI: ${c}`)}).catch(y=>{throw new Xu({type:lr.KEY_SYSTEM_ERROR,details:Wt.KEY_SYSTEM_NO_SESSION,error:y,decryptdata:t.decryptdata,fatal:!1},`Error generating key-session request: ${y}`)}).then(()=>g).catch(y=>(d.removeAllListeners(),this.removeSession(t).then(()=>{throw y}))).then(()=>(d.removeAllListeners(),t))}getKeyStatuses(t){const n={};return t.mediaKeysSession.keyStatuses.forEach((r,o)=>{if(typeof o=="string"&&typeof r=="object"){const l=o;o=r,r=l}const a="buffer"in o?new Uint8Array(o.buffer,o.byteOffset,o.byteLength):new Uint8Array(o);t.keySystem===ls.PLAYREADY&&a.length===16&&G3e(a);const s=zl(a);r==="internal-error"&&(this.bannedKeyIds[s]=r),this.log(`key status change "${r}" for keyStatuses keyId: ${s} key-session "${t.mediaKeysSession.sessionId}"`),n[s]=r}),n}fetchServerCertificate(t){const n=this.config,r=n.loader,o=new r(n),a=this.getServerCertificateUrl(t);return a?(this.log(`Fetching server certificate for "${t}"`),new Promise((s,l)=>{const c={responseType:"arraybuffer",url:a},d=n.certLoadPolicy.default,h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(m,g,y,S)=>{s(m.data)},onError:(m,g,y,S)=>{l(new Xu({type:lr.KEY_SYSTEM_ERROR,details:Wt.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:uo({url:c.url,data:void 0},m)},`"${t}" certificate request failed (${a}). Status: ${m.code} (${m.text})`))},onTimeout:(m,g,y)=>{l(new Xu({type:lr.KEY_SYSTEM_ERROR,details:Wt.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:{url:c.url,data:void 0}},`"${t}" certificate request timed out (${a})`))},onAbort:(m,g,y)=>{l(new Error("aborted"))}};o.load(c,h,p)})):Promise.resolve()}setMediaKeysServerCertificate(t,n,r){return new Promise((o,a)=>{t.setServerCertificate(r).then(s=>{this.log(`setServerCertificate ${s?"success":"not supported by CDM"} (${r.byteLength}) on "${n}"`),o(t)}).catch(s=>{a(new Xu({type:lr.KEY_SYSTEM_ERROR,details:Wt.KEY_SYSTEM_SERVER_CERTIFICATE_UPDATE_FAILED,error:s,fatal:!0},s.message))})})}renewLicense(t,n){return this.requestLicense(t,new Uint8Array(n)).then(r=>this.updateKeySession(t,new Uint8Array(r)).catch(o=>{throw new Xu({type:lr.KEY_SYSTEM_ERROR,details:Wt.KEY_SYSTEM_SESSION_UPDATE_FAILED,decryptdata:t.decryptdata,error:o,fatal:!1},o.message)}))}unpackPlayReadyKeyMessage(t,n){const r=String.fromCharCode.apply(null,new Uint16Array(n.buffer));if(!r.includes("PlayReadyKeyMessage"))return t.setRequestHeader("Content-Type","text/xml; charset=utf-8"),n;const o=new DOMParser().parseFromString(r,"application/xml"),a=o.querySelectorAll("HttpHeader");if(a.length>0){let h;for(let p=0,m=a.length;p in key message");return Vz(atob(d))}setupLicenseXHR(t,n,r,o){const a=this.config.licenseXhrSetup;return a?Promise.resolve().then(()=>{if(!r.decryptdata)throw new Error("Key removed");return a.call(this.hls,t,n,r,o)}).catch(s=>{if(!r.decryptdata)throw s;return t.open("POST",n,!0),a.call(this.hls,t,n,r,o)}).then(s=>(t.readyState||t.open("POST",n,!0),{xhr:t,licenseChallenge:s||o})):(t.open("POST",n,!0),Promise.resolve({xhr:t,licenseChallenge:o}))}requestLicense(t,n){const r=this.config.keyLoadPolicy.default;return new Promise((o,a)=>{const s=this.getLicenseServerUrlOrThrow(t.keySystem);this.log(`Sending license request to URL: ${s}`);const l=new XMLHttpRequest;l.responseType="arraybuffer",l.onreadystatechange=()=>{if(!this.hls||!t.mediaKeysSession)return a(new Error("invalid state"));if(l.readyState===4)if(l.status===200){this._requestLicenseFailureCount=0;let c=l.response;this.log(`License received ${c instanceof ArrayBuffer?c.byteLength:c}`);const d=this.config.licenseResponseCallback;if(d)try{c=d.call(this.hls,l,s,t)}catch(h){this.error(h)}o(c)}else{const c=r.errorRetry,d=c?c.maxNumRetry:0;if(this._requestLicenseFailureCount++,this._requestLicenseFailureCount>d||l.status>=400&&l.status<500)a(new Xu({type:lr.KEY_SYSTEM_ERROR,details:Wt.KEY_SYSTEM_LICENSE_REQUEST_FAILED,decryptdata:t.decryptdata,fatal:!0,networkDetails:l,response:{url:s,data:void 0,code:l.status,text:l.statusText}},`License Request XHR failed (${s}). Status: ${l.status} (${l.statusText})`));else{const h=d-this._requestLicenseFailureCount+1;this.warn(`Retrying license request, ${h} attempts left`),this.requestLicense(t,n).then(o,a)}}},t.licenseXhr&&t.licenseXhr.readyState!==XMLHttpRequest.DONE&&t.licenseXhr.abort(),t.licenseXhr=l,this.setupLicenseXHR(l,s,t,n).then(({xhr:c,licenseChallenge:d})=>{t.keySystem==ls.PLAYREADY&&(d=this.unpackPlayReadyKeyMessage(c,d)),c.send(d)}).catch(a)})}onDestroying(){this.unregisterListeners(),this._clear()}onMediaAttached(t,n){if(!this.config.emeEnabled)return;const r=n.media;this.media=r,Kl(r,"encrypted",this.onMediaEncrypted),Kl(r,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(Cu(t,"encrypted",this.onMediaEncrypted),Cu(t,"waitingforkey",this.onWaitingForKey),this.media=null,this.mediaKeys=null)}_clear(){var t;if(this._requestLicenseFailureCount=0,this.keyIdToKeySessionPromise={},this.bannedKeyIds={},!this.mediaKeys&&!this.mediaKeySessions.length)return;const n=this.media,r=this.mediaKeySessions.slice();this.mediaKeySessions=[],this.mediaKeys=null,ym.clearKeyUriToKeyIdMap();const o=r.length;my.CDMCleanupPromise=Promise.all(r.map(a=>this.removeSession(a)).concat((n==null||(t=n.setMediaKeys(null))==null?void 0:t.catch(a=>{this.log(`Could not clear media keys: ${a}`),this.hls&&this.hls.trigger(Ie.ERROR,{type:lr.OTHER_ERROR,details:Wt.KEY_SYSTEM_DESTROY_MEDIA_KEYS_ERROR,fatal:!1,error:new Error(`Could not clear media keys: ${a}`)})}))||Promise.resolve())).catch(a=>{this.log(`Could not close sessions and clear media keys: ${a}`),this.hls&&this.hls.trigger(Ie.ERROR,{type:lr.OTHER_ERROR,details:Wt.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close sessions and clear media keys: ${a}`)})}).then(()=>{o&&this.log("finished closing key sessions and clearing media keys")})}onManifestLoading(){this.keyFormatPromise=null,this.bannedKeyIds={}}onManifestLoaded(t,{sessionKeys:n}){if(!(!n||!this.config.emeEnabled)&&!this.keyFormatPromise){const r=n.reduce((o,a)=>(o.indexOf(a.keyFormat)===-1&&o.push(a.keyFormat),o),[]);this.log(`Selecting key-system from session-keys ${r.join(", ")}`),this.keyFormatPromise=this.getKeyFormatPromise(r)}}removeSession(t){const{mediaKeysSession:n,licenseXhr:r,decryptdata:o}=t;if(n){this.log(`Remove licenses and keys and close session "${n.sessionId}" keyId: ${zl(o?.keyId||[])}`),t._onmessage&&(n.removeEventListener("message",t._onmessage),t._onmessage=void 0),t._onkeystatuseschange&&(n.removeEventListener("keystatuseschange",t._onkeystatuseschange),t._onkeystatuseschange=void 0),r&&r.readyState!==XMLHttpRequest.DONE&&r.abort(),t.mediaKeysSession=t.decryptdata=t.licenseXhr=void 0;const a=this.mediaKeySessions.indexOf(t);a>-1&&this.mediaKeySessions.splice(a,1);const{keyStatusTimeouts:s}=t;s&&Object.keys(s).forEach(d=>self.clearTimeout(s[d]));const{drmSystemOptions:l}=this.config;return(lCt(l)?new Promise((d,h)=>{self.setTimeout(()=>h(new Error("MediaKeySession.remove() timeout")),8e3),n.remove().then(d).catch(h)}):Promise.resolve()).catch(d=>{this.log(`Could not remove session: ${d}`),this.hls&&this.hls.trigger(Ie.ERROR,{type:lr.OTHER_ERROR,details:Wt.KEY_SYSTEM_DESTROY_REMOVE_SESSION_ERROR,fatal:!1,error:new Error(`Could not remove session: ${d}`)})}).then(()=>n.close()).catch(d=>{this.log(`Could not close session: ${d}`),this.hls&&this.hls.trigger(Ie.ERROR,{type:lr.OTHER_ERROR,details:Wt.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${d}`)})})}return Promise.resolve()}}my.CDMCleanupPromise=void 0;function bC(e){if(!e)throw new Error("Could not read keyId of undefined decryptdata");if(e.keyId===null)throw new Error("keyId is null");return zl(e.keyId)}function TEt(e,t){if(e.keyId&&t.mediaKeysSession.keyStatuses.has(e.keyId))return t.mediaKeysSession.keyStatuses.get(e.keyId);if(e.matches(t.decryptdata))return t.keyStatus}class Xu extends Error{constructor(t,n){super(n),this.data=void 0,t.error||(t.error=new Error(n)),this.data=t,t.err=t.error}}function Mue(e,t){const n=e==="output-restricted",r=n?Wt.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Wt.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Xu({type:lr.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class AEt{constructor(t){this.hls=void 0,this.isVideoPlaybackQualityAvailable=!1,this.timer=void 0,this.media=null,this.lastTime=void 0,this.lastDroppedFrames=0,this.lastDecodedFrames=0,this.streamController=void 0,this.hls=t,this.registerListeners()}setStreamController(t){this.streamController=t}registerListeners(){this.hls.on(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Ie.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Ie.MEDIA_DETACHING,this.onMediaDetaching,this)}destroy(){this.timer&&clearInterval(this.timer),this.unregisterListeners(),this.isVideoPlaybackQualityAvailable=!1,this.media=null}onMediaAttaching(t,n){const r=this.hls.config;if(r.capLevelOnFPSDrop){const o=n.media instanceof self.HTMLVideoElement?n.media:null;this.media=o,o&&typeof o.getVideoPlaybackQuality=="function"&&(this.isVideoPlaybackQualityAvailable=!0),self.clearInterval(this.timer),this.timer=self.setInterval(this.checkFPSInterval.bind(this),r.fpsDroppedMonitoringPeriod)}}onMediaDetaching(){this.media=null}checkFPS(t,n,r){const o=performance.now();if(n){if(this.lastTime){const a=o-this.lastTime,s=r-this.lastDroppedFrames,l=n-this.lastDecodedFrames,c=1e3*s/a,d=this.hls;if(d.trigger(Ie.FPS_DROP,{currentDropped:s,currentDecoded:l,totalDroppedFrames:r}),c>0&&s>d.config.fpsDroppedMonitoringThreshold*l){let h=d.currentLevel;d.logger.warn("drop FPS ratio greater than max allowed value for currentLevel: "+h),h>0&&(d.autoLevelCapping===-1||d.autoLevelCapping>=h)&&(h=h-1,d.trigger(Ie.FPS_DROP_LEVEL_CAPPING,{level:h,droppedLevel:d.currentLevel}),d.autoLevelCapping=h,this.streamController.nextLevelSwitch())}}this.lastTime=o,this.lastDroppedFrames=r,this.lastDecodedFrames=n}}checkFPSInterval(){const t=this.media;if(t)if(this.isVideoPlaybackQualityAvailable){const n=t.getVideoPlaybackQuality();this.checkFPS(t,n.totalVideoFrames,n.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)}}function N2e(e,t){let n;try{n=new Event("addtrack")}catch{n=document.createEvent("Event"),n.initEvent("addtrack",!1,!1)}n.track=e,t.dispatchEvent(n)}function F2e(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues&&!e.cues.getCueById(t.id))try{if(e.addCue(t),!e.cues.getCueById(t.id))throw new Error(`addCue is failed for: ${t}`)}catch(r){fo.debug(`[texttrack-utils]: ${r}`);try{const o=new self.TextTrackCue(t.startTime,t.endTime,t.text);o.id=t.id,e.addCue(o)}catch(o){fo.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${o}`)}}n==="disabled"&&(e.mode=n)}function H1(e,t){const n=e.mode;if(n==="disabled"&&(e.mode="hidden"),e.cues)for(let r=e.cues.length;r--;)t&&e.cues[r].removeEventListener("enter",t),e.removeCue(e.cues[r]);n==="disabled"&&(e.mode=n)}function Xz(e,t,n,r){const o=e.mode;if(o==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const a=LEt(e.cues,t,n);for(let s=0;se[n].endTime)return-1;let r=0,o=n,a;for(;r<=o;)if(a=Math.floor((o+r)/2),te[a].startTime&&r-1)for(let a=o,s=e.length;a=t&&l.endTime<=n)r.push(l);else if(l.startTime>n)return r}return r}function e8(e){const t=[];for(let n=0;nthis.pollTrackChange(0),this.onTextTracksChanged=()=>{if(this.useTextTrackPolling||self.clearInterval(this.subtitlePollingInterval),!this.media||!this.hls.config.renderTextTracksNatively)return;let n=null;const r=e8(this.media.textTracks);for(let a=0;a-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ie.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ie.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ie.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Ie.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ie.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ie.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ie.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Ie.ERROR,this.onError,this)}onMediaAttached(t,n){this.media=n.media,this.media&&(this.queuedDefaultTrack>-1&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=-1),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.pollTrackChange(500):this.media.textTracks.addEventListener("change",this.asyncPollTrackChange))}pollTrackChange(t){self.clearInterval(this.subtitlePollingInterval),this.subtitlePollingInterval=self.setInterval(this.onTextTracksChanged,t)}onMediaDetaching(t,n){const r=this.media;if(!r)return;const o=!!n.transferMedia;if(self.clearInterval(this.subtitlePollingInterval),this.useTextTrackPolling||r.textTracks.removeEventListener("change",this.asyncPollTrackChange),this.trackId>-1&&(this.queuedDefaultTrack=this.trackId),this.subtitleTrack=-1,this.media=null,o)return;e8(r.textTracks).forEach(s=>{H1(s)})}onManifestLoading(){this.tracks=[],this.groupIds=null,this.tracksInGroup=[],this.trackId=-1,this.currentTrack=null,this.selectDefaultTrack=!0}onManifestParsed(t,n){this.tracks=n.subtitleTracks}onSubtitleTrackLoaded(t,n){const{id:r,groupId:o,details:a}=n,s=this.tracksInGroup[r];if(!s||s.groupId!==o){this.warn(`Subtitle track with id:${r} and group:${o} not found in active group ${s?.groupId}`);return}const l=s.details;s.details=n.details,this.log(`Subtitle track ${r} "${s.name}" lang:${s.lang} group:${o} loaded [${a.startSN}-${a.endSN}]`),r===this.trackId&&this.playlistLoaded(r,n,l)}onLevelLoading(t,n){this.switchLevel(n.level)}onLevelSwitching(t,n){this.switchLevel(n.level)}switchLevel(t){const n=this.hls.levels[t];if(!n)return;const r=n.subtitleGroups||null,o=this.groupIds;let a=this.currentTrack;if(!r||o?.length!==r?.length||r!=null&&r.some(s=>o?.indexOf(s)===-1)){this.groupIds=r,this.trackId=-1,this.currentTrack=null;const s=this.tracks.filter(h=>!r||r.indexOf(h.groupId)!==-1);if(s.length)this.selectDefaultTrack&&!s.some(h=>h.default)&&(this.selectDefaultTrack=!1),s.forEach((h,p)=>{h.id=p});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=s;const l=this.hls.config.subtitlePreference;if(!a&&l){this.selectDefaultTrack=!1;const h=pf(l,s);if(h>-1)a=s[h];else{const p=pf(l,this.tracks);a=this.tracks[p]}}let c=this.findTrackId(a);c===-1&&a&&(c=this.findTrackId(null));const d={subtitleTracks:s};this.log(`Updating subtitle tracks, ${s.length} track(s) found in "${r?.join(",")}" group-id`),this.hls.trigger(Ie.SUBTITLE_TRACKS_UPDATED,d),c!==-1&&this.trackId===-1&&this.setSubtitleTrack(c)}}findTrackId(t){const n=this.tracksInGroup,r=this.selectDefaultTrack;for(let o=0;o-1){const a=this.tracksInGroup[o];return this.setSubtitleTrack(o),a}else{if(r)return null;{const a=pf(t,n);if(a>-1)return n[a]}}}}return null}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentTrack)&&this.scheduleLoading(this.currentTrack,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=t.id,o=t.groupId,a=this.getUrlWithDirectives(t.url,n),s=t.details,l=s?.age;this.log(`Loading subtitle ${r} "${t.name}" lang:${t.lang} group:${o}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${l&&s.live?" age "+l.toFixed(1)+(s.type&&" "+s.type||""):""} ${a}`),this.hls.trigger(Ie.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:o,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=e8(t.textTracks),r=this.currentTrack;let o;if(r&&(o=n.filter(a=>Gz(r,a))[0],o||this.warn(`Unable to find subtitle TextTrack with name "${r.name}" and language "${r.lang}"`)),[].slice.call(n).forEach(a=>{a.mode!=="disabled"&&a!==o&&(a.mode="disabled")}),o){const a=this.subtitleDisplay?"showing":"hidden";o.mode!==a&&(o.mode=a)}}setSubtitleTrack(t){const n=this.tracksInGroup;if(!this.media){this.queuedDefaultTrack=t;return}if(t<-1||t>=n.length||!Bn(t)){this.warn(`Invalid subtitle track id: ${t}`);return}this.selectDefaultTrack=!1;const r=this.currentTrack,o=n[t]||null;if(this.trackId=t,this.currentTrack=o,this.toggleTrackModes(),!o){this.hls.trigger(Ie.SUBTITLE_TRACK_SWITCH,{id:t});return}const a=!!o.details&&!o.details.live;if(t===this.trackId&&o===r&&a)return;this.log(`Switching to subtitle-track ${t}`+(o?` "${o.name}" lang:${o.lang} group:${o.groupId}`:""));const{id:s,groupId:l="",name:c,type:d,url:h}=o;this.hls.trigger(Ie.SUBTITLE_TRACK_SWITCH,{id:s,groupId:l,name:c,type:d,url:h});const p=this.switchParams(o.url,r?.details,o.details);this.loadPlaylist(p)}}function PEt(){try{return crypto.randomUUID()}catch{try{const t=URL.createObjectURL(new Blob),n=t.toString();return URL.revokeObjectURL(t),n.slice(n.lastIndexOf("/")+1)}catch{let n=new Date().getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,o=>{const a=(n+Math.random()*16)%16|0;return n=Math.floor(n/16),(o=="x"?a:a&3|8).toString(16)})}}}function Ab(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const gy=.025;let OT=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function REt(e,t,n){return`${e.identifier}-${n+1}-${Ab(t)}`}class MEt{constructor(t,n){this.base=void 0,this._duration=null,this._timelineStart=null,this.appendInPlaceDisabled=void 0,this.appendInPlaceStarted=void 0,this.dateRange=void 0,this.hasPlayed=!1,this.cumulativeDuration=0,this.resumeOffset=NaN,this.playoutLimit=NaN,this.restrictions={skip:!1,jump:!1},this.snapOptions={out:!1,in:!1},this.assetList=[],this.assetListLoader=void 0,this.assetListResponse=null,this.resumeAnchor=void 0,this.error=void 0,this.resetOnResume=void 0,this.base=n,this.dateRange=t,this.setDateRange(t)}setDateRange(t){this.dateRange=t,this.resumeOffset=t.attr.optionalFloat("X-RESUME-OFFSET",this.resumeOffset),this.playoutLimit=t.attr.optionalFloat("X-PLAYOUT-LIMIT",this.playoutLimit),this.restrictions=t.attr.enumeratedStringList("X-RESTRICT",this.restrictions),this.snapOptions=t.attr.enumeratedStringList("X-SNAP",this.snapOptions)}reset(){var t;this.appendInPlaceStarted=!1,(t=this.assetListLoader)==null||t.destroy(),this.assetListLoader=void 0,this.supplementsPrimary||(this.assetListResponse=null,this.assetList=[],this._duration=null)}isAssetPastPlayoutLimit(t){var n;if(t>0&&t>=this.assetList.length)return!0;const r=this.playoutLimit;return t<=0||isNaN(r)?!1:r===0?!0:(((n=this.assetList[t])==null?void 0:n.startOffset)||0)>r}findAssetIndex(t){return this.assetList.indexOf(t)}get identifier(){return this.dateRange.id}get startDate(){return this.dateRange.startDate}get startTime(){const t=this.dateRange.startTime;if(this.snapOptions.out){const n=this.dateRange.tagAnchor;if(n)return HF(t,n)}return t}get startOffset(){return this.cue.pre?0:this.startTime}get startIsAligned(){if(this.startTime===0||this.snapOptions.out)return!0;const t=this.dateRange.tagAnchor;if(t){const n=this.dateRange.startTime,r=HF(n,t);return n-r<.1}return!1}get resumptionOffset(){const t=this.resumeOffset,n=Bn(t)?t:this.duration;return this.cumulativeDuration+n}get resumeTime(){const t=this.startOffset+this.resumptionOffset;if(this.snapOptions.in){const n=this.resumeAnchor;if(n)return HF(t,n)}return t}get appendInPlace(){return this.appendInPlaceStarted?!0:this.appendInPlaceDisabled?!1:!!(!this.cue.once&&!this.cue.pre&&this.startIsAligned&&(isNaN(this.playoutLimit)&&isNaN(this.resumeOffset)||this.resumeOffset&&this.duration&&Math.abs(this.resumeOffset-this.duration)0||this.assetListResponse!==null}toString(){return OEt(this)}}function HF(e,t){return e-t.start":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function M1(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class $Et{constructor(t,n,r,o){this.hls=void 0,this.interstitial=void 0,this.assetItem=void 0,this.tracks=null,this.hasDetails=!1,this.mediaAttached=null,this._currentTime=void 0,this._bufferedEosTime=void 0,this.checkPlayout=()=>{this.reachedPlayout(this.currentTime)&&this.hls&&this.hls.trigger(Ie.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new t(n);this.interstitial=r,this.assetItem=o;const s=()=>{this.hasDetails=!0};a.once(Ie.LEVEL_LOADED,s),a.once(Ie.AUDIO_TRACK_LOADED,s),a.once(Ie.SUBTITLE_TRACK_LOADED,s),a.on(Ie.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(Ie.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,a.trigger(Ie.BUFFERED_TO_END,void 0))}))})}get appendInPlace(){return this.interstitial.appendInPlace}loadSource(){const t=this.hls;if(t)if(t.url)t.levels.length&&!t.started&&t.startLoad(-1,!0);else{let n=this.assetItem.uri;try{n=j2e(n,t.config.primarySessionId||"").href}catch{}t.loadSource(n)}}bufferedInPlaceToEnd(t){var n;if(!this.appendInPlace)return!1;if((n=this.hls)!=null&&n.bufferedToEnd)return!0;if(!t)return!1;const r=Math.min(this._bufferedEosTime||1/0,this.duration),o=this.timelineOffset,a=jr.bufferInfo(t,o,0);return this.getAssetTime(a.end)>=r-.02}reachedPlayout(t){const r=this.interstitial.playoutLimit;return this.startOffset+t>=r}get destroyed(){var t;return!((t=this.hls)!=null&&t.userConfig)}get assetId(){return this.assetItem.identifier}get interstitialId(){return this.assetItem.parentIdentifier}get media(){var t;return((t=this.hls)==null?void 0:t.media)||null}get bufferedEnd(){const t=this.media||this.mediaAttached;if(!t)return this._bufferedEosTime?this._bufferedEosTime:this.currentTime;const n=jr.bufferInfo(t,t.currentTime,.001);return this.getAssetTime(n.end)}get currentTime(){const t=this.media||this.mediaAttached;return t?this.getAssetTime(t.currentTime):this._currentTime||0}get duration(){const t=this.assetItem.duration;if(!t)return 0;const n=this.interstitial.playoutLimit;if(n){const r=n-this.startOffset;if(r>0&&r1/9e4&&this.hls){if(this.hasDetails)throw new Error("Cannot set timelineOffset after playlists are loaded");this.hls.config.timelineOffset=t}}}getAssetTime(t){const n=this.timelineOffset,r=this.duration;return Math.min(Math.max(0,t-n),r)}removeMediaListeners(){const t=this.mediaAttached;t&&(this._currentTime=t.currentTime,this.bufferSnapShot(),t.removeEventListener("timeupdate",this.checkPlayout))}bufferSnapShot(){if(this.mediaAttached){var t;(t=this.hls)!=null&&t.bufferedToEnd&&(this._bufferedEosTime=this.bufferedEnd)}}destroy(){this.removeMediaListeners(),this.hls&&this.hls.destroy(),this.hls=null,this.tracks=this.mediaAttached=this.checkPlayout=null}attachMedia(t){var n;this.loadSource(),(n=this.hls)==null||n.attachMedia(t)}detachMedia(){var t;this.removeMediaListeners(),this.mediaAttached=null,(t=this.hls)==null||t.detachMedia()}resumeBuffering(){var t;(t=this.hls)==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.hls)==null||t.pauseBuffering()}transferMedia(){var t;return this.bufferSnapShot(),((t=this.hls)==null?void 0:t.transferMedia())||null}resetDetails(){const t=this.hls;if(t&&this.hasDetails){t.stopLoad();const n=r=>delete r.details;t.levels.forEach(n),t.allAudioTracks.forEach(n),t.allSubtitleTracks.forEach(n),this.hasDetails=!1}}on(t,n,r){var o;(o=this.hls)==null||o.on(t,n)}once(t,n,r){var o;(o=this.hls)==null||o.once(t,n)}off(t,n,r){var o;(o=this.hls)==null||o.off(t,n)}toString(){var t;return`HlsAssetPlayer: ${M1(this.assetItem)} ${(t=this.hls)==null?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const Oue=.033;class BEt extends ed{constructor(t,n){super("interstitials-sched",n),this.onScheduleUpdate=void 0,this.eventMap={},this.events=null,this.items=null,this.durations={primary:0,playout:0,integrated:0},this.onScheduleUpdate=t}destroy(){this.reset(),this.onScheduleUpdate=null}reset(){this.eventMap={},this.setDurations(0,0,0),this.events&&this.events.forEach(t=>t.reset()),this.events=this.items=null}resetErrorsInRange(t,n){return this.events?this.events.reduce((r,o)=>t<=o.startOffset&&n>o.startOffset?(delete o.error,r+1):r,0):0}get duration(){const t=this.items;return t?t[t.length-1].end:0}get length(){return this.items?this.items.length:0}getEvent(t){return t&&this.eventMap[t]||null}hasEvent(t){return t in this.eventMap}findItemIndex(t,n){if(t.event)return this.findEventIndex(t.event.identifier);let r=-1;t.nextEvent?r=this.findEventIndex(t.nextEvent.identifier)-1:t.previousEvent&&(r=this.findEventIndex(t.previousEvent.identifier)+1);const o=this.items;if(o)for(o[r]||(n===void 0&&(n=t.start),r=this.findItemIndexAtTime(n));r>=0&&(a=o[r])!=null&&a.event;){var a;r--}return r}findItemIndexAtTime(t,n){const r=this.items;if(r)for(let o=0;oa.start&&t1)for(let a=0;al&&(n!l.includes(d.identifier)):[];s.length&&s.sort((d,h)=>{const p=d.cue.pre,m=d.cue.post,g=h.cue.pre,y=h.cue.post;if(p&&!g)return-1;if(g&&!p||m&&!y)return 1;if(y&&!m)return-1;if(!p&&!g&&!m&&!y){const S=d.startTime,k=h.startTime;if(S!==k)return S-k}return d.dateRange.tagOrder-h.dateRange.tagOrder}),this.events=s,c.forEach(d=>{this.removeEvent(d)}),this.updateSchedule(t,c)}updateSchedule(t,n=[],r=!1){const o=this.events||[];if(o.length||n.length||this.length<2){const a=this.items,s=this.parseSchedule(o,t);(r||n.length||a?.length!==s.length||s.some((c,d)=>Math.abs(c.playout.start-a[d].playout.start)>.005||Math.abs(c.playout.end-a[d].playout.end)>.005))&&(this.items=s,this.onScheduleUpdate(n,a))}}parseDateRanges(t,n,r){const o=[],a=Object.keys(t);for(let s=0;s!c.error&&!(c.cue.once&&c.hasPlayed)),t.length){this.resolveOffsets(t,n);let c=0,d=0;if(t.forEach((h,p)=>{const m=h.cue.pre,g=h.cue.post,y=t[p-1]||null,S=h.appendInPlace,k=g?a:h.startOffset,C=h.duration,x=h.timelineOccupancy===OT.Range?C:0,E=h.resumptionOffset,_=y?.startTime===k,T=k+h.cumulativeDuration;let D=S?T+C:k+E;if(m||!g&&k<=0){const M=d;d+=x,h.timelineStart=T;const $=s;s+=C,r.push({event:h,start:T,end:D,playout:{start:$,end:s},integrated:{start:M,end:d}})}else if(k<=a){if(!_){const I=k-c;if(I>Oue){const N=c,j=d;d+=I;const U=s;s+=I;const z={previousEvent:t[p-1]||null,nextEvent:h,start:N,end:N+I,playout:{start:U,end:s},integrated:{start:j,end:d}};r.push(z)}else I>0&&y&&(y.cumulativeDuration+=I,r[r.length-1].end=k)}g&&(D=T),h.timelineStart=T;const M=d;d+=x;const $=s;s+=C,r.push({event:h,start:T,end:D,playout:{start:$,end:s},integrated:{start:M,end:d}})}else return;const P=h.resumeTime;g||P>a?c=a:c=P}),c{const d=l.cue.pre,h=l.cue.post,p=d?0:h?o:l.startTime;this.updateAssetDurations(l),s===p?l.cumulativeDuration=a:(a=0,s=p),!h&&l.snapOptions.in&&(l.resumeAnchor=Om(null,r.fragments,l.startOffset+l.resumptionOffset,0,0)||void 0),l.appendInPlace&&!l.appendInPlaceStarted&&(this.primaryCanResumeInPlaceAt(l,n)||(l.appendInPlace=!1)),!l.appendInPlace&&c+1gy?(this.log(`"${t.identifier}" resumption ${r} not aligned with estimated timeline end ${o}`),!1):!Object.keys(n).some(s=>{const l=n[s].details,c=l.edge;if(r>=c)return this.log(`"${t.identifier}" resumption ${r} past ${s} playlist end ${c}`),!1;const d=Om(null,l.fragments,r);if(!d)return this.log(`"${t.identifier}" resumption ${r} does not align with any fragments in ${s} playlist (${l.fragStart}-${l.fragmentEnd})`),!0;const h=s==="audio"?.175:0;return Math.abs(d.start-r){const k=m.data,C=k?.ASSETS;if(!Array.isArray(C)){const x=this.assignAssetListError(t,Wt.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),y.url,g,S);this.hls.trigger(Ie.ERROR,x);return}t.assetListResponse=k,this.hls.trigger(Ie.ASSET_LIST_LOADED,{event:t,assetListResponse:k,networkDetails:S})},onError:(m,g,y,S)=>{const k=this.assignAssetListError(t,Wt.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${m.code} ${m.text} (${g.url})`),g.url,S,y);this.hls.trigger(Ie.ERROR,k)},onTimeout:(m,g,y)=>{const S=this.assignAssetListError(t,Wt.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${g.url})`),g.url,m,y);this.hls.trigger(Ie.ERROR,S)}};return l.load(c,h,p),this.hls.trigger(Ie.ASSET_LIST_LOADING,{event:t}),l}assignAssetListError(t,n,r,o,a,s){return t.error=r,{type:lr.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:o,error:r,networkDetails:s,stats:a}}}function $ue(e){e?.play().catch(()=>{})}function _C(e,t){return`[${e}] Advancing timeline position to ${t}`}class FEt extends ed{constructor(t,n){super("interstitials",t.logger),this.HlsPlayerClass=void 0,this.hls=void 0,this.assetListLoader=void 0,this.mediaSelection=null,this.altSelection=null,this.media=null,this.detachedData=null,this.requiredTracks=null,this.manager=null,this.playerQueue=[],this.bufferedPos=-1,this.timelinePos=-1,this.schedule=void 0,this.playingItem=null,this.bufferingItem=null,this.waitingItem=null,this.endedItem=null,this.playingAsset=null,this.endedAsset=null,this.bufferingAsset=null,this.shouldPlay=!1,this.onPlay=()=>{this.shouldPlay=!0},this.onPause=()=>{this.shouldPlay=!1},this.onSeeking=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled||!this.schedule)return;const o=r-this.timelinePos;if(Math.abs(o)<1/7056e5)return;const s=o<=-.01;this.timelinePos=r,this.bufferedPos=r;const l=this.playingItem;if(!l){this.checkBuffer();return}if(s&&this.schedule.resetErrorsInRange(r,r-o)&&this.updateSchedule(!0),this.checkBuffer(),s&&r=l.end){var c;const g=this.findItemIndex(l);let y=this.schedule.findItemIndexAtTime(r);if(y===-1&&(y=g+(s?-1:1),this.log(`seeked ${s?"back ":""}to position not covered by schedule ${r} (resolving from ${g} to ${y})`)),!this.isInterstitial(l)&&(c=this.media)!=null&&c.paused&&(this.shouldPlay=!1),!s&&y>g){const S=this.schedule.findJumpRestrictedIndex(g+1,y);if(S>g){this.setSchedulePosition(S);return}}this.setSchedulePosition(y);return}const d=this.playingAsset;if(!d){if(this.playingLastItem&&this.isInterstitial(l)){const g=l.event.assetList[0];g&&(this.endedItem=this.playingItem,this.playingItem=null,this.setScheduleToAssetAtTime(r,g))}return}const h=d.timelineStart,p=d.duration||0;if(s&&r=h+p){var m;(m=l.event)!=null&&m.appendInPlace&&(this.clearInterstitial(l.event,l),this.flushFrontBuffer(r)),this.setScheduleToAssetAtTime(r,d)}},this.onTimeupdate=()=>{const r=this.currentTime;if(r===void 0||this.playbackDisabled)return;if(r>this.timelinePos)this.timelinePos=r,r>this.bufferedPos&&this.checkBuffer();else return;const o=this.playingItem;if(!o||this.playingLastItem)return;if(r>=o.end){this.timelinePos=o.end;const l=this.findItemIndex(o);this.setSchedulePosition(l+1)}const a=this.playingAsset;if(!a)return;const s=a.timelineStart+(a.duration||0);r>=s&&this.setScheduleToAssetAtTime(r,a)},this.onScheduleUpdate=(r,o)=>{const a=this.schedule;if(!a)return;const s=this.playingItem,l=a.events||[],c=a.items||[],d=a.durations,h=r.map(S=>S.identifier),p=!!(l.length||h.length);(p||o)&&this.log(`INTERSTITIALS_UPDATED (${l.length}): ${l} Schedule: ${c.map(S=>ud(S))} pos: ${this.timelinePos}`),h.length&&this.log(`Removed events ${h}`);let m=null,g=null;s&&(m=this.updateItem(s,this.timelinePos),this.itemsMatch(s,m)?this.playingItem=m:this.waitingItem=this.endedItem=null),this.waitingItem=this.updateItem(this.waitingItem),this.endedItem=this.updateItem(this.endedItem);const y=this.bufferingItem;if(y&&(g=this.updateItem(y,this.bufferedPos),this.itemsMatch(y,g)?this.bufferingItem=g:y.event&&(this.bufferingItem=this.playingItem,this.clearInterstitial(y.event,null))),r.forEach(S=>{S.assetList.forEach(k=>{this.clearAssetPlayer(k.identifier,null)})}),this.playerQueue.forEach(S=>{if(S.interstitial.appendInPlace){const k=S.assetItem.timelineStart,C=S.timelineOffset-k;if(C)try{S.timelineOffset=k}catch(x){Math.abs(C)>gy&&this.warn(`${x} ("${S.assetId}" ${S.timelineOffset}->${k})`)}}}),p||o){if(this.hls.trigger(Ie.INTERSTITIALS_UPDATED,{events:l.slice(0),schedule:c.slice(0),durations:d,removedIds:h}),this.isInterstitial(s)&&h.includes(s.event.identifier)){this.warn(`Interstitial "${s.event.identifier}" removed while playing`),this.primaryFallback(s.event);return}s&&this.trimInPlace(m,s),y&&g!==m&&this.trimInPlace(g,y),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=n,this.assetListLoader=new NEt(t),this.schedule=new BEt(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t&&(t.on(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ie.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ie.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(Ie.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Ie.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(Ie.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(Ie.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(Ie.BUFFER_APPENDED,this.onBufferAppended,this),t.on(Ie.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ie.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(Ie.MEDIA_ENDED,this.onMediaEnded,this),t.on(Ie.ERROR,this.onError,this),t.on(Ie.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ie.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ie.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(Ie.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Ie.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(Ie.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(Ie.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(Ie.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ie.BUFFER_APPENDED,this.onBufferAppended,this),t.off(Ie.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ie.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(Ie.MEDIA_ENDED,this.onMediaEnded,this),t.off(Ie.ERROR,this.onError,this),t.off(Ie.DESTROYING,this.onDestroying,this))}startLoad(){this.resumeBuffering()}stopLoad(){this.pauseBuffering()}resumeBuffering(){var t;(t=this.getBufferingPlayer())==null||t.resumeBuffering()}pauseBuffering(){var t;(t=this.getBufferingPlayer())==null||t.pauseBuffering()}destroy(){this.unregisterListeners(),this.stopLoad(),this.assetListLoader&&this.assetListLoader.destroy(),this.emptyPlayerQueue(),this.clearScheduleState(),this.schedule&&this.schedule.destroy(),this.media=this.detachedData=this.mediaSelection=this.requiredTracks=this.altSelection=this.schedule=this.manager=null,this.hls=this.HlsPlayerClass=this.log=null,this.assetListLoader=null,this.onPlay=this.onPause=this.onSeeking=this.onTimeupdate=null,this.onScheduleUpdate=null}onDestroying(){const t=this.primaryMedia||this.media;t&&this.removeMediaListeners(t)}removeMediaListeners(t){Cu(t,"play",this.onPlay),Cu(t,"pause",this.onPause),Cu(t,"seeking",this.onSeeking),Cu(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,n){const r=this.media=n.media;Kl(r,"seeking",this.onSeeking),Kl(r,"timeupdate",this.onTimeupdate),Kl(r,"play",this.onPlay),Kl(r,"pause",this.onPause)}onMediaAttached(t,n){const r=this.effectivePlayingItem,o=this.detachedData;if(this.detachedData=null,r===null)this.checkStart();else if(!o){this.clearScheduleState();const a=this.findItemIndex(r);this.setSchedulePosition(a)}}clearScheduleState(){this.log("clear schedule state"),this.playingItem=this.bufferingItem=this.waitingItem=this.endedItem=this.playingAsset=this.endedAsset=this.bufferingAsset=null}onMediaDetaching(t,n){const r=!!n.transferMedia,o=this.media;if(this.media=null,!r&&(o&&this.removeMediaListeners(o),this.detachedData)){const a=this.getBufferingPlayer();a&&(this.log(`Removing schedule state for detachedData and ${a}`),this.playingAsset=this.endedAsset=this.bufferingAsset=this.bufferingItem=this.waitingItem=this.detachedData=null,a.detachMedia()),this.shouldPlay=!1}}get interstitialsManager(){if(!this.hls)return null;if(this.manager)return this.manager;const t=this,n=()=>t.bufferingItem||t.waitingItem,r=p=>p&&t.getAssetPlayer(p.identifier),o=(p,m,g,y,S)=>{if(p){let k=p[m].start;const C=p.event;if(C){if(m==="playout"||C.timelineOccupancy!==OT.Point){const x=r(g);x?.interstitial===C&&(k+=x.assetItem.startOffset+x[S])}}else{const x=y==="bufferedPos"?s():t[y];k+=x-p.start}return k}return 0},a=(p,m)=>{var g;if(p!==0&&m!=="primary"&&(g=t.schedule)!=null&&g.length){var y;const S=t.schedule.findItemIndexAtTime(p),k=(y=t.schedule.items)==null?void 0:y[S];if(k){const C=k[m].start-k.start;return p+C}}return p},s=()=>{const p=t.bufferedPos;return p===Number.MAX_VALUE?l("primary"):Math.max(p,0)},l=p=>{var m,g;return(m=t.primaryDetails)!=null&&m.live?t.primaryDetails.edge:((g=t.schedule)==null?void 0:g.durations[p])||0},c=(p,m)=>{var g,y;const S=t.effectivePlayingItem;if(S!=null&&(g=S.event)!=null&&g.restrictions.skip||!t.schedule)return;t.log(`seek to ${p} "${m}"`);const k=t.effectivePlayingItem,C=t.schedule.findItemIndexAtTime(p,m),x=(y=t.schedule.items)==null?void 0:y[C],E=t.getBufferingPlayer(),_=E?.interstitial,T=_?.appendInPlace,D=k&&t.itemsMatch(k,x);if(k&&(T||D)){const P=r(t.playingAsset),M=P?.media||t.primaryMedia;if(M){const $=m==="primary"?M.currentTime:o(k,m,t.playingAsset,"timelinePos","currentTime"),I=p-$,N=(T?$:M.currentTime)+I;if(N>=0&&(!P||T||N<=P.duration)){M.currentTime=N;return}}}if(x){let P=p;if(m!=="primary"){const $=x[m].start,I=p-$;P=x.start+I}const M=!t.isInterstitial(x);if((!t.isInterstitial(k)||k.event.appendInPlace)&&(M||x.event.appendInPlace)){const $=t.media||(T?E?.media:null);$&&($.currentTime=P)}else if(k){const $=t.findItemIndex(k);if(C>$){const N=t.schedule.findJumpRestrictedIndex($+1,C);if(N>$){t.setSchedulePosition(N);return}}let I=0;if(M)t.timelinePos=P,t.checkBuffer();else{const N=x.event.assetList,j=p-(x[m]||x).start;for(let U=N.length;U--;){const z=N[U];if(z.duration&&j>=z.startOffset&&j{const p=t.effectivePlayingItem;if(t.isInterstitial(p))return p;const m=n();return t.isInterstitial(m)?m:null},h={get bufferedEnd(){const p=n(),m=t.bufferingItem;if(m&&m===p){var g;return o(m,"playout",t.bufferingAsset,"bufferedPos","bufferedEnd")-m.playout.start||((g=t.bufferingAsset)==null?void 0:g.startOffset)||0}return 0},get currentTime(){const p=d(),m=t.effectivePlayingItem;return m&&m===p?o(m,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-m.playout.start:0},set currentTime(p){const m=d(),g=t.effectivePlayingItem;g&&g===m&&c(p+g.playout.start,"playout")},get duration(){const p=d();return p?p.playout.end-p.playout.start:0},get assetPlayers(){var p;const m=(p=d())==null?void 0:p.event.assetList;return m?m.map(g=>t.getAssetPlayer(g.identifier)):[]},get playingIndex(){var p;const m=(p=d())==null?void 0:p.event;return m&&t.effectivePlayingAsset?m.findAssetIndex(t.effectivePlayingAsset):-1},get scheduleItem(){return d()}};return this.manager={get events(){var p;return((p=t.schedule)==null||(p=p.events)==null?void 0:p.slice(0))||[]},get schedule(){var p;return((p=t.schedule)==null||(p=p.items)==null?void 0:p.slice(0))||[]},get interstitialPlayer(){return d()?h:null},get playerQueue(){return t.playerQueue.slice(0)},get bufferingAsset(){return t.bufferingAsset},get bufferingItem(){return n()},get bufferingIndex(){const p=n();return t.findItemIndex(p)},get playingAsset(){return t.effectivePlayingAsset},get playingItem(){return t.effectivePlayingItem},get playingIndex(){const p=t.effectivePlayingItem;return t.findItemIndex(p)},primary:{get bufferedEnd(){return s()},get currentTime(){const p=t.timelinePos;return p>0?p:0},set currentTime(p){c(p,"primary")},get duration(){return l("primary")},get seekableStart(){var p;return((p=t.primaryDetails)==null?void 0:p.fragmentStart)||0}},integrated:{get bufferedEnd(){return o(n(),"integrated",t.bufferingAsset,"bufferedPos","bufferedEnd")},get currentTime(){return o(t.effectivePlayingItem,"integrated",t.effectivePlayingAsset,"timelinePos","currentTime")},set currentTime(p){c(p,"integrated")},get duration(){return l("integrated")},get seekableStart(){var p;return a(((p=t.primaryDetails)==null?void 0:p.fragmentStart)||0,"integrated")}},skip:()=>{const p=t.effectivePlayingItem,m=p?.event;if(m&&!m.restrictions.skip){const g=t.findItemIndex(p);if(m.appendInPlace){const y=p.playout.start+p.event.duration;c(y+.001,"playout")}else t.advanceAfterAssetEnded(m,g,1/0)}}}}get effectivePlayingItem(){return this.waitingItem||this.playingItem||this.endedItem}get effectivePlayingAsset(){return this.playingAsset||this.endedAsset}get playingLastItem(){var t;const n=this.playingItem,r=(t=this.schedule)==null?void 0:t.items;return!this.playbackStarted||!n||!r?!1:this.findItemIndex(n)===r.length-1}get playbackStarted(){return this.effectivePlayingItem!==null}get currentTime(){var t,n;if(this.mediaSelection===null)return;const r=this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&!r.event.appendInPlace)return;let o=this.media;!o&&(t=this.bufferingItem)!=null&&(t=t.event)!=null&&t.appendInPlace&&(o=this.primaryMedia);const a=(n=o)==null?void 0:n.currentTime;if(!(a===void 0||!Bn(a)))return a}get primaryMedia(){var t;return this.media||((t=this.detachedData)==null?void 0:t.media)||null}isInterstitial(t){return!!(t!=null&&t.event)}retreiveMediaSource(t,n){const r=this.getAssetPlayer(t);r&&this.transferMediaFromPlayer(r,n)}transferMediaFromPlayer(t,n){const r=t.interstitial.appendInPlace,o=t.media;if(r&&o===this.primaryMedia){if(this.bufferingAsset=null,(!n||this.isInterstitial(n)&&!n.event.appendInPlace)&&n&&o){this.detachedData={media:o};return}const a=t.transferMedia();this.log(`transfer MediaSource from ${t} ${Co(a)}`),this.detachedData=a}else n&&o&&(this.shouldPlay||(this.shouldPlay=!o.paused))}transferMediaTo(t,n){var r,o;if(t.media===n)return;let a=null;const s=this.hls,l=t!==s,c=l&&t.interstitial.appendInPlace,d=(r=this.detachedData)==null?void 0:r.mediaSource;let h;if(s.media)c&&(a=s.transferMedia(),this.detachedData=a),h="Primary";else if(d){const y=this.getBufferingPlayer();y?(a=y.transferMedia(),h=`${y}`):h="detached MediaSource"}else h="detached media";if(!a){if(d)a=this.detachedData,this.log(`using detachedData: MediaSource ${Co(a)}`);else if(!this.detachedData||s.media===n){const y=this.playerQueue;y.length>1&&y.forEach(S=>{if(l&&S.interstitial.appendInPlace!==c){const k=S.interstitial;this.clearInterstitial(S.interstitial,null),k.appendInPlace=!1,k.appendInPlace&&this.warn(`Could not change append strategy for queued assets ${k}`)}}),this.hls.detachMedia(),this.detachedData={media:n}}}const p=a&&"mediaSource"in a&&((o=a.mediaSource)==null?void 0:o.readyState)!=="closed",m=p&&a?a:n;this.log(`${p?"transfering MediaSource":"attaching media"} to ${l?t:"Primary"} from ${h} (media.currentTime: ${n.currentTime})`);const g=this.schedule;if(m===a&&g){const y=l&&t.assetId===g.assetIdAtEnd;m.overrides={duration:g.duration,endOfStream:!l||y,cueRemoval:!l}}t.attachMedia(m)}onInterstitialCueEnter(){this.onTimeupdate()}checkStart(){const t=this.schedule,n=t?.events;if(!n||this.playbackDisabled||!this.media)return;this.bufferedPos===-1&&(this.bufferedPos=0);const r=this.timelinePos,o=this.effectivePlayingItem;if(r===-1){const a=this.hls.startPosition;if(this.log(_C("checkStart",a)),this.timelinePos=a,n.length&&n[0].cue.pre){const s=t.findEventIndex(n[0].identifier);this.setSchedulePosition(s)}else if(a>=0||!this.primaryLive){const s=this.timelinePos=a>0?a:0,l=t.findItemIndexAtTime(s);this.setSchedulePosition(l)}}else if(o&&!this.playingItem){const a=t.findItemIndex(o);this.setSchedulePosition(a)}}advanceAssetBuffering(t,n){const r=t.event,o=r.findAssetIndex(n),a=WF(r,o);if(!r.isAssetPastPlayoutLimit(a))this.bufferedToEvent(t,a);else if(this.schedule){var s;const l=(s=this.schedule.items)==null?void 0:s[this.findItemIndex(t)+1];l&&this.bufferedToItem(l)}}advanceAfterAssetEnded(t,n,r){const o=WF(t,r);if(t.isAssetPastPlayoutLimit(o)){if(this.schedule){const a=this.schedule.items;if(a){const s=n+1,l=a.length;if(s>=l){this.setSchedulePosition(-1);return}const c=t.resumeTime;this.timelinePos=0?o[t]:null;this.log(`setSchedulePosition ${t}, ${n} (${a&&ud(a)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const h=s.event,p=this.playingAsset,m=p?.identifier,g=m?this.getAssetPlayer(m):null;if(g&&m&&(!this.eventItemsMatch(s,a)||n!==void 0&&m!==h.assetList[n].identifier)){var c;const y=h.findAssetIndex(p);if(this.log(`INTERSTITIAL_ASSET_ENDED ${y+1}/${h.assetList.length} ${M1(p)}`),this.endedAsset=p,this.playingAsset=null,this.hls.trigger(Ie.INTERSTITIAL_ASSET_ENDED,{asset:p,assetListIndex:y,event:h,schedule:o.slice(0),scheduleIndex:t,player:g}),s!==this.playingItem){this.itemsMatch(s,this.playingItem)&&!this.playingAsset&&this.advanceAfterAssetEnded(h,this.findItemIndex(this.playingItem),y);return}this.retreiveMediaSource(m,a),g.media&&!((c=this.detachedData)!=null&&c.mediaSource)&&g.detachMedia()}if(!this.eventItemsMatch(s,a)&&(this.endedItem=s,this.playingItem=null,this.log(`INTERSTITIAL_ENDED ${h} ${ud(s)}`),h.hasPlayed=!0,this.hls.trigger(Ie.INTERSTITIAL_ENDED,{event:h,schedule:o.slice(0),scheduleIndex:t}),h.cue.once)){var d;this.updateSchedule();const y=(d=this.schedule)==null?void 0:d.items;if(a&&y){const S=this.findItemIndex(a);this.advanceSchedule(S,y,n,s,l)}return}}this.advanceSchedule(t,o,n,s,l)}advanceSchedule(t,n,r,o,a){const s=this.schedule;if(!s)return;const l=n[t]||null,c=this.primaryMedia,d=this.playerQueue;if(d.length&&d.forEach(h=>{const p=h.interstitial,m=s.findEventIndex(p.identifier);(mt+1)&&this.clearInterstitial(p,l)}),this.isInterstitial(l)){this.timelinePos=Math.min(Math.max(this.timelinePos,l.start),l.end);const h=l.event;if(r===void 0){r=s.findAssetIndex(h,this.timelinePos);const y=WF(h,r-1);if(h.isAssetPastPlayoutLimit(y)||h.appendInPlace&&this.timelinePos===l.end){this.advanceAfterAssetEnded(h,t,r);return}r=y}const p=this.waitingItem;this.assetsBuffered(l,c)||this.setBufferingItem(l);let m=this.preloadAssets(h,r);if(this.eventItemsMatch(l,p||o)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${ud(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(Ie.INTERSTITIAL_STARTED,{event:h,schedule:n.slice(0),scheduleIndex:t})),!h.assetListLoaded){this.log(`Waiting for ASSET-LIST to complete loading ${h}`);return}if(h.assetListLoader&&(h.assetListLoader.destroy(),h.assetListLoader=void 0),!c){this.log(`Waiting for attachMedia to start Interstitial ${h}`);return}this.waitingItem=this.endedItem=null,this.playingItem=l;const g=h.assetList[r];if(!g){this.advanceAfterAssetEnded(h,t,r||0);return}if(m||(m=this.getAssetPlayer(g.identifier)),m===null||m.destroyed){const y=h.assetList.length;this.warn(`asset ${r+1}/${y} player destroyed ${h}`),m=this.createAssetPlayer(h,g,r),m.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&h.appendInPlace&&this.isAssetBuffered(g))return;this.startAssetPlayer(m,r,n,t,c),this.shouldPlay&&$ue(m.media)}else l?(this.resumePrimary(l,t,o),this.shouldPlay&&$ue(this.hls.media)):a&&this.isInterstitial(o)&&(this.endedItem=null,this.playingItem=o,o.event.appendInPlace||this.attachPrimary(s.durations.primary,null))}get playbackDisabled(){return this.hls.config.enableInterstitialPlayback===!1}get primaryDetails(){var t;return(t=this.mediaSelection)==null?void 0:t.main.details}get primaryLive(){var t;return!!((t=this.primaryDetails)!=null&&t.live)}resumePrimary(t,n,r){var o,a;if(this.playingItem=t,this.playingAsset=this.endedAsset=null,this.waitingItem=this.endedItem=null,this.bufferedToItem(t),this.log(`resuming ${ud(t)}`),!((o=this.detachedData)!=null&&o.mediaSource)){let l=this.timelinePos;(l=t.end)&&(l=this.getPrimaryResumption(t,n),this.log(_C("resumePrimary",l)),this.timelinePos=l),this.attachPrimary(l,t)}if(!r)return;const s=(a=this.schedule)==null?void 0:a.items;s&&(this.log(`INTERSTITIALS_PRIMARY_RESUMED ${ud(t)}`),this.hls.trigger(Ie.INTERSTITIALS_PRIMARY_RESUMED,{schedule:s.slice(0),scheduleIndex:n}),this.checkBuffer())}getPrimaryResumption(t,n){const r=t.start;if(this.primaryLive){const o=this.primaryDetails;if(n===0)return this.hls.startPosition;if(o&&(ro.edge))return this.hls.liveSyncPosition||-1}return r}isAssetBuffered(t){const n=this.getAssetPlayer(t.identifier);return n!=null&&n.hls?n.hls.bufferedToEnd:jr.bufferInfo(this.primaryMedia,this.timelinePos,0).end+1>=t.timelineStart+(t.duration||0)}attachPrimary(t,n,r){n?this.setBufferingItem(n):this.bufferingItem=this.playingItem,this.bufferingAsset=null;const o=this.primaryMedia;if(!o)return;const a=this.hls;a.media?this.checkBuffer():(this.transferMediaTo(a,o),r&&this.startLoadingPrimaryAt(t,r)),r||(this.log(_C("attachPrimary",t)),this.timelinePos=t,this.startLoadingPrimaryAt(t,r))}startLoadingPrimaryAt(t,n){var r;const o=this.hls;!o.loadingEnabled||!o.media||Math.abs((((r=o.mainForwardBufferInfo)==null?void 0:r.start)||o.media.currentTime)-t)>.5?o.startLoad(t,n):o.bufferingEnabled||o.resumeBuffering()}onManifestLoading(){var t;this.stopLoad(),(t=this.schedule)==null||t.reset(),this.emptyPlayerQueue(),this.clearScheduleState(),this.shouldPlay=!1,this.bufferedPos=this.timelinePos=-1,this.mediaSelection=this.altSelection=this.manager=this.requiredTracks=null,this.hls.off(Ie.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Ie.BUFFER_CODECS,this.onBufferCodecs,this)}onLevelUpdated(t,n){if(n.level===-1||!this.schedule)return;const r=this.hls.levels[n.level];if(!r.details)return;const o=uo(uo({},this.mediaSelection||this.altSelection),{},{main:r});this.mediaSelection=o,this.schedule.parseInterstitialDateRanges(o,this.hls.config.interstitialAppendInPlace),!this.effectivePlayingItem&&this.schedule.items&&this.checkStart()}onAudioTrackUpdated(t,n){const r=this.hls.audioTracks[n.id],o=this.mediaSelection;if(!o){this.altSelection=uo(uo({},this.altSelection),{},{audio:r});return}const a=uo(uo({},o),{},{audio:r});this.mediaSelection=a}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],o=this.mediaSelection;if(!o){this.altSelection=uo(uo({},this.altSelection),{},{subtitles:r});return}const a=uo(uo({},o),{},{subtitles:r});this.mediaSelection=a}onAudioTrackSwitching(t,n){const r=Wle(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setAudioOption(n)||o.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=Wle(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setSubtitleOption(n)||n.id!==-1&&o.setSubtitleOption(r)))}onBufferCodecs(t,n){const r=n.tracks;r&&(this.requiredTracks=r)}onBufferAppended(t,n){this.checkBuffer()}onBufferFlushed(t,n){const r=this.playingItem;if(r&&!this.itemsMatch(r,this.bufferingItem)&&!this.isInterstitial(r)){const o=this.timelinePos;this.bufferedPos=o,this.checkBuffer()}}onBufferedToEnd(t){if(!this.schedule)return;const n=this.schedule.events;if(this.bufferedPos.25){t.event.assetList.forEach((a,s)=>{t.event.isAssetPastPlayoutLimit(s)&&this.clearAssetPlayer(a.identifier,null)});const r=t.end+.25,o=jr.bufferInfo(this.primaryMedia,r,0);(o.end>r||(o.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${ud(t)} (was ${ud(n)})`),this.attachPrimary(r,null,!0),this.flushFrontBuffer(r))}}itemsMatch(t,n){return!!n&&(t===n||t.event&&n.event&&this.eventItemsMatch(t,n)||!t.event&&!n.event&&this.findItemIndex(t)===this.findItemIndex(n))}eventItemsMatch(t,n){var r;return!!n&&(t===n||t.event.identifier===((r=n.event)==null?void 0:r.identifier))}findItemIndex(t,n){return t&&this.schedule?this.schedule.findItemIndex(t,n):-1}updateSchedule(t=!1){var n;const r=this.mediaSelection;r&&((n=this.schedule)==null||n.updateSchedule(r,[],t))}checkBuffer(t){var n;const r=(n=this.schedule)==null?void 0:n.items;if(!r)return;const o=jr.bufferInfo(this.primaryMedia,this.timelinePos,0);t&&(this.bufferedPos=this.timelinePos),t||(t=o.len<1),this.updateBufferedPos(o.end,r,t)}updateBufferedPos(t,n,r){const o=this.schedule,a=this.bufferingItem;if(this.bufferedPos>t||!o)return;if(n.length===1&&this.itemsMatch(n[0],a)){this.bufferedPos=t;return}const s=this.playingItem,l=this.findItemIndex(s);let c=o.findItemIndexAtTime(t);if(this.bufferedPos=a.end||(d=m.event)!=null&&d.appendInPlace&&t+.01>=m.start)&&(c=p),this.isInterstitial(a)){const g=a.event;if(p-l>1&&g.appendInPlace===!1||g.assetList.length===0&&g.assetListLoader)return}if(this.bufferedPos=t,c>h&&c>l)this.bufferedToItem(m);else{const g=this.primaryDetails;this.primaryLive&&g&&t>g.edge-g.targetduration&&m.start{const a=this.getAssetPlayer(o.identifier);return!(a!=null&&a.bufferedInPlaceToEnd(n))})}setBufferingItem(t){const n=this.bufferingItem,r=this.schedule;if(!this.itemsMatch(t,n)&&r){const{items:o,events:a}=r;if(!o||!a)return n;const s=this.isInterstitial(t),l=this.getBufferingPlayer();this.bufferingItem=t,this.bufferedPos=Math.max(t.start,Math.min(t.end,this.timelinePos));const c=l?l.remaining:n?n.end-this.timelinePos:0;if(this.log(`INTERSTITIALS_BUFFERED_TO_BOUNDARY ${ud(t)}`+(n?` (${c.toFixed(2)} remaining)`:"")),!this.playbackDisabled)if(s){const d=r.findAssetIndex(t.event,this.bufferedPos);t.event.assetList.forEach((h,p)=>{const m=this.getAssetPlayer(h.identifier);m&&(p===d&&m.loadSource(),m.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(d=>d.pauseBuffering());this.hls.trigger(Ie.INTERSTITIALS_BUFFERED_TO_BOUNDARY,{events:a.slice(0),schedule:o.slice(0),bufferingIndex:this.findItemIndex(t),playingIndex:this.findItemIndex(this.playingItem)})}else this.bufferingItem!==t&&(this.bufferingItem=t);return n}bufferedToItem(t,n=0){const r=this.setBufferingItem(t);if(!this.playbackDisabled){if(this.isInterstitial(t))this.bufferedToEvent(t,n);else if(r!==null){this.bufferingAsset=null;const o=this.detachedData;o?o.mediaSource?this.attachPrimary(t.start,t,!0):this.preloadPrimary(t):this.preloadPrimary(t)}}}preloadPrimary(t){const n=this.findItemIndex(t),r=this.getPrimaryResumption(t,n);this.startLoadingPrimaryAt(r)}bufferedToEvent(t,n){const r=t.event,o=r.assetList.length===0&&!r.assetListLoader,a=r.cue.once;if(o||!a){const s=this.preloadAssets(r,n);if(s!=null&&s.interstitial.appendInPlace){const l=this.primaryMedia;l&&this.bufferAssetPlayer(s,l)}}}preloadAssets(t,n){const r=t.assetUrl,o=t.assetList.length,a=o===0&&!t.assetListLoader,s=t.cue.once;if(a){const c=t.timelineStart;if(t.appendInPlace){var l;const m=this.playingItem;!this.isInterstitial(m)&&(m==null||(l=m.nextEvent)==null?void 0:l.identifier)===t.identifier&&this.flushFrontBuffer(c+.25)}let d,h=0;if(!this.playingItem&&this.primaryLive&&(h=this.hls.startPosition,h===-1&&(h=this.hls.liveSyncPosition||0)),h&&!(t.cue.pre||t.cue.post)){const m=h-c;m>0&&(d=Math.round(m*1e3)/1e3)}if(this.log(`Load interstitial asset ${n+1}/${r?1:o} ${t}${d?` live-start: ${h} start-offset: ${d}`:""}`),r)return this.createAsset(t,0,0,c,t.duration,r);const p=this.assetListLoader.loadAssetList(t,d);p&&(t.assetListLoader=p)}else if(!s&&o){for(let d=n;d{this.hls.trigger(Ie.BUFFER_FLUSHING,{startOffset:t,endOffset:1/0,type:o})})}getAssetPlayerQueueIndex(t){const n=this.playerQueue;for(let r=0;r1){const T=n.duration;T&&_{if(_.live){var T;const M=new Error(`Interstitials MUST be VOD assets ${t}`),$={fatal:!0,type:lr.OTHER_ERROR,details:Wt.INTERSTITIAL_ASSET_ITEM_ERROR,error:M},I=((T=this.schedule)==null?void 0:T.findEventIndex(t.identifier))||-1;this.handleAssetItemError($,t,I,r,M.message);return}const D=_.edge-_.fragmentStart,P=n.duration;(S||P===null||D>P)&&(S=!1,this.log(`Interstitial asset "${p}" duration change ${P} > ${D}`),n.duration=D,this.updateSchedule())};y.on(Ie.LEVEL_UPDATED,(_,{details:T})=>k(T)),y.on(Ie.LEVEL_PTS_UPDATED,(_,{details:T})=>k(T)),y.on(Ie.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const C=(_,T)=>{const D=this.getAssetPlayer(p);if(D&&T.tracks){D.off(Ie.BUFFER_CODECS,C),D.tracks=T.tracks;const P=this.primaryMedia;this.bufferingAsset===D.assetItem&&P&&!D.media&&this.bufferAssetPlayer(D,P)}};y.on(Ie.BUFFER_CODECS,C);const x=()=>{var _;const T=this.getAssetPlayer(p);if(this.log(`buffered to end of asset ${T}`),!T||!this.schedule)return;const D=this.schedule.findEventIndex(t.identifier),P=(_=this.schedule.items)==null?void 0:_[D];this.isInterstitial(P)&&this.advanceAssetBuffering(P,n)};y.on(Ie.BUFFERED_TO_END,x);const E=_=>()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;this.shouldPlay=!0;const D=this.schedule.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,D,_)};return y.once(Ie.MEDIA_ENDED,E(r)),y.once(Ie.PLAYOUT_LIMIT_REACHED,E(1/0)),y.on(Ie.ERROR,(_,T)=>{if(!this.schedule)return;const D=this.getAssetPlayer(p);if(T.details===Wt.BUFFER_STALLED_ERROR){if(D!=null&&D.appendInPlace){this.handleInPlaceStall(t);return}this.onTimeupdate(),this.checkBuffer(!0);return}this.handleAssetItemError(T,t,this.schedule.findEventIndex(t.identifier),r,`Asset player error ${T.error} ${t}`)}),y.on(Ie.DESTROYING,()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;const T=new Error(`Asset player destroyed unexpectedly ${p}`),D={fatal:!0,type:lr.OTHER_ERROR,details:Wt.INTERSTITIAL_ASSET_ITEM_ERROR,error:T};this.handleAssetItemError(D,t,this.schedule.findEventIndex(t.identifier),r,T.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${M1(n)}`),this.hls.trigger(Ie.INTERSTITIAL_ASSET_PLAYER_CREATED,{asset:n,assetListIndex:r,event:t,player:y}),y}clearInterstitial(t,n){t.assetList.forEach(r=>{this.clearAssetPlayer(r.identifier,n)}),t.reset()}resetAssetPlayer(t){const n=this.getAssetPlayerQueueIndex(t);if(n!==-1){this.log(`reset asset player "${t}" after error`);const r=this.playerQueue[n];this.transferMediaFromPlayer(r,null),r.resetDetails()}}clearAssetPlayer(t,n){const r=this.getAssetPlayerQueueIndex(t);if(r!==-1){const o=this.playerQueue[r];this.log(`clear ${o} toSegment: ${n&&ud(n)}`),this.transferMediaFromPlayer(o,n),this.playerQueue.splice(r,1),o.destroy()}}emptyPlayerQueue(){let t;for(;t=this.playerQueue.pop();)t.destroy();this.playerQueue=[]}startAssetPlayer(t,n,r,o,a){const{interstitial:s,assetItem:l,assetId:c}=t,d=s.assetList.length,h=this.playingAsset;this.endedAsset=null,this.playingAsset=l,(!h||h.identifier!==c)&&(h&&(this.clearAssetPlayer(h.identifier,r[o]),delete h.error),this.log(`INTERSTITIAL_ASSET_STARTED ${n+1}/${d} ${M1(l)}`),this.hls.trigger(Ie.INTERSTITIAL_ASSET_STARTED,{asset:l,assetListIndex:n,event:s,schedule:r.slice(0),scheduleIndex:o,player:t})),this.bufferAssetPlayer(t,a)}bufferAssetPlayer(t,n){var r,o;if(!this.schedule)return;const{interstitial:a,assetItem:s}=t,l=this.schedule.findEventIndex(a.identifier),c=(r=this.schedule.items)==null?void 0:r[l];if(!c)return;t.loadSource(),this.setBufferingItem(c),this.bufferingAsset=s;const d=this.getBufferingPlayer();if(d===t)return;const h=a.appendInPlace;if(h&&d?.interstitial.appendInPlace===!1)return;const p=d?.tracks||((o=this.detachedData)==null?void 0:o.tracks)||this.requiredTracks;if(h&&s!==this.playingAsset){if(!t.tracks){this.log(`Waiting for track info before buffering ${t}`);return}if(p&&!k3e(p,t.tracks)){const m=new Error(`Asset ${M1(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(p)}')`),g={fatal:!0,type:lr.OTHER_ERROR,details:Wt.INTERSTITIAL_ASSET_ITEM_ERROR,error:m},y=a.findAssetIndex(s);this.handleAssetItemError(g,a,l,y,m.message);return}}this.transferMediaTo(t,n)}handleInPlaceStall(t){const n=this.schedule,r=this.primaryMedia;if(!n||!r)return;const o=r.currentTime,a=n.findAssetIndex(t,o),s=t.assetList[a];if(s){const l=this.getAssetPlayer(s.identifier);if(l){const c=l.currentTime||o-s.timelineStart,d=l.duration-c;if(this.warn(`Stalled at ${c} of ${c+d} in ${l} ${t} (media.currentTime: ${o})`),c&&(d/r.playbackRate<.5||l.bufferedInPlaceToEnd(r))&&l.hls){const h=n.findEventIndex(t.identifier);this.advanceAfterAssetEnded(t,h,a)}}}}advanceInPlace(t){const n=this.primaryMedia;n&&n.currentTime!S.error))n.error=y;else for(let S=o;S{const C=parseFloat(S.DURATION);this.createAsset(a,k,h,c+h,C,S.URI),h+=C}),a.duration=h,this.log(`Loaded asset-list with duration: ${h} (was: ${d}) ${a}`);const p=this.waitingItem,m=p?.event.identifier===s;this.updateSchedule();const g=(o=this.bufferingItem)==null?void 0:o.event;if(m){var y;const S=this.schedule.findEventIndex(s),k=(y=this.schedule.items)==null?void 0:y[S];if(k){if(!this.playingItem&&this.timelinePos>k.end&&this.schedule.findItemIndexAtTime(this.timelinePos)!==S){a.error=new Error(`Interstitial no longer within playback range ${this.timelinePos} ${a}`),this.updateSchedule(!0),this.primaryFallback(a);return}this.setBufferingItem(k)}this.setSchedulePosition(S)}else if(g?.identifier===s){const S=a.assetList[0];if(S){const k=this.getAssetPlayer(S.identifier);if(g.appendInPlace){const C=this.primaryMedia;k&&C&&this.bufferAssetPlayer(k,C)}else k&&k.loadSource()}}}onError(t,n){if(this.schedule)switch(n.details){case Wt.ASSET_LIST_PARSING_ERROR:case Wt.ASSET_LIST_LOAD_ERROR:case Wt.ASSET_LIST_LOAD_TIMEOUT:{const r=n.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case Wt.BUFFER_STALLED_ERROR:{const r=this.endedItem||this.waitingItem||this.playingItem;if(this.isInterstitial(r)&&r.event.appendInPlace){this.handleInPlaceStall(r.event);return}this.log(`Primary player stall @${this.timelinePos} bufferedPos: ${this.bufferedPos}`),this.onTimeupdate(),this.checkBuffer(!0);break}}}}const Bue=500;class jEt extends AG{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",Jn.SUBTITLE),this.currentTrackId=-1,this.tracksBuffered=[],this.mainDetails=null,this.registerListeners()}onHandlerDestroying(){this.unregisterListeners(),super.onHandlerDestroying(),this.mainDetails=null}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Ie.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ie.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Ie.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Ie.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Ie.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(Ie.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Ie.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ie.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Ie.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Ie.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Ie.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(Ie.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=an.IDLE,this.setInterval(Bue),this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}onManifestLoading(){super.onManifestLoading(),this.mainDetails=null}onMediaDetaching(t,n){this.tracksBuffered=[],super.onMediaDetaching(t,n)}onLevelLoaded(t,n){this.mainDetails=n.details}onSubtitleFragProcessed(t,n){const{frag:r,success:o}=n;if(this.fragContextChanged(r)||(Ks(r)&&(this.fragPrevious=r),this.state=an.IDLE),!o)return;const a=this.tracksBuffered[this.currentTrackId];if(!a)return;let s;const l=r.start;for(let d=0;d=a[d].start&&l<=a[d].end){s=a[d];break}const c=r.start+r.duration;s?s.end=c:(s={start:l,end:c},a.push(s)),this.fragmentTracker.fragBuffered(r),this.fragBufferedComplete(r,null),this.media&&this.tick()}onBufferFlushing(t,n){const{startOffset:r,endOffset:o}=n;if(r===0&&o!==Number.POSITIVE_INFINITY){const a=o-1;if(a<=0)return;n.endOffsetSubtitles=Math.max(0,a),this.tracksBuffered.forEach(s=>{for(let l=0;lnew __(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const o=new __(r);return this.tracksBuffered[o.id]=[],o}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,Jn.SUBTITLE),this.fragPrevious=null,this.mediaBuffer=null}onSubtitleTrackSwitch(t,n){var r;if(this.currentTrackId=n.id,!((r=this.levels)!=null&&r.length)||this.currentTrackId===-1){this.clearInterval();return}const o=this.levels[this.currentTrackId];o!=null&&o.details?this.mediaBuffer=this.mediaBufferTimeRanges:this.mediaBuffer=null,o&&this.state!==an.STOPPED&&this.setInterval(Bue)}onSubtitleTrackLoaded(t,n){var r;const{currentTrackId:o,levels:a}=this,{details:s,id:l}=n;if(!a){this.warn(`Subtitle tracks were reset while loading level ${l}`);return}const c=a[l];if(l>=a.length||!c)return;this.log(`Subtitle track ${l} loaded [${s.startSN},${s.endSN}]${s.lastPartSn?`[part-${s.lastPartSn}-${s.lastPartIndex}]`:""},duration:${s.totalduration}`),this.mediaBuffer=this.mediaBufferTimeRanges;let d=0;if(s.live||(r=c.details)!=null&&r.live){if(s.deltaUpdateFailed)return;const p=this.mainDetails;if(!p){this.startFragRequested=!1;return}const m=p.fragments[0];if(!c.details)s.hasProgramDateTime&&p.hasProgramDateTime?(RT(s,p),d=s.fragmentStart):m&&(d=m.start,Uz(s,d));else{var h;d=this.alignPlaylists(s,c.details,(h=this.levelLastLoaded)==null?void 0:h.details),d===0&&m&&(d=m.start,Uz(s,d))}p&&!this.startFragRequested&&this.setStartPosition(p,d)}c.details=s,this.levelLastLoaded=c,l===o&&(this.hls.trigger(Ie.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:n.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===an.IDLE&&(Om(null,s.fragments,this.media.currentTime,0)||(this.warn("Subtitle playlist not aligned with playback"),c.details=void 0)))}_handleFragmentLoadComplete(t){const{frag:n,payload:r}=t,o=n.decryptdata,a=this.hls;if(!this.fragContextChanged(n)&&r&&r.byteLength>0&&o!=null&&o.key&&o.iv&&vy(o.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),o.key.buffer,o.iv.buffer,EG(o.method)).catch(l=>{throw a.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:n}),l}).then(l=>{const c=performance.now();a.trigger(Ie.FRAG_DECRYPTED,{frag:n,payload:l,stats:{tstart:s,tdecrypt:c}})}).catch(l=>{this.warn(`${l.name}: ${l.message}`),this.state=an.IDLE})}}doTick(){if(!this.media){this.state=an.IDLE;return}if(this.state===an.IDLE){const{currentTrackId:t,levels:n}=this,r=n?.[t];if(!r||!n.length||!r.details||this.waitForLive(r))return;const{config:o}=this,a=this.getLoadPosition(),s=jr.bufferedInfo(this.tracksBuffered[this.currentTrackId]||[],a,o.maxBufferHole),{end:l,len:c}=s,d=r.details,h=this.hls.maxBufferLength+d.levelTargetDuration;if(c>h)return;const p=d.fragments,m=p.length,g=d.edge;let y=null;const S=this.fragPrevious;if(lg-x?0:x;y=Om(S,p,Math.max(p[0].start,l),E),!y&&S&&S.start{if(o=o>>>0,o>a-1)throw new DOMException(`Failed to execute '${r}' on 'TimeRanges': The index provided (${o}) is greater than the maximum bound (${a})`);return t[o][r]};this.buffered={get length(){return t.length},end(r){return n("end",r,t.length)},start(r){return n("start",r,t.length)}}}}const zEt={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},V2e=e=>String.fromCharCode(zEt[e]||e),md=15,dh=100,UEt={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},HEt={17:2,18:4,21:6,22:8,23:10,19:13,20:15},WEt={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},GEt={25:2,26:4,29:6,30:8,31:10,27:13,28:15},KEt=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class qEt{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;fo.log(`${this.time} [${t}] ${r}`)}}}const Ov=function(t){const n=[];for(let r=0;rdh&&(this.logger.log(3,"Too large cursor position "+this.pos),this.pos=dh)}moveCursor(t){const n=this.pos+t;if(t>1)for(let r=this.pos+1;r=144&&this.backSpace();const n=V2e(t);if(this.pos>=dh){this.logger.log(0,()=>"Cannot insert "+t.toString(16)+" ("+n+") at position "+this.pos+". Skipping it!");return}this.chars[this.pos].setChar(n,this.currPenState),this.moveCursor(1)}clearFromPos(t){let n;for(n=t;n"pacData = "+Co(t));let n=t.row-1;if(this.nrRollUpRows&&n"bkgData = "+Co(t)),this.backSpace(),this.setPen(t),this.insertChar(32)}setRollUpRows(t){this.nrRollUpRows=t}rollUp(){if(this.nrRollUpRows===null){this.logger.log(3,"roll_up but nrRollUpRows not set yet");return}this.logger.log(1,()=>this.getDisplayText());const t=this.currRow+1-this.nrRollUpRows,n=this.rows.splice(t,1)[0];n.clear(),this.rows.splice(this.currRow,0,n),this.logger.log(2,"Rolling up")}getDisplayText(t){t=t||!1;const n=[];let r="",o=-1;for(let a=0;a0&&(t?r="["+n.join(" | ")+"]":r=n.join(` `)),r}getTextAndFormat(){return this.rows}}class Nue{constructor(t,n,r){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=n,this.mode=null,this.verbose=0,this.displayedMemory=new GF(r),this.nonDisplayedMemory=new GF(r),this.lastOutputScreen=new GF(r),this.currRollUpRow=this.displayedMemory.rows[md-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=r}reset(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[md-1],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null}getHandler(){return this.outputFilter}setHandler(t){this.outputFilter=t}setPAC(t){this.writeScreen.setPAC(t)}setBkgData(t){this.writeScreen.setBkgData(t)}setMode(t){t!==this.mode&&(this.mode=t,this.logger.log(2,()=>"MODE="+t),this.mode==="MODE_POP-ON"?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),this.mode!=="MODE_ROLL-UP"&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)}insertChars(t){for(let r=0;rn+": "+this.writeScreen.getDisplayText(!0)),(this.mode==="MODE_PAINT-ON"||this.mode==="MODE_ROLL-UP")&&(this.logger.log(1,()=>"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())}ccRCL(){this.logger.log(2,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")}ccBS(){this.logger.log(2,"BS - BackSpace"),this.mode!=="MODE_TEXT"&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())}ccAOF(){}ccAON(){}ccDER(){this.logger.log(2,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()}ccRU(t){this.logger.log(2,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)}ccFON(){this.logger.log(2,"FON - Flash On"),this.writeScreen.setPen({flash:!0})}ccRDC(){this.logger.log(2,"RDC - Resume Direct Captioning"),this.setMode("MODE_PAINT-ON")}ccTR(){this.logger.log(2,"TR"),this.setMode("MODE_TEXT")}ccRTD(){this.logger.log(2,"RTD"),this.setMode("MODE_TEXT")}ccEDM(){this.logger.log(2,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)}ccCR(){this.logger.log(2,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)}ccENM(){this.logger.log(2,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()}ccEOC(){if(this.logger.log(2,"EOC - End Of Caption"),this.mode==="MODE_POP-ON"){const t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(1,()=>"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)}ccTO(t){this.logger.log(2,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)}ccMIDROW(t){const n={flash:!1};if(n.underline=t%2===1,n.italics=t>=46,n.italics)n.foreground="white";else{const r=Math.floor(t/2)-16,o=["white","green","blue","cyan","red","yellow","magenta"];n.foreground=o[r]}this.logger.log(2,"MIDROW: "+Co(n)),this.writeScreen.setPen(n)}outputDataUpdate(t=!1){const n=this.logger.time;n!==null&&this.outputFilter&&(this.cueStartTime===null&&!this.displayedMemory.isEmpty()?this.cueStartTime=n:this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,n,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:n),this.lastOutputScreen.copy(this.displayedMemory))}cueSplitAtTime(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))}}class Fue{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=JEt(),this.logger=void 0;const o=this.logger=new qEt;this.channels=[null,new Nue(t,n,o),new Nue(t+1,r,o)]}getHandler(t){return this.channels[t].getHandler()}setHandler(t,n){this.channels[t].setHandler(n)}addData(t,n){this.logger.time=t;for(let r=0;r"["+Ov([n[r],n[r+1]])+"] -> ("+Ov([o,a])+")");const c=this.cmdHistory;if(o>=16&&o<=31){if(ZEt(o,a,c)){SC(null,null,c),this.logger.log(3,()=>"Repeated command ("+Ov([o,a])+") is dropped");continue}SC(o,a,this.cmdHistory),s=this.parseCmd(o,a),s||(s=this.parseMidrow(o,a)),s||(s=this.parsePAC(o,a)),s||(s=this.parseBackgroundAttributes(o,a))}else SC(null,null,c);if(!s&&(l=this.parseChars(o,a),l)){const h=this.currentChannel;h&&h>0?this.channels[h].insertChars(l):this.logger.log(2,"No channel found yet. TEXT-MODE?")}!s&&!l&&this.logger.log(2,()=>"Couldn't parse cleaned data "+Ov([o,a])+" orig: "+Ov([n[r],n[r+1]]))}}parseCmd(t,n){const r=(t===20||t===28||t===21||t===29)&&n>=32&&n<=47,o=(t===23||t===31)&&n>=33&&n<=35;if(!(r||o))return!1;const a=t===20||t===21||t===23?1:2,s=this.channels[a];return t===20||t===21||t===28||t===29?n===32?s.ccRCL():n===33?s.ccBS():n===34?s.ccAOF():n===35?s.ccAON():n===36?s.ccDER():n===37?s.ccRU(2):n===38?s.ccRU(3):n===39?s.ccRU(4):n===40?s.ccFON():n===41?s.ccRDC():n===42?s.ccTR():n===43?s.ccRTD():n===44?s.ccEDM():n===45?s.ccCR():n===46?s.ccENM():n===47&&s.ccEOC():s.ccTO(n-32),this.currentChannel=a,!0}parseMidrow(t,n){let r=0;if((t===17||t===25)&&n>=32&&n<=47){if(t===17?r=1:r=2,r!==this.currentChannel)return this.logger.log(0,"Mismatch channel in midrow parsing"),!1;const o=this.channels[r];return o?(o.ccMIDROW(n),this.logger.log(3,()=>"MIDROW ("+Ov([t,n])+")"),!0):!1}return!1}parsePAC(t,n){let r;const o=(t>=17&&t<=23||t>=25&&t<=31)&&n>=64&&n<=127,a=(t===16||t===24)&&n>=64&&n<=95;if(!(o||a))return!1;const s=t<=23?1:2;n>=64&&n<=95?r=s===1?UEt[t]:WEt[t]:r=s===1?HEt[t]:GEt[t];const l=this.channels[s];return l?(l.setPAC(this.interpretPAC(r,n)),this.currentChannel=s,!0):!1}interpretPAC(t,n){let r;const o={color:null,italics:!1,indent:null,underline:!1,row:t};return n>95?r=n-96:r=n-64,o.underline=(r&1)===1,r<=13?o.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(r/2)]:r<=15?(o.italics=!0,o.color="white"):o.indent=Math.floor((r-16)/2)*4,o}parseChars(t,n){let r,o=null,a=null;if(t>=25?(r=2,a=t-8):(r=1,a=t),a>=17&&a<=19){let s;a===17?s=n+80:a===18?s=n+112:s=n+144,this.logger.log(2,()=>"Special char '"+V2e(s)+"' in channel "+r),o=[s]}else t>=32&&t<=127&&(o=n===0?[t]:[t,n]);return o&&this.logger.log(3,()=>"Char codes = "+Ov(o).join(",")),o}parseBackgroundAttributes(t,n){const r=(t===16||t===24)&&n>=32&&n<=47,o=(t===23||t===31)&&n>=45&&n<=47;if(!(r||o))return!1;let a;const s={};t===16||t===24?(a=Math.floor((n-32)/2),s.background=KEt[a],n%2===1&&(s.background=s.background+"_semi")):n===45?s.background="transparent":(s.foreground="black",n===47&&(s.underline=!0));const l=t<=23?1:2;return this.channels[l].setBkgData(s),!0}reset(){for(let t=0;t100)throw new Error("Position must be between 0 and 100.");D=I,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",a({},p,{get:function(){return P},set:function(I){const N=o(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");P=N,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",a({},p,{get:function(){return M},set:function(I){if(I<0||I>100)throw new Error("Size must be between 0 and 100.");M=I,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",a({},p,{get:function(){return $},set:function(I){const N=o(I);if(!N)throw new SyntaxError("An invalid or illegal string was specified.");$=N,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s})();class QEt{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function U2e(e){function t(r,o,a,s){return(r|0)*3600+(o|0)*60+(a|0)+parseFloat(s||0)}const n=e.match(/^(?:(\d+):)?(\d{2}):(\d{2})(\.\d+)?/);return n?parseFloat(n[2])>59?t(n[2],n[3],0,n[4]):t(n[1],n[2],n[3],n[4]):null}let e8t=class{constructor(){this.values=Object.create(null)}set(t,n){!this.get(t)&&n!==""&&(this.values[t]=n)}get(t,n,r){return r?this.has(t)?this.values[t]:n[r]:this.has(t)?this.values[t]:n}has(t){return t in this.values}alt(t,n,r){for(let o=0;o=0&&r<=100)return this.set(t,r),!0}return!1}};function H2e(e,t,n,r){const o=r?e.split(r):[e];for(const a in o){if(typeof o[a]!="string")continue;const s=o[a].split(n);if(s.length!==2)continue;const l=s[0],c=s[1];t(l,c)}}const Zz=new jG(0,0,""),kC=Zz.align==="middle"?"middle":"center";function t8t(e,t,n){const r=e;function o(){const l=U2e(e);if(l===null)throw new Error("Malformed timestamp: "+r);return e=e.replace(/^[^\sa-zA-Z-]+/,""),l}function a(l,c){const d=new e8t;H2e(l,function(m,g){let y;switch(m){case"region":for(let S=n.length-1;S>=0;S--)if(n[S].id===g){d.set(m,n[S].region);break}break;case"vertical":d.alt(m,g,["rl","lr"]);break;case"line":y=g.split(","),d.integer(m,y[0]),d.percent(m,y[0])&&d.set("snapToLines",!1),d.alt(m,y[0],["auto"]),y.length===2&&d.alt("lineAlign",y[1],["start",kC,"end"]);break;case"position":y=g.split(","),d.percent(m,y[0]),y.length===2&&d.alt("positionAlign",y[1],["start",kC,"end","line-left","line-right","auto"]);break;case"size":d.percent(m,g);break;case"align":d.alt(m,g,["start",kC,"end","left","right"]);break}},/:/,/\s/),c.region=d.get("region",null),c.vertical=d.get("vertical","");let h=d.get("line","auto");h==="auto"&&Zz.line===-1&&(h=-1),c.line=h,c.lineAlign=d.get("lineAlign","start"),c.snapToLines=d.get("snapToLines",!0),c.size=d.get("size",100),c.align=d.get("align",kC);let p=d.get("position","auto");p==="auto"&&Zz.position===50&&(p=c.align==="start"||c.align==="left"?0:c.align==="end"||c.align==="right"?100:50),c.position=p}function s(){e=e.replace(/^\s+/,"")}if(s(),t.startTime=o(),s(),e.slice(0,3)!=="-->")throw new Error("Malformed time stamp (time stamps must be separated by '-->'): "+r);e=e.slice(3),s(),t.endTime=o(),s(),a(e,t)}function W2e(e){return e.replace(//gi,` `)}class n8t{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new QEt,this.regionList=[],this.cue=null,this.oncue=void 0,this.onparsingerror=void 0,this.onflush=void 0}parse(t){const n=this;t&&(n.buffer+=n.decoder.decode(t,{stream:!0}));function r(){let a=n.buffer,s=0;for(a=W2e(a);s")===-1){n.cue.id=a;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{t8t(a,n.cue,n.regionList)}catch{n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":{const l=a.indexOf("-->")!==-1;if(!a||l&&(s=!0)){n.oncue&&n.cue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}if(n.cue===null)continue;n.cue.text&&(n.cue.text+=` `),n.cue.text+=a}continue;case"BADCUE":a||(n.state="ID")}}}catch{n.state==="CUETEXT"&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state=n.state==="INITIAL"?"BADWEBVTT":"BADCUE"}return this}flush(){const t=this;try{if((t.cue||t.state==="HEADER")&&(t.buffer+=` `,t.parse()),t.state==="INITIAL"||t.state==="BADWEBVTT")throw new Error("Malformed WebVTT signature.")}catch(n){t.onparsingerror&&t.onparsingerror(n)}return t.onflush&&t.onflush(),this}}const r8t=/\r\n|\n\r|\n|\r/g,KF=function(t,n,r=0){return t.slice(r,r+n.length)===n},i8t=function(t){let n=parseInt(t.slice(-3));const r=parseInt(t.slice(-6,-4)),o=parseInt(t.slice(-9,-7)),a=t.length>9?parseInt(t.substring(0,t.indexOf(":"))):0;if(!Bn(n)||!Bn(r)||!Bn(o)||!Bn(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*o,n+=3600*1e3*a,n};function VG(e,t,n){return Ab(e.toString())+Ab(t.toString())+Ab(n)}const o8t=function(t,n,r){let o=t[n],a=t[o.prevCC];if(!a||!a.new&&o.new){t.ccOffset=t.presentationOffset=o.start,o.new=!1;return}for(;(s=a)!=null&&s.new;){var s;t.ccOffset+=o.start-a.start,o.new=!1,o=a,a=t[o.prevCC]}t.presentationOffset=r};function s8t(e,t,n,r,o,a,s){const l=new n8t,c=lc(new Uint8Array(e)).trim().replace(r8t,` `).split(` `),d=[],h=t?fwt(t.baseTime,t.timescale):0;let p="00:00.000",m=0,g=0,y,S=!0;l.oncue=function(k){const C=n[r];let x=n.ccOffset;const E=(m-h)/9e4;if(C!=null&&C.new&&(g!==void 0?x=n.ccOffset=C.start:o8t(n,r,E)),E){if(!t){y=new Error("Missing initPTS for VTT MPEGTS");return}x=E-n.presentationOffset}const _=k.endTime-k.startTime,T=ec((k.startTime+x-g)*9e4,o*9e4)/9e4;k.startTime=Math.max(T,0),k.endTime=Math.max(T+_,0);const D=k.text.trim();k.text=decodeURIComponent(encodeURIComponent(D)),k.id||(k.id=VG(k.startTime,k.endTime,D)),k.endTime>0&&d.push(k)},l.onparsingerror=function(k){y=k},l.onflush=function(){if(y){s(y);return}a(d)},c.forEach(k=>{if(S)if(KF(k,"X-TIMESTAMP-MAP=")){S=!1,k.slice(16).split(",").forEach(C=>{KF(C,"LOCAL:")?p=C.slice(6):KF(C,"MPEGTS:")&&(m=parseInt(C.slice(7)))});try{g=i8t(p)/1e3}catch(C){y=C}return}else k===""&&(S=!1);l.parse(k+` `)}),l.flush()}const qF="stpp.ttml.im1t",G2e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,K2e=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,a8t={left:"start",center:"center",right:"end",start:"start",end:"end"};function jue(e,t,n,r){const o=fi(new Uint8Array(e),["mdat"]);if(o.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const a=o.map(l=>lc(l)),s=dwt(t.baseTime,1,t.timescale);try{a.forEach(l=>n(l8t(l,s)))}catch(l){r(l)}}function l8t(e,t){const o=new DOMParser().parseFromString(e,"text/xml").getElementsByTagName("tt")[0];if(!o)throw new Error("Invalid ttml");const a={frameRate:30,subFrameRate:1,frameRateMultiplier:0,tickRate:0},s=Object.keys(a).reduce((p,m)=>(p[m]=o.getAttribute(`ttp:${m}`)||a[m],p),{}),l=o.getAttribute("xml:space")!=="preserve",c=Vue(YF(o,"styling","style")),d=Vue(YF(o,"layout","region")),h=YF(o,"body","[begin]");return[].map.call(h,p=>{const m=q2e(p,l);if(!m||!p.hasAttribute("begin"))return null;const g=ZF(p.getAttribute("begin"),s),y=ZF(p.getAttribute("dur"),s);let S=ZF(p.getAttribute("end"),s);if(g===null)throw zue(p);if(S===null){if(y===null)throw zue(p);S=g+y}const k=new jG(g-t,S-t,m);k.id=VG(k.startTime,k.endTime,k.text);const C=d[p.getAttribute("region")],x=c[p.getAttribute("style")],E=u8t(C,x,c),{textAlign:_}=E;if(_){const T=a8t[_];T&&(k.lineAlign=T),k.align=_}return mo(k,E),k}).filter(p=>p!==null)}function YF(e,t,n){const r=e.getElementsByTagName(t)[0];return r?[].slice.call(r.querySelectorAll(n)):[]}function Vue(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function q2e(e,t){return[].slice.call(e.childNodes).reduce((n,r,o)=>{var a;return r.nodeName==="br"&&o?n+` `:(a=r.childNodes)!=null&&a.length?q2e(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function u8t(e,t,n){const r="http://www.w3.org/ns/ttml#styling";let o=null;const a=["displayAlign","textAlign","color","backgroundColor","fontSize","fontFamily"],s=e!=null&&e.hasAttribute("style")?e.getAttribute("style"):null;return s&&n.hasOwnProperty(s)&&(o=n[s]),a.reduce((l,c)=>{const d=XF(t,r,c)||XF(e,r,c)||XF(o,r,c);return d&&(l[c]=d),l},{})}function XF(e,t,n){return e&&e.hasAttributeNS(t,n)?e.getAttributeNS(t,n):null}function zue(e){return new Error(`Could not parse ttml timestamp ${e}`)}function ZF(e,t){if(!e)return null;let n=U2e(e);return n===null&&(G2e.test(e)?n=c8t(e,t):K2e.test(e)&&(n=d8t(e,t))),n}function c8t(e,t){const n=G2e.exec(e),r=(n[4]|0)+(n[5]|0)/t.subFrameRate;return(n[1]|0)*3600+(n[2]|0)*60+(n[3]|0)+r/t.frameRate}function d8t(e,t){const n=K2e.exec(e),r=Number(n[1]);switch(n[2]){case"h":return r*3600;case"m":return r*60;case"ms":return r*1e3;case"f":return r/t.frameRate;case"t":return r/t.tickRate}return r}class xC{constructor(t,n){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=n}dispatchCue(){this.startTime!==null&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)}newCue(t,n,r){(this.startTime===null||this.startTime>t)&&(this.startTime=t),this.endTime=n,this.screen=r,this.timelineController.createCaptionsTrack(this.trackName)}reset(){this.cueRanges=[],this.startTime=null}}class f8t{constructor(t){this.hls=void 0,this.media=null,this.config=void 0,this.enabled=!0,this.Cues=void 0,this.textTracks=[],this.tracks=[],this.initPTS=[],this.unparsedVttFrags=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.cea608Parser1=void 0,this.cea608Parser2=void 0,this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Hue(),this.captionsProperties=void 0,this.hls=t,this.config=t.config,this.Cues=t.config.cueHandler,this.captionsProperties={textTrack1:{label:this.config.captionsTextTrack1Label,languageCode:this.config.captionsTextTrack1LanguageCode},textTrack2:{label:this.config.captionsTextTrack2Label,languageCode:this.config.captionsTextTrack2LanguageCode},textTrack3:{label:this.config.captionsTextTrack3Label,languageCode:this.config.captionsTextTrack3LanguageCode},textTrack4:{label:this.config.captionsTextTrack4Label,languageCode:this.config.captionsTextTrack4LanguageCode}},t.on(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ie.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Ie.FRAG_LOADING,this.onFragLoading,this),t.on(Ie.FRAG_LOADED,this.onFragLoaded,this),t.on(Ie.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(Ie.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(Ie.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Ie.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(Ie.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ie.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Ie.FRAG_LOADING,this.onFragLoading,this),t.off(Ie.FRAG_LOADED,this.onFragLoaded,this),t.off(Ie.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(Ie.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(Ie.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Ie.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(Ie.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new xC(this,"textTrack1"),n=new xC(this,"textTrack2"),r=new xC(this,"textTrack3"),o=new xC(this,"textTrack4");this.cea608Parser1=new Fue(1,t,n),this.cea608Parser2=new Fue(3,r,o)}addCues(t,n,r,o,a){let s=!1;for(let l=a.length;l--;){const c=a[l],d=h8t(c[0],c[1],n,r);if(d>=0&&(c[0]=Math.min(c[0],n),c[1]=Math.max(c[1],r),s=!0,d/(r-n)>.5))return}if(s||a.push([n,r]),this.config.renderTextTracksNatively){const l=this.captionsTracks[t];this.Cues.newCue(l,n,r,o)}else{const l=this.Cues.newCue(null,n,r,o);this.hls.trigger(Ie.CUES_PARSED,{type:"captions",cues:l,track:t})}}onInitPtsFound(t,{frag:n,id:r,initPTS:o,timescale:a,trackId:s}){const{unparsedVttFrags:l}=this;r===Jn.MAIN&&(this.initPTS[n.cc]={baseTime:o,timescale:a,trackId:s}),l.length&&(this.unparsedVttFrags=[],l.forEach(c=>{this.initPTS[c.frag.cc]?this.onFragLoaded(Ie.FRAG_LOADED,c):this.hls.trigger(Ie.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:c.frag,error:new Error("Subtitle discontinuity domain does not match main")})}))}getExistingTrack(t,n){const{media:r}=this;if(r)for(let o=0;o{H1(o[a]),delete o[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Hue(),this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={},this.textTracks=[],this.unparsedVttFrags=[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset())}_cleanTracks(){const{media:t}=this;if(!t)return;const n=t.textTracks;if(n)for(let r=0;ra.textCodec===qF);if(this.config.enableWebVTT||o&&this.config.enableIMSC1){if(w2e(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?e8(s.textTracks):null;if(this.tracks.forEach((c,d)=>{let h;if(l){let p=null;for(let m=0;md!==null).map(d=>d.label);c.length&&this.hls.logger.warn(`Media element contains unused subtitle tracks: ${c.join(", ")}. Replace media element for each source to clear TextTracks and captions menu.`)}}else if(this.tracks.length){const s=this.tracks.map(l=>({label:l.name,kind:l.type.toLowerCase(),default:l.default,subtitleTrack:l}));this.hls.trigger(Ie.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:s})}}}onManifestLoaded(t,n){this.config.enableCEA708Captions&&n.captions&&n.captions.forEach(r=>{const o=/(?:CC|SERVICE)([1-4])/.exec(r.instreamId);if(!o)return;const a=`textTrack${o[1]}`,s=this.captionsProperties[a];s&&(s.label=r.name,r.lang&&(s.languageCode=r.lang),s.media=r)})}closedCaptionsForLevel(t){const n=this.hls.levels[t.level];return n?.attrs["CLOSED-CAPTIONS"]}onFragLoading(t,n){if(this.enabled&&n.frag.type===Jn.MAIN){var r,o;const{cea608Parser1:a,cea608Parser2:s,lastSn:l}=this,{cc:c,sn:d}=n.frag,h=(r=(o=n.part)==null?void 0:o.index)!=null?r:-1;a&&s&&(d!==l+1||d===l&&h!==this.lastPartIndex+1||c!==this.lastCc)&&(a.reset(),s.reset()),this.lastCc=c,this.lastSn=d,this.lastPartIndex=h}}onFragLoaded(t,n){const{frag:r,payload:o}=n;if(r.type===Jn.SUBTITLE)if(o.byteLength){const a=r.decryptdata,s="stats"in n;if(a==null||!a.encrypted||s){const l=this.tracks[r.level],c=this.vttCCs;c[r.cc]||(c[r.cc]={start:r.start,prevCC:this.prevCC,new:!0},this.prevCC=r.cc),l&&l.textCodec===qF?this._parseIMSC1(r,o):this._parseVTTs(n)}}else this.hls.trigger(Ie.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;jue(n,this.initPTS[t.cc],o=>{this._appendCues(o,t.level),r.trigger(Ie.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},o=>{r.logger.log(`Failed to parse IMSC1: ${o}`),r.trigger(Ie.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t,error:o})})}_parseVTTs(t){var n;const{frag:r,payload:o}=t,{initPTS:a,unparsedVttFrags:s}=this,l=a.length-1;if(!a[r.cc]&&l===-1){s.push(t);return}const c=this.hls,d=(n=r.initSegment)!=null&&n.data?Xc(r.initSegment.data,new Uint8Array(o)).buffer:o;s8t(d,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,h=>{this._appendCues(h,r.level),c.trigger(Ie.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:r})},h=>{const p=h.message==="Missing initPTS for VTT MPEGTS";p?s.push(t):this._fallbackToIMSC1(r,o),c.logger.log(`Failed to parse VTT cue: ${h}`),!(p&&l>r.cc)&&c.trigger(Ie.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:h})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||jue(n,this.initPTS[t.cc],()=>{r.textCodec=qF,this._parseIMSC1(t,n)},()=>{r.textCodec="wvtt"})}_appendCues(t,n){const r=this.hls;if(this.config.renderTextTracksNatively){const o=this.textTracks[n];if(!o||o.mode==="disabled")return;t.forEach(a=>F2e(o,a))}else{const o=this.tracks[n];if(!o)return;const a=o.default?"default":"subtitles"+n;r.trigger(Ie.CUES_PARSED,{type:"subtitles",cues:t,track:a})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===Jn.SUBTITLE&&this.onFragLoaded(Ie.FRAG_LOADED,n)}onSubtitleTracksCleared(){this.tracks=[],this.captionsTracks={}}onFragParsingUserdata(t,n){if(!this.enabled||!this.config.enableCEA708Captions)return;const{frag:r,samples:o}=n;if(!(r.type===Jn.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let a=0;aXz(l[c],n,r))}if(this.config.renderTextTracksNatively&&n===0&&o!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>Xz(l[c],n,o))}}}extractCea608Data(t){const n=[[],[]],r=t[0]&31;let o=2;for(let a=0;a=16?c--:c++;const g=W2e(d.trim()),y=VG(t,n,g);e!=null&&(p=e.cues)!=null&&p.getCueById(y)||(s=new h(t,n,g),s.id=y,s.line=m+1,s.align="left",s.position=10+Math.min(80,Math.floor(c*8/32)*10),o.push(s))}return e&&o.length&&(o.sort((m,g)=>m.line==="auto"||g.line==="auto"?0:m.line>8&&g.line>8?g.line-m.line:m.line-g.line),o.forEach(m=>F2e(e,m))),o}};function m8t(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const g8t=/(\d+)-(\d+)\/(\d+)/;class Wue{constructor(t){this.fetchSetup=void 0,this.requestTimeout=void 0,this.request=null,this.response=null,this.controller=void 0,this.context=null,this.config=null,this.callbacks=null,this.stats=void 0,this.loader=null,this.fetchSetup=t.fetchSetup||S8t,this.controller=new self.AbortController,this.stats=new bG}destroy(){this.loader=this.callbacks=this.context=this.config=this.request=null,this.abortInternal(),this.response=null,this.fetchSetup=this.controller=this.stats=null}abortInternal(){this.controller&&!this.stats.loading.end&&(this.stats.aborted=!0,this.controller.abort())}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.response)}load(t,n,r){const o=this.stats;if(o.loading.start)throw new Error("Loader can only be used once.");o.loading.start=self.performance.now();const a=y8t(t,this.controller.signal),s=t.responseType==="arraybuffer",l=s?"byteLength":"length",{maxTimeToFirstByteMs:c,maxLoadTimeMs:d}=n.loadPolicy;this.context=t,this.config=n,this.callbacks=r,this.request=this.fetchSetup(t,a),self.clearTimeout(this.requestTimeout),n.timeout=c&&Bn(c)?c:d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},n.timeout),(x_(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(p=>{var m;this.response=this.loader=p;const g=Math.max(self.performance.now(),o.loading.start);if(self.clearTimeout(this.requestTimeout),n.timeout=d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},d-(g-o.loading.start)),!p.ok){const{status:S,statusText:k}=p;throw new k8t(k||"fetch, bad network response",S,p)}o.loading.first=g,o.total=_8t(p.headers)||o.total;const y=(m=this.callbacks)==null?void 0:m.onProgress;return y&&Bn(n.highWaterMark)?this.loadProgressively(p,o,t,n.highWaterMark,y):s?p.arrayBuffer():t.responseType==="json"?p.json():p.text()}).then(p=>{var m,g;const y=this.response;if(!y)throw new Error("loader destroyed");self.clearTimeout(this.requestTimeout),o.loading.end=Math.max(self.performance.now(),o.loading.first);const S=p[l];S&&(o.loaded=o.total=S);const k={url:y.url,data:p,code:y.status},C=(m=this.callbacks)==null?void 0:m.onProgress;C&&!Bn(n.highWaterMark)&&C(o,t,p,y),(g=this.callbacks)==null||g.onSuccess(k,o,t,y)}).catch(p=>{var m;if(self.clearTimeout(this.requestTimeout),o.aborted)return;const g=p&&p.code||0,y=p?p.message:null;(m=this.callbacks)==null||m.onError({code:g,text:y},t,p?p.details:null,o)})}getCacheAge(){let t=null;if(this.response){const n=this.response.headers.get("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.response?this.response.headers.get(t):null}loadProgressively(t,n,r,o=0,a){const s=new o2e,l=t.body.getReader(),c=()=>l.read().then(d=>{if(d.done)return s.dataLength&&a(n,r,s.flush().buffer,t),Promise.resolve(new ArrayBuffer(0));const h=d.value,p=h.length;return n.loaded+=p,p=o&&a(n,r,s.flush().buffer,t)):a(n,r,h.buffer,t),c()}).catch(()=>Promise.reject());return c()}}function y8t(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(mo({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function b8t(e){const t=g8t.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function _8t(e){const t=e.get("Content-Range");if(t){const r=b8t(t);if(Bn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function S8t(e,t){return new self.Request(e.url,t)}class k8t extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const x8t=/^age:\s*[\d.]+\s*$/im;class X2e{constructor(t){this.xhrSetup=void 0,this.requestTimeout=void 0,this.retryTimeout=void 0,this.retryDelay=void 0,this.config=null,this.callbacks=null,this.context=null,this.loader=null,this.stats=void 0,this.xhrSetup=t&&t.xhrSetup||null,this.stats=new bG,this.retryDelay=0}destroy(){this.callbacks=null,this.abortInternal(),this.loader=null,this.config=null,this.context=null,this.xhrSetup=null}abortInternal(){const t=this.loader;self.clearTimeout(this.requestTimeout),self.clearTimeout(this.retryTimeout),t&&(t.onreadystatechange=null,t.onprogress=null,t.readyState!==4&&(this.stats.aborted=!0,t.abort()))}abort(){var t;this.abortInternal(),(t=this.callbacks)!=null&&t.onAbort&&this.callbacks.onAbort(this.stats,this.context,this.loader)}load(t,n,r){if(this.stats.loading.start)throw new Error("Loader can only be used once.");this.stats.loading.start=self.performance.now(),this.context=t,this.config=n,this.callbacks=r,this.loadInternal()}loadInternal(){const{config:t,context:n}=this;if(!t||!n)return;const r=this.loader=new self.XMLHttpRequest,o=this.stats;o.loading.first=0,o.loaded=0,o.aborted=!1;const a=this.xhrSetup;a?Promise.resolve().then(()=>{if(!(this.loader!==r||this.stats.aborted))return a(r,n.url)}).catch(s=>{if(!(this.loader!==r||this.stats.aborted))return r.open("GET",n.url,!0),a(r,n.url)}).then(()=>{this.loader!==r||this.stats.aborted||this.openAndSendXhr(r,n,t)}).catch(s=>{var l;(l=this.callbacks)==null||l.onError({code:r.status,text:s.message},n,r,o)}):this.openAndSendXhr(r,n,t)}openAndSendXhr(t,n,r){t.readyState||t.open("GET",n.url,!0);const o=n.headers,{maxTimeToFirstByteMs:a,maxLoadTimeMs:s}=r.loadPolicy;if(o)for(const l in o)t.setRequestHeader(l,o[l]);n.rangeEnd&&t.setRequestHeader("Range","bytes="+n.rangeStart+"-"+(n.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=n.responseType,self.clearTimeout(this.requestTimeout),r.timeout=a&&Bn(a)?a:s,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),r.timeout),t.send()}readystatechange(){const{context:t,loader:n,stats:r}=this;if(!t||!n)return;const o=n.readyState,a=this.config;if(!r.aborted&&o>=2&&(r.loading.first===0&&(r.loading.first=Math.max(self.performance.now(),r.loading.start),a.timeout!==a.loadPolicy.maxLoadTimeMs&&(self.clearTimeout(this.requestTimeout),a.timeout=a.loadPolicy.maxLoadTimeMs,this.requestTimeout=self.setTimeout(this.loadtimeout.bind(this),a.loadPolicy.maxLoadTimeMs-(r.loading.first-r.loading.start)))),o===4)){self.clearTimeout(this.requestTimeout),n.onreadystatechange=null,n.onprogress=null;const d=n.status,h=n.responseType==="text"?n.responseText:null;if(d>=200&&d<300){const y=h??n.response;if(y!=null){var s,l;r.loading.end=Math.max(self.performance.now(),r.loading.first);const S=n.responseType==="arraybuffer"?y.byteLength:y.length;r.loaded=r.total=S,r.bwEstimate=r.total*8e3/(r.loading.end-r.loading.first);const k=(s=this.callbacks)==null?void 0:s.onProgress;k&&k(r,t,y,n);const C={url:n.responseURL,data:y,code:d};(l=this.callbacks)==null||l.onSuccess(C,r,t,n);return}}const p=a.loadPolicy.errorRetry,m=r.retry,g={url:t.url,data:void 0,code:d};if(LT(p,m,!1,g))this.retry(p);else{var c;fo.error(`${d} while loading ${t.url}`),(c=this.callbacks)==null||c.onError({code:d,text:n.statusText},t,n,r)}}}loadtimeout(){if(!this.config)return;const t=this.config.loadPolicy.timeoutRetry,n=this.stats.retry;if(LT(t,n,!0))this.retry(t);else{var r;fo.warn(`timeout while loading ${(r=this.context)==null?void 0:r.url}`);const o=this.callbacks;o&&(this.abortInternal(),o.onTimeout(this.stats,this.context,this.loader))}}retry(t){const{context:n,stats:r}=this;this.retryDelay=xG(t,r.retry),r.retry++,fo.warn(`${status?"HTTP Status "+status:"Timeout"} while loading ${n?.url}, retrying ${r.retry}/${t.maxNumRetry} in ${this.retryDelay}ms`),this.abortInternal(),this.loader=null,self.clearTimeout(this.retryTimeout),this.retryTimeout=self.setTimeout(this.loadInternal.bind(this),this.retryDelay)}loadprogress(t){const n=this.stats;n.loaded=t.loaded,t.lengthComputable&&(n.total=t.total)}getCacheAge(){let t=null;if(this.loader&&x8t.test(this.loader.getAllResponseHeaders())){const n=this.loader.getResponseHeader("age");t=n?parseFloat(n):null}return t}getResponseHeader(t){return this.loader&&new RegExp(`^${t}:\\s*[\\d.]+\\s*$`,"im").test(this.loader.getAllResponseHeaders())?this.loader.getResponseHeader(t):null}}const C8t={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},w8t=uo(uo({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,ignoreDevicePixelRatio:!1,maxDevicePixelRatio:Number.POSITIVE_INFINITY,preferManagedMediaSource:!0,initialLiveManifestSize:1,maxBufferLength:30,backBufferLength:1/0,frontBufferFlushThreshold:1/0,startOnSegmentBoundary:!1,maxBufferSize:60*1e3*1e3,maxFragLookUpTolerance:.25,maxBufferHole:.1,detectStallWithCurrentTimeMs:1250,highBufferWatchdogPeriod:2,nudgeOffset:.1,nudgeMaxRetry:3,nudgeOnVideoHole:!0,liveSyncMode:"edge",liveSyncDurationCount:3,liveSyncOnStallIncrease:1,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,maxLiveSyncPlaybackRate:1,liveDurationInfinity:!1,liveBackBufferLength:null,maxMaxBufferLength:600,enableWorker:!0,workerPath:null,enableSoftwareAES:!0,startLevel:void 0,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,ignorePlaylistParsingErrors:!1,loader:X2e,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:Bxt,bufferController:Twt,capLevelController:BG,errorController:zxt,fpsController:AEt,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrEwmaDefaultEstimateMax:5e6,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystems:{},drmSystemOptions:{},requestMediaKeySystemAccessFunc:q3e,requireKeySystemAccessOnStart:!1,testBandwidth:!0,progressive:!1,lowLatencyMode:!0,cmcd:void 0,enableDateRangeMetadataCues:!0,enableEmsgMetadataCues:!0,enableEmsgKLVMetadata:!1,enableID3MetadataCues:!0,enableInterstitialPlayback:!0,interstitialAppendInPlace:!0,interstitialLiveLookAhead:10,useMediaCapabilities:!0,preserveManualLevelOnError:!1,certLoadPolicy:{default:C8t},keyLoadPolicy:{default:{maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"},errorRetry:{maxNumRetry:8,retryDelayMs:1e3,maxRetryDelayMs:2e4,backoff:"linear"}}},manifestLoadPolicy:{default:{maxTimeToFirstByteMs:1/0,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},playlistLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:2,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},fragLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:12e4,timeoutRetry:{maxNumRetry:4,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:6,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},steeringManifestLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:2e4,timeoutRetry:{maxNumRetry:2,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:1,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},interstitialAssetListLoadPolicy:{default:{maxTimeToFirstByteMs:1e4,maxLoadTimeMs:3e4,timeoutRetry:{maxNumRetry:0,retryDelayMs:0,maxRetryDelayMs:0},errorRetry:{maxNumRetry:0,retryDelayMs:1e3,maxRetryDelayMs:8e3}}},manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3},E8t()),{},{subtitleStreamController:jEt,subtitleTrackController:DEt,timelineController:f8t,audioStreamController:xwt,audioTrackController:Cwt,emeController:my,cmcdController:CEt,contentSteeringController:EEt,interstitialsController:FEt});function E8t(){return{cueHandler:v8t,enableWebVTT:!0,enableIMSC1:!0,enableCEA708Captions:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}}function T8t(e,t,n){if((t.liveSyncDurationCount||t.liveMaxLatencyDurationCount)&&(t.liveSyncDuration||t.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");if(t.liveMaxLatencyDurationCount!==void 0&&(t.liveSyncDurationCount===void 0||t.liveMaxLatencyDurationCount<=t.liveSyncDurationCount))throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be greater than "liveSyncDurationCount"');if(t.liveMaxLatencyDuration!==void 0&&(t.liveSyncDuration===void 0||t.liveMaxLatencyDuration<=t.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be greater than "liveSyncDuration"');const r=Jz(e),o=["manifest","level","frag"],a=["TimeOut","MaxRetry","RetryDelay","MaxRetryTimeout"];return o.forEach(s=>{const l=`${s==="level"?"playlist":s}LoadPolicy`,c=t[l]===void 0,d=[];a.forEach(h=>{const p=`${s}Loading${h}`,m=t[p];if(m!==void 0&&c){d.push(p);const g=r[l].default;switch(t[l]={default:g},h){case"TimeOut":g.maxLoadTimeMs=m,g.maxTimeToFirstByteMs=m;break;case"MaxRetry":g.errorRetry.maxNumRetry=m,g.timeoutRetry.maxNumRetry=m;break;case"RetryDelay":g.errorRetry.retryDelayMs=m,g.timeoutRetry.retryDelayMs=m;break;case"MaxRetryTimeout":g.errorRetry.maxRetryDelayMs=m,g.timeoutRetry.maxRetryDelayMs=m;break}}}),d.length&&n.warn(`hls.js config: "${d.join('", "')}" setting(s) are deprecated, use "${l}": ${Co(t[l])}`)}),uo(uo({},r),t)}function Jz(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(Jz):Object.keys(e).reduce((t,n)=>(t[n]=Jz(e[n]),t),{}):e}function A8t(e,t){const n=e.loader;n!==Wue&&n!==X2e?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):m8t()&&(e.loader=Wue,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const t8=2,I8t=.1,L8t=.05,D8t=100;class P8t extends U3e{constructor(t,n){super("gap-controller",t.logger),this.hls=void 0,this.fragmentTracker=void 0,this.media=null,this.mediaSource=void 0,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1,this.buffered={},this.lastCurrentTime=0,this.ended=0,this.waiting=0,this.onMediaPlaying=()=>{this.ended=0,this.waiting=0},this.onMediaWaiting=()=>{var r;(r=this.media)!=null&&r.seeking||(this.waiting=self.performance.now(),this.tick())},this.onMediaEnded=()=>{if(this.hls){var r;this.ended=((r=this.media)==null?void 0:r.currentTime)||1,this.hls.trigger(Ie.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ie.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ie.BUFFER_APPENDED,this.onBufferAppended,this))}destroy(){super.destroy(),this.unregisterListeners(),this.media=this.hls=this.fragmentTracker=null,this.mediaSource=void 0}onMediaAttached(t,n){this.setInterval(D8t),this.mediaSource=n.mediaSource;const r=this.media=n.media;Kl(r,"playing",this.onMediaPlaying),Kl(r,"waiting",this.onMediaWaiting),Kl(r,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:r}=this;r&&(Cu(r,"playing",this.onMediaPlaying),Cu(r,"waiting",this.onMediaWaiting),Cu(r,"ended",this.onMediaEnded),this.media=null),this.mediaSource=void 0}onBufferAppended(t,n){this.buffered=n.timeRanges}get hasBuffered(){return Object.keys(this.buffered).length>0}tick(){var t;if(!((t=this.media)!=null&&t.readyState)||!this.hasBuffered)return;const n=this.media.currentTime;this.poll(n,this.lastCurrentTime),this.lastCurrentTime=n}poll(t,n){var r,o;const a=(r=this.hls)==null?void 0:r.config;if(!a)return;const s=this.media;if(!s)return;const{seeking:l}=s,c=this.seeking&&!l,d=!this.seeking&&l,h=s.paused&&!l||s.ended||s.playbackRate===0;if(this.seeking=l,t!==n){n&&(this.ended=0),this.moved=!0,l||(this.nudgeRetry=0,a.nudgeOnVideoHole&&!h&&t>n&&this.nudgeOnVideoHole(t,n)),this.waiting===0&&this.stallResolved(t);return}if(d||c){c&&this.stallResolved(t);return}if(h){this.nudgeRetry=0,this.stallResolved(t),!this.ended&&s.ended&&this.hls&&(this.ended=t||1,this.hls.trigger(Ie.MEDIA_ENDED,{stalled:!1}));return}if(!jr.getBuffered(s).length){this.nudgeRetry=0;return}const p=jr.bufferInfo(s,t,0),m=p.nextStart||0,g=this.fragmentTracker;if(l&&g&&this.hls){const D=Gue(this.hls.inFlightFragments,t),P=p.len>t8,M=!m||D||m-t>t8&&!g.getPartialFragment(t);if(P||M)return;this.moved=!1}const y=(o=this.hls)==null?void 0:o.latestLevelDetails;if(!this.moved&&this.stalled!==null&&g){if(!(p.len>0)&&!m)return;const P=Math.max(m,p.start||0)-t,$=!!(y!=null&&y.live)?y.targetduration*2:t8,I=CC(t,g);if(P>0&&(P<=$||I)){s.paused||this._trySkipBufferHole(I);return}}const S=a.detectStallWithCurrentTimeMs,k=self.performance.now(),C=this.waiting;let x=this.stalled;if(x===null)if(C>0&&k-C=S||C)&&this.hls){var _;if(((_=this.mediaSource)==null?void 0:_.readyState)==="ended"&&!(y!=null&&y.live)&&Math.abs(t-(y?.edge||0))<1){if(this.ended)return;this.ended=t||1,this.hls.trigger(Ie.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const T=jr.bufferInfo(s,t,a.maxBufferHole);this._tryFixBufferStall(T,E,t)}stallResolved(t){const n=this.stalled;if(n&&this.hls&&(this.stalled=null,this.stallReported)){const r=self.performance.now()-n;this.log(`playback not stuck anymore @${t}, after ${Math.round(r)}ms`),this.stallReported=!1,this.waiting=0,this.hls.trigger(Ie.STALL_RESOLVED,{})}}nudgeOnVideoHole(t,n){var r;const o=this.buffered.video;if(this.hls&&this.media&&this.fragmentTracker&&(r=this.buffered.audio)!=null&&r.length&&o&&o.length>1&&t>o.end(0)){const a=jr.bufferedInfo(jr.timeRangesToArray(this.buffered.audio),t,0);if(a.len>1&&n>=a.start){const s=jr.timeRangesToArray(o),l=jr.bufferedInfo(s,n,0).bufferedIndex;if(l>-1&&ll)&&h-d<1&&t-d<2){const p=new Error(`nudging playhead to flush pipeline after video hole. currentTime: ${t} hole: ${d} -> ${h} buffered index: ${c}`);this.warn(p.message),this.media.currentTime+=1e-6;let m=CC(t,this.fragmentTracker);m&&"fragment"in m?m=m.fragment:m||(m=void 0);const g=jr.bufferInfo(this.media,t,0);this.hls.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:p,reason:p.message,frag:m,buffer:g.len,bufferInfo:g})}}}}}_tryFixBufferStall(t,n,r){var o,a;const{fragmentTracker:s,media:l}=this,c=(o=this.hls)==null?void 0:o.config;if(!l||!s||!c)return;const d=(a=this.hls)==null?void 0:a.latestLevelDetails,h=CC(r,s);if((h||d!=null&&d.live&&r1&&t.len>c.maxBufferHole||t.nextStart&&(t.nextStart-rc.highBufferWatchdogPeriod*1e3||this.waiting)&&(this.warn("Trying to nudge playhead over buffer-hole"),this._tryNudgeBuffer(t))}adjacentTraversal(t,n){const r=this.fragmentTracker,o=t.nextStart;if(r&&o){const a=r.getFragAtPos(n,Jn.MAIN),s=r.getFragAtPos(o,Jn.MAIN);if(a&&s)return s.sn-a.sn<2}return!1}_reportStall(t){const{hls:n,media:r,stallReported:o,stalled:a}=this;if(!o&&a!==null&&r&&n){this.stallReported=!0;const s=new Error(`Playback stalling at @${r.currentTime} due to low buffer (${Co(t)})`);this.warn(s.message),n.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.BUFFER_STALLED_ERROR,fatal:!1,error:s,buffer:t.len,bufferInfo:t,stalled:{start:a}})}}_trySkipBufferHole(t){var n;const{fragmentTracker:r,media:o}=this,a=(n=this.hls)==null?void 0:n.config;if(!o||!r||!a)return 0;const s=o.currentTime,l=jr.bufferInfo(o,s,0),c=s0&&l.len<1&&o.readyState<3,m=c-s;if(m>0&&(h||p)){if(m>a.maxBufferHole){let y=!1;if(s===0){const S=r.getAppendedFrag(0,Jn.MAIN);S&&c"u"))return self.VTTCue||self.TextTrackCue}function JF(e,t,n,r,o){let a=new e(t,n,"");try{a.value=r,o&&(a.type=o)}catch{a=new e(t,n,Co(o?uo({type:o},r):r))}return a}const wC=(()=>{const e=Qz();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class M8t{constructor(t){this.hls=void 0,this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.removeCues=!0,this.assetCue=void 0,this.onEventCueEnter=()=>{this.hls&&this.hls.trigger(Ie.EVENT_CUE_ENTER,{})},this.hls=t,this._registerListeners()}destroy(){this._unregisterListeners(),this.id3Track=null,this.media=null,this.dateRangeCuesAppended={},this.hls=this.onEventCueEnter=null}_registerListeners(){const{hls:t}=this;t&&(t.on(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(Ie.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ie.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ie.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(Ie.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(Ie.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ie.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ie.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}onMediaAttaching(t,n){var r;this.media=n.media,((r=n.overrides)==null?void 0:r.cueRemoval)===!1&&(this.removeCues=!1)}onMediaAttached(){var t;const n=(t=this.hls)==null?void 0:t.latestLevelDetails;n&&this.updateDateRangeCues(n)}onMediaDetaching(t,n){this.media=null,!n.transferMedia&&(this.id3Track&&(this.removeCues&&H1(this.id3Track,this.onEventCueEnter),this.id3Track=null),this.dateRangeCuesAppended={})}onManifestLoading(){this.dateRangeCuesAppended={}}createTrack(t){const n=this.getID3Track(t.textTracks);return n.mode="hidden",n}getID3Track(t){if(this.media){for(let n=0;nwC&&(p=wC),p-h<=0&&(p=h+R8t);for(let g=0;gh.type===nc.audioId3&&c:o==="video"?d=h=>h.type===nc.emsg&&l:d=h=>h.type===nc.audioId3&&c||h.type===nc.emsg&&l,Xz(a,n,r,d)}}onLevelUpdated(t,{details:n}){this.updateDateRangeCues(n,!0)}onLevelPtsUpdated(t,n){Math.abs(n.drift)>.01&&this.updateDateRangeCues(n.details)}updateDateRangeCues(t,n){if(!this.hls||!this.media)return;const{assetPlayerId:r,timelineOffset:o,enableDateRangeMetadataCues:a,interstitialsController:s}=this.hls.config;if(!a)return;const l=Qz();if(r&&o&&!s){const{fragmentStart:S,fragmentEnd:k}=t;let C=this.assetCue;C?(C.startTime=S,C.endTime=k):l&&(C=this.assetCue=JF(l,S,k,{assetPlayerId:this.hls.config.assetPlayerId},"hlsjs.interstitial.asset"),C&&(C.id=r,this.id3Track||(this.id3Track=this.createTrack(this.media)),this.id3Track.addCue(C),C.addEventListener("enter",this.onEventCueEnter)))}if(!t.hasProgramDateTime)return;const{id3Track:c}=this,{dateRanges:d}=t,h=Object.keys(d);let p=this.dateRangeCuesAppended;if(c&&n){var m;if((m=c.cues)!=null&&m.length){const S=Object.keys(p).filter(k=>!h.includes(k));for(let k=S.length;k--;){var g;const C=S[k],x=(g=p[C])==null?void 0:g.cues;delete p[C],x&&Object.keys(x).forEach(E=>{const _=x[E];if(_){_.removeEventListener("enter",this.onEventCueEnter);try{c.removeCue(_)}catch{}}})}}else p=this.dateRangeCuesAppended={}}const y=t.fragments[t.fragments.length-1];if(!(h.length===0||!Bn(y?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let S=0;S{if(j!==C.id){const U=d[j];if(U.class===C.class&&U.startDate>C.startDate&&(!N||C.startDate.01&&(j.startTime=x,j.endTime=D);else if(l){let U=C.attr[N];nCt(N)&&(U=x3e(U));const G=JF(l,x,D,{key:N,data:U},nc.dateRange);G&&(G.id=k,this.id3Track.addCue(G),_[N]=G,s&&(N==="X-ASSET-LIST"||N==="X-ASSET-URL")&&G.addEventListener("enter",this.onEventCueEnter))}}p[k]={cues:_,dateRange:C,durationKnown:T}}}}}class O8t{constructor(t){this.hls=void 0,this.config=void 0,this.media=null,this.currentTime=0,this.stallCount=0,this._latency=null,this._targetLatencyUpdated=!1,this.onTimeupdate=()=>{const{media:n}=this,r=this.levelDetails;if(!n||!r)return;this.currentTime=n.currentTime;const o=this.computeLatency();if(o===null)return;this._latency=o;const{lowLatencyMode:a,maxLiveSyncPlaybackRate:s}=this.config;if(!a||s===1||!r.live)return;const l=this.targetLatency;if(l===null)return;const c=o-l,d=Math.min(this.maxLatency,l+r.targetduration);if(c.05&&this.forwardBufferLength>1){const p=Math.min(2,Math.max(1,s)),m=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,g=Math.min(p,Math.max(1,m));this.changeMediaPlaybackRate(n,g)}else n.playbackRate!==1&&n.playbackRate!==0&&this.changeMediaPlaybackRate(n,1)},this.hls=t,this.config=t.config,this.registerListeners()}get levelDetails(){var t;return((t=this.hls)==null?void 0:t.latestLevelDetails)||null}get latency(){return this._latency||0}get maxLatency(){const{config:t}=this;if(t.liveMaxLatencyDuration!==void 0)return t.liveMaxLatencyDuration;const n=this.levelDetails;return n?t.liveMaxLatencyDurationCount*n.targetduration:0}get targetLatency(){const t=this.levelDetails;if(t===null||this.hls===null)return null;const{holdBack:n,partHoldBack:r,targetduration:o}=t,{liveSyncDuration:a,liveSyncDurationCount:s,lowLatencyMode:l}=this.config,c=this.hls.userConfig;let d=l&&r||n;(this._targetLatencyUpdated||c.liveSyncDuration||c.liveSyncDurationCount||d===0)&&(d=a!==void 0?a:s*o);const h=o;return d+Math.min(this.stallCount*this.config.liveSyncOnStallIncrease,h)}set targetLatency(t){this.stallCount=0,this.config.liveSyncDuration=t,this._targetLatencyUpdated=!0}get liveSyncPosition(){const t=this.estimateLiveEdge(),n=this.targetLatency;if(t===null||n===null)return null;const r=this.levelDetails;if(r===null)return null;const o=r.edge,a=t-n-this.edgeStalled,s=o-r.totalduration,l=o-(this.config.lowLatencyMode&&r.partTarget||r.targetduration);return Math.min(Math.max(s,a),l)}get drift(){const t=this.levelDetails;return t===null?1:t.drift}get edgeStalled(){const t=this.levelDetails;if(t===null)return 0;const n=(this.config.lowLatencyMode&&t.partTarget||t.targetduration)*3;return Math.max(t.age-n,0)}get forwardBufferLength(){const{media:t}=this,n=this.levelDetails;if(!t||!n)return 0;const r=t.buffered.length;return(r?t.buffered.end(r-1):n.edge)-this.currentTime}destroy(){this.unregisterListeners(),this.onMediaDetaching(),this.hls=null}registerListeners(){const{hls:t}=this;t&&(t.on(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ie.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ie.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ie.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ie.ERROR,this.onError,this))}onMediaAttached(t,n){this.media=n.media,this.media.addEventListener("timeupdate",this.onTimeupdate)}onMediaDetaching(){this.media&&(this.media.removeEventListener("timeupdate",this.onTimeupdate),this.media=null)}onManifestLoading(){this._latency=null,this.stallCount=0}onLevelUpdated(t,{details:n}){n.advanced&&this.onTimeupdate(),!n.live&&this.media&&this.media.removeEventListener("timeupdate",this.onTimeupdate)}onError(t,n){var r;n.details===Wt.BUFFER_STALLED_ERROR&&(this.stallCount++,this.hls&&(r=this.levelDetails)!=null&&r.live&&this.hls.logger.warn("[latency-controller]: Stall detected, adjusting target latency"))}changeMediaPlaybackRate(t,n){var r,o;t.playbackRate!==n&&((r=this.hls)==null||r.logger.debug(`[latency-controller]: latency=${this.latency.toFixed(3)}, targetLatency=${(o=this.targetLatency)==null?void 0:o.toFixed(3)}, forwardBufferLength=${this.forwardBufferLength.toFixed(3)}: adjusting playback rate from ${t.playbackRate} to ${n}`),t.playbackRate=n)}estimateLiveEdge(){const t=this.levelDetails;return t===null?null:t.edge+t.age}computeLatency(){const t=this.estimateLiveEdge();return t===null?null:t-this.currentTime}}class $8t extends $G{constructor(t,n){super(t,"level-controller"),this._levels=[],this._firstLevel=-1,this._maxAutoLevel=-1,this._startLevel=void 0,this.currentLevel=null,this.currentLevelIndex=-1,this.manualLevelIndex=-1,this.steering=void 0,this.onParsedComplete=void 0,this.steering=n,this._registerListeners()}_registerListeners(){const{hls:t}=this;t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ie.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ie.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ie.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Ie.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ie.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ie.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ie.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Ie.ERROR,this.onError,this)}destroy(){this._unregisterListeners(),this.steering=null,this.resetLevels(),super.destroy()}stopLoad(){this._levels.forEach(n=>{n.loadError=0,n.fragmentError=0}),super.stopLoad()}resetLevels(){this._startLevel=void 0,this.manualLevelIndex=-1,this.currentLevelIndex=-1,this.currentLevel=null,this._levels=[],this._maxAutoLevel=-1}onManifestLoading(t,n){this.resetLevels()}onManifestLoaded(t,n){const r=this.hls.config.preferManagedMediaSource,o=[],a={},s={};let l=!1,c=!1,d=!1;n.levels.forEach(h=>{const p=h.attrs;let{audioCodec:m,videoCodec:g}=h;m&&(h.audioCodec=m=ET(m,r)||void 0),g&&(g=h.videoCodec=yxt(g));const{width:y,height:S,unknownCodecs:k}=h,C=k?.length||0;if(l||(l=!!(y&&S)),c||(c=!!g),d||(d=!!m),C||m&&!this.isAudioSupported(m)||g&&!this.isVideoSupported(g)){this.log(`Some or all CODECS not supported "${p.CODECS}"`);return}const{CODECS:x,"FRAME-RATE":E,"HDCP-LEVEL":_,"PATHWAY-ID":T,RESOLUTION:D,"VIDEO-RANGE":P}=p,$=`${`${T||"."}-`}${h.bitrate}-${D}-${E}-${x}-${P}-${_}`;if(a[$])if(a[$].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const I=s[$]+=1;h.attrs["PATHWAY-ID"]=new Array(I+1).join(".");const N=this.createLevel(h);a[$]=N,o.push(N)}else a[$].addGroupId("audio",p.AUDIO),a[$].addGroupId("text",p.SUBTITLES);else{const I=this.createLevel(h);a[$]=I,s[$]=1,o.push(I)}}),this.filterAndSortMediaOptions(o,n,l,c,d)}createLevel(t){const n=new __(t),r=t.supplemental;if(r!=null&&r.videoCodec&&!this.isVideoSupported(r.videoCodec)){const o=new Error(`SUPPLEMENTAL-CODECS not supported "${r.videoCodec}"`);this.log(o.message),n.supportedResult=O3e(o,[])}return n}isAudioSupported(t){return y_(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return y_(t,"video",this.hls.config.preferManagedMediaSource)}filterAndSortMediaOptions(t,n,r,o,a){var s;let l=[],c=[],d=t;const h=((s=n.stats)==null?void 0:s.parsing)||{};if((r||o)&&a&&(d=d.filter(({videoCodec:x,videoRange:E,width:_,height:T})=>(!!x||!!(_&&T))&&Axt(E))),d.length===0){Promise.resolve().then(()=>{if(this.hls){let x="no level with compatible codecs found in manifest",E=x;n.levels.length&&(E=`one or more CODECS in variant not supported: ${Co(n.levels.map(T=>T.attrs.CODECS).filter((T,D,P)=>P.indexOf(T)===D))}`,this.warn(E),x+=` (${E})`);const _=new Error(x);this.hls.trigger(Ie.ERROR,{type:lr.MEDIA_ERROR,details:Wt.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:n.url,error:_,reason:E})}}),h.end=performance.now();return}n.audioTracks&&(l=n.audioTracks.filter(x=>!x.audioCodec||this.isAudioSupported(x.audioCodec)),que(l)),n.subtitles&&(c=n.subtitles,que(c));const p=d.slice(0);d.sort((x,E)=>{if(x.attrs["HDCP-LEVEL"]!==E.attrs["HDCP-LEVEL"])return(x.attrs["HDCP-LEVEL"]||"")>(E.attrs["HDCP-LEVEL"]||"")?1:-1;if(r&&x.height!==E.height)return x.height-E.height;if(x.frameRate!==E.frameRate)return x.frameRate-E.frameRate;if(x.videoRange!==E.videoRange)return TT.indexOf(x.videoRange)-TT.indexOf(E.videoRange);if(x.videoCodec!==E.videoCodec){const _=Fle(x.videoCodec),T=Fle(E.videoCodec);if(_!==T)return T-_}if(x.uri===E.uri&&x.codecSet!==E.codecSet){const _=wT(x.codecSet),T=wT(E.codecSet);if(_!==T)return T-_}return x.averageBitrate!==E.averageBitrate?x.averageBitrate-E.averageBitrate:0});let m=p[0];if(this.steering&&(d=this.steering.filterParsedLevels(d),d.length!==p.length)){for(let x=0;x_&&_===this.hls.abrEwmaDefaultEstimate&&(this.hls.bandwidthEstimate=T)}break}const y=a&&!o,S=this.hls.config,k=!!(S.audioStreamController&&S.audioTrackController),C={levels:d,audioTracks:l,subtitleTracks:c,sessionData:n.sessionData,sessionKeys:n.sessionKeys,firstLevel:this._firstLevel,stats:n.stats,audio:a,video:o,altAudio:k&&!y&&l.some(x=>!!x.url)};h.end=performance.now(),this.hls.trigger(Ie.MANIFEST_PARSED,C)}get levels(){return this._levels.length===0?null:this._levels}get loadLevelObj(){return this.currentLevel}get level(){return this.currentLevelIndex}set level(t){const n=this._levels;if(n.length===0)return;if(t<0||t>=n.length){const h=new Error("invalid level idx"),p=t<0;if(this.hls.trigger(Ie.ERROR,{type:lr.OTHER_ERROR,details:Wt.LEVEL_SWITCH_ERROR,level:t,fatal:p,error:h,reason:h.message}),p)return;t=Math.min(t,n.length-1)}const r=this.currentLevelIndex,o=this.currentLevel,a=o?o.attrs["PATHWAY-ID"]:void 0,s=n[t],l=s.attrs["PATHWAY-ID"];if(this.currentLevelIndex=t,this.currentLevel=s,r===t&&o&&a===l)return;this.log(`Switching to level ${t} (${s.height?s.height+"p ":""}${s.videoRange?s.videoRange+" ":""}${s.codecSet?s.codecSet+" ":""}@${s.bitrate})${l?" with Pathway "+l:""} from level ${r}${a?" with Pathway "+a:""}`);const c={level:t,attrs:s.attrs,details:s.details,bitrate:s.bitrate,averageBitrate:s.averageBitrate,maxBitrate:s.maxBitrate,realBitrate:s.realBitrate,width:s.width,height:s.height,codecSet:s.codecSet,audioCodec:s.audioCodec,videoCodec:s.videoCodec,audioGroups:s.audioGroups,subtitleGroups:s.subtitleGroups,loaded:s.loaded,loadError:s.loadError,fragmentError:s.fragmentError,name:s.name,id:s.id,uri:s.uri,url:s.url,urlId:0,audioGroupIds:s.audioGroupIds,textGroupIds:s.textGroupIds};this.hls.trigger(Ie.LEVEL_SWITCHING,c);const d=s.details;if(!d||d.live){const h=this.switchParams(s.uri,o?.details,d);this.loadPlaylist(h)}}get manualLevel(){return this.manualLevelIndex}set manualLevel(t){this.manualLevelIndex=t,this._startLevel===void 0&&(this._startLevel=t),t!==-1&&(this.level=t)}get firstLevel(){return this._firstLevel}set firstLevel(t){this._firstLevel=t}get startLevel(){if(this._startLevel===void 0){const t=this.hls.config.startLevel;return t!==void 0?t:this.hls.firstAutoLevel}return this._startLevel}set startLevel(t){this._startLevel=t}get pathways(){return this.steering?this.steering.pathways():[]}get pathwayPriority(){return this.steering?this.steering.pathwayPriority:null}set pathwayPriority(t){if(this.steering){const n=this.steering.pathways(),r=t.filter(o=>n.indexOf(o)!==-1);if(t.length<1){this.warn(`pathwayPriority ${t} should contain at least one pathway from list: ${n}`);return}this.steering.pathwayPriority=r}}onError(t,n){n.fatal||!n.context||n.context.type===bi.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===Jn.MAIN){const r=n.elementaryStreams;if(!Object.keys(r).some(a=>!!r[a]))return;const o=this._levels[n.level];o!=null&&o.loadError&&(this.log(`Resetting level error count of ${o.loadError} on frag buffered`),o.loadError=0)}}onLevelLoaded(t,n){var r;const{level:o,details:a}=n,s=n.levelInfo;if(!s){var l;this.warn(`Invalid level index ${o}`),(l=n.deliveryDirectives)!=null&&l.skip&&(a.deltaUpdateFailed=!0);return}if(s===this.currentLevel||n.withoutMultiVariant){s.fragmentError===0&&(s.loadError=0);let c=s.details;c===n.details&&c.advanced&&(c=void 0),this.playlistLoaded(o,n,c)}else(r=n.deliveryDirectives)!=null&&r.skip&&(a.deltaUpdateFailed=!0)}loadPlaylist(t){super.loadPlaylist(),this.shouldLoadPlaylist(this.currentLevel)&&this.scheduleLoading(this.currentLevel,t)}loadingPlaylist(t,n){super.loadingPlaylist(t,n);const r=this.getUrlWithDirectives(t.uri,n),o=this.currentLevelIndex,a=t.attrs["PATHWAY-ID"],s=t.details,l=s?.age;this.log(`Loading level index ${o}${n?.msn!==void 0?" at sn "+n.msn+" part "+n.part:""}${a?" Pathway "+a:""}${l&&s.live?" age "+l.toFixed(1)+(s.type&&" "+s.type||""):""} ${r}`),this.hls.trigger(Ie.LEVEL_LOADING,{url:r,level:o,levelInfo:t,pathwayId:t.attrs["PATHWAY-ID"],id:0,deliveryDirectives:n||null})}get nextLoadLevel(){return this.manualLevelIndex!==-1?this.manualLevelIndex:this.hls.nextAutoLevel}set nextLoadLevel(t){this.level=t,this.manualLevelIndex===-1&&(this.hls.nextAutoLevel=t)}removeLevel(t){var n;if(this._levels.length===1)return;const r=this._levels.filter((a,s)=>s!==t?!0:(this.steering&&this.steering.removeLevel(a),a===this.currentLevel&&(this.currentLevel=null,this.currentLevelIndex=-1,a.details&&a.details.fragments.forEach(l=>l.level=-1)),!1));n2e(r),this._levels=r,this.currentLevelIndex>-1&&(n=this.currentLevel)!=null&&n.details&&(this.currentLevelIndex=this.currentLevel.details.fragments[0].level),this.manualLevelIndex>-1&&(this.manualLevelIndex=this.currentLevelIndex);const o=r.length-1;this._firstLevel=Math.min(this._firstLevel,o),this._startLevel&&(this._startLevel=Math.min(this._startLevel,o)),this.hls.trigger(Ie.LEVELS_UPDATED,{levels:r})}onLevelsUpdated(t,{levels:n}){this._levels=n}checkMaxAutoUpdated(){const{autoLevelCapping:t,maxAutoLevel:n,maxHdcpLevel:r}=this.hls;this._maxAutoLevel!==n&&(this._maxAutoLevel=n,this.hls.trigger(Ie.MAX_AUTO_LEVEL_UPDATED,{autoLevelCapping:t,levels:this.levels,maxAutoLevel:n,minAutoLevel:this.hls.minAutoLevel,maxHdcpLevel:r}))}}function que(e){const t={};e.forEach(n=>{const r=n.groupId||"";n.id=t[r]=t[r]||0,t[r]++})}function Z2e(){return self.SourceBuffer||self.WebKitSourceBuffer}function J2e(){if(!T0())return!1;const t=Z2e();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function B8t(){if(!J2e())return!1;const e=T0();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(b_(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(b_(t,"audio"))))}function N8t(){var e;const t=Z2e();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const F8t=100;class j8t extends AG{constructor(t,n,r){super(t,n,r,"stream-controller",Jn.MAIN),this.audioCodecSwap=!1,this.level=-1,this._forceStartLoad=!1,this._hasEnoughToStart=!1,this.altAudio=0,this.audioOnly=!1,this.fragPlaying=null,this.fragLastKbps=0,this.couldBacktrack=!1,this.backtrackFragment=null,this.audioCodecSwitch=!1,this.videoBuffer=null,this.onMediaPlaying=()=>{this.tick()},this.onMediaSeeked=()=>{const o=this.media,a=o?o.currentTime:null;if(a===null||!Bn(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(o,a,Jn.MAIN,0);if(s===null||s.len===0){this.warn(`Main forward buffer length at ${a} on "seeked" event ${s?s.len:"empty"})`);return}this.tick()},this.registerListeners()}registerListeners(){super.registerListeners();const{hls:t}=this;t.on(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ie.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ie.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ie.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(Ie.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ie.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(Ie.BUFFER_CREATED,this.onBufferCreated,this),t.on(Ie.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ie.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ie.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Ie.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ie.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ie.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(Ie.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ie.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(Ie.BUFFER_CREATED,this.onBufferCreated,this),t.off(Ie.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ie.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ie.FRAG_BUFFERED,this.onFragBuffered,this)}onHandlerDestroying(){this.onMediaPlaying=this.onMediaSeeked=null,this.unregisterListeners(),super.onHandlerDestroying()}startLoad(t,n){if(this.levels){const{lastCurrentTime:r,hls:o}=this;if(this.stopLoad(),this.setInterval(F8t),this.level=-1,!this.startFragRequested){let a=o.startLevel;a===-1&&(o.config.testBandwidth&&this.levels.length>1?(a=0,this.bitrateTest=!0):a=o.firstAutoLevel),o.nextLoadLevel=a,this.level=o.loadLevel,this._hasEnoughToStart=!!n}r>0&&t===-1&&!n&&(this.log(`Override startPosition with lastCurrentTime @${r.toFixed(3)}`),t=r),this.state=an.IDLE,this.nextLoadPosition=this.lastCurrentTime=t+this.timelineOffset,this.startPosition=n?-1:t,this.tick()}else this._forceStartLoad=!0,this.state=an.STOPPED}stopLoad(){this._forceStartLoad=!1,super.stopLoad()}doTick(){switch(this.state){case an.WAITING_LEVEL:{const{levels:t,level:n}=this,r=t?.[n],o=r?.details;if(o&&(!o.live||this.levelLastLoaded===r&&!this.waitForLive(r))){if(this.waitForCdnTuneIn(o))break;this.state=an.IDLE;break}else if(this.hls.nextLoadLevel!==this.level){this.state=an.IDLE;break}break}case an.FRAG_LOADING_WAITING_RETRY:this.checkRetryDate();break}this.state===an.IDLE&&this.doTickIdle(),this.onTickEnd()}onTickEnd(){var t;super.onTickEnd(),(t=this.media)!=null&&t.readyState&&this.media.seeking===!1&&(this.lastCurrentTime=this.media.currentTime),this.checkFragmentChanged()}doTickIdle(){const{hls:t,levelLastLoaded:n,levels:r,media:o}=this;if(n===null||!o&&!this.primaryPrefetch&&(this.startFragRequested||!t.config.startFragPrefetch)||this.altAudio&&this.audioOnly)return;const a=this.buffering?t.nextLoadLevel:t.loadLevel;if(!(r!=null&&r[a]))return;const s=r[a],l=this.getMainFwdBufferInfo();if(l===null)return;const c=this.getLevelDetails();if(c&&this._streamEnded(l,c)){const S={};this.altAudio===2&&(S.type="video"),this.hls.trigger(Ie.BUFFER_EOS,S),this.state=an.ENDED;return}if(!this.buffering)return;t.loadLevel!==a&&t.manualLevel===-1&&this.log(`Adapting to level ${a} from level ${this.level}`),this.level=t.nextLoadLevel=a;const d=s.details;if(!d||this.state===an.WAITING_LEVEL||this.waitForLive(s)){this.level=a,this.state=an.WAITING_LEVEL,this.startFragRequested=!1;return}const h=l.len,p=this.getMaxBufferLength(s.maxBitrate);if(h>=p)return;this.backtrackFragment&&this.backtrackFragment.start>l.end&&(this.backtrackFragment=null);const m=this.backtrackFragment?this.backtrackFragment.start:l.end;let g=this.getNextFragment(m,d);if(this.couldBacktrack&&!this.fragPrevious&&g&&Ks(g)&&this.fragmentTracker.getState(g)!==ca.OK){var y;const k=((y=this.backtrackFragment)!=null?y:g).sn-d.startSN,C=d.fragments[k-1];C&&g.cc===C.cc&&(g=C,this.fragmentTracker.removeFragment(C))}else this.backtrackFragment&&l.len&&(this.backtrackFragment=null);if(g&&this.isLoopLoading(g,m)){if(!g.gap){const k=this.audioOnly&&!this.altAudio?xo.AUDIO:xo.VIDEO,C=(k===xo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;C&&this.afterBufferFlushed(C,k,Jn.MAIN)}g=this.getNextFragmentLoopLoading(g,d,l,Jn.MAIN,p)}g&&(g.initSegment&&!g.initSegment.data&&!this.bitrateTest&&(g=g.initSegment),this.loadFragment(g,s,m))}loadFragment(t,n,r){const o=this.fragmentTracker.getState(t);o===ca.NOT_LOADED||o===ca.PARTIAL?Ks(t)?this.bitrateTest?(this.log(`Fragment ${t.sn} of level ${t.level} is being downloaded to test bitrate and will not be buffered`),this._loadBitrateTestFrag(t,n)):super.loadFragment(t,n,r):this._loadInitSegment(t,n):this.clearTrackerIfNeeded(t)}getBufferedFrag(t){return this.fragmentTracker.getBufferedFrag(t,Jn.MAIN)}followingBufferedFrag(t){return t?this.getBufferedFrag(t.end+.5):null}immediateLevelSwitch(){this.abortCurrentFrag(),this.flushMainBuffer(0,Number.POSITIVE_INFINITY)}nextLevelSwitch(){const{levels:t,media:n}=this;if(n!=null&&n.readyState){let r;const o=this.getAppendedFrag(n.currentTime);o&&o.start>1&&this.flushMainBuffer(0,o.start-1);const a=this.getLevelDetails();if(a!=null&&a.live){const l=this.getMainFwdBufferInfo();if(!l||l.len=s-n.maxFragLookUpTolerance&&a<=l;if(o!==null&&r.duration>o&&(a{this.hls&&this.hls.trigger(Ie.AUDIO_TRACK_SWITCHED,n)}),r.trigger(Ie.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(Ie.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=AT(n.url,this.hls);if(r){const o=this.videoBuffer;o&&this.mediaBuffer!==o&&(this.log("Switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=o)}this.altAudio=r?2:0,this.tick()}onBufferCreated(t,n){const r=n.tracks;let o,a,s=!1;for(const l in r){const c=r[l];if(c.id==="main"){if(a=l,o=c,l==="video"){const d=r[l];d&&(this.videoBuffer=d.buffer)}}else s=!0}s&&o?(this.log(`Alternate track found, use ${a}.buffered to schedule main fragment loading`),this.mediaBuffer=o.buffer):this.mediaBuffer=this.media}onFragBuffered(t,n){const{frag:r,part:o}=n,a=r.type===Jn.MAIN;if(a){if(this.fragContextChanged(r)){this.warn(`Fragment ${r.sn}${o?" p: "+o.index:""} of level ${r.level} finished buffering, but was aborted. state: ${this.state}`),this.state===an.PARSED&&(this.state=an.IDLE);return}const l=o?o.stats:r.stats;this.fragLastKbps=Math.round(8*l.total/(l.buffering.end-l.loading.first)),Ks(r)&&(this.fragPrevious=r),this.fragBufferedComplete(r,o)}const s=this.media;s&&(!this._hasEnoughToStart&&jr.getBuffered(s).length&&(this._hasEnoughToStart=!0,this.seekToStartPos()),a&&this.tick())}get hasEnoughToStart(){return this._hasEnoughToStart}onError(t,n){var r;if(n.fatal){this.state=an.ERROR;return}switch(n.details){case Wt.FRAG_GAP:case Wt.FRAG_PARSING_ERROR:case Wt.FRAG_DECRYPT_ERROR:case Wt.FRAG_LOAD_ERROR:case Wt.FRAG_LOAD_TIMEOUT:case Wt.KEY_LOAD_ERROR:case Wt.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(Jn.MAIN,n);break;case Wt.LEVEL_LOAD_ERROR:case Wt.LEVEL_LOAD_TIMEOUT:case Wt.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===an.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===bi.LEVEL&&(this.state=an.IDLE);break;case Wt.BUFFER_ADD_CODEC_ERROR:case Wt.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case Wt.BUFFER_FULL_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&(!this.config.interstitialsController&&this.config.assetPlayerId?this._hasEnoughToStart=!0:this.flushMainBuffer(0,Number.POSITIVE_INFINITY));break;case Wt.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onFragLoadEmergencyAborted(){this.state=an.IDLE,this._hasEnoughToStart||(this.startFragRequested=!1,this.nextLoadPosition=this.lastCurrentTime),this.tickImmediate()}onBufferFlushed(t,{type:n}){if(n!==xo.AUDIO||!this.altAudio){const r=(n===xo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,Jn.MAIN),this.tick())}}onLevelsUpdated(t,n){this.level>-1&&this.fragCurrent&&(this.level=this.fragCurrent.level,this.level===-1&&this.resetWhenMissingContext(this.fragCurrent)),this.levels=n.levels}swapAudioCodec(){this.audioCodecSwap=!this.audioCodecSwap}seekToStartPos(){const{media:t}=this;if(!t)return;const n=t.currentTime;let r=this.startPosition;if(r>=0&&n0&&(c{const{hls:o}=this,a=r?.frag;if(!a||this.fragContextChanged(a))return;n.fragmentError=0,this.state=an.IDLE,this.startFragRequested=!1,this.bitrateTest=!1;const s=a.stats;s.parsing.start=s.parsing.end=s.buffering.start=s.buffering.end=self.performance.now(),o.trigger(Ie.FRAG_LOADED,r),a.bitrateTest=!1}).catch(r=>{this.state===an.STOPPED||this.state===an.ERROR||(this.warn(r),this.resetFragmentLoading(t))})}_handleTransmuxComplete(t){const n=this.playlistType,{hls:r}=this,{remuxResult:o,chunkMeta:a}=t,s=this.getCurrentContext(a);if(!s){this.resetWhenMissingContext(a);return}const{frag:l,part:c,level:d}=s,{video:h,text:p,id3:m,initSegment:g}=o,{details:y}=d,S=this.altAudio?void 0:o.audio;if(this.fragContextChanged(l)){this.fragmentTracker.removeFragment(l);return}if(this.state=an.PARSING,g){const k=g.tracks;if(k){const _=l.initSegment||l;if(this.unhandledEncryptionError(g,l))return;this._bufferInitSegment(d,k,_,a),r.trigger(Ie.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:n,tracks:k})}const C=g.initPTS,x=g.timescale,E=this.initPTS[l.cc];if(Bn(C)&&(!E||E.baseTime!==C||E.timescale!==x)){const _=g.trackId;this.initPTS[l.cc]={baseTime:C,timescale:x,trackId:_},r.trigger(Ie.INIT_PTS_FOUND,{frag:l,id:n,initPTS:C,timescale:x,trackId:_})}}if(h&&y){S&&h.type==="audiovideo"&&this.logMuxedErr(l);const k=y.fragments[l.sn-1-y.startSN],C=l.sn===y.startSN,x=!k||l.cc>k.cc;if(o.independent!==!1){const{startPTS:E,endPTS:_,startDTS:T,endDTS:D}=h;if(c)c.elementaryStreams[h.type]={startPTS:E,endPTS:_,startDTS:T,endDTS:D};else if(h.firstKeyFrame&&h.independent&&a.id===1&&!x&&(this.couldBacktrack=!0),h.dropped&&h.independent){const P=this.getMainFwdBufferInfo(),M=(P?P.end:this.getLoadPosition())+this.config.maxBufferHole,$=h.firstKeyFramePTS?h.firstKeyFramePTS:E;if(!C&&M<$-this.config.maxBufferHole&&!x){this.backtrack(l);return}else x&&(l.gap=!0);l.setElementaryStreamInfo(h.type,l.start,_,l.start,D,!0)}else C&&E-(y.appliedTimelineOffset||0)>t8&&(l.gap=!0);l.setElementaryStreamInfo(h.type,E,_,T,D),this.backtrackFragment&&(this.backtrackFragment=l),this.bufferFragmentData(h,l,c,a,C||x)}else if(C||x)l.gap=!0;else{this.backtrack(l);return}}if(S){const{startPTS:k,endPTS:C,startDTS:x,endDTS:E}=S;c&&(c.elementaryStreams[xo.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),l.setElementaryStreamInfo(xo.AUDIO,k,C,x,E),this.bufferFragmentData(S,l,c,a)}if(y&&m!=null&&m.samples.length){const k={id:n,frag:l,details:y,samples:m.samples};r.trigger(Ie.FRAG_PARSING_METADATA,k)}if(y&&p){const k={id:n,frag:l,details:y,samples:p.samples};r.trigger(Ie.FRAG_PARSING_USERDATA,k)}}logMuxedErr(t){this.warn(`${Ks(t)?"Media":"Init"} segment with muxed audiovideo where only video expected: ${t.url}`)}_bufferInitSegment(t,n,r,o){if(this.state!==an.PARSING)return;this.audioOnly=!!n.audio&&!n.video,this.altAudio&&!this.audioOnly&&(delete n.audio,n.audiovideo&&this.logMuxedErr(r));const{audio:a,video:s,audiovideo:l}=n;if(a){const d=t.audioCodec;let h=qE(a.codec,d);h==="mp4a"&&(h="mp4a.40.5");const p=navigator.userAgent.toLowerCase();if(this.audioCodecSwitch){h&&(h.indexOf("mp4a.40.5")!==-1?h="mp4a.40.2":h="mp4a.40.5");const m=a.metadata;m&&"channelCount"in m&&(m.channelCount||1)!==1&&p.indexOf("firefox")===-1&&(h="mp4a.40.5")}h&&h.indexOf("mp4a.40.5")!==-1&&p.indexOf("android")!==-1&&a.container!=="audio/mpeg"&&(h="mp4a.40.2",this.log(`Android: force audio codec to ${h}`)),d&&d!==h&&this.log(`Swapping manifest audio codec "${d}" for "${h}"`),a.levelCodec=h,a.id=Jn.MAIN,this.log(`Init audio buffer, container:${a.container}, codecs[selected/level/parsed]=[${h||""}/${d||""}/${a.codec}]`),delete n.audiovideo}if(s){s.levelCodec=t.videoCodec,s.id=Jn.MAIN;const d=s.codec;if(d?.length===4)switch(d){case"hvc1":case"hev1":s.codec="hvc1.1.6.L120.90";break;case"av01":s.codec="av01.0.04M.08";break;case"avc1":s.codec="avc1.42e01e";break}this.log(`Init video buffer, container:${s.container}, codecs[level/parsed]=[${t.videoCodec||""}/${d}]${s.codec!==d?" parsed-corrected="+s.codec:""}${s.supplemental?" supplemental="+s.supplemental:""}`),delete n.audiovideo}l&&(this.log(`Init audiovideo buffer, container:${l.container}, codecs[level/parsed]=[${t.codecs}/${l.codec}]`),delete n.video,delete n.audio);const c=Object.keys(n);if(c.length){if(this.hls.trigger(Ie.BUFFER_CODECS,n),!this.hls)return;c.forEach(d=>{const p=n[d].initSegment;p!=null&&p.byteLength&&this.hls.trigger(Ie.BUFFER_APPENDING,{type:d,data:p,frag:r,part:null,chunkMeta:o,parent:r.type})})}this.tickImmediate()}getMainFwdBufferInfo(){const t=this.mediaBuffer&&this.altAudio===2?this.mediaBuffer:this.media;return this.getFwdBufferInfo(t,Jn.MAIN)}get maxBufferLength(){const{levels:t,level:n}=this,r=t?.[n];return r?this.getMaxBufferLength(r.maxBitrate):this.config.maxBufferLength}backtrack(t){this.couldBacktrack=!0,this.backtrackFragment=t,this.resetTransmuxer(),this.flushBufferGap(t),this.fragmentTracker.removeFragment(t),this.fragPrevious=null,this.nextLoadPosition=t.start,this.state=an.IDLE}checkFragmentChanged(){const t=this.media;let n=null;if(t&&t.readyState>1&&t.seeking===!1){const r=t.currentTime;if(jr.isBuffered(t,r)?n=this.getAppendedFrag(r):jr.isBuffered(t,r+.1)&&(n=this.getAppendedFrag(r+.1)),n){this.backtrackFragment=null;const o=this.fragPlaying,a=n.level;(!o||n.sn!==o.sn||o.level!==a)&&(this.fragPlaying=n,this.hls.trigger(Ie.FRAG_CHANGED,{frag:n}),(!o||o.level!==a)&&this.hls.trigger(Ie.LEVEL_SWITCHED,{level:a}))}}}get nextLevel(){const t=this.nextBufferedFrag;return t?t.level:-1}get currentFrag(){var t;if(this.fragPlaying)return this.fragPlaying;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;return Bn(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(Bn(n)){const r=this.getLevelDetails(),o=this.currentFrag||(r?Om(null,r.fragments,n):null);if(o){const a=o.programDateTime;if(a!==null){const s=a+(n-o.start)*1e3;return new Date(s)}}}return null}get currentLevel(){const t=this.currentFrag;return t?t.level:-1}get nextBufferedFrag(){const t=this.currentFrag;return t?this.followingBufferedFrag(t):null}get forceStartLoad(){return this._forceStartLoad}}class V8t extends ed{constructor(t,n){super("key-loader",n),this.config=void 0,this.keyIdToKeyInfo={},this.emeController=null,this.config=t}abort(t){for(const r in this.keyIdToKeyInfo){const o=this.keyIdToKeyInfo[r].loader;if(o){var n;if(t&&t!==((n=o.context)==null?void 0:n.frag.type))return;o.abort()}}}detach(){for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t];(n.mediaKeySessionContext||n.decryptdata.isCommonEncryption)&&delete this.keyIdToKeyInfo[t]}}destroy(){this.detach();for(const t in this.keyIdToKeyInfo){const n=this.keyIdToKeyInfo[t].loader;n&&n.destroy()}this.keyIdToKeyInfo={}}createKeyLoadError(t,n=Wt.KEY_LOAD_ERROR,r,o,a){return new mh({type:lr.NETWORK_ERROR,details:n,fatal:!1,frag:t,response:a,error:r,networkDetails:o})}loadClear(t,n,r){if(this.emeController&&this.config.emeEnabled&&!this.emeController.getSelectedKeySystemFormats().length){if(n.length)for(let o=0,a=n.length;o{if(!this.emeController)return;s.setKeyFormat(l);const c=XE(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const o=$4(this.config);if(o.length)return this.emeController.getKeySystemAccess(o)}}return null}load(t){return!t.decryptdata&&t.encrypted&&this.emeController&&this.config.emeEnabled?this.emeController.selectKeySystemFormat(t).then(n=>this.loadInternal(t,n)):this.loadInternal(t)}loadInternal(t,n){var r,o;n&&t.setKeyFormat(n);const a=t.decryptdata;if(!a){const d=new Error(n?`Expected frag.decryptdata to be defined after setting format ${n}`:`Missing decryption data on fragment in onKeyLoading (emeEnabled with controller: ${this.emeController&&this.config.emeEnabled})`);return Promise.reject(this.createKeyLoadError(t,Wt.KEY_LOAD_ERROR,d))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,Wt.KEY_LOAD_ERROR,new Error(`Invalid key URI: "${s}"`)));const l=QF(a);let c=this.keyIdToKeyInfo[l];if((r=c)!=null&&r.decryptdata.key)return a.key=c.decryptdata.key,Promise.resolve({frag:t,keyInfo:c});if(this.emeController&&(o=c)!=null&&o.keyLoadPromise)switch(this.emeController.getKeyStatus(c.decryptdata)){case"usable":case"usable-in-future":return c.keyLoadPromise.then(h=>{const{keyInfo:p}=h;return a.key=p.decryptdata.key,{frag:t,keyInfo:p}})}switch(this.log(`${this.keyIdToKeyInfo[l]?"Rel":"L"}oading${a.keyId?" keyId: "+zl(a.keyId):""} URI: ${a.uri} from ${t.type} ${t.level}`),c=this.keyIdToKeyInfo[l]={decryptdata:a,keyLoadPromise:null,loader:null,mediaKeySessionContext:null},a.method){case"SAMPLE-AES":case"SAMPLE-AES-CENC":case"SAMPLE-AES-CTR":return a.keyFormat==="identity"?this.loadKeyHTTP(c,t):this.loadKeyEME(c,t);case"AES-128":case"AES-256":case"AES-256-CTR":return this.loadKeyHTTP(c,t);default:return Promise.reject(this.createKeyLoadError(t,Wt.KEY_LOAD_ERROR,new Error(`Key supplied with unsupported METHOD: "${a.method}"`)))}}loadKeyEME(t,n){const r={frag:n,keyInfo:t};if(this.emeController&&this.config.emeEnabled){var o;if(!t.decryptdata.keyId&&(o=n.initSegment)!=null&&o.data){const s=sxt(n.initSegment.data);if(s.length){const l=s[0];l.some(c=>c!==0)&&(this.log(`Using keyId found in init segment ${zl(l)}`),t.decryptdata.keyId=l,ym.setKeyIdForUri(t.decryptdata.uri,l))}}const a=this.emeController.loadKey(r);return(t.keyLoadPromise=a.then(s=>(t.mediaKeySessionContext=s,r))).catch(s=>{throw t.keyLoadPromise=null,"data"in s&&(s.data.frag=n),s})}return Promise.resolve(r)}loadKeyHTTP(t,n){const r=this.config,o=r.loader,a=new o(r);return n.keyLoader=t.loader=a,t.keyLoadPromise=new Promise((s,l)=>{const c={keyInfo:t,frag:n,responseType:"arraybuffer",url:t.decryptdata.uri},d=r.keyLoadPolicy.default,h={loadPolicy:d,timeout:d.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0},p={onSuccess:(m,g,y,S)=>{const{frag:k,keyInfo:C}=y,x=QF(C.decryptdata);if(!k.decryptdata||C!==this.keyIdToKeyInfo[x])return l(this.createKeyLoadError(k,Wt.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),S));C.decryptdata.key=k.decryptdata.key=new Uint8Array(m.data),k.keyLoader=null,C.loader=null,s({frag:k,keyInfo:C})},onError:(m,g,y,S)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Wt.KEY_LOAD_ERROR,new Error(`HTTP Error ${m.code} loading key ${m.text}`),y,uo({url:c.url,data:void 0},m)))},onTimeout:(m,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Wt.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),y))},onAbort:(m,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Wt.INTERNAL_ABORTED,new Error("key loading aborted"),y))}};a.load(c,h,p)})}resetLoader(t){const{frag:n,keyInfo:r,url:o}=t,a=r.loader;n.keyLoader===a&&(n.keyLoader=null,r.loader=null);const s=QF(r.decryptdata)||o;delete this.keyIdToKeyInfo[s],a&&a.destroy()}}function QF(e){if(e.keyFormat!==za.FAIRPLAY){const t=e.keyId;if(t)return zl(t)}return e.uri}function Yue(e){const{type:t}=e;switch(t){case bi.AUDIO_TRACK:return Jn.AUDIO;case bi.SUBTITLE_TRACK:return Jn.SUBTITLE;default:return Jn.MAIN}}function ej(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class z8t{constructor(t){this.hls=void 0,this.loaders=Object.create(null),this.variableList=null,this.onManifestLoaded=this.checkAutostartLoad,this.hls=t,this.registerListeners()}startLoad(t){}stopLoad(){this.destroyInternalLoaders()}registerListeners(){const{hls:t}=this;t.on(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ie.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ie.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(Ie.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(Ie.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(Ie.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ie.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ie.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(Ie.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(Ie.LEVELS_UPDATED,this.onLevelsUpdated,this)}createInternalLoader(t){const n=this.hls.config,r=n.pLoader,o=n.loader,a=r||o,s=new a(n);return this.loaders[t.type]=s,s}getInternalLoader(t){return this.loaders[t.type]}resetInternalLoader(t){this.loaders[t]&&delete this.loaders[t]}destroyInternalLoaders(){for(const t in this.loaders){const n=this.loaders[t];n&&n.destroy(),this.resetInternalLoader(t)}}destroy(){this.variableList=null,this.unregisterListeners(),this.destroyInternalLoaders()}onManifestLoading(t,n){const{url:r}=n;this.variableList=null,this.load({id:null,level:0,responseType:"text",type:bi.MANIFEST,url:r,deliveryDirectives:null,levelOrTrack:null})}onLevelLoading(t,n){const{id:r,level:o,pathwayId:a,url:s,deliveryDirectives:l,levelInfo:c}=n;this.load({id:r,level:o,pathwayId:a,responseType:"text",type:bi.LEVEL,url:s,deliveryDirectives:l,levelOrTrack:c})}onAudioTrackLoading(t,n){const{id:r,groupId:o,url:a,deliveryDirectives:s,track:l}=n;this.load({id:r,groupId:o,level:null,responseType:"text",type:bi.AUDIO_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onSubtitleTrackLoading(t,n){const{id:r,groupId:o,url:a,deliveryDirectives:s,track:l}=n;this.load({id:r,groupId:o,level:null,responseType:"text",type:bi.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(t,n){const r=this.loaders[bi.LEVEL];if(r){const o=r.context;o&&!n.levels.some(a=>a===o.levelOrTrack)&&(r.abort(),delete this.loaders[bi.LEVEL])}}load(t){var n;const r=this.hls.config;let o=this.getInternalLoader(t);if(o){const d=this.hls.logger,h=o.context;if(h&&h.levelOrTrack===t.levelOrTrack&&(h.url===t.url||h.deliveryDirectives&&!t.deliveryDirectives)){h.url===t.url?d.log(`[playlist-loader]: ignore ${t.url} ongoing request`):d.log(`[playlist-loader]: ignore ${t.url} in favor of ${h.url}`);return}d.log(`[playlist-loader]: aborting previous loader for type: ${t.type}`),o.abort()}let a;if(t.type===bi.MANIFEST?a=r.manifestLoadPolicy.default:a=mo({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),o=this.createInternalLoader(t),Bn((n=t.deliveryDirectives)==null?void 0:n.part)){let d;if(t.type===bi.LEVEL&&t.level!==null?d=this.hls.levels[t.level].details:t.type===bi.AUDIO_TRACK&&t.id!==null?d=this.hls.audioTracks[t.id].details:t.type===bi.SUBTITLE_TRACK&&t.id!==null&&(d=this.hls.subtitleTracks[t.id].details),d){const h=d.partTarget,p=d.targetduration;if(h&&p){const m=Math.max(h*3,p*.8)*1e3;a=mo({},a,{maxTimeToFirstByteMs:Math.min(m,a.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(m,a.maxTimeToFirstByteMs)})}}}const s=a.errorRetry||a.timeoutRetry||{},l={loadPolicy:a,timeout:a.maxLoadTimeMs,maxRetry:s.maxNumRetry||0,retryDelay:s.retryDelayMs||0,maxRetryDelay:s.maxRetryDelayMs||0},c={onSuccess:(d,h,p,m)=>{const g=this.getInternalLoader(p);this.resetInternalLoader(p.type);const y=d.data;h.parsing.start=performance.now(),vf.isMediaPlaylist(y)||p.type!==bi.MANIFEST?this.handleTrackOrLevelPlaylist(d,h,p,m||null,g):this.handleMasterPlaylist(d,h,p,m)},onError:(d,h,p,m)=>{this.handleNetworkError(h,p,!1,d,m)},onTimeout:(d,h,p)=>{this.handleNetworkError(h,p,!0,void 0,d)}};o.load(t,l,c)}checkAutostartLoad(){if(!this.hls)return;const{config:{autoStartLoad:t,startPosition:n},forceStartLoad:r}=this.hls;(t||r)&&(this.hls.logger.log(`${t?"auto":"force"} startLoad with configured startPosition ${n}`),this.hls.startLoad(n))}handleMasterPlaylist(t,n,r,o){const a=this.hls,s=t.data,l=ej(t,r),c=vf.parseMasterPlaylist(s,l);if(c.playlistParsingError){n.parsing.end=performance.now(),this.handleManifestParsingError(t,r,c.playlistParsingError,o,n);return}const{contentSteering:d,levels:h,sessionData:p,sessionKeys:m,startTimeOffset:g,variableList:y}=c;this.variableList=y,h.forEach(x=>{const{unknownCodecs:E}=x;if(E){const{preferManagedMediaSource:_}=this.hls.config;let{audioCodec:T,videoCodec:D}=x;for(let P=E.length;P--;){const M=E[P];y_(M,"audio",_)?(x.audioCodec=T=T?`${T},${M}`:M,Vy.audio[T.substring(0,4)]=2,E.splice(P,1)):y_(M,"video",_)&&(x.videoCodec=D=D?`${D},${M}`:M,Vy.video[D.substring(0,4)]=2,E.splice(P,1))}}});const{AUDIO:S=[],SUBTITLES:k,"CLOSED-CAPTIONS":C}=vf.parseMasterPlaylistMedia(s,l,c);S.length&&!S.some(E=>!E.url)&&h[0].audioCodec&&!h[0].attrs.AUDIO&&(this.hls.logger.log("[playlist-loader]: audio codec signaled in quality level, but no embedded audio track signaled, create one"),S.unshift({type:"main",name:"main",groupId:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:new os({}),bitrate:0,url:""})),a.trigger(Ie.MANIFEST_LOADED,{levels:h,audioTracks:S,subtitles:k,captions:C,contentSteering:d,url:l,stats:n,networkDetails:o,sessionData:p,sessionKeys:m,startTimeOffset:g,variableList:y})}handleTrackOrLevelPlaylist(t,n,r,o,a){const s=this.hls,{id:l,level:c,type:d}=r,h=ej(t,r),p=Bn(c)?c:Bn(l)?l:0,m=Yue(r),g=vf.parseLevelPlaylist(t.data,h,p,m,0,this.variableList);if(d===bi.MANIFEST){const y={attrs:new os({}),bitrate:0,details:g,name:"",url:h};g.requestScheduled=n.loading.start+Q3e(g,0),s.trigger(Ie.MANIFEST_LOADED,{levels:[y],audioTracks:[],url:h,stats:n,networkDetails:o,sessionData:null,sessionKeys:null,contentSteering:null,startTimeOffset:null,variableList:null})}n.parsing.end=performance.now(),r.levelDetails=g,this.handlePlaylistLoaded(g,t,n,r,o,a)}handleManifestParsingError(t,n,r,o,a){this.hls.trigger(Ie.ERROR,{type:lr.NETWORK_ERROR,details:Wt.MANIFEST_PARSING_ERROR,fatal:n.type===bi.MANIFEST,url:t.url,err:r,error:r,reason:r.message,response:t,context:n,networkDetails:o,stats:a})}handleNetworkError(t,n,r=!1,o,a){let s=`A network ${r?"timeout":"error"+(o?" (status "+o.code+")":"")} occurred while loading ${t.type}`;t.type===bi.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===bi.AUDIO_TRACK||t.type===bi.SUBTITLE_TRACK)&&(s+=` id: ${t.id} group-id: "${t.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=Wt.UNKNOWN,d=!1;const h=this.getInternalLoader(t);switch(t.type){case bi.MANIFEST:c=r?Wt.MANIFEST_LOAD_TIMEOUT:Wt.MANIFEST_LOAD_ERROR,d=!0;break;case bi.LEVEL:c=r?Wt.LEVEL_LOAD_TIMEOUT:Wt.LEVEL_LOAD_ERROR,d=!1;break;case bi.AUDIO_TRACK:c=r?Wt.AUDIO_TRACK_LOAD_TIMEOUT:Wt.AUDIO_TRACK_LOAD_ERROR,d=!1;break;case bi.SUBTITLE_TRACK:c=r?Wt.SUBTITLE_TRACK_LOAD_TIMEOUT:Wt.SUBTITLE_LOAD_ERROR,d=!1;break}h&&this.resetInternalLoader(t.type);const p={type:lr.NETWORK_ERROR,details:c,fatal:d,url:t.url,loader:h,context:t,error:l,networkDetails:n,stats:a};if(o){const m=n?.url||t.url;p.response=uo({url:m,data:void 0},o)}this.hls.trigger(Ie.ERROR,p)}handlePlaylistLoaded(t,n,r,o,a,s){const l=this.hls,{type:c,level:d,levelOrTrack:h,id:p,groupId:m,deliveryDirectives:g}=o,y=ej(n,o),S=Yue(o);let k=typeof o.level=="number"&&S===Jn.MAIN?d:void 0;const C=t.playlistParsingError;if(C){if(this.hls.logger.warn(`${C} ${t.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(Ie.ERROR,{type:lr.NETWORK_ERROR,details:Wt.LEVEL_PARSING_ERROR,fatal:!1,url:y,error:C,reason:C.message,response:n,context:o,level:k,parent:S,networkDetails:a,stats:r});return}t.playlistParsingError=null}if(!t.fragments.length){const x=t.playlistParsingError=new Error("No Segments found in Playlist");l.trigger(Ie.ERROR,{type:lr.NETWORK_ERROR,details:Wt.LEVEL_EMPTY_ERROR,fatal:!1,url:y,error:x,reason:x.message,response:n,context:o,level:k,parent:S,networkDetails:a,stats:r});return}switch(t.live&&s&&(s.getCacheAge&&(t.ageHeader=s.getCacheAge()||0),(!s.getCacheAge||isNaN(t.ageHeader))&&(t.ageHeader=0)),c){case bi.MANIFEST:case bi.LEVEL:if(k){if(!h)k=0;else if(h!==l.levels[k]){const x=l.levels.indexOf(h);x>-1&&(k=x)}}l.trigger(Ie.LEVEL_LOADED,{details:t,levelInfo:h||l.levels[0],level:k||0,id:p||0,stats:r,networkDetails:a,deliveryDirectives:g,withoutMultiVariant:c===bi.MANIFEST});break;case bi.AUDIO_TRACK:l.trigger(Ie.AUDIO_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:g});break;case bi.SUBTITLE_TRACK:l.trigger(Ie.SUBTITLE_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:m||"",stats:r,networkDetails:a,deliveryDirectives:g});break}}}class Su{static get version(){return S_}static isMSESupported(){return J2e()}static isSupported(){return B8t()}static getMediaSource(){return T0()}static get Events(){return Ie}static get MetadataSchema(){return nc}static get ErrorTypes(){return lr}static get ErrorDetails(){return Wt}static get DefaultConfig(){return Su.defaultConfig?Su.defaultConfig:w8t}static set DefaultConfig(t){Su.defaultConfig=t}constructor(t={}){this.config=void 0,this.userConfig=void 0,this.logger=void 0,this.coreComponents=void 0,this.networkControllers=void 0,this._emitter=new IG,this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.abrController=void 0,this.bufferController=void 0,this.capLevelController=void 0,this.latencyController=void 0,this.levelController=void 0,this.streamController=void 0,this.audioStreamController=void 0,this.subtititleStreamController=void 0,this.audioTrackController=void 0,this.subtitleTrackController=void 0,this.interstitialsController=void 0,this.gapController=void 0,this.emeController=void 0,this.cmcdController=void 0,this._media=null,this._url=null,this._sessionId=void 0,this.triggeringException=void 0,this.started=!1;const n=this.logger=qkt(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=T8t(Su.DefaultConfig,t,n);this.userConfig=t,r.progressive&&A8t(r,n);const{abrController:o,bufferController:a,capLevelController:s,errorController:l,fpsController:c}=r,d=new l(this),h=this.abrController=new o(this),p=new Uxt(this),m=r.interstitialsController,g=m?this.interstitialsController=new m(this,Su):null,y=this.bufferController=new a(this,p),S=this.capLevelController=new s(this),k=new c(this),C=new z8t(this),x=r.contentSteeringController,E=x?new x(this):null,_=this.levelController=new $8t(this,E),T=new M8t(this),D=new V8t(this.config,this.logger),P=this.streamController=new j8t(this,p,D),M=this.gapController=new P8t(this,p);S.setStreamController(P),k.setStreamController(P);const $=[C,_,P];g&&$.splice(1,0,g),E&&$.splice(1,0,E),this.networkControllers=$;const I=[h,y,M,S,k,T,p];this.audioTrackController=this.createController(r.audioTrackController,$);const N=r.audioStreamController;N&&$.push(this.audioStreamController=new N(this,p,D)),this.subtitleTrackController=this.createController(r.subtitleTrackController,$);const j=r.subtitleStreamController;j&&$.push(this.subtititleStreamController=new j(this,p,D)),this.createController(r.timelineController,I),D.emeController=this.emeController=this.createController(r.emeController,I),this.cmcdController=this.createController(r.cmcdController,I),this.latencyController=this.createController(O8t,I),this.coreComponents=I,$.push(d);const U=d.onErrorOut;typeof U=="function"&&this.on(Ie.ERROR,U,d),this.on(Ie.MANIFEST_LOADED,C.onManifestLoaded,C)}createController(t,n){if(t){const r=new t(this);return n&&n.push(r),r}return null}on(t,n,r=this){this._emitter.on(t,n,r)}once(t,n,r=this){this._emitter.once(t,n,r)}removeAllListeners(t){this._emitter.removeAllListeners(t)}off(t,n,r=this,o){this._emitter.off(t,n,r,o)}listeners(t){return this._emitter.listeners(t)}emit(t,n,r){return this._emitter.emit(t,n,r)}trigger(t,n){if(this.config.debug)return this.emit(t,t,n);try{return this.emit(t,t,n)}catch(r){if(this.logger.error("An internal error happened while handling event "+t+'. Error message: "'+r.message+'". Here is a stacktrace:',r),!this.triggeringException){this.triggeringException=!0;const o=t===Ie.ERROR;this.trigger(Ie.ERROR,{type:lr.OTHER_ERROR,details:Wt.INTERNAL_EXCEPTION,fatal:o,event:t,error:r}),this.triggeringException=!1}}return!1}listenerCount(t){return this._emitter.listenerCount(t)}destroy(){this.logger.log("destroy"),this.trigger(Ie.DESTROYING,void 0),this.detachMedia(),this.removeAllListeners(),this._autoLevelCapping=-1,this._url=null,this.networkControllers.forEach(n=>n.destroy()),this.networkControllers.length=0,this.coreComponents.forEach(n=>n.destroy()),this.coreComponents.length=0;const t=this.config;t.xhrSetup=t.fetchSetup=void 0,this.userConfig=null}attachMedia(t){if(!t||"media"in t&&!t.media){const a=new Error(`attachMedia failed: invalid argument (${t})`);this.trigger(Ie.ERROR,{type:lr.OTHER_ERROR,details:Wt.ATTACH_MEDIA_ERROR,fatal:!0,error:a});return}this.logger.log("attachMedia"),this._media&&(this.logger.warn("media must be detached before attaching"),this.detachMedia());const n="media"in t,r=n?t.media:t,o=n?t:{media:r};this._media=r,this.trigger(Ie.MEDIA_ATTACHING,o)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Ie.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(Ie.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,o=this._url=yG.buildAbsoluteURL(self.location.href,t,{alwaysNormalize:!0});this._autoLevelCapping=-1,this._maxHdcpLevel=null,this.logger.log(`loadSource:${o}`),n&&r&&(r!==o||this.bufferController.hasSourceTypes())&&(this.detachMedia(),this.attachMedia(n)),this.trigger(Ie.MANIFEST_LOADING,{url:t})}get url(){return this._url}get hasEnoughToStart(){return this.streamController.hasEnoughToStart}get startPosition(){return this.streamController.startPositionValue}startLoad(t=-1,n){this.logger.log(`startLoad(${t+(n?", ":"")})`),this.started=!0,this.resumeBuffering();for(let r=0;r{t.resumeBuffering&&t.resumeBuffering()}))}pauseBuffering(){this.bufferingEnabled&&(this.logger.log("pause buffering"),this.networkControllers.forEach(t=>{t.pauseBuffering&&t.pauseBuffering()}))}get inFlightFragments(){const t={[Jn.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[Jn.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[Jn.SUBTITLE]=this.subtititleStreamController.inFlightFrag),t}swapAudioCodec(){this.logger.log("swapAudioCodec"),this.streamController.swapAudioCodec()}recoverMediaError(){this.logger.log("recoverMediaError");const t=this._media,n=t?.currentTime;this.detachMedia(),t&&(this.attachMedia(t),n&&this.startLoad(n))}removeLevel(t){this.levelController.removeLevel(t)}get sessionId(){let t=this._sessionId;return t||(t=this._sessionId=PEt()),t}get levels(){const t=this.levelController.levels;return t||[]}get latestLevelDetails(){return this.streamController.getLevelDetails()||null}get loadLevelObj(){return this.levelController.loadLevelObj}get currentLevel(){return this.streamController.currentLevel}set currentLevel(t){this.logger.log(`set currentLevel:${t}`),this.levelController.manualLevel=t,this.streamController.immediateLevelSwitch()}get nextLevel(){return this.streamController.nextLevel}set nextLevel(t){this.logger.log(`set nextLevel:${t}`),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}get loadLevel(){return this.levelController.level}set loadLevel(t){this.logger.log(`set loadLevel:${t}`),this.levelController.manualLevel=t}get nextLoadLevel(){return this.levelController.nextLoadLevel}set nextLoadLevel(t){this.levelController.nextLoadLevel=t}get firstLevel(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)}set firstLevel(t){this.logger.log(`set firstLevel:${t}`),this.levelController.firstLevel=t}get startLevel(){const t=this.levelController.startLevel;return t===-1&&this.abrController.forcedAutoLevel>-1?this.abrController.forcedAutoLevel:t}set startLevel(t){this.logger.log(`set startLevel:${t}`),t!==-1&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}get capLevelToPlayerSize(){return this.config.capLevelToPlayerSize}set capLevelToPlayerSize(t){const n=!!t;n!==this.config.capLevelToPlayerSize&&(n?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=n)}get autoLevelCapping(){return this._autoLevelCapping}get bandwidthEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimate():NaN}set bandwidthEstimate(t){this.abrController.resetEstimator(t)}get abrEwmaDefaultEstimate(){const{bwEstimator:t}=this.abrController;return t?t.defaultEstimate:NaN}get ttfbEstimate(){const{bwEstimator:t}=this.abrController;return t?t.getEstimateTTFB():NaN}set autoLevelCapping(t){this._autoLevelCapping!==t&&(this.logger.log(`set autoLevelCapping:${t}`),this._autoLevelCapping=t,this.levelController.checkMaxAutoUpdated())}get maxHdcpLevel(){return this._maxHdcpLevel}set maxHdcpLevel(t){Txt(t)&&this._maxHdcpLevel!==t&&(this._maxHdcpLevel=t,this.levelController.checkMaxAutoUpdated())}get autoLevelEnabled(){return this.levelController.manualLevel===-1}get manualLevel(){return this.levelController.manualLevel}get minAutoLevel(){const{levels:t,config:{minAutoBitrate:n}}=this;if(!t)return 0;const r=t.length;for(let o=0;o=n)return o;return 0}get maxAutoLevel(){const{levels:t,autoLevelCapping:n,maxHdcpLevel:r}=this;let o;if(n===-1&&t!=null&&t.length?o=t.length-1:o=n,r)for(let a=o;a--;){const s=t[a].attrs["HDCP-LEVEL"];if(s&&s<=r)return a}return o}get firstAutoLevel(){return this.abrController.firstAutoLevel}get nextAutoLevel(){return this.abrController.nextAutoLevel}set nextAutoLevel(t){this.abrController.nextAutoLevel=t}get playingDate(){return this.streamController.currentProgramDateTime}get mainForwardBufferInfo(){return this.streamController.getMainFwdBufferInfo()}get maxBufferLength(){return this.streamController.maxBufferLength}setAudioOption(t){var n;return((n=this.audioTrackController)==null?void 0:n.setAudioOption(t))||null}setSubtitleOption(t){var n;return((n=this.subtitleTrackController)==null?void 0:n.setSubtitleOption(t))||null}get allAudioTracks(){const t=this.audioTrackController;return t?t.allAudioTracks:[]}get audioTracks(){const t=this.audioTrackController;return t?t.audioTracks:[]}get audioTrack(){const t=this.audioTrackController;return t?t.audioTrack:-1}set audioTrack(t){const n=this.audioTrackController;n&&(n.audioTrack=t)}get allSubtitleTracks(){const t=this.subtitleTrackController;return t?t.allSubtitleTracks:[]}get subtitleTracks(){const t=this.subtitleTrackController;return t?t.subtitleTracks:[]}get subtitleTrack(){const t=this.subtitleTrackController;return t?t.subtitleTrack:-1}get media(){return this._media}set subtitleTrack(t){const n=this.subtitleTrackController;n&&(n.subtitleTrack=t)}get subtitleDisplay(){const t=this.subtitleTrackController;return t?t.subtitleDisplay:!1}set subtitleDisplay(t){const n=this.subtitleTrackController;n&&(n.subtitleDisplay=t)}get lowLatencyMode(){return this.config.lowLatencyMode}set lowLatencyMode(t){this.config.lowLatencyMode=t}get liveSyncPosition(){return this.latencyController.liveSyncPosition}get latency(){return this.latencyController.latency}get maxLatency(){return this.latencyController.maxLatency}get targetLatency(){return this.latencyController.targetLatency}set targetLatency(t){this.latencyController.targetLatency=t}get drift(){return this.latencyController.drift}get forceStartLoad(){return this.streamController.forceStartLoad}get pathways(){return this.levelController.pathways}get pathwayPriority(){return this.levelController.pathwayPriority}set pathwayPriority(t){this.levelController.pathwayPriority=t}get bufferedToEnd(){var t;return!!((t=this.bufferController)!=null&&t.bufferedToEnd)}get interstitialsManager(){var t;return((t=this.interstitialsController)==null?void 0:t.interstitialsManager)||null}getMediaDecodingInfo(t,n=this.allAudioTracks){const r=N3e(n);return $3e(t,r,navigator.mediaCapabilities)}}Su.defaultConfig=void 0;const U8t={class:"player-header"},H8t={class:"player-controls"},W8t={class:"compact-button-group"},G8t={key:3,class:"compact-btn selector-btn"},K8t={key:0,style:{color:"#ff4d4f","font-size":"10px"}},q8t={class:"compact-btn selector-btn"},Y8t={key:4,class:"compact-btn selector-btn"},X8t={class:"compact-btn selector-btn"},Z8t={__name:"PlayerHeader",props:{episodeName:{type:String,default:"未知选集"},playerType:{type:String,default:"default"},episodes:{type:Array,default:()=>[]},autoNextEnabled:{type:Boolean,default:!1},loopEnabled:{type:Boolean,default:!1},countdownEnabled:{type:Boolean,default:!1},skipEnabled:{type:Boolean,default:!1},showAutoNext:{type:Boolean,default:!0},showCountdown:{type:Boolean,default:!0},showDebugButton:{type:Boolean,default:!1},qualities:{type:Array,default:()=>[]},currentQuality:{type:String,default:"默认"},showParserSelector:{type:Boolean,default:!1},needsParsing:{type:Boolean,default:!1},parseData:{type:Object,default:()=>null}},emits:["toggle-auto-next","toggle-loop","toggle-countdown","player-change","open-skip-settings","toggle-debug","close","proxy-change","quality-change","parser-change"],setup(e,{emit:t}){const n=e,r=t,o=fe("disabled"),a=fe([]),s=gG(),l=fe(""),c=fe([]),d=fe(!1),h=fe(!1),p=E=>{if(!E)return"未知";const _=E.indexOf("#");return _!==-1&&_{try{const E=JSON.parse(localStorage.getItem("addressSettings")||"{}"),_=E.proxyPlayEnabled||!1,T=E.proxyPlay||"";if(a.value=[],g(),_&&T){const D=a.value.findIndex(P=>P.url===T);if(D!==-1){const P=a.value.splice(D,1)[0];a.value.unshift(P)}else{const P=p(T);a.value.unshift({value:T,label:`${P} (当前)`,url:T})}o.value=T}else o.value="disabled";console.log("代理播放配置加载完成:",{enabled:_,current:T,optionsCount:a.value.length,selected:o.value})}catch(E){console.error("加载代理播放配置失败:",E),o.value="disabled"}},g=()=>{try{JSON.parse(localStorage.getItem("address-history-proxy-play")||"[]").forEach(T=>{const D=T.url||T.value||"";if(!D)return;if(!a.value.some(M=>M.url===D)){const M=p(D);a.value.push({value:D,label:M,url:D})}}),console.log("已加载代理播放历史记录:",a.value.length,"个选项")}catch(E){console.error("加载代理播放历史记录失败:",E)}},y=E=>{if(!(!E||E==="disabled"))try{const _=p(E),T=Date.now(),D="address-history-proxy-play",P=JSON.parse(localStorage.getItem(D)||"[]"),M=P.findIndex($=>$.url===E);M!==-1&&P.splice(M,1),P.unshift({url:E,timestamp:T}),P.length>10&&P.splice(10),localStorage.setItem(D,JSON.stringify(P)),console.log("已保存代理播放地址到历史记录:",E)}catch(_){console.error("保存代理播放历史记录失败:",_)}},S=E=>{o.value=E,E!=="disabled"&&y(E),r("proxy-change",E)},k=async()=>{try{d.value=!0,c.value=s.enabledParsers.map(T=>({id:T.id,name:T.name,type:T.type,url:T.url,enabled:T.enabled})),h.value=CT();const E=localStorage.getItem("selectedParser");let _=!1;E&&c.value.find(T=>T.id===E)?(l.value=E,_=!0):c.value.length>0&&(l.value=c.value[0].id,_=!0),console.log("解析器配置加载完成:",{count:c.value.length,selected:l.value,snifferEnabled:h.value,shouldTriggerParsing:_}),_&&l.value&&n.parseData&&(console.log("🚀 [自动解析] 触发默认解析器解析"),_n(()=>{C(l.value)}))}catch(E){console.error("加载解析器配置失败:",E)}finally{d.value=!1}},C=E=>{l.value=E;const _=c.value.find(T=>T.id===E);_&&localStorage.setItem("selectedParser",JSON.stringify(_)),r("parser-change",{parserId:E,parser:_,parseData:n.parseData}),console.log("解析器已切换:",_)},x=E=>{E.key==="addressSettings"&&m()};return vn(()=>{m(),n.showParserSelector&&k(),window.addEventListener("storage",x),window.addEventListener("addressSettingsChanged",m)}),Pt(()=>n.showParserSelector,E=>{E&&k()}),vi(()=>{window.removeEventListener("storage",x),window.removeEventListener("addressSettingsChanged",m)}),(E,_)=>{const T=Pe("a-option"),D=Pe("a-select");return H(),J("div",U8t,[L("h3",null,"正在播放: "+Ve(e.episodeName),1),L("div",H8t,[L("div",W8t,[e.showDebugButton?(H(),J("div",{key:0,class:"compact-btn debug-btn",onClick:_[0]||(_[0]=P=>E.$emit("toggle-debug")),title:"调试信息"},[..._[8]||(_[8]=[xh('调试',2)])])):Me("",!0),e.showAutoNext&&e.episodes.length>1?(H(),J("div",{key:1,class:le(["compact-btn",{active:e.autoNextEnabled}]),onClick:_[1]||(_[1]=P=>E.$emit("toggle-auto-next"))},[..._[9]||(_[9]=[L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("path",{d:"M8 5v14l11-7z",fill:"currentColor"})],-1),L("span",{class:"btn-text"},"自动连播",-1)])],2)):Me("",!0),L("div",{class:le(["compact-btn",{active:e.loopEnabled}]),onClick:_[2]||(_[2]=P=>E.$emit("toggle-loop")),title:"循环播放当前选集"},[..._[10]||(_[10]=[xh('循环播放',2)])],2),e.showCountdown&&e.episodes.length>1?(H(),J("div",{key:2,class:le(["compact-btn",{active:e.countdownEnabled}]),onClick:_[3]||(_[3]=P=>E.$emit("toggle-countdown"))},[..._[11]||(_[11]=[L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),L("polyline",{points:"12,6 12,12 16,14",stroke:"currentColor","stroke-width":"2"})],-1),L("span",{class:"btn-text"},"倒计时",-1)])],2)):Me("",!0),e.showParserSelector?(H(),J("div",G8t,[_[12]||(_[12]=L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),L("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),L("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),O(D,{"model-value":l.value,onChange:C,class:"compact-select",size:"small",loading:d.value,disabled:!c.value.length},{default:de(()=>[(H(!0),J(Ft,null,pn(c.value,P=>(H(),Je(T,{key:P.id,value:P.id,title:`${P.name} (${P.type==="1"?"JSON":"嗅探"})`,disabled:P.type==="0"&&!h.value},{default:de(()=>[We(" 解析:"+Ve(P.name)+" ",1),P.type==="0"&&!h.value?(H(),J("span",K8t," (需嗅探器) ")):Me("",!0)]),_:2},1032,["value","title","disabled"]))),128))]),_:1},8,["model-value","loading","disabled"])])):Me("",!0),L("div",q8t,[_[14]||(_[14]=L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),L("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),L("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),O(D,{"model-value":o.value,onChange:S,class:"compact-select",size:"small"},{default:de(()=>[O(T,{value:"disabled",title:"关闭代理播放功能"},{default:de(()=>[..._[13]||(_[13]=[We("代理播放:关闭",-1)])]),_:1}),(H(!0),J(Ft,null,pn(a.value,P=>(H(),Je(T,{key:P.value,value:P.value,title:`${P.label} 完整链接: ${P.url||P.value}`},{default:de(()=>[We(" 代理播放:"+Ve(P.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])]),e.qualities&&e.qualities.length>1?(H(),J("div",Y8t,[_[15]||(_[15]=xh('HD',1)),O(D,{"model-value":e.currentQuality,onChange:_[4]||(_[4]=P=>E.$emit("quality-change",P)),class:"compact-select",size:"small"},{default:de(()=>[(H(!0),J(Ft,null,pn(e.qualities,P=>(H(),Je(T,{key:P.name,value:P.name,title:`切换到${P.name}画质`},{default:de(()=>[We(" 画质:"+Ve(P.name),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])):Me("",!0),L("div",X8t,[_[18]||(_[18]=L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),L("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor"}),L("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor","stroke-width":"2"})],-1)),O(D,{"model-value":e.playerType,onChange:_[5]||(_[5]=P=>E.$emit("player-change",P)),class:"compact-select",size:"small"},{default:de(()=>[O(T,{value:"default",title:"使用浏览器默认的HTML5视频播放器"},{default:de(()=>[..._[16]||(_[16]=[We("默认播放器",-1)])]),_:1}),O(T,{value:"artplayer",title:"使用ArtPlayer播放器,支持更多功能和自定义选项"},{default:de(()=>[..._[17]||(_[17]=[We("ArtPlayer",-1)])]),_:1})]),_:1},8,["model-value"])]),L("div",{class:le(["compact-btn",{active:e.skipEnabled}]),onClick:_[6]||(_[6]=P=>E.$emit("open-skip-settings"))},[..._[19]||(_[19]=[xh('片头片尾',2)])],2),L("div",{class:"compact-btn close-btn",onClick:_[7]||(_[7]=P=>E.$emit("close"))},[..._[20]||(_[20]=[L("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),L("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1),L("span",{class:"btn-text"},"关闭",-1)])])])])])}}},Q2e=_r(Z8t,[["__scopeId","data-v-a0946e8b"]]),J8t={class:"dialog-header"},Q8t={class:"dialog-content"},eTt={class:"setting-row"},tTt={class:"setting-control"},nTt={key:1,class:"unit"},rTt={class:"setting-row"},iTt={class:"setting-control"},oTt={key:1,class:"unit"},sTt={class:"dialog-footer"},aTt={__name:"SkipSettingsDialog",props:{visible:{type:Boolean,default:!1},skipIntroEnabled:{type:Boolean,default:!1},skipOutroEnabled:{type:Boolean,default:!1},skipIntroSeconds:{type:Number,default:90},skipOutroSeconds:{type:Number,default:90}},emits:["close","save"],setup(e,{emit:t}){const n=e,r=t,o=fe(n.skipIntroEnabled),a=fe(n.skipOutroEnabled),s=fe(n.skipIntroSeconds),l=fe(n.skipOutroSeconds);Pt(()=>n.skipIntroEnabled,h=>{o.value=h}),Pt(()=>n.skipOutroEnabled,h=>{a.value=h}),Pt(()=>n.skipIntroSeconds,h=>{s.value=h}),Pt(()=>n.skipOutroSeconds,h=>{l.value=h});const c=()=>{r("close")},d=()=>{r("save",{skipIntroEnabled:o.value,skipOutroEnabled:a.value,skipIntroSeconds:s.value,skipOutroSeconds:l.value})};return(h,p)=>{const m=Pe("a-switch"),g=Pe("a-input-number"),y=Pe("a-button");return e.visible?(H(),J("div",{key:0,class:"skip-settings-overlay",onClick:c},[L("div",{class:"skip-settings-dialog",onClick:p[6]||(p[6]=us(()=>{},["stop"]))},[L("div",J8t,[p[8]||(p[8]=L("h3",null,"片头片尾设置",-1)),L("button",{class:"close-btn",onClick:p[0]||(p[0]=S=>h.$emit("close"))},[...p[7]||(p[7]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),L("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),L("div",Q8t,[L("div",eTt,[p[9]||(p[9]=L("div",{class:"setting-label"},[L("span",null,"跳过片头"),L("div",{class:"setting-hint"},"自动跳过视频开头的片头部分")],-1)),L("div",tTt,[O(m,{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=S=>o.value=S),size:"small"},null,8,["modelValue"]),o.value?(H(),Je(g,{key:0,modelValue:s.value,"onUpdate:modelValue":p[2]||(p[2]=S=>s.value=S),min:1,max:300,size:"small",class:"seconds-input"},null,8,["modelValue"])):Me("",!0),o.value?(H(),J("span",nTt,"秒")):Me("",!0)])]),L("div",rTt,[p[10]||(p[10]=L("div",{class:"setting-label"},[L("span",null,"跳过片尾"),L("div",{class:"setting-hint"},"在视频结束前自动跳转到下一集")],-1)),L("div",iTt,[O(m,{modelValue:a.value,"onUpdate:modelValue":p[3]||(p[3]=S=>a.value=S),size:"small"},null,8,["modelValue"]),a.value?(H(),Je(g,{key:0,modelValue:l.value,"onUpdate:modelValue":p[4]||(p[4]=S=>l.value=S),min:1,max:300,size:"small",class:"seconds-input"},null,8,["modelValue"])):Me("",!0),a.value?(H(),J("span",oTt,"秒")):Me("",!0)])]),p[11]||(p[11]=L("div",{class:"setting-hint-global"},[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),L("path",{d:"m9 12 2 2 4-4",stroke:"currentColor","stroke-width":"2"})]),We(" 设置将自动保存并应用到所有播放器 ")],-1))]),L("div",sTt,[O(y,{onClick:p[5]||(p[5]=S=>h.$emit("close")),size:"small"},{default:de(()=>[...p[12]||(p[12]=[We(" 取消 ",-1)])]),_:1}),O(y,{type:"primary",onClick:d,size:"small"},{default:de(()=>[...p[13]||(p[13]=[We(" 保存 ",-1)])]),_:1})])])])):Me("",!0)}}},e4e=_r(aTt,[["__scopeId","data-v-c8c7504a"]]),lTt={class:"dialog-header"},uTt={class:"dialog-content"},cTt={class:"info-section"},dTt={class:"section-header"},fTt=["disabled"],hTt={class:"info-content"},pTt={class:"url-display"},vTt={key:0,class:"info-section"},mTt={class:"section-header"},gTt={class:"section-actions"},yTt=["disabled"],bTt=["disabled"],_Tt=["disabled"],STt={class:"info-content"},kTt={class:"url-display proxy-url"},xTt={class:"info-section"},CTt={class:"section-header"},wTt=["disabled"],ETt={class:"info-content"},TTt={class:"headers-display"},ATt={key:0,class:"no-data"},ITt={key:1,class:"headers-text"},LTt={class:"info-section"},DTt={class:"info-content"},PTt={class:"format-info"},RTt={class:"format-value"},MTt={class:"info-section"},OTt={class:"info-content"},$Tt={class:"player-info"},BTt={class:"player-value"},NTt={__name:"DebugInfoDialog",props:{visible:{type:Boolean,default:!1},videoUrl:{type:String,default:""},headers:{type:Object,default:()=>({})},playerType:{type:String,default:"default"},detectedFormat:{type:String,default:""},proxyUrl:{type:String,default:""}},emits:["close"],setup(e,{emit:t}){const n=e,r=t,o=F(()=>!n.headers||Object.keys(n.headers).length===0?"":Object.entries(n.headers).map(([h,p])=>`${h}: ${p}`).join(` `)),a=()=>{r("close")},s=async(h,p)=>{if(!h){wt.warning(`${p}为空,无法复制`);return}try{await navigator.clipboard.writeText(h),wt.success(`${p}已复制到剪贴板`)}catch(m){console.error("复制失败:",m),wt.error("复制失败,请手动选择复制")}},l=async()=>{const h=["=== DrPlayer 视频调试信息 ===","","📹 视频直链:",n.videoUrl||"暂无","",...n.proxyUrl&&n.proxyUrl!==n.videoUrl?["🔄 代理后链接:",n.proxyUrl,""]:[],"📋 请求头信息:",o.value||"暂无","","🎬 视频格式:",n.detectedFormat||"未知","","⚙️ 播放器类型:",n.playerType==="artplayer"?"ArtPlayer":"默认播放器","","生成时间: "+new Date().toLocaleString()].join(` `);await s(h,"所有调试信息")},c=h=>{if(!h){wt.warning("视频链接为空,无法调起VLC播放器");return}try{const p=`vlc://${h}`,m=document.createElement("iframe");m.style.display="none",m.src=p,document.body.appendChild(m),setTimeout(()=>{document.body.removeChild(m)},1e3),wt.success("正在尝试调起VLC播放器..."),console.log("调起VLC播放器:",p)}catch(p){console.error("调起VLC播放器失败:",p),wt.error("调起VLC播放器失败,请确保已安装VLC播放器")}},d=h=>{if(!h){wt.warning("视频链接为空,无法调起MPV播放器");return}try{const p=`mpv://${h}`,m=document.createElement("iframe");m.style.display="none",m.src=p,document.body.appendChild(m),setTimeout(()=>{document.body.removeChild(m)},1e3),wt.success("正在尝试调起MPV播放器..."),console.log("调起MPV播放器:",p)}catch(p){console.error("调起MPV播放器失败:",p),wt.error("调起MPV播放器失败,请确保已安装MPV播放器")}};return(h,p)=>e.visible?(H(),J("div",{key:0,class:"debug-info-overlay",onClick:a},[L("div",{class:"debug-info-dialog",onClick:p[6]||(p[6]=us(()=>{},["stop"]))},[L("div",lTt,[p[8]||(p[8]=L("h3",null,"🔧 视频调试信息",-1)),L("button",{class:"close-btn",onClick:p[0]||(p[0]=m=>h.$emit("close"))},[...p[7]||(p[7]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),L("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),L("div",uTt,[L("div",cTt,[L("div",dTt,[p[10]||(p[10]=L("h4",null,"📹 视频直链",-1)),L("button",{class:"copy-btn",onClick:p[1]||(p[1]=m=>s(e.videoUrl,"视频直链")),disabled:!e.videoUrl},[...p[9]||(p[9]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),L("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制 ",-1)])],8,fTt)]),L("div",hTt,[L("div",pTt,Ve(e.videoUrl||"暂无视频链接"),1)])]),e.proxyUrl&&e.proxyUrl!==e.videoUrl?(H(),J("div",vTt,[L("div",mTt,[p[14]||(p[14]=L("h4",null,"🔄 代理后链接",-1)),L("div",gTt,[L("button",{class:"copy-btn",onClick:p[2]||(p[2]=m=>s(e.proxyUrl,"代理后链接")),disabled:!e.proxyUrl},[...p[11]||(p[11]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),L("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制 ",-1)])],8,yTt),L("button",{class:"external-player-btn vlc-btn",onClick:p[3]||(p[3]=m=>c(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用VLC播放器打开"},[...p[12]||(p[12]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("polygon",{points:"5,3 19,12 5,21",fill:"currentColor"})],-1),We(" VLC ",-1)])],8,bTt),L("button",{class:"external-player-btn mpv-btn",onClick:p[4]||(p[4]=m=>d(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用MPV播放器打开"},[...p[13]||(p[13]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),L("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})],-1),We(" MPV ",-1)])],8,_Tt)])]),L("div",STt,[L("div",kTt,Ve(e.proxyUrl),1)])])):Me("",!0),L("div",xTt,[L("div",CTt,[p[16]||(p[16]=L("h4",null,"📋 请求头信息",-1)),L("button",{class:"copy-btn",onClick:p[5]||(p[5]=m=>s(o.value,"请求头信息")),disabled:!o.value},[...p[15]||(p[15]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),L("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制 ",-1)])],8,wTt)]),L("div",ETt,[L("div",TTt,[o.value?(H(),J("pre",ITt,Ve(o.value),1)):(H(),J("div",ATt,"暂无请求头信息"))])])]),L("div",LTt,[p[18]||(p[18]=L("div",{class:"section-header"},[L("h4",null,"🎬 视频格式")],-1)),L("div",DTt,[L("div",PTt,[p[17]||(p[17]=L("span",{class:"format-label"},"检测格式:",-1)),L("span",RTt,Ve(e.detectedFormat||"未知"),1)])])]),L("div",MTt,[p[20]||(p[20]=L("div",{class:"section-header"},[L("h4",null,"⚙️ 播放器信息")],-1)),L("div",OTt,[L("div",$Tt,[p[19]||(p[19]=L("span",{class:"player-label"},"当前播放器:",-1)),L("span",BTt,Ve(e.playerType==="artplayer"?"ArtPlayer":"默认播放器"),1)])])]),L("div",{class:"action-section"},[L("button",{class:"copy-all-btn",onClick:l},[...p[21]||(p[21]=[L("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[L("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),L("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1",stroke:"currentColor","stroke-width":"2"})],-1),We(" 复制所有调试信息 ",-1)])])])])])])):Me("",!0)}},t4e=_r(NTt,[["__scopeId","data-v-d9075ed4"]]);function n4e(e={}){const{onSkipToNext:t=()=>{},getCurrentTime:n=()=>0,setCurrentTime:r=()=>{},getDuration:o=()=>0}=e,a=fe(!1),s=fe(!1),l=fe(!1),c=fe(90),d=fe(90),h=fe(!1),p=fe(!1),m=fe(null),g=fe(0),y=fe(!1),S=fe(0),k=fe(!1),C=fe(0),x=F(()=>s.value||l.value),E="drplayer_skip_settings",_=()=>{try{const Q=localStorage.getItem(E);if(console.log("从 localStorage 加载设置:",Q),Q){const ne=JSON.parse(Q);s.value=ne.skipIntroEnabled||!1,l.value=ne.skipOutroEnabled||!1,c.value=ne.skipIntroSeconds||90,d.value=ne.skipOutroSeconds||90,console.log("加载的设置:",{skipIntroEnabled:s.value,skipOutroEnabled:l.value,skipIntroSeconds:c.value,skipOutroSeconds:d.value})}else console.log("没有找到保存的设置,使用默认值")}catch(Q){console.warn("加载片头片尾设置失败:",Q)}},T=Q=>{try{s.value=Q.skipIntroEnabled,l.value=Q.skipOutroEnabled,c.value=Q.skipIntroSeconds,d.value=Q.skipOutroSeconds;const ne={skipIntroEnabled:Q.skipIntroEnabled,skipOutroEnabled:Q.skipOutroEnabled,skipIntroSeconds:Q.skipIntroSeconds,skipOutroSeconds:Q.skipOutroSeconds};localStorage.setItem(E,JSON.stringify(ne)),$()}catch(ne){console.warn("保存片头片尾设置失败:",ne)}},D=()=>{if(!s.value||h.value)return!1;const Q=n(),ne=Date.now();return y.value||S.value>0&&ne-S.value<3e3||k.value||C.value>0&&ne-C.value<2e3?!1:Q<=1&&Q<=c.value?(console.log(`立即跳过片头:从 ${Q.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ne,!0):!1},P=()=>{if(!s.value||h.value)return;const Q=n(),ne=Date.now();y.value||S.value>0&&ne-S.value<3e3||k.value||C.value>0&&ne-C.value<2e3||g.value>0&&ne-g.value<1e3||Q<=c.value&&(console.log(`已跳过片头:从 ${Q.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=ne)},M=()=>{if(!l.value||p.value)return;const Q=o();if(Q<=0)return;const ne=n(),ae=Q-d.value,re=Date.now();re-g.value<2e3||ne>=ae&&ne{D()||P(),M()};let I=null;const N=()=>{I&&clearTimeout(I),I=setTimeout(()=>{s.value&&!h.value&&P(),l.value&&!p.value&&M()},200)},j=()=>{h.value=!1,p.value=!1,g.value=0,y.value=!1,S.value=0,k.value=!1,C.value=0,m.value&&(clearTimeout(m.value),m.value=null)},U=()=>{y.value=!0,console.log("用户开始拖动进度条")},z=()=>{y.value=!1,S.value=Date.now(),console.log("用户结束拖动进度条")},G=()=>{k.value=!0,console.log("全屏状态开始变化")},X=()=>{k.value=!1,C.value=Date.now(),console.log("全屏状态变化结束")},ie=()=>{j(),_()},ee=()=>{a.value=!0},W=()=>{a.value=!1},q=()=>{m.value&&(clearTimeout(m.value),m.value=null)};return vi(()=>{q()}),{showSkipSettingsDialog:a,skipIntroEnabled:s,skipOutroEnabled:l,skipIntroSeconds:c,skipOutroSeconds:d,skipIntroApplied:h,skipOutroTimer:m,skipEnabled:x,loadSkipSettings:_,saveSkipSettings:T,applySkipSettings:$,applyIntroSkipImmediate:D,handleTimeUpdate:N,resetSkipState:j,initSkipSettings:ie,openSkipSettingsDialog:ee,closeSkipSettingsDialog:W,cleanup:q,onUserSeekStart:U,onUserSeekEnd:z,onFullscreenChangeStart:G,onFullscreenChangeEnd:X}}const Hv={NO_REFERRER:"no-referrer",ORIGIN:"origin",SAME_ORIGIN:"same-origin",STRICT_ORIGIN_WHEN_CROSS_ORIGIN:"strict-origin-when-cross-origin",UNSAFE_URL:"unsafe-url"},r4e=[{value:"no-referrer",label:"不发送Referrer"},{value:"no-referrer-when-downgrade",label:"HTTPS到HTTP时不发送"},{value:"origin",label:"只发送源域名"},{value:"origin-when-cross-origin",label:"跨域时只发送源域名"},{value:"same-origin",label:"同源时发送完整Referrer"},{value:"strict-origin",label:"严格源域名策略"},{value:"strict-origin-when-cross-origin",label:"跨域时严格控制"},{value:"unsafe-url",label:"总是发送完整Referrer(不安全)"}];function zG(){const e=document.querySelector('meta[name="referrer"]');return e?e.getAttribute("content"):"default"}function w_(e){let t=document.querySelector('meta[name="referrer"]');t||(t=document.createElement("meta"),t.setAttribute("name","referrer"),document.head.appendChild(t)),t.setAttribute("content",e),console.log(`已设置全局referrer策略为: ${e}`)}function $T(e,t){e&&e.tagName==="VIDEO"&&(e.setAttribute("referrerpolicy",t),console.log(`已为视频元素设置referrer策略: ${t}`))}function FTt(e,t=null){const n=Rh();let r;return n.autoBypass?(r=n.referrerPolicy,console.log(`根据CSP配置设置referrer策略: ${r} (URL: ${e})`)):(r=zG()||Hv.STRICT_ORIGIN_WHEN_CROSS_ORIGIN,console.log(`CSP绕过未启用,保持当前策略: ${r} (URL: ${e})`)),w_(r),t&&$T(t,r),r}const Xue={referrerPolicy:Hv.NO_REFERRER,autoBypass:!0,autoRetry:!0,retryPolicies:[Hv.NO_REFERRER,Hv.ORIGIN,Hv.SAME_ORIGIN,Hv.UNSAFE_URL]};function Rh(){const e=localStorage.getItem("csp_bypass_config");return e?{...Xue,...JSON.parse(e)}:Xue}function eU(e){localStorage.setItem("csp_bypass_config",JSON.stringify(e))}function UG(e,t){return Rh().autoBypass?FTt(e,t):zG()}var tj={exports:{}},Zue;function jTt(){return Zue||(Zue=1,(function(e,t){(function(r,o){e.exports=o()})(self,function(){return(function(){var n={"./node_modules/es6-promise/dist/es6-promise.js":(function(s,l,c){/*! * @overview es6-promise - a tiny implementation of Promises/A+. * @copyright Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors (Conversion to ES6 API by Jake Archibald) * @license Licensed under MIT license * See https://raw.githubusercontent.com/stefanpenner/es6-promise/master/LICENSE * @version v4.2.8+1e68dce6 */(function(d,h){s.exports=h()})(this,(function(){function d(Ue){var ut=typeof Ue;return Ue!==null&&(ut==="object"||ut==="function")}function h(Ue){return typeof Ue=="function"}var p=void 0;Array.isArray?p=Array.isArray:p=function(Ue){return Object.prototype.toString.call(Ue)==="[object Array]"};var m=p,g=0,y=void 0,S=void 0,k=function(ut,St){U[g]=ut,U[g+1]=St,g+=2,g===2&&(S?S(z):X())};function C(Ue){S=Ue}function x(Ue){k=Ue}var E=typeof window<"u"?window:void 0,_=E||{},T=_.MutationObserver||_.WebKitMutationObserver,D=typeof self>"u"&&typeof process<"u"&&{}.toString.call(process)==="[object process]",P=typeof Uint8ClampedArray<"u"&&typeof importScripts<"u"&&typeof MessageChannel<"u";function M(){return function(){return process.nextTick(z)}}function $(){return typeof y<"u"?function(){y(z)}:j()}function I(){var Ue=0,ut=new T(z),St=document.createTextNode("");return ut.observe(St,{characterData:!0}),function(){St.data=Ue=++Ue%2}}function N(){var Ue=new MessageChannel;return Ue.port1.onmessage=z,function(){return Ue.port2.postMessage(0)}}function j(){var Ue=setTimeout;return function(){return Ue(z,1)}}var U=new Array(1e3);function z(){for(var Ue=0;Ue0&&(ie=U[0]),ie instanceof Error)throw ie;var ee=new Error("Unhandled error."+(ie?" ("+ie.message+")":""));throw ee.context=ie,ee}var W=X[j];if(W===void 0)return!1;if(typeof W=="function")c(W,this,U);else for(var q=W.length,Q=T(W,q),z=0;z0&&ie.length>G&&!ie.warned){ie.warned=!0;var ee=new Error("Possible EventEmitter memory leak detected. "+ie.length+" "+String(j)+" listeners added. Use emitter.setMaxListeners() to increase limit");ee.name="MaxListenersExceededWarning",ee.emitter=N,ee.type=j,ee.count=ie.length,h(ee)}return N}m.prototype.addListener=function(j,U){return k(this,j,U,!1)},m.prototype.on=m.prototype.addListener,m.prototype.prependListener=function(j,U){return k(this,j,U,!0)};function C(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function x(N,j,U){var z={fired:!1,wrapFn:void 0,target:N,type:j,listener:U},G=C.bind(z);return G.listener=U,z.wrapFn=G,G}m.prototype.once=function(j,U){return y(U),this.on(j,x(this,j,U)),this},m.prototype.prependOnceListener=function(j,U){return y(U),this.prependListener(j,x(this,j,U)),this},m.prototype.removeListener=function(j,U){var z,G,X,ie,ee;if(y(U),G=this._events,G===void 0)return this;if(z=G[j],z===void 0)return this;if(z===U||z.listener===U)--this._eventsCount===0?this._events=Object.create(null):(delete G[j],G.removeListener&&this.emit("removeListener",j,z.listener||U));else if(typeof z!="function"){for(X=-1,ie=z.length-1;ie>=0;ie--)if(z[ie]===U||z[ie].listener===U){ee=z[ie].listener,X=ie;break}if(X<0)return this;X===0?z.shift():D(z,X),z.length===1&&(G[j]=z[0]),G.removeListener!==void 0&&this.emit("removeListener",j,ee||U)}return this},m.prototype.off=m.prototype.removeListener,m.prototype.removeAllListeners=function(j){var U,z,G;if(z=this._events,z===void 0)return this;if(z.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):z[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete z[j]),this;if(arguments.length===0){var X=Object.keys(z),ie;for(G=0;G=0;G--)this.removeListener(j,U[G]);return this};function E(N,j,U){var z=N._events;if(z===void 0)return[];var G=z[j];return G===void 0?[]:typeof G=="function"?U?[G.listener||G]:[G]:U?P(G):T(G,G.length)}m.prototype.listeners=function(j){return E(this,j,!0)},m.prototype.rawListeners=function(j){return E(this,j,!1)},m.listenerCount=function(N,j){return typeof N.listenerCount=="function"?N.listenerCount(j):_.call(N,j)},m.prototype.listenerCount=_;function _(N){var j=this._events;if(j!==void 0){var U=j[N];if(typeof U=="function")return 1;if(U!==void 0)return U.length}return 0}m.prototype.eventNames=function(){return this._eventsCount>0?d(this._events):[]};function T(N,j){for(var U=new Array(j),z=0;z0},!1)}function k(C,x){for(var E={main:[x]},_={main:[]},T={main:{}};S(E);)for(var D=Object.keys(E),P=0;P=p[S]&&m0&&y[0].originalDts=S[x].dts&&yS[C].lastSample.originalDts&&y=S[C].lastSample.originalDts&&(C===S.length-1||C0&&(x=this._searchNearestSegmentBefore(k.originalBeginDts)+1),this._lastAppendLocation=x,this._list.splice(x,0,k)},g.prototype.getLastSegmentBefore=function(y){var S=this._searchNearestSegmentBefore(y);return S>=0?this._list[S]:null},g.prototype.getLastSampleBefore=function(y){var S=this.getLastSegmentBefore(y);return S!=null?S.lastSample:null},g.prototype.getLastSyncPointBefore=function(y){for(var S=this._searchNearestSegmentBefore(y),k=this._list[S].syncPoints;k.length===0&&S>0;)S--,k=this._list[S].syncPoints;return k.length>0?k[k.length-1]:null},g})()}),"./src/core/mse-controller.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),m=c("./src/utils/browser.js"),g=c("./src/core/mse-events.js"),y=c("./src/core/media-segment-info.js"),S=c("./src/utils/exception.js"),k=(function(){function C(x){this.TAG="MSEController",this._config=x,this._emitter=new(h()),this._config.isLive&&this._config.autoCleanupSourceBuffer==null&&(this._config.autoCleanupSourceBuffer=!0),this.e={onSourceOpen:this._onSourceOpen.bind(this),onSourceEnded:this._onSourceEnded.bind(this),onSourceClose:this._onSourceClose.bind(this),onSourceBufferError:this._onSourceBufferError.bind(this),onSourceBufferUpdateEnd:this._onSourceBufferUpdateEnd.bind(this)},this._mediaSource=null,this._mediaSourceObjectURL=null,this._mediaElement=null,this._isBufferFull=!1,this._hasPendingEos=!1,this._requireSetMediaDuration=!1,this._pendingMediaDuration=0,this._pendingSourceBufferInit=[],this._mimeTypes={video:null,audio:null},this._sourceBuffers={video:null,audio:null},this._lastInitSegments={video:null,audio:null},this._pendingSegments={video:[],audio:[]},this._pendingRemoveRanges={video:[],audio:[]},this._idrList=new y.IDRSampleList}return C.prototype.destroy=function(){(this._mediaElement||this._mediaSource)&&this.detachMediaElement(),this.e=null,this._emitter.removeAllListeners(),this._emitter=null},C.prototype.on=function(x,E){this._emitter.addListener(x,E)},C.prototype.off=function(x,E){this._emitter.removeListener(x,E)},C.prototype.attachMediaElement=function(x){if(this._mediaSource)throw new S.IllegalStateException("MediaSource has been attached to an HTMLMediaElement!");var E=this._mediaSource=new window.MediaSource;E.addEventListener("sourceopen",this.e.onSourceOpen),E.addEventListener("sourceended",this.e.onSourceEnded),E.addEventListener("sourceclose",this.e.onSourceClose),this._mediaElement=x,this._mediaSourceObjectURL=window.URL.createObjectURL(this._mediaSource),x.src=this._mediaSourceObjectURL},C.prototype.detachMediaElement=function(){if(this._mediaSource){var x=this._mediaSource;for(var E in this._sourceBuffers){var _=this._pendingSegments[E];_.splice(0,_.length),this._pendingSegments[E]=null,this._pendingRemoveRanges[E]=null,this._lastInitSegments[E]=null;var T=this._sourceBuffers[E];if(T){if(x.readyState!=="closed"){try{x.removeSourceBuffer(T)}catch(D){p.default.e(this.TAG,D.message)}T.removeEventListener("error",this.e.onSourceBufferError),T.removeEventListener("updateend",this.e.onSourceBufferUpdateEnd)}this._mimeTypes[E]=null,this._sourceBuffers[E]=null}}if(x.readyState==="open")try{x.endOfStream()}catch(D){p.default.e(this.TAG,D.message)}x.removeEventListener("sourceopen",this.e.onSourceOpen),x.removeEventListener("sourceended",this.e.onSourceEnded),x.removeEventListener("sourceclose",this.e.onSourceClose),this._pendingSourceBufferInit=[],this._isBufferFull=!1,this._idrList.clear(),this._mediaSource=null}this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src"),this._mediaElement=null),this._mediaSourceObjectURL&&(window.URL.revokeObjectURL(this._mediaSourceObjectURL),this._mediaSourceObjectURL=null)},C.prototype.appendInitSegment=function(x,E){if(!this._mediaSource||this._mediaSource.readyState!=="open"){this._pendingSourceBufferInit.push(x),this._pendingSegments[x.type].push(x);return}var _=x,T=""+_.container;_.codec&&_.codec.length>0&&(T+=";codecs="+_.codec);var D=!1;if(p.default.v(this.TAG,"Received Initialization Segment, mimeType: "+T),this._lastInitSegments[_.type]=_,T!==this._mimeTypes[_.type]){if(this._mimeTypes[_.type])p.default.v(this.TAG,"Notice: "+_.type+" mimeType changed, origin: "+this._mimeTypes[_.type]+", target: "+T);else{D=!0;try{var P=this._sourceBuffers[_.type]=this._mediaSource.addSourceBuffer(T);P.addEventListener("error",this.e.onSourceBufferError),P.addEventListener("updateend",this.e.onSourceBufferUpdateEnd)}catch(M){p.default.e(this.TAG,M.message),this._emitter.emit(g.default.ERROR,{code:M.code,msg:M.message});return}}this._mimeTypes[_.type]=T}E||this._pendingSegments[_.type].push(_),D||this._sourceBuffers[_.type]&&!this._sourceBuffers[_.type].updating&&this._doAppendSegments(),m.default.safari&&_.container==="audio/mpeg"&&_.mediaDuration>0&&(this._requireSetMediaDuration=!0,this._pendingMediaDuration=_.mediaDuration/1e3,this._updateMediaSourceDuration())},C.prototype.appendMediaSegment=function(x){var E=x;this._pendingSegments[E.type].push(E),this._config.autoCleanupSourceBuffer&&this._needCleanupSourceBuffer()&&this._doCleanupSourceBuffer();var _=this._sourceBuffers[E.type];_&&!_.updating&&!this._hasPendingRemoveRanges()&&this._doAppendSegments()},C.prototype.seek=function(x){for(var E in this._sourceBuffers)if(this._sourceBuffers[E]){var _=this._sourceBuffers[E];if(this._mediaSource.readyState==="open")try{_.abort()}catch(I){p.default.e(this.TAG,I.message)}this._idrList.clear();var T=this._pendingSegments[E];if(T.splice(0,T.length),this._mediaSource.readyState!=="closed"){for(var D=0;D<_.buffered.length;D++){var P=_.buffered.start(D),M=_.buffered.end(D);this._pendingRemoveRanges[E].push({start:P,end:M})}if(_.updating||this._doRemoveRanges(),m.default.safari){var $=this._lastInitSegments[E];$&&(this._pendingSegments[E].push($),_.updating||this._doAppendSegments())}}}},C.prototype.endOfStream=function(){var x=this._mediaSource,E=this._sourceBuffers;if(!x||x.readyState!=="open"){x&&x.readyState==="closed"&&this._hasPendingSegments()&&(this._hasPendingEos=!0);return}E.video&&E.video.updating||E.audio&&E.audio.updating?this._hasPendingEos=!0:(this._hasPendingEos=!1,x.endOfStream())},C.prototype.getNearestKeyframe=function(x){return this._idrList.getLastSyncPointBeforeDts(x)},C.prototype._needCleanupSourceBuffer=function(){if(!this._config.autoCleanupSourceBuffer)return!1;var x=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var _=this._sourceBuffers[E];if(_){var T=_.buffered;if(T.length>=1&&x-T.start(0)>=this._config.autoCleanupMaxBackwardDuration)return!0}}return!1},C.prototype._doCleanupSourceBuffer=function(){var x=this._mediaElement.currentTime;for(var E in this._sourceBuffers){var _=this._sourceBuffers[E];if(_){for(var T=_.buffered,D=!1,P=0;P=this._config.autoCleanupMaxBackwardDuration){D=!0;var I=x-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[E].push({start:M,end:I})}}else $0&&(isNaN(E)||_>E)&&(p.default.v(this.TAG,"Update MediaSource duration from "+E+" to "+_),this._mediaSource.duration=_),this._requireSetMediaDuration=!1,this._pendingMediaDuration=0}},C.prototype._doRemoveRanges=function(){for(var x in this._pendingRemoveRanges)if(!(!this._sourceBuffers[x]||this._sourceBuffers[x].updating))for(var E=this._sourceBuffers[x],_=this._pendingRemoveRanges[x];_.length&&!E.updating;){var T=_.shift();E.remove(T.start,T.end)}},C.prototype._doAppendSegments=function(){var x=this._pendingSegments;for(var E in x)if(!(!this._sourceBuffers[E]||this._sourceBuffers[E].updating)&&x[E].length>0){var _=x[E].shift();if(_.timestampOffset){var T=this._sourceBuffers[E].timestampOffset,D=_.timestampOffset/1e3,P=Math.abs(T-D);P>.1&&(p.default.v(this.TAG,"Update MPEG audio timestampOffset from "+T+" to "+D),this._sourceBuffers[E].timestampOffset=D),delete _.timestampOffset}if(!_.data||_.data.byteLength===0)continue;try{this._sourceBuffers[E].appendBuffer(_.data),this._isBufferFull=!1,E==="video"&&_.hasOwnProperty("info")&&this._idrList.appendArray(_.info.syncPoints)}catch(M){this._pendingSegments[E].unshift(_),M.code===22?(this._isBufferFull||this._emitter.emit(g.default.BUFFER_FULL),this._isBufferFull=!0):(p.default.e(this.TAG,M.message),this._emitter.emit(g.default.ERROR,{code:M.code,msg:M.message}))}}},C.prototype._onSourceOpen=function(){if(p.default.v(this.TAG,"MediaSource onSourceOpen"),this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._pendingSourceBufferInit.length>0)for(var x=this._pendingSourceBufferInit;x.length;){var E=x.shift();this.appendInitSegment(E,!0)}this._hasPendingSegments()&&this._doAppendSegments(),this._emitter.emit(g.default.SOURCE_OPEN)},C.prototype._onSourceEnded=function(){p.default.v(this.TAG,"MediaSource onSourceEnded")},C.prototype._onSourceClose=function(){p.default.v(this.TAG,"MediaSource onSourceClose"),this._mediaSource&&this.e!=null&&(this._mediaSource.removeEventListener("sourceopen",this.e.onSourceOpen),this._mediaSource.removeEventListener("sourceended",this.e.onSourceEnded),this._mediaSource.removeEventListener("sourceclose",this.e.onSourceClose))},C.prototype._hasPendingSegments=function(){var x=this._pendingSegments;return x.video.length>0||x.audio.length>0},C.prototype._hasPendingRemoveRanges=function(){var x=this._pendingRemoveRanges;return x.video.length>0||x.audio.length>0},C.prototype._onSourceBufferUpdateEnd=function(){this._requireSetMediaDuration?this._updateMediaSourceDuration():this._hasPendingRemoveRanges()?this._doRemoveRanges():this._hasPendingSegments()?this._doAppendSegments():this._hasPendingEos&&this.endOfStream(),this._emitter.emit(g.default.UPDATE_END)},C.prototype._onSourceBufferError=function(x){p.default.e(this.TAG,"SourceBuffer Error: "+x)},C})();l.default=k}),"./src/core/mse-events.js":(function(s,l,c){c.r(l);var d={ERROR:"error",SOURCE_OPEN:"source_open",UPDATE_END:"update_end",BUFFER_FULL:"buffer_full"};l.default=d}),"./src/core/transmuxer.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./node_modules/webworkify-webpack/index.js"),m=c.n(p),g=c("./src/utils/logger.js"),y=c("./src/utils/logging-control.js"),S=c("./src/core/transmuxing-controller.js"),k=c("./src/core/transmuxing-events.js"),C=c("./src/core/media-info.js"),x=(function(){function E(_,T){if(this.TAG="Transmuxer",this._emitter=new(h()),T.enableWorker&&typeof Worker<"u")try{this._worker=m()("./src/core/transmuxing-worker.js"),this._workerDestroying=!1,this._worker.addEventListener("message",this._onWorkerMessage.bind(this)),this._worker.postMessage({cmd:"init",param:[_,T]}),this.e={onLoggingConfigChanged:this._onLoggingConfigChanged.bind(this)},y.default.registerListener(this.e.onLoggingConfigChanged),this._worker.postMessage({cmd:"logging_config",param:y.default.getConfig()})}catch{g.default.e(this.TAG,"Error while initialize transmuxing worker, fallback to inline transmuxing"),this._worker=null,this._controller=new S.default(_,T)}else this._controller=new S.default(_,T);if(this._controller){var D=this._controller;D.on(k.default.IO_ERROR,this._onIOError.bind(this)),D.on(k.default.DEMUX_ERROR,this._onDemuxError.bind(this)),D.on(k.default.INIT_SEGMENT,this._onInitSegment.bind(this)),D.on(k.default.MEDIA_SEGMENT,this._onMediaSegment.bind(this)),D.on(k.default.LOADING_COMPLETE,this._onLoadingComplete.bind(this)),D.on(k.default.RECOVERED_EARLY_EOF,this._onRecoveredEarlyEof.bind(this)),D.on(k.default.MEDIA_INFO,this._onMediaInfo.bind(this)),D.on(k.default.METADATA_ARRIVED,this._onMetaDataArrived.bind(this)),D.on(k.default.SCRIPTDATA_ARRIVED,this._onScriptDataArrived.bind(this)),D.on(k.default.STATISTICS_INFO,this._onStatisticsInfo.bind(this)),D.on(k.default.RECOMMEND_SEEKPOINT,this._onRecommendSeekpoint.bind(this))}}return E.prototype.destroy=function(){this._worker?this._workerDestroying||(this._workerDestroying=!0,this._worker.postMessage({cmd:"destroy"}),y.default.removeListener(this.e.onLoggingConfigChanged),this.e=null):(this._controller.destroy(),this._controller=null),this._emitter.removeAllListeners(),this._emitter=null},E.prototype.on=function(_,T){this._emitter.addListener(_,T)},E.prototype.off=function(_,T){this._emitter.removeListener(_,T)},E.prototype.hasWorker=function(){return this._worker!=null},E.prototype.open=function(){this._worker?this._worker.postMessage({cmd:"start"}):this._controller.start()},E.prototype.close=function(){this._worker?this._worker.postMessage({cmd:"stop"}):this._controller.stop()},E.prototype.seek=function(_){this._worker?this._worker.postMessage({cmd:"seek",param:_}):this._controller.seek(_)},E.prototype.pause=function(){this._worker?this._worker.postMessage({cmd:"pause"}):this._controller.pause()},E.prototype.resume=function(){this._worker?this._worker.postMessage({cmd:"resume"}):this._controller.resume()},E.prototype._onInitSegment=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.INIT_SEGMENT,_,T)})},E.prototype._onMediaSegment=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.MEDIA_SEGMENT,_,T)})},E.prototype._onLoadingComplete=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.LOADING_COMPLETE)})},E.prototype._onRecoveredEarlyEof=function(){var _=this;Promise.resolve().then(function(){_._emitter.emit(k.default.RECOVERED_EARLY_EOF)})},E.prototype._onMediaInfo=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.MEDIA_INFO,_)})},E.prototype._onMetaDataArrived=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.METADATA_ARRIVED,_)})},E.prototype._onScriptDataArrived=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.SCRIPTDATA_ARRIVED,_)})},E.prototype._onStatisticsInfo=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.STATISTICS_INFO,_)})},E.prototype._onIOError=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.IO_ERROR,_,T)})},E.prototype._onDemuxError=function(_,T){var D=this;Promise.resolve().then(function(){D._emitter.emit(k.default.DEMUX_ERROR,_,T)})},E.prototype._onRecommendSeekpoint=function(_){var T=this;Promise.resolve().then(function(){T._emitter.emit(k.default.RECOMMEND_SEEKPOINT,_)})},E.prototype._onLoggingConfigChanged=function(_){this._worker&&this._worker.postMessage({cmd:"logging_config",param:_})},E.prototype._onWorkerMessage=function(_){var T=_.data,D=T.data;if(T.msg==="destroyed"||this._workerDestroying){this._workerDestroying=!1,this._worker.terminate(),this._worker=null;return}switch(T.msg){case k.default.INIT_SEGMENT:case k.default.MEDIA_SEGMENT:this._emitter.emit(T.msg,D.type,D.data);break;case k.default.LOADING_COMPLETE:case k.default.RECOVERED_EARLY_EOF:this._emitter.emit(T.msg);break;case k.default.MEDIA_INFO:Object.setPrototypeOf(D,C.default.prototype),this._emitter.emit(T.msg,D);break;case k.default.METADATA_ARRIVED:case k.default.SCRIPTDATA_ARRIVED:case k.default.STATISTICS_INFO:this._emitter.emit(T.msg,D);break;case k.default.IO_ERROR:case k.default.DEMUX_ERROR:this._emitter.emit(T.msg,D.type,D.info);break;case k.default.RECOMMEND_SEEKPOINT:this._emitter.emit(T.msg,D);break;case"logcat_callback":g.default.emitter.emit("log",D.type,D.logcat);break}},E})();l.default=x}),"./src/core/transmuxing-controller.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),m=c("./src/utils/browser.js"),g=c("./src/core/media-info.js"),y=c("./src/demux/flv-demuxer.js"),S=c("./src/remux/mp4-remuxer.js"),k=c("./src/demux/demux-errors.js"),C=c("./src/io/io-controller.js"),x=c("./src/core/transmuxing-events.js"),E=(function(){function _(T,D){this.TAG="TransmuxingController",this._emitter=new(h()),this._config=D,T.segments||(T.segments=[{duration:T.duration,filesize:T.filesize,url:T.url}]),typeof T.cors!="boolean"&&(T.cors=!0),typeof T.withCredentials!="boolean"&&(T.withCredentials=!1),this._mediaDataSource=T,this._currentSegmentIndex=0;var P=0;this._mediaDataSource.segments.forEach(function(M){M.timestampBase=P,P+=M.duration,M.cors=T.cors,M.withCredentials=T.withCredentials,D.referrerPolicy&&(M.referrerPolicy=D.referrerPolicy)}),!isNaN(P)&&this._mediaDataSource.duration!==P&&(this._mediaDataSource.duration=P),this._mediaInfo=null,this._demuxer=null,this._remuxer=null,this._ioctl=null,this._pendingSeekTime=null,this._pendingResolveSeekPoint=null,this._statisticsReporter=null}return _.prototype.destroy=function(){this._mediaInfo=null,this._mediaDataSource=null,this._statisticsReporter&&this._disableStatisticsReporter(),this._ioctl&&(this._ioctl.destroy(),this._ioctl=null),this._demuxer&&(this._demuxer.destroy(),this._demuxer=null),this._remuxer&&(this._remuxer.destroy(),this._remuxer=null),this._emitter.removeAllListeners(),this._emitter=null},_.prototype.on=function(T,D){this._emitter.addListener(T,D)},_.prototype.off=function(T,D){this._emitter.removeListener(T,D)},_.prototype.start=function(){this._loadSegment(0),this._enableStatisticsReporter()},_.prototype._loadSegment=function(T,D){this._currentSegmentIndex=T;var P=this._mediaDataSource.segments[T],M=this._ioctl=new C.default(P,this._config,T);M.onError=this._onIOException.bind(this),M.onSeeked=this._onIOSeeked.bind(this),M.onComplete=this._onIOComplete.bind(this),M.onRedirect=this._onIORedirect.bind(this),M.onRecoveredEarlyEof=this._onIORecoveredEarlyEof.bind(this),D?this._demuxer.bindDataSource(this._ioctl):M.onDataArrival=this._onInitChunkArrival.bind(this),M.open(D)},_.prototype.stop=function(){this._internalAbort(),this._disableStatisticsReporter()},_.prototype._internalAbort=function(){this._ioctl&&(this._ioctl.destroy(),this._ioctl=null)},_.prototype.pause=function(){this._ioctl&&this._ioctl.isWorking()&&(this._ioctl.pause(),this._disableStatisticsReporter())},_.prototype.resume=function(){this._ioctl&&this._ioctl.isPaused()&&(this._ioctl.resume(),this._enableStatisticsReporter())},_.prototype.seek=function(T){if(!(this._mediaInfo==null||!this._mediaInfo.isSeekable())){var D=this._searchSegmentIndexContains(T);if(D===this._currentSegmentIndex){var P=this._mediaInfo.segments[D];if(P==null)this._pendingSeekTime=T;else{var M=P.getNearestKeyframe(T);this._remuxer.seek(M.milliseconds),this._ioctl.seek(M.fileposition),this._pendingResolveSeekPoint=M.milliseconds}}else{var $=this._mediaInfo.segments[D];if($==null)this._pendingSeekTime=T,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(D);else{var M=$.getNearestKeyframe(T);this._internalAbort(),this._remuxer.seek(T),this._remuxer.insertDiscontinuity(),this._demuxer.resetMediaInfo(),this._demuxer.timestampBase=this._mediaDataSource.segments[D].timestampBase,this._loadSegment(D,M.fileposition),this._pendingResolveSeekPoint=M.milliseconds,this._reportSegmentMediaInfo(D)}}this._enableStatisticsReporter()}},_.prototype._searchSegmentIndexContains=function(T){for(var D=this._mediaDataSource.segments,P=D.length-1,M=0;M0)this._demuxer.bindDataSource(this._ioctl),this._demuxer.timestampBase=this._mediaDataSource.segments[this._currentSegmentIndex].timestampBase,$=this._demuxer.parseChunks(T,D);else if((M=y.default.probe(T)).match){this._demuxer=new y.default(M,this._config),this._remuxer||(this._remuxer=new S.default(this._config));var I=this._mediaDataSource;I.duration!=null&&!isNaN(I.duration)&&(this._demuxer.overridedDuration=I.duration),typeof I.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=I.hasAudio),typeof I.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=I.hasVideo),this._demuxer.timestampBase=I.segments[this._currentSegmentIndex].timestampBase,this._demuxer.onError=this._onDemuxException.bind(this),this._demuxer.onMediaInfo=this._onMediaInfo.bind(this),this._demuxer.onMetaDataArrived=this._onMetaDataArrived.bind(this),this._demuxer.onScriptDataArrived=this._onScriptDataArrived.bind(this),this._remuxer.bindDataSource(this._demuxer.bindDataSource(this._ioctl)),this._remuxer.onInitSegment=this._onRemuxerInitSegmentArrival.bind(this),this._remuxer.onMediaSegment=this._onRemuxerMediaSegmentArrival.bind(this),$=this._demuxer.parseChunks(T,D)}else M=null,p.default.e(this.TAG,"Non-FLV, Unsupported media type!"),Promise.resolve().then(function(){P._internalAbort()}),this._emitter.emit(x.default.DEMUX_ERROR,k.default.FORMAT_UNSUPPORTED,"Non-FLV, Unsupported media type"),$=0;return $},_.prototype._onMediaInfo=function(T){var D=this;this._mediaInfo==null&&(this._mediaInfo=Object.assign({},T),this._mediaInfo.keyframesIndex=null,this._mediaInfo.segments=[],this._mediaInfo.segmentCount=this._mediaDataSource.segments.length,Object.setPrototypeOf(this._mediaInfo,g.default.prototype));var P=Object.assign({},T);Object.setPrototypeOf(P,g.default.prototype),this._mediaInfo.segments[this._currentSegmentIndex]=P,this._reportSegmentMediaInfo(this._currentSegmentIndex),this._pendingSeekTime!=null&&Promise.resolve().then(function(){var M=D._pendingSeekTime;D._pendingSeekTime=null,D.seek(M)})},_.prototype._onMetaDataArrived=function(T){this._emitter.emit(x.default.METADATA_ARRIVED,T)},_.prototype._onScriptDataArrived=function(T){this._emitter.emit(x.default.SCRIPTDATA_ARRIVED,T)},_.prototype._onIOSeeked=function(){this._remuxer.insertDiscontinuity()},_.prototype._onIOComplete=function(T){var D=T,P=D+1;P0&&P[0].originalDts===M&&(M=P[0].pts),this._emitter.emit(x.default.RECOMMEND_SEEKPOINT,M)}},_.prototype._enableStatisticsReporter=function(){this._statisticsReporter==null&&(this._statisticsReporter=self.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval))},_.prototype._disableStatisticsReporter=function(){this._statisticsReporter&&(self.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},_.prototype._reportSegmentMediaInfo=function(T){var D=this._mediaInfo.segments[T],P=Object.assign({},D);P.duration=this._mediaInfo.duration,P.segmentCount=this._mediaInfo.segmentCount,delete P.segments,delete P.keyframesIndex,this._emitter.emit(x.default.MEDIA_INFO,P)},_.prototype._reportStatisticsInfo=function(){var T={};T.url=this._ioctl.currentURL,T.hasRedirect=this._ioctl.hasRedirect,T.hasRedirect&&(T.redirectedURL=this._ioctl.currentRedirectedURL),T.speed=this._ioctl.currentSpeed,T.loaderType=this._ioctl.loaderType,T.currentSegmentIndex=this._currentSegmentIndex,T.totalSegmentCount=this._mediaDataSource.segments.length,this._emitter.emit(x.default.STATISTICS_INFO,T)},_})();l.default=E}),"./src/core/transmuxing-events.js":(function(s,l,c){c.r(l);var d={IO_ERROR:"io_error",DEMUX_ERROR:"demux_error",INIT_SEGMENT:"init_segment",MEDIA_SEGMENT:"media_segment",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info",RECOMMEND_SEEKPOINT:"recommend_seekpoint"};l.default=d}),"./src/core/transmuxing-worker.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logging-control.js"),h=c("./src/utils/polyfill.js"),p=c("./src/core/transmuxing-controller.js"),m=c("./src/core/transmuxing-events.js"),g=function(y){var S=null,k=j.bind(this);h.default.install(),y.addEventListener("message",function(U){switch(U.data.cmd){case"init":S=new p.default(U.data.param[0],U.data.param[1]),S.on(m.default.IO_ERROR,$.bind(this)),S.on(m.default.DEMUX_ERROR,I.bind(this)),S.on(m.default.INIT_SEGMENT,C.bind(this)),S.on(m.default.MEDIA_SEGMENT,x.bind(this)),S.on(m.default.LOADING_COMPLETE,E.bind(this)),S.on(m.default.RECOVERED_EARLY_EOF,_.bind(this)),S.on(m.default.MEDIA_INFO,T.bind(this)),S.on(m.default.METADATA_ARRIVED,D.bind(this)),S.on(m.default.SCRIPTDATA_ARRIVED,P.bind(this)),S.on(m.default.STATISTICS_INFO,M.bind(this)),S.on(m.default.RECOMMEND_SEEKPOINT,N.bind(this));break;case"destroy":S&&(S.destroy(),S=null),y.postMessage({msg:"destroyed"});break;case"start":S.start();break;case"stop":S.stop();break;case"seek":S.seek(U.data.param);break;case"pause":S.pause();break;case"resume":S.resume();break;case"logging_config":{var z=U.data.param;d.default.applyConfig(z),z.enableCallback===!0?d.default.addLogListener(k):d.default.removeLogListener(k);break}}});function C(U,z){var G={msg:m.default.INIT_SEGMENT,data:{type:U,data:z}};y.postMessage(G,[z.data])}function x(U,z){var G={msg:m.default.MEDIA_SEGMENT,data:{type:U,data:z}};y.postMessage(G,[z.data])}function E(){var U={msg:m.default.LOADING_COMPLETE};y.postMessage(U)}function _(){var U={msg:m.default.RECOVERED_EARLY_EOF};y.postMessage(U)}function T(U){var z={msg:m.default.MEDIA_INFO,data:U};y.postMessage(z)}function D(U){var z={msg:m.default.METADATA_ARRIVED,data:U};y.postMessage(z)}function P(U){var z={msg:m.default.SCRIPTDATA_ARRIVED,data:U};y.postMessage(z)}function M(U){var z={msg:m.default.STATISTICS_INFO,data:U};y.postMessage(z)}function $(U,z){y.postMessage({msg:m.default.IO_ERROR,data:{type:U,info:z}})}function I(U,z){y.postMessage({msg:m.default.DEMUX_ERROR,data:{type:U,info:z}})}function N(U){y.postMessage({msg:m.default.RECOMMEND_SEEKPOINT,data:U})}function j(U,z){y.postMessage({msg:"logcat_callback",data:{type:U,logcat:z}})}};l.default=g}),"./src/demux/amf-parser.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/utils/utf8-conv.js"),p=c("./src/utils/exception.js"),m=(function(){var y=new ArrayBuffer(2);return new DataView(y).setInt16(0,256,!0),new Int16Array(y)[0]===256})(),g=(function(){function y(){}return y.parseScriptData=function(S,k,C){var x={};try{var E=y.parseValue(S,k,C),_=y.parseValue(S,k+E.size,C-E.size);x[E.data]=_.data}catch(T){d.default.e("AMF",T.toString())}return x},y.parseObject=function(S,k,C){if(C<3)throw new p.IllegalStateException("Data not enough when parse ScriptDataObject");var x=y.parseString(S,k,C),E=y.parseValue(S,k+x.size,C-x.size),_=E.objectEnd;return{data:{name:x.data,value:E.data},size:x.size+E.size,objectEnd:_}},y.parseVariable=function(S,k,C){return y.parseObject(S,k,C)},y.parseString=function(S,k,C){if(C<2)throw new p.IllegalStateException("Data not enough when parse String");var x=new DataView(S,k,C),E=x.getUint16(0,!m),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+2,E)):_="",{data:_,size:2+E}},y.parseLongString=function(S,k,C){if(C<4)throw new p.IllegalStateException("Data not enough when parse LongString");var x=new DataView(S,k,C),E=x.getUint32(0,!m),_;return E>0?_=(0,h.default)(new Uint8Array(S,k+4,E)):_="",{data:_,size:4+E}},y.parseDate=function(S,k,C){if(C<10)throw new p.IllegalStateException("Data size invalid when parse Date");var x=new DataView(S,k,C),E=x.getFloat64(0,!m),_=x.getInt16(8,!m);return E+=_*60*1e3,{data:new Date(E),size:10}},y.parseValue=function(S,k,C){if(C<1)throw new p.IllegalStateException("Data not enough when parse Value");var x=new DataView(S,k,C),E=1,_=x.getUint8(0),T,D=!1;try{switch(_){case 0:T=x.getFloat64(1,!m),E+=8;break;case 1:{var P=x.getUint8(1);T=!!P,E+=1;break}case 2:{var M=y.parseString(S,k+1,C-1);T=M.data,E+=M.size;break}case 3:{T={};var $=0;for((x.getUint32(C-4,!m)&16777215)===9&&($=3);E32)throw new d.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(m<=this._current_word_bits_left){var g=this._current_word>>>32-m;return this._current_word<<=m,this._current_word_bits_left-=m,g}var y=this._current_word_bits_left?this._current_word:0;y=y>>>32-this._current_word_bits_left;var S=m-this._current_word_bits_left;this._fillCurrentWord();var k=Math.min(S,this._current_word_bits_left),C=this._current_word>>>32-k;return this._current_word<<=k,this._current_word_bits_left-=k,y=y<>>m)!==0)return this._current_word<<=m,this._current_word_bits_left-=m,m;return this._fillCurrentWord(),m+this._skipLeadingZero()},p.prototype.readUEG=function(){var m=this._skipLeadingZero();return this.readBits(m+1)-1},p.prototype.readSEG=function(){var m=this.readUEG();return m&1?m+1>>>1:-1*(m>>>1)},p})();l.default=h}),"./src/demux/flv-demuxer.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/demux/amf-parser.js"),p=c("./src/demux/sps-parser.js"),m=c("./src/demux/demux-errors.js"),g=c("./src/core/media-info.js"),y=c("./src/utils/exception.js");function S(C,x){return C[x]<<24|C[x+1]<<16|C[x+2]<<8|C[x+3]}var k=(function(){function C(x,E){this.TAG="FLVDemuxer",this._config=E,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null,this._dataOffset=x.dataOffset,this._firstParse=!0,this._dispatch=!1,this._hasAudio=x.hasAudioTrack,this._hasVideo=x.hasVideoTrack,this._hasAudioFlagOverrided=!1,this._hasVideoFlagOverrided=!1,this._audioInitialMetadataDispatched=!1,this._videoInitialMetadataDispatched=!1,this._mediaInfo=new g.default,this._mediaInfo.hasAudio=this._hasAudio,this._mediaInfo.hasVideo=this._hasVideo,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._naluLengthSize=4,this._timestampBase=0,this._timescale=1e3,this._duration=0,this._durationOverrided=!1,this._referenceFrameRate={fixed:!0,fps:23.976,fps_num:23976,fps_den:1e3},this._flvSoundRateTable=[5500,11025,22050,44100,48e3],this._mpegSamplingRates=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],this._mpegAudioV10SampleRateTable=[44100,48e3,32e3,0],this._mpegAudioV20SampleRateTable=[22050,24e3,16e3,0],this._mpegAudioV25SampleRateTable=[11025,12e3,8e3,0],this._mpegAudioL1BitRateTable=[0,32,64,96,128,160,192,224,256,288,320,352,384,416,448,-1],this._mpegAudioL2BitRateTable=[0,32,48,56,64,80,96,112,128,160,192,224,256,320,384,-1],this._mpegAudioL3BitRateTable=[0,32,40,48,56,64,80,96,112,128,160,192,224,256,320,-1],this._videoTrack={type:"video",id:1,sequenceNumber:0,samples:[],length:0},this._audioTrack={type:"audio",id:2,sequenceNumber:0,samples:[],length:0},this._littleEndian=(function(){var _=new ArrayBuffer(2);return new DataView(_).setInt16(0,256,!0),new Int16Array(_)[0]===256})()}return C.prototype.destroy=function(){this._mediaInfo=null,this._metadata=null,this._audioMetadata=null,this._videoMetadata=null,this._videoTrack=null,this._audioTrack=null,this._onError=null,this._onMediaInfo=null,this._onMetaDataArrived=null,this._onScriptDataArrived=null,this._onTrackMetadata=null,this._onDataAvailable=null},C.probe=function(x){var E=new Uint8Array(x),_={match:!1};if(E[0]!==70||E[1]!==76||E[2]!==86||E[3]!==1)return _;var T=(E[4]&4)>>>2!==0,D=(E[4]&1)!==0,P=S(E,5);return P<9?_:{match:!0,consumed:P,dataOffset:P,hasAudioTrack:T,hasVideoTrack:D}},C.prototype.bindDataSource=function(x){return x.onDataArrival=this.parseChunks.bind(this),this},Object.defineProperty(C.prototype,"onTrackMetadata",{get:function(){return this._onTrackMetadata},set:function(x){this._onTrackMetadata=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMediaInfo",{get:function(){return this._onMediaInfo},set:function(x){this._onMediaInfo=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onMetaDataArrived",{get:function(){return this._onMetaDataArrived},set:function(x){this._onMetaDataArrived=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onScriptDataArrived",{get:function(){return this._onScriptDataArrived},set:function(x){this._onScriptDataArrived=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onError",{get:function(){return this._onError},set:function(x){this._onError=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"onDataAvailable",{get:function(){return this._onDataAvailable},set:function(x){this._onDataAvailable=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"timestampBase",{get:function(){return this._timestampBase},set:function(x){this._timestampBase=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedDuration",{get:function(){return this._duration},set:function(x){this._durationOverrided=!0,this._duration=x,this._mediaInfo.duration=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasAudio",{set:function(x){this._hasAudioFlagOverrided=!0,this._hasAudio=x,this._mediaInfo.hasAudio=x},enumerable:!1,configurable:!0}),Object.defineProperty(C.prototype,"overridedHasVideo",{set:function(x){this._hasVideoFlagOverrided=!0,this._hasVideo=x,this._mediaInfo.hasVideo=x},enumerable:!1,configurable:!0}),C.prototype.resetMediaInfo=function(){this._mediaInfo=new g.default},C.prototype._isInitialMetadataDispatched=function(){return this._hasAudio&&this._hasVideo?this._audioInitialMetadataDispatched&&this._videoInitialMetadataDispatched:this._hasAudio&&!this._hasVideo?this._audioInitialMetadataDispatched:!this._hasAudio&&this._hasVideo?this._videoInitialMetadataDispatched:!1},C.prototype.parseChunks=function(x,E){if(!this._onError||!this._onMediaInfo||!this._onTrackMetadata||!this._onDataAvailable)throw new y.IllegalStateException("Flv: onError & onMediaInfo & onTrackMetadata & onDataAvailable callback must be specified");var _=0,T=this._littleEndian;if(E===0)if(x.byteLength>13){var D=C.probe(x);_=D.dataOffset}else return 0;if(this._firstParse){this._firstParse=!1,E+_!==this._dataOffset&&d.default.w(this.TAG,"First time parsing but chunk byteStart invalid!");var P=new DataView(x,_),M=P.getUint32(0,!T);M!==0&&d.default.w(this.TAG,"PrevTagSize0 !== 0 !!!"),_+=4}for(;_x.byteLength)break;var $=P.getUint8(0),I=P.getUint32(0,!T)&16777215;if(_+11+I+4>x.byteLength)break;if($!==8&&$!==9&&$!==18){d.default.w(this.TAG,"Unsupported tag type "+$+", skipped"),_+=11+I+4;continue}var N=P.getUint8(4),j=P.getUint8(5),U=P.getUint8(6),z=P.getUint8(7),G=U|j<<8|N<<16|z<<24,X=P.getUint32(7,!T)&16777215;X!==0&&d.default.w(this.TAG,"Meet tag which has StreamID != 0!");var ie=_+11;switch($){case 8:this._parseAudioData(x,ie,I,G);break;case 9:this._parseVideoData(x,ie,I,G,E+_);break;case 18:this._parseScriptData(x,ie,I);break}var ee=P.getUint32(11+I,!T);ee!==11+I&&d.default.w(this.TAG,"Invalid PrevTagSize "+ee),_+=11+I+4}return this._isInitialMetadataDispatched()&&this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack),_},C.prototype._parseScriptData=function(x,E,_){var T=h.default.parseScriptData(x,E,_);if(T.hasOwnProperty("onMetaData")){if(T.onMetaData==null||typeof T.onMetaData!="object"){d.default.w(this.TAG,"Invalid onMetaData structure!");return}this._metadata&&d.default.w(this.TAG,"Found another onMetaData tag!"),this._metadata=T;var D=this._metadata.onMetaData;if(this._onMetaDataArrived&&this._onMetaDataArrived(Object.assign({},D)),typeof D.hasAudio=="boolean"&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=D.hasAudio,this._mediaInfo.hasAudio=this._hasAudio),typeof D.hasVideo=="boolean"&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=D.hasVideo,this._mediaInfo.hasVideo=this._hasVideo),typeof D.audiodatarate=="number"&&(this._mediaInfo.audioDataRate=D.audiodatarate),typeof D.videodatarate=="number"&&(this._mediaInfo.videoDataRate=D.videodatarate),typeof D.width=="number"&&(this._mediaInfo.width=D.width),typeof D.height=="number"&&(this._mediaInfo.height=D.height),typeof D.duration=="number"){if(!this._durationOverrided){var P=Math.floor(D.duration*this._timescale);this._duration=P,this._mediaInfo.duration=P}}else this._mediaInfo.duration=0;if(typeof D.framerate=="number"){var M=Math.floor(D.framerate*1e3);if(M>0){var $=M/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=$,this._referenceFrameRate.fps_num=M,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=$}}if(typeof D.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var I=D.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(I),D.keyframes=null}else this._mediaInfo.hasKeyframesIndex=!1;this._dispatch=!1,this._mediaInfo.metadata=D,d.default.v(this.TAG,"Parsed onMetaData"),this._mediaInfo.isComplete()&&this._onMediaInfo(this._mediaInfo)}Object.keys(T).length>0&&this._onScriptDataArrived&&this._onScriptDataArrived(Object.assign({},T))},C.prototype._parseKeyframesIndex=function(x){for(var E=[],_=[],T=1;T>>4;if(M!==2&&M!==10){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+M);return}var $=0,I=(P&12)>>>2;if(I>=0&&I<=4)$=this._flvSoundRateTable[I];else{this._onError(m.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+I);return}var N=P&1,j=this._audioMetadata,U=this._audioTrack;if(j||(this._hasAudio===!1&&this._hasAudioFlagOverrided===!1&&(this._hasAudio=!0,this._mediaInfo.hasAudio=!0),j=this._audioMetadata={},j.type="audio",j.id=U.id,j.timescale=this._timescale,j.duration=this._duration,j.audioSampleRate=$,j.channelCount=N===0?1:2),M===10){var z=this._parseAACAudioData(x,E+1,_-1);if(z==null)return;if(z.packetType===0){j.config&&d.default.w(this.TAG,"Found another AudioSpecificConfig!");var G=z.data;j.audioSampleRate=G.samplingRate,j.channelCount=G.channelCount,j.codec=G.codec,j.originalCodec=G.originalCodec,j.config=G.config,j.refSampleDuration=1024/j.audioSampleRate*j.timescale,d.default.v(this.TAG,"Parsed AudioSpecificConfig"),this._isInitialMetadataDispatched()?this._dispatch&&(this._audioTrack.length||this._videoTrack.length)&&this._onDataAvailable(this._audioTrack,this._videoTrack):this._audioInitialMetadataDispatched=!0,this._dispatch=!1,this._onTrackMetadata("audio",j);var X=this._mediaInfo;X.audioCodec=j.originalCodec,X.audioSampleRate=j.audioSampleRate,X.audioChannelCount=j.channelCount,X.hasVideo?X.videoCodec!=null&&(X.mimeType='video/x-flv; codecs="'+X.videoCodec+","+X.audioCodec+'"'):X.mimeType='video/x-flv; codecs="'+X.audioCodec+'"',X.isComplete()&&this._onMediaInfo(X)}else if(z.packetType===1){var ie=this._timestampBase+T,ee={unit:z.data,length:z.data.byteLength,dts:ie,pts:ie};U.samples.push(ee),U.length+=z.data.length}else d.default.e(this.TAG,"Flv: Unsupported AAC data type "+z.packetType)}else if(M===2){if(!j.codec){var G=this._parseMP3AudioData(x,E+1,_-1,!0);if(G==null)return;j.audioSampleRate=G.samplingRate,j.channelCount=G.channelCount,j.codec=G.codec,j.originalCodec=G.originalCodec,j.refSampleDuration=1152/j.audioSampleRate*j.timescale,d.default.v(this.TAG,"Parsed MPEG Audio Frame Header"),this._audioInitialMetadataDispatched=!0,this._onTrackMetadata("audio",j);var X=this._mediaInfo;X.audioCodec=j.codec,X.audioSampleRate=j.audioSampleRate,X.audioChannelCount=j.channelCount,X.audioDataRate=G.bitRate,X.hasVideo?X.videoCodec!=null&&(X.mimeType='video/x-flv; codecs="'+X.videoCodec+","+X.audioCodec+'"'):X.mimeType='video/x-flv; codecs="'+X.audioCodec+'"',X.isComplete()&&this._onMediaInfo(X)}var W=this._parseMP3AudioData(x,E+1,_-1,!1);if(W==null)return;var ie=this._timestampBase+T,q={unit:W,length:W.byteLength,dts:ie,pts:ie};U.samples.push(q),U.length+=W.length}}},C.prototype._parseAACAudioData=function(x,E,_){if(_<=1){d.default.w(this.TAG,"Flv: Invalid AAC packet, missing AACPacketType or/and Data!");return}var T={},D=new Uint8Array(x,E,_);return T.packetType=D[0],D[0]===0?T.data=this._parseAACAudioSpecificConfig(x,E+1,_-1):T.data=D.subarray(1),T},C.prototype._parseAACAudioSpecificConfig=function(x,E,_){var T=new Uint8Array(x,E,_),D=null,P=0,M=0,$=0,I=null;if(P=M=T[0]>>>3,$=(T[0]&7)<<1|T[1]>>>7,$<0||$>=this._mpegSamplingRates.length){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var N=this._mpegSamplingRates[$],j=(T[1]&120)>>>3;if(j<0||j>=8){this._onError(m.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}P===5&&(I=(T[1]&7)<<1|T[2]>>>7,(T[2]&124)>>>2);var U=self.navigator.userAgent.toLowerCase();return U.indexOf("firefox")!==-1?$>=6?(P=5,D=new Array(4),I=$-3):(P=2,D=new Array(2),I=$):U.indexOf("android")!==-1?(P=2,D=new Array(2),I=$):(P=5,I=$,D=new Array(4),$>=6?I=$-3:j===1&&(P=2,D=new Array(2),I=$)),D[0]=P<<3,D[0]|=($&15)>>>1,D[1]=($&15)<<7,D[1]|=(j&15)<<3,P===5&&(D[1]|=(I&15)>>>1,D[2]=(I&1)<<7,D[2]|=8,D[3]=0),{config:D,samplingRate:N,channelCount:j,codec:"mp4a.40."+P,originalCodec:"mp4a.40."+M}},C.prototype._parseMP3AudioData=function(x,E,_,T){if(_<4){d.default.w(this.TAG,"Flv: Invalid MP3 packet, header missing!");return}this._littleEndian;var D=new Uint8Array(x,E,_),P=null;if(T){if(D[0]!==255)return;var M=D[1]>>>3&3,$=(D[1]&6)>>1,I=(D[2]&240)>>>4,N=(D[2]&12)>>>2,j=D[3]>>>6&3,U=j!==3?2:1,z=0,G=0,X="mp3";switch(M){case 0:z=this._mpegAudioV25SampleRateTable[N];break;case 2:z=this._mpegAudioV20SampleRateTable[N];break;case 3:z=this._mpegAudioV10SampleRateTable[N];break}switch($){case 1:I>>4,$=P&15;if($!==7){this._onError(m.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+$);return}this._parseAVCVideoPacket(x,E+1,_-1,T,D,M)}},C.prototype._parseAVCVideoPacket=function(x,E,_,T,D,P){if(_<4){d.default.w(this.TAG,"Flv: Invalid AVC packet, missing AVCPacketType or/and CompositionTime");return}var M=this._littleEndian,$=new DataView(x,E,_),I=$.getUint8(0),N=$.getUint32(0,!M)&16777215,j=N<<8>>8;if(I===0)this._parseAVCDecoderConfigurationRecord(x,E+4,_-4);else if(I===1)this._parseAVCVideoData(x,E+4,_-4,T,D,P,j);else if(I!==2){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid video packet type "+I);return}},C.prototype._parseAVCDecoderConfigurationRecord=function(x,E,_){if(_<7){d.default.w(this.TAG,"Flv: Invalid AVCDecoderConfigurationRecord, lack of data!");return}var T=this._videoMetadata,D=this._videoTrack,P=this._littleEndian,M=new DataView(x,E,_);T?typeof T.avcc<"u"&&d.default.w(this.TAG,"Found another AVCDecoderConfigurationRecord!"):(this._hasVideo===!1&&this._hasVideoFlagOverrided===!1&&(this._hasVideo=!0,this._mediaInfo.hasVideo=!0),T=this._videoMetadata={},T.type="video",T.id=D.id,T.timescale=this._timescale,T.duration=this._duration);var $=M.getUint8(0),I=M.getUint8(1);if(M.getUint8(2),M.getUint8(3),$!==1||I===0){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(M.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(m.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));return}var N=M.getUint8(5)&31;if(N===0){this._onError(m.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else N>1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+N);for(var j=6,U=0;U1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+re);j++;for(var U=0;U=_){d.default.w(this.TAG,"Malformed Nalu near timestamp "+G+", offset = "+U+", dataSize = "+_);break}var ie=I.getUint32(U,!$);if(z===3&&(ie>>>=8),ie>_-z){d.default.w(this.TAG,"Malformed Nalus near timestamp "+G+", NaluSize > DataSize!");return}var ee=I.getUint8(U+z)&31;ee===5&&(X=!0);var W=new Uint8Array(x,E+U,z+ie),q={type:ee,data:W};N.push(q),j+=W.byteLength,U+=z+ie}if(N.length){var Q=this._videoTrack,ne={units:N,length:j,isKeyframe:X,dts:G,cts:M,pts:G+M};X&&(ne.fileposition=D),Q.samples.push(ne),Q.length+=j}},C})();l.default=k}),"./src/demux/sps-parser.js":(function(s,l,c){c.r(l);var d=c("./src/demux/exp-golomb.js"),h=(function(){function p(){}return p._ebsp2rbsp=function(m){for(var g=m,y=g.byteLength,S=new Uint8Array(y),k=0,C=0;C=2&&g[C]===3&&g[C-1]===0&&g[C-2]===0||(S[k]=g[C],k++);return new Uint8Array(S.buffer,0,k)},p.parseSPS=function(m){var g=p._ebsp2rbsp(m),y=new d.default(g);y.readByte();var S=y.readByte();y.readByte();var k=y.readByte();y.readUEG();var C=p.getProfileString(S),x=p.getLevelString(k),E=1,_=420,T=[0,420,422,444],D=8;if((S===100||S===110||S===122||S===244||S===44||S===83||S===86||S===118||S===128||S===138||S===144)&&(E=y.readUEG(),E===3&&y.readBits(1),E<=3&&(_=T[E]),D=y.readUEG()+8,y.readUEG(),y.readBits(1),y.readBool()))for(var P=E!==3?8:12,M=0;M0&&ve<16?(q=me[ve-1],Q=xe[ve-1]):ve===255&&(q=y.readByte()<<8|y.readByte(),Q=y.readByte()<<8|y.readByte())}if(y.readBool()&&y.readBool(),y.readBool()&&(y.readBits(4),y.readBool()&&y.readBits(24)),y.readBool()&&(y.readUEG(),y.readUEG()),y.readBool()){var Be=y.readBits(32),Ke=y.readBits(32);ae=y.readBool(),re=Ke,Ce=Be*2,ne=re/Ce}}var ze=1;(q!==1||Q!==1)&&(ze=q/Q);var be=0,_e=0;if(E===0)be=1,_e=2-z;else{var Ne=E===3?1:2,Se=E===1?2:1;be=Ne,_e=Se*(2-z)}var $e=(j+1)*16,Xe=(2-z)*((U+1)*16);$e-=(G+X)*be,Xe-=(ie+ee)*_e;var rt=Math.ceil($e*ze);return y.destroy(),y=null,{profile_string:C,level_string:x,bit_depth:D,ref_frames:N,chroma_format:_,chroma_format_string:p.getChromaFormatString(_),frame_rate:{fixed:ae,fps:ne,fps_den:Ce,fps_num:re},sar_ratio:{width:q,height:Q},codec_size:{width:$e,height:Xe},present_size:{width:rt,height:Xe}}},p._skipScalingList=function(m,g){for(var y=8,S=8,k=0,C=0;C=15048,C=d.default.msedge?k:!0;return self.fetch&&self.ReadableStream&&C}catch{return!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),y.prototype.destroy.call(this)},S.prototype.open=function(k,C){var x=this;this._dataSource=k,this._range=C;var E=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(E=k.redirectedURL);var _=this._seekHandler.getConfig(E,C),T=new self.Headers;if(typeof _.headers=="object"){var D=_.headers;for(var P in D)D.hasOwnProperty(P)&&T.append(P,D[P])}var M={method:"GET",headers:T,mode:"cors",cache:"default",referrerPolicy:"no-referrer-when-downgrade"};if(typeof this._config.headers=="object")for(var P in this._config.headers)T.append(P,this._config.headers[P]);k.cors===!1&&(M.mode="same-origin"),k.withCredentials&&(M.credentials="include"),k.referrerPolicy&&(M.referrerPolicy=k.referrerPolicy),self.AbortController&&(this._abortController=new self.AbortController,M.signal=this._abortController.signal),this._status=h.LoaderStatus.kConnecting,self.fetch(_.url,M).then(function($){if(x._requestAbort){x._status=h.LoaderStatus.kIdle,$.body.cancel();return}if($.ok&&$.status>=200&&$.status<=299){if($.url!==_.url&&x._onURLRedirect){var I=x._seekHandler.removeURLParameters($.url);x._onURLRedirect(I)}var N=$.headers.get("Content-Length");return N!=null&&(x._contentLength=parseInt(N),x._contentLength!==0&&x._onContentLengthKnown&&x._onContentLengthKnown(x._contentLength)),x._pump.call(x,$.body.getReader())}else if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:$.status,msg:$.statusText});else throw new p.RuntimeException("FetchStreamLoader: Http code invalid, "+$.status+" "+$.statusText)}).catch(function($){if(!(x._abortController&&x._abortController.signal.aborted))if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:$.message});else throw $})},S.prototype.abort=function(){if(this._requestAbort=!0,(this._status!==h.LoaderStatus.kBuffering||!d.default.chrome)&&this._abortController)try{this._abortController.abort()}catch{}},S.prototype._pump=function(k){var C=this;return k.read().then(function(x){if(x.done)if(C._contentLength!==null&&C._receivedLength0&&(this._stashInitialSize=D.stashInitialSize),this._stashUsed=0,this._stashSize=this._stashInitialSize,this._bufferSize=1024*1024*3,this._stashBuffer=new ArrayBuffer(this._bufferSize),this._stashByteStart=0,this._enableStash=!0,D.enableStashBuffer===!1&&(this._enableStash=!1),this._loader=null,this._loaderClass=null,this._seekHandler=null,this._dataSource=T,this._isWebSocketURL=/wss?:\/\/(.+?)/.test(T.url),this._refTotalLength=T.filesize?T.filesize:null,this._totalLength=this._refTotalLength,this._fullRequestFlag=!1,this._currentRange=null,this._redirectedURL=null,this._speedNormalized=0,this._speedSampler=new h.default,this._speedNormalizeList=[64,128,256,384,512,768,1024,1536,2048,3072,4096],this._isEarlyEofReconnecting=!1,this._paused=!1,this._resumeFrom=0,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._selectSeekHandler(),this._selectLoader(),this._createLoader()}return _.prototype.destroy=function(){this._loader.isWorking()&&this._loader.abort(),this._loader.destroy(),this._loader=null,this._loaderClass=null,this._dataSource=null,this._stashBuffer=null,this._stashUsed=this._stashSize=this._bufferSize=this._stashByteStart=0,this._currentRange=null,this._speedSampler=null,this._isEarlyEofReconnecting=!1,this._onDataArrival=null,this._onSeeked=null,this._onError=null,this._onComplete=null,this._onRedirect=null,this._onRecoveredEarlyEof=null,this._extraData=null},_.prototype.isWorking=function(){return this._loader&&this._loader.isWorking()&&!this._paused},_.prototype.isPaused=function(){return this._paused},Object.defineProperty(_.prototype,"status",{get:function(){return this._loader.status},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"extraData",{get:function(){return this._extraData},set:function(T){this._extraData=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onDataArrival",{get:function(){return this._onDataArrival},set:function(T){this._onDataArrival=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onSeeked",{get:function(){return this._onSeeked},set:function(T){this._onSeeked=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onError",{get:function(){return this._onError},set:function(T){this._onError=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onComplete",{get:function(){return this._onComplete},set:function(T){this._onComplete=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRedirect",{get:function(){return this._onRedirect},set:function(T){this._onRedirect=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"onRecoveredEarlyEof",{get:function(){return this._onRecoveredEarlyEof},set:function(T){this._onRecoveredEarlyEof=T},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentURL",{get:function(){return this._dataSource.url},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"hasRedirect",{get:function(){return this._redirectedURL!=null||this._dataSource.redirectedURL!=null},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentRedirectedURL",{get:function(){return this._redirectedURL||this._dataSource.redirectedURL},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"currentSpeed",{get:function(){return this._loaderClass===y.default?this._loader.currentSpeed:this._speedSampler.lastSecondKBps},enumerable:!1,configurable:!0}),Object.defineProperty(_.prototype,"loaderType",{get:function(){return this._loader.type},enumerable:!1,configurable:!0}),_.prototype._selectSeekHandler=function(){var T=this._config;if(T.seekType==="range")this._seekHandler=new k.default(this._config.rangeLoadZeroStart);else if(T.seekType==="param"){var D=T.seekParamStart||"bstart",P=T.seekParamEnd||"bend";this._seekHandler=new C.default(D,P)}else if(T.seekType==="custom"){if(typeof T.customSeekHandler!="function")throw new x.InvalidArgumentException("Custom seekType specified in config but invalid customSeekHandler!");this._seekHandler=new T.customSeekHandler}else throw new x.InvalidArgumentException("Invalid seekType in config: "+T.seekType)},_.prototype._selectLoader=function(){if(this._config.customLoader!=null)this._loaderClass=this._config.customLoader;else if(this._isWebSocketURL)this._loaderClass=S.default;else if(m.default.isSupported())this._loaderClass=m.default;else if(g.default.isSupported())this._loaderClass=g.default;else if(y.default.isSupported())this._loaderClass=y.default;else throw new x.RuntimeException("Your browser doesn't support xhr with arraybuffer responseType!")},_.prototype._createLoader=function(){this._loader=new this._loaderClass(this._seekHandler,this._config),this._loader.needStashBuffer===!1&&(this._enableStash=!1),this._loader.onContentLengthKnown=this._onContentLengthKnown.bind(this),this._loader.onURLRedirect=this._onURLRedirect.bind(this),this._loader.onDataArrival=this._onLoaderChunkArrival.bind(this),this._loader.onComplete=this._onLoaderComplete.bind(this),this._loader.onError=this._onLoaderError.bind(this)},_.prototype.open=function(T){this._currentRange={from:0,to:-1},T&&(this._currentRange.from=T),this._speedSampler.reset(),T||(this._fullRequestFlag=!0),this._loader.open(this._dataSource,Object.assign({},this._currentRange))},_.prototype.abort=function(){this._loader.abort(),this._paused&&(this._paused=!1,this._resumeFrom=0)},_.prototype.pause=function(){this.isWorking()&&(this._loader.abort(),this._stashUsed!==0?(this._resumeFrom=this._stashByteStart,this._currentRange.to=this._stashByteStart-1):this._resumeFrom=this._currentRange.to+1,this._stashUsed=0,this._stashByteStart=0,this._paused=!0)},_.prototype.resume=function(){if(this._paused){this._paused=!1;var T=this._resumeFrom;this._resumeFrom=0,this._internalSeek(T,!0)}},_.prototype.seek=function(T){this._paused=!1,this._stashUsed=0,this._stashByteStart=0,this._internalSeek(T,!0)},_.prototype._internalSeek=function(T,D){this._loader.isWorking()&&this._loader.abort(),this._flushStashBuffer(D),this._loader.destroy(),this._loader=null;var P={from:T,to:-1};this._currentRange={from:P.from,to:-1},this._speedSampler.reset(),this._stashSize=this._stashInitialSize,this._createLoader(),this._loader.open(this._dataSource,P),this._onSeeked&&this._onSeeked()},_.prototype.updateUrl=function(T){if(!T||typeof T!="string"||T.length===0)throw new x.InvalidArgumentException("Url must be a non-empty string!");this._dataSource.url=T},_.prototype._expandBuffer=function(T){for(var D=this._stashSize;D+1024*1024*10){var M=new Uint8Array(this._stashBuffer,0,this._stashUsed),$=new Uint8Array(P,0,D);$.set(M,0)}this._stashBuffer=P,this._bufferSize=D}},_.prototype._normalizeSpeed=function(T){var D=this._speedNormalizeList,P=D.length-1,M=0,$=0,I=P;if(T=D[M]&&T=512&&T<=1024?D=Math.floor(T*1.5):D=T*2,D>8192&&(D=8192);var P=D*1024+1024*1024*1;this._bufferSize0){var z=this._stashBuffer.slice(0,this._stashUsed),I=this._dispatchChunks(z,this._stashByteStart);if(I0){var U=new Uint8Array(z,I);j.set(U,0),this._stashUsed=U.byteLength,this._stashByteStart+=I}}else this._stashUsed=0,this._stashByteStart+=I;this._stashUsed+T.byteLength>this._bufferSize&&(this._expandBuffer(this._stashUsed+T.byteLength),j=new Uint8Array(this._stashBuffer,0,this._bufferSize)),j.set(new Uint8Array(T),this._stashUsed),this._stashUsed+=T.byteLength}else{var I=this._dispatchChunks(T,D);if(Ithis._bufferSize&&(this._expandBuffer(N),j=new Uint8Array(this._stashBuffer,0,this._bufferSize)),j.set(new Uint8Array(T,I),0),this._stashUsed+=N,this._stashByteStart=D+I}}}else if(this._stashUsed===0){var I=this._dispatchChunks(T,D);if(Ithis._bufferSize&&this._expandBuffer(N);var j=new Uint8Array(this._stashBuffer,0,this._bufferSize);j.set(new Uint8Array(T,I),0),this._stashUsed+=N,this._stashByteStart=D+I}}else{this._stashUsed+T.byteLength>this._bufferSize&&this._expandBuffer(this._stashUsed+T.byteLength);var j=new Uint8Array(this._stashBuffer,0,this._bufferSize);j.set(new Uint8Array(T),this._stashUsed),this._stashUsed+=T.byteLength;var I=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(I0){var U=new Uint8Array(this._stashBuffer,I);j.set(U,0)}this._stashUsed-=I,this._stashByteStart+=I}}},_.prototype._flushStashBuffer=function(T){if(this._stashUsed>0){var D=this._stashBuffer.slice(0,this._stashUsed),P=this._dispatchChunks(D,this._stashByteStart),M=D.byteLength-P;if(P0){var $=new Uint8Array(this._stashBuffer,0,this._bufferSize),I=new Uint8Array(D,P);$.set(I,0),this._stashUsed=I.byteLength,this._stashByteStart+=P}return 0}return this._stashUsed=0,this._stashByteStart=0,M}return 0},_.prototype._onLoaderComplete=function(T,D){this._flushStashBuffer(!0),this._onComplete&&this._onComplete(this._extraData)},_.prototype._onLoaderError=function(T,D){switch(d.default.e(this.TAG,"Loader error, code = "+D.code+", msg = "+D.msg),this._flushStashBuffer(!1),this._isEarlyEofReconnecting&&(this._isEarlyEofReconnecting=!1,T=p.LoaderErrors.UNRECOVERABLE_EARLY_EOF),T){case p.LoaderErrors.EARLY_EOF:{if(!this._config.isLive&&this._totalLength){var P=this._currentRange.to+1;P0)for(var k=g.split("&"),C=0;C0;x[0]!==this._startName&&x[0]!==this._endName&&(E&&(S+="&"),S+=k[C])}return S.length===0?m:m+"?"+S},h})();l.default=d}),"./src/io/range-seek-handler.js":(function(s,l,c){c.r(l);var d=(function(){function h(p){this._zeroStart=p||!1}return h.prototype.getConfig=function(p,m){var g={};if(m.from!==0||m.to!==-1){var y=void 0;m.to!==-1?y="bytes="+m.from.toString()+"-"+m.to.toString():y="bytes="+m.from.toString()+"-",g.Range=y}else this._zeroStart&&(g.Range="bytes=0-");return{url:p,headers:g}},h.prototype.removeURLParameters=function(p){return p},h})();l.default=d}),"./src/io/speed-sampler.js":(function(s,l,c){c.r(l);var d=(function(){function h(){this._firstCheckpoint=0,this._lastCheckpoint=0,this._intervalBytes=0,this._totalBytes=0,this._lastSecondBytes=0,self.performance&&self.performance.now?this._now=self.performance.now.bind(self.performance):this._now=Date.now}return h.prototype.reset=function(){this._firstCheckpoint=this._lastCheckpoint=0,this._totalBytes=this._intervalBytes=0,this._lastSecondBytes=0},h.prototype.addBytes=function(p){this._firstCheckpoint===0?(this._firstCheckpoint=this._now(),this._lastCheckpoint=this._firstCheckpoint,this._intervalBytes+=p,this._totalBytes+=p):this._now()-this._lastCheckpoint<1e3?(this._intervalBytes+=p,this._totalBytes+=p):(this._lastSecondBytes=this._intervalBytes,this._intervalBytes=p,this._totalBytes+=p,this._lastCheckpoint=this._now())},Object.defineProperty(h.prototype,"currentKBps",{get:function(){this.addBytes(0);var p=(this._now()-this._lastCheckpoint)/1e3;return p==0&&(p=1),this._intervalBytes/p/1024},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"lastSecondKBps",{get:function(){return this.addBytes(0),this._lastSecondBytes!==0?this._lastSecondBytes/1024:this._now()-this._lastCheckpoint>=500?this.currentKBps:0},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"averageKBps",{get:function(){var p=(this._now()-this._firstCheckpoint)/1e3;return this._totalBytes/p/1024},enumerable:!1,configurable:!0}),h})();l.default=d}),"./src/io/websocket-loader.js":(function(s,l,c){c.r(l);var d=c("./src/io/loader.js"),h=c("./src/utils/exception.js"),p=(function(){var g=function(y,S){return g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,C){k.__proto__=C}||function(k,C){for(var x in C)Object.prototype.hasOwnProperty.call(C,x)&&(k[x]=C[x])},g(y,S)};return function(y,S){if(typeof S!="function"&&S!==null)throw new TypeError("Class extends value "+String(S)+" is not a constructor or null");g(y,S);function k(){this.constructor=y}y.prototype=S===null?Object.create(S):(k.prototype=S.prototype,new k)}})(),m=(function(g){p(y,g);function y(){var S=g.call(this,"websocket-loader")||this;return S.TAG="WebSocketLoader",S._needStash=!0,S._ws=null,S._requestAbort=!1,S._receivedLength=0,S}return y.isSupported=function(){try{return typeof self.WebSocket<"u"}catch{return!1}},y.prototype.destroy=function(){this._ws&&this.abort(),g.prototype.destroy.call(this)},y.prototype.open=function(S){try{var k=this._ws=new self.WebSocket(S.url);k.binaryType="arraybuffer",k.onopen=this._onWebSocketOpen.bind(this),k.onclose=this._onWebSocketClose.bind(this),k.onmessage=this._onWebSocketMessage.bind(this),k.onerror=this._onWebSocketError.bind(this),this._status=d.LoaderStatus.kConnecting}catch(x){this._status=d.LoaderStatus.kError;var C={code:x.code,msg:x.message};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,C);else throw new h.RuntimeException(C.msg)}},y.prototype.abort=function(){var S=this._ws;S&&(S.readyState===0||S.readyState===1)&&(this._requestAbort=!0,S.close()),this._ws=null,this._status=d.LoaderStatus.kComplete},y.prototype._onWebSocketOpen=function(S){this._status=d.LoaderStatus.kBuffering},y.prototype._onWebSocketClose=function(S){if(this._requestAbort===!0){this._requestAbort=!1;return}this._status=d.LoaderStatus.kComplete,this._onComplete&&this._onComplete(0,this._receivedLength-1)},y.prototype._onWebSocketMessage=function(S){var k=this;if(S.data instanceof ArrayBuffer)this._dispatchArrayBuffer(S.data);else if(S.data instanceof Blob){var C=new FileReader;C.onload=function(){k._dispatchArrayBuffer(C.result)},C.readAsArrayBuffer(S.data)}else{this._status=d.LoaderStatus.kError;var x={code:-1,msg:"Unsupported WebSocket message type: "+S.data.constructor.name};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,x);else throw new h.RuntimeException(x.msg)}},y.prototype._dispatchArrayBuffer=function(S){var k=S,C=this._receivedLength;this._receivedLength+=k.byteLength,this._onDataArrival&&this._onDataArrival(k,C,this._receivedLength)},y.prototype._onWebSocketError=function(S){this._status=d.LoaderStatus.kError;var k={code:S.code,msg:S.message};if(this._onError)this._onError(d.LoaderErrors.EXCEPTION,k);else throw new h.RuntimeException(k.msg)},y})(d.BaseLoader);l.default=m}),"./src/io/xhr-moz-chunked-loader.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/io/loader.js"),p=c("./src/utils/exception.js"),m=(function(){var y=function(S,k){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(C[E]=x[E])},y(S,k)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");y(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),g=(function(y){m(S,y);function S(k,C){var x=y.call(this,"xhr-moz-chunked-loader")||this;return x.TAG="MozChunkedLoader",x._seekHandler=k,x._config=C,x._needStash=!0,x._xhr=null,x._requestAbort=!1,x._contentLength=null,x._receivedLength=0,x}return S.isSupported=function(){try{var k=new XMLHttpRequest;return k.open("GET","https://example.com",!0),k.responseType="moz-chunked-arraybuffer",k.responseType==="moz-chunked-arraybuffer"}catch(C){return d.default.w("MozChunkedLoader",C.message),!1}},S.prototype.destroy=function(){this.isWorking()&&this.abort(),this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onloadend=null,this._xhr.onerror=null,this._xhr=null),y.prototype.destroy.call(this)},S.prototype.open=function(k,C){this._dataSource=k,this._range=C;var x=k.url;this._config.reuseRedirectedURL&&k.redirectedURL!=null&&(x=k.redirectedURL);var E=this._seekHandler.getConfig(x,C);this._requestURL=E.url;var _=this._xhr=new XMLHttpRequest;if(_.open("GET",E.url,!0),_.responseType="moz-chunked-arraybuffer",_.onreadystatechange=this._onReadyStateChange.bind(this),_.onprogress=this._onProgress.bind(this),_.onloadend=this._onLoadEnd.bind(this),_.onerror=this._onXhrError.bind(this),k.withCredentials&&(_.withCredentials=!0),typeof E.headers=="object"){var T=E.headers;for(var D in T)T.hasOwnProperty(D)&&_.setRequestHeader(D,T[D])}if(typeof this._config.headers=="object"){var T=this._config.headers;for(var D in T)T.hasOwnProperty(D)&&_.setRequestHeader(D,T[D])}this._status=h.LoaderStatus.kConnecting,_.send()},S.prototype.abort=function(){this._requestAbort=!0,this._xhr&&this._xhr.abort(),this._status=h.LoaderStatus.kComplete},S.prototype._onReadyStateChange=function(k){var C=k.target;if(C.readyState===2){if(C.responseURL!=null&&C.responseURL!==this._requestURL&&this._onURLRedirect){var x=this._seekHandler.removeURLParameters(C.responseURL);this._onURLRedirect(x)}if(C.status!==0&&(C.status<200||C.status>299))if(this._status=h.LoaderStatus.kError,this._onError)this._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:C.status,msg:C.statusText});else throw new p.RuntimeException("MozChunkedLoader: Http code invalid, "+C.status+" "+C.statusText);else this._status=h.LoaderStatus.kBuffering}},S.prototype._onProgress=function(k){if(this._status!==h.LoaderStatus.kError){this._contentLength===null&&k.total!==null&&k.total!==0&&(this._contentLength=k.total,this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength));var C=k.target.response,x=this._range.from+this._receivedLength;this._receivedLength+=C.byteLength,this._onDataArrival&&this._onDataArrival(C,x,this._receivedLength)}},S.prototype._onLoadEnd=function(k){if(this._requestAbort===!0){this._requestAbort=!1;return}else if(this._status===h.LoaderStatus.kError)return;this._status=h.LoaderStatus.kComplete,this._onComplete&&this._onComplete(this._range.from,this._range.from+this._receivedLength-1)},S.prototype._onXhrError=function(k){this._status=h.LoaderStatus.kError;var C=0,x=null;if(this._contentLength&&k.loaded=this._contentLength&&(E=this._range.from+this._contentLength-1),this._currentRequestRange={from:x,to:E},this._internalOpen(this._dataSource,this._currentRequestRange)},k.prototype._internalOpen=function(C,x){this._lastTimeLoaded=0;var E=C.url;this._config.reuseRedirectedURL&&(this._currentRedirectedURL!=null?E=this._currentRedirectedURL:C.redirectedURL!=null&&(E=C.redirectedURL));var _=this._seekHandler.getConfig(E,x);this._currentRequestURL=_.url;var T=this._xhr=new XMLHttpRequest;if(T.open("GET",_.url,!0),T.responseType="arraybuffer",T.onreadystatechange=this._onReadyStateChange.bind(this),T.onprogress=this._onProgress.bind(this),T.onload=this._onLoad.bind(this),T.onerror=this._onXhrError.bind(this),C.withCredentials&&(T.withCredentials=!0),typeof _.headers=="object"){var D=_.headers;for(var P in D)D.hasOwnProperty(P)&&T.setRequestHeader(P,D[P])}if(typeof this._config.headers=="object"){var D=this._config.headers;for(var P in D)D.hasOwnProperty(P)&&T.setRequestHeader(P,D[P])}T.send()},k.prototype.abort=function(){this._requestAbort=!0,this._internalAbort(),this._status=p.LoaderStatus.kComplete},k.prototype._internalAbort=function(){this._xhr&&(this._xhr.onreadystatechange=null,this._xhr.onprogress=null,this._xhr.onload=null,this._xhr.onerror=null,this._xhr.abort(),this._xhr=null)},k.prototype._onReadyStateChange=function(C){var x=C.target;if(x.readyState===2){if(x.responseURL!=null){var E=this._seekHandler.removeURLParameters(x.responseURL);x.responseURL!==this._currentRequestURL&&E!==this._currentRedirectedURL&&(this._currentRedirectedURL=E,this._onURLRedirect&&this._onURLRedirect(E))}if(x.status>=200&&x.status<=299){if(this._waitForTotalLength)return;this._status=p.LoaderStatus.kBuffering}else if(this._status=p.LoaderStatus.kError,this._onError)this._onError(p.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:x.status,msg:x.statusText});else throw new m.RuntimeException("RangeLoader: Http code invalid, "+x.status+" "+x.statusText)}},k.prototype._onProgress=function(C){if(this._status!==p.LoaderStatus.kError){if(this._contentLength===null){var x=!1;if(this._waitForTotalLength){this._waitForTotalLength=!1,this._totalLengthReceived=!0,x=!0;var E=C.total;this._internalAbort(),E!=null&E!==0&&(this._totalLength=E)}if(this._range.to===-1?this._contentLength=this._totalLength-this._range.from:this._contentLength=this._range.to-this._range.from+1,x){this._openSubRange();return}this._onContentLengthKnown&&this._onContentLengthKnown(this._contentLength)}var _=C.loaded-this._lastTimeLoaded;this._lastTimeLoaded=C.loaded,this._speedSampler.addBytes(_)}},k.prototype._normalizeSpeed=function(C){var x=this._chunkSizeKBList,E=x.length-1,_=0,T=0,D=E;if(C=x[_]&&C=3&&(x=this._speedSampler.currentKBps)),x!==0){var E=this._normalizeSpeed(x);this._currentSpeedNormalized!==E&&(this._currentSpeedNormalized=E,this._currentChunkSizeKB=E)}var _=C.target.response,T=this._range.from+this._receivedLength;this._receivedLength+=_.byteLength;var D=!1;this._contentLength!=null&&this._receivedLength0&&this._receivedLength0&&(this._requestSetTime=!0,this._mediaElement.currentTime=0),this._transmuxer=new y.default(this._mediaDataSource,this._config),this._transmuxer.on(S.default.INIT_SEGMENT,function(M,$){P._msectl.appendInitSegment($)}),this._transmuxer.on(S.default.MEDIA_SEGMENT,function(M,$){if(P._msectl.appendMediaSegment($),P._config.lazyLoad&&!P._config.isLive){var I=P._mediaElement.currentTime;$.info.endDts>=(I+P._config.lazyLoadMaxDuration)*1e3&&P._progressChecker==null&&(p.default.v(P.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),P._suspendTransmuxer())}}),this._transmuxer.on(S.default.LOADING_COMPLETE,function(){P._msectl.endOfStream(),P._emitter.emit(g.default.LOADING_COMPLETE)}),this._transmuxer.on(S.default.RECOVERED_EARLY_EOF,function(){P._emitter.emit(g.default.RECOVERED_EARLY_EOF)}),this._transmuxer.on(S.default.IO_ERROR,function(M,$){P._emitter.emit(g.default.ERROR,x.ErrorTypes.NETWORK_ERROR,M,$)}),this._transmuxer.on(S.default.DEMUX_ERROR,function(M,$){P._emitter.emit(g.default.ERROR,x.ErrorTypes.MEDIA_ERROR,M,{code:-1,msg:$})}),this._transmuxer.on(S.default.MEDIA_INFO,function(M){P._mediaInfo=M,P._emitter.emit(g.default.MEDIA_INFO,Object.assign({},M))}),this._transmuxer.on(S.default.METADATA_ARRIVED,function(M){P._emitter.emit(g.default.METADATA_ARRIVED,M)}),this._transmuxer.on(S.default.SCRIPTDATA_ARRIVED,function(M){P._emitter.emit(g.default.SCRIPTDATA_ARRIVED,M)}),this._transmuxer.on(S.default.STATISTICS_INFO,function(M){P._statisticsInfo=P._fillStatisticsInfo(M),P._emitter.emit(g.default.STATISTICS_INFO,Object.assign({},P._statisticsInfo))}),this._transmuxer.on(S.default.RECOMMEND_SEEKPOINT,function(M){P._mediaElement&&!P._config.accurateSeek&&(P._requestSetTime=!0,P._mediaElement.currentTime=M/1e3)}),this._transmuxer.open()}},D.prototype.unload=function(){this._mediaElement&&this._mediaElement.pause(),this._msectl&&this._msectl.seek(0),this._transmuxer&&(this._transmuxer.close(),this._transmuxer.destroy(),this._transmuxer=null)},D.prototype.play=function(){return this._mediaElement.play()},D.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(D.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(P){this._mediaElement.volume=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(P){this._mediaElement.muted=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(P){this._mediaElement?this._internalSeek(P):this._pendingSeekTime=P},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"mediaInfo",{get:function(){return Object.assign({},this._mediaInfo)},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"statisticsInfo",{get:function(){return this._statisticsInfo==null&&(this._statisticsInfo={}),this._statisticsInfo=this._fillStatisticsInfo(this._statisticsInfo),Object.assign({},this._statisticsInfo)},enumerable:!1,configurable:!0}),D.prototype._fillStatisticsInfo=function(P){if(P.playerType=this._type,!(this._mediaElement instanceof HTMLVideoElement))return P;var M=!0,$=0,I=0;if(this._mediaElement.getVideoPlaybackQuality){var N=this._mediaElement.getVideoPlaybackQuality();$=N.totalVideoFrames,I=N.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?($=this._mediaElement.webkitDecodedFrameCount,I=this._mediaElement.webkitDroppedFrameCount):M=!1;return M&&(P.decodedFrames=$,P.droppedFrames=I),P},D.prototype._onmseUpdateEnd=function(){if(!(!this._config.lazyLoad||this._config.isLive)){for(var P=this._mediaElement.buffered,M=this._mediaElement.currentTime,$=0,I=0;I=M+this._config.lazyLoadMaxDuration&&this._progressChecker==null&&(p.default.v(this.TAG,"Maximum buffering duration exceeded, suspend transmuxing task"),this._suspendTransmuxer())}},D.prototype._onmseBufferFull=function(){p.default.v(this.TAG,"MSE SourceBuffer is full, suspend transmuxing task"),this._progressChecker==null&&this._suspendTransmuxer()},D.prototype._suspendTransmuxer=function(){this._transmuxer&&(this._transmuxer.pause(),this._progressChecker==null&&(this._progressChecker=window.setInterval(this._checkProgressAndResume.bind(this),1e3)))},D.prototype._checkProgressAndResume=function(){for(var P=this._mediaElement.currentTime,M=this._mediaElement.buffered,$=!1,I=0;I=N&&P=j-this._config.lazyLoadRecoverDuration&&($=!0);break}}$&&(window.clearInterval(this._progressChecker),this._progressChecker=null,$&&(p.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},D.prototype._isTimepointBuffered=function(P){for(var M=this._mediaElement.buffered,$=0;$=I&&P0){var N=this._mediaElement.buffered.start(0);(N<1&&P0&&M.currentTime<$.start(0)&&(p.default.w(this.TAG,"Playback seems stuck at "+M.currentTime+", seek to "+$.start(0)),this._requestSetTime=!0,this._mediaElement.currentTime=$.start(0),this._mediaElement.removeEventListener("progress",this.e.onvProgress))}else this._mediaElement.removeEventListener("progress",this.e.onvProgress)},D.prototype._onvLoadedMetadata=function(P){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null)},D.prototype._onvSeeking=function(P){var M=this._mediaElement.currentTime,$=this._mediaElement.buffered;if(this._requestSetTime){this._requestSetTime=!1;return}if(M<1&&$.length>0){var I=$.start(0);if(I<1&&M0&&(this._mediaElement.currentTime=0),this._mediaElement.preload="auto",this._mediaElement.load(),this._statisticsReporter=window.setInterval(this._reportStatisticsInfo.bind(this),this._config.statisticsInfoReportInterval)},S.prototype.unload=function(){this._mediaElement&&(this._mediaElement.src="",this._mediaElement.removeAttribute("src")),this._statisticsReporter!=null&&(window.clearInterval(this._statisticsReporter),this._statisticsReporter=null)},S.prototype.play=function(){return this._mediaElement.play()},S.prototype.pause=function(){this._mediaElement.pause()},Object.defineProperty(S.prototype,"type",{get:function(){return this._type},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"buffered",{get:function(){return this._mediaElement.buffered},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"duration",{get:function(){return this._mediaElement.duration},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"volume",{get:function(){return this._mediaElement.volume},set:function(k){this._mediaElement.volume=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"muted",{get:function(){return this._mediaElement.muted},set:function(k){this._mediaElement.muted=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"currentTime",{get:function(){return this._mediaElement?this._mediaElement.currentTime:0},set:function(k){this._mediaElement?this._mediaElement.currentTime=k:this._pendingSeekTime=k},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"mediaInfo",{get:function(){var k=this._mediaElement instanceof HTMLAudioElement?"audio/":"video/",C={mimeType:k+this._mediaDataSource.type};return this._mediaElement&&(C.duration=Math.floor(this._mediaElement.duration*1e3),this._mediaElement instanceof HTMLVideoElement&&(C.width=this._mediaElement.videoWidth,C.height=this._mediaElement.videoHeight)),C},enumerable:!1,configurable:!0}),Object.defineProperty(S.prototype,"statisticsInfo",{get:function(){var k={playerType:this._type,url:this._mediaDataSource.url};if(!(this._mediaElement instanceof HTMLVideoElement))return k;var C=!0,x=0,E=0;if(this._mediaElement.getVideoPlaybackQuality){var _=this._mediaElement.getVideoPlaybackQuality();x=_.totalVideoFrames,E=_.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(x=this._mediaElement.webkitDecodedFrameCount,E=this._mediaElement.webkitDroppedFrameCount):C=!1;return C&&(k.decodedFrames=x,k.droppedFrames=E),k},enumerable:!1,configurable:!0}),S.prototype._onvLoadedMetadata=function(k){this._pendingSeekTime!=null&&(this._mediaElement.currentTime=this._pendingSeekTime,this._pendingSeekTime=null),this._emitter.emit(p.default.MEDIA_INFO,this.mediaInfo)},S.prototype._reportStatisticsInfo=function(){this._emitter.emit(p.default.STATISTICS_INFO,this.statisticsInfo)},S})();l.default=y}),"./src/player/player-errors.js":(function(s,l,c){c.r(l),c.d(l,{ErrorTypes:function(){return p},ErrorDetails:function(){return m}});var d=c("./src/io/loader.js"),h=c("./src/demux/demux-errors.js"),p={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},m={NETWORK_EXCEPTION:d.LoaderErrors.EXCEPTION,NETWORK_STATUS_CODE_INVALID:d.LoaderErrors.HTTP_STATUS_CODE_INVALID,NETWORK_TIMEOUT:d.LoaderErrors.CONNECTING_TIMEOUT,NETWORK_UNRECOVERABLE_EARLY_EOF:d.LoaderErrors.UNRECOVERABLE_EARLY_EOF,MEDIA_MSE_ERROR:"MediaMSEError",MEDIA_FORMAT_ERROR:h.default.FORMAT_ERROR,MEDIA_FORMAT_UNSUPPORTED:h.default.FORMAT_UNSUPPORTED,MEDIA_CODEC_UNSUPPORTED:h.default.CODEC_UNSUPPORTED}}),"./src/player/player-events.js":(function(s,l,c){c.r(l);var d={ERROR:"error",LOADING_COMPLETE:"loading_complete",RECOVERED_EARLY_EOF:"recovered_early_eof",MEDIA_INFO:"media_info",METADATA_ARRIVED:"metadata_arrived",SCRIPTDATA_ARRIVED:"scriptdata_arrived",STATISTICS_INFO:"statistics_info"};l.default=d}),"./src/remux/aac-silent.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.getSilentFrame=function(p,m){if(p==="mp4a.40.2"){if(m===1)return new Uint8Array([0,200,0,128,35,128]);if(m===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(m===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(m===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(m===5)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(m===6)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224])}else{if(m===1)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===2)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(m===3)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},h})();l.default=d}),"./src/remux/mp4-generator.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.init=function(){h.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[],".mp3":[]};for(var p in h.types)h.types.hasOwnProperty(p)&&(h.types[p]=[p.charCodeAt(0),p.charCodeAt(1),p.charCodeAt(2),p.charCodeAt(3)]);var m=h.constants={};m.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),m.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),m.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),m.STSC=m.STCO=m.STTS,m.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),m.HDLR_VIDEO=new Uint8Array([0,0,0,0,0,0,0,0,118,105,100,101,0,0,0,0,0,0,0,0,0,0,0,0,86,105,100,101,111,72,97,110,100,108,101,114,0]),m.HDLR_AUDIO=new Uint8Array([0,0,0,0,0,0,0,0,115,111,117,110,0,0,0,0,0,0,0,0,0,0,0,0,83,111,117,110,100,72,97,110,100,108,101,114,0]),m.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),m.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),m.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},h.box=function(p){for(var m=8,g=null,y=Array.prototype.slice.call(arguments,1),S=y.length,k=0;k>>24&255,g[1]=m>>>16&255,g[2]=m>>>8&255,g[3]=m&255,g.set(p,4);for(var C=8,k=0;k>>24&255,p>>>16&255,p>>>8&255,p&255,m>>>24&255,m>>>16&255,m>>>8&255,m&255,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]))},h.trak=function(p){return h.box(h.types.trak,h.tkhd(p),h.mdia(p))},h.tkhd=function(p){var m=p.id,g=p.duration,y=p.presentWidth,S=p.presentHeight;return h.box(h.types.tkhd,new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255,0,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,g&255,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,y>>>8&255,y&255,0,0,S>>>8&255,S&255,0,0]))},h.mdia=function(p){return h.box(h.types.mdia,h.mdhd(p),h.hdlr(p),h.minf(p))},h.mdhd=function(p){var m=p.timescale,g=p.duration;return h.box(h.types.mdhd,new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255,g>>>24&255,g>>>16&255,g>>>8&255,g&255,85,196,0,0]))},h.hdlr=function(p){var m=null;return p.type==="audio"?m=h.constants.HDLR_AUDIO:m=h.constants.HDLR_VIDEO,h.box(h.types.hdlr,m)},h.minf=function(p){var m=null;return p.type==="audio"?m=h.box(h.types.smhd,h.constants.SMHD):m=h.box(h.types.vmhd,h.constants.VMHD),h.box(h.types.minf,m,h.dinf(),h.stbl(p))},h.dinf=function(){var p=h.box(h.types.dinf,h.box(h.types.dref,h.constants.DREF));return p},h.stbl=function(p){var m=h.box(h.types.stbl,h.stsd(p),h.box(h.types.stts,h.constants.STTS),h.box(h.types.stsc,h.constants.STSC),h.box(h.types.stsz,h.constants.STSZ),h.box(h.types.stco,h.constants.STCO));return m},h.stsd=function(p){return p.type==="audio"?p.codec==="mp3"?h.box(h.types.stsd,h.constants.STSD_PREFIX,h.mp3(p)):h.box(h.types.stsd,h.constants.STSD_PREFIX,h.mp4a(p)):h.box(h.types.stsd,h.constants.STSD_PREFIX,h.avc1(p))},h.mp3=function(p){var m=p.channelCount,g=p.audioSampleRate,y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types[".mp3"],y)},h.mp4a=function(p){var m=p.channelCount,g=p.audioSampleRate,y=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,m,0,16,0,0,0,0,g>>>8&255,g&255,0,0]);return h.box(h.types.mp4a,y,h.esds(p))},h.esds=function(p){var m=p.config||[],g=m.length,y=new Uint8Array([0,0,0,0,3,23+g,0,1,0,4,15+g,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([g]).concat(m).concat([6,1,2]));return h.box(h.types.esds,y)},h.avc1=function(p){var m=p.avcc,g=p.codecWidth,y=p.codecHeight,S=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,g>>>8&255,g&255,y>>>8&255,y&255,0,72,0,0,0,72,0,0,0,0,0,0,0,1,10,120,113,113,47,102,108,118,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,255,255]);return h.box(h.types.avc1,S,h.box(h.types.avcC,m))},h.mvex=function(p){return h.box(h.types.mvex,h.trex(p))},h.trex=function(p){var m=p.id,g=new Uint8Array([0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return h.box(h.types.trex,g)},h.moof=function(p,m){return h.box(h.types.moof,h.mfhd(p.sequenceNumber),h.traf(p,m))},h.mfhd=function(p){var m=new Uint8Array([0,0,0,0,p>>>24&255,p>>>16&255,p>>>8&255,p&255]);return h.box(h.types.mfhd,m)},h.traf=function(p,m){var g=p.id,y=h.box(h.types.tfhd,new Uint8Array([0,0,0,0,g>>>24&255,g>>>16&255,g>>>8&255,g&255])),S=h.box(h.types.tfdt,new Uint8Array([0,0,0,0,m>>>24&255,m>>>16&255,m>>>8&255,m&255])),k=h.sdtp(p),C=h.trun(p,k.byteLength+16+16+8+16+8+8);return h.box(h.types.traf,y,S,C,k)},h.sdtp=function(p){for(var m=p.samples||[],g=m.length,y=new Uint8Array(4+g),S=0;S>>24&255,y>>>16&255,y>>>8&255,y&255,m>>>24&255,m>>>16&255,m>>>8&255,m&255],0);for(var C=0;C>>24&255,x>>>16&255,x>>>8&255,x&255,E>>>24&255,E>>>16&255,E>>>8&255,E&255,_.isLeading<<2|_.dependsOn,_.isDependedOn<<6|_.hasRedundancy<<4|_.isNonSync,0,0,T>>>24&255,T>>>16&255,T>>>8&255,T&255],12+16*C)}return h.box(h.types.trun,k)},h.mdat=function(p){return h.box(h.types.mdat,p)},h})();d.init(),l.default=d}),"./src/remux/mp4-remuxer.js":(function(s,l,c){c.r(l);var d=c("./src/utils/logger.js"),h=c("./src/remux/mp4-generator.js"),p=c("./src/remux/aac-silent.js"),m=c("./src/utils/browser.js"),g=c("./src/core/media-segment-info.js"),y=c("./src/utils/exception.js"),S=(function(){function k(C){this.TAG="MP4Remuxer",this._config=C,this._isLive=C.isLive===!0,this._dtsBase=-1,this._dtsBaseInited=!1,this._audioDtsBase=1/0,this._videoDtsBase=1/0,this._audioNextDts=void 0,this._videoNextDts=void 0,this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList=new g.MediaSegmentInfoList("audio"),this._videoSegmentInfoList=new g.MediaSegmentInfoList("video"),this._onInitSegment=null,this._onMediaSegment=null,this._forceFirstIDR=!!(m.default.chrome&&(m.default.version.major<50||m.default.version.major===50&&m.default.version.build<2661)),this._fillSilentAfterSeek=m.default.msedge||m.default.msie,this._mp3UseMpegAudio=!m.default.firefox,this._fillAudioTimestampGap=this._config.fixAudioTimestampGap}return k.prototype.destroy=function(){this._dtsBase=-1,this._dtsBaseInited=!1,this._audioMeta=null,this._videoMeta=null,this._audioSegmentInfoList.clear(),this._audioSegmentInfoList=null,this._videoSegmentInfoList.clear(),this._videoSegmentInfoList=null,this._onInitSegment=null,this._onMediaSegment=null},k.prototype.bindDataSource=function(C){return C.onDataAvailable=this.remux.bind(this),C.onTrackMetadata=this._onTrackMetadataReceived.bind(this),this},Object.defineProperty(k.prototype,"onInitSegment",{get:function(){return this._onInitSegment},set:function(C){this._onInitSegment=C},enumerable:!1,configurable:!0}),Object.defineProperty(k.prototype,"onMediaSegment",{get:function(){return this._onMediaSegment},set:function(C){this._onMediaSegment=C},enumerable:!1,configurable:!0}),k.prototype.insertDiscontinuity=function(){this._audioNextDts=this._videoNextDts=void 0},k.prototype.seek=function(C){this._audioStashedLastSample=null,this._videoStashedLastSample=null,this._videoSegmentInfoList.clear(),this._audioSegmentInfoList.clear()},k.prototype.remux=function(C,x){if(!this._onMediaSegment)throw new y.IllegalStateException("MP4Remuxer: onMediaSegment callback must be specificed!");this._dtsBaseInited||this._calculateDtsBase(C,x),this._remuxVideo(x),this._remuxAudio(C)},k.prototype._onTrackMetadataReceived=function(C,x){var E=null,_="mp4",T=x.codec;if(C==="audio")this._audioMeta=x,x.codec==="mp3"&&this._mp3UseMpegAudio?(_="mpeg",T="",E=new Uint8Array):E=h.default.generateInitSegment(x);else if(C==="video")this._videoMeta=x,E=h.default.generateInitSegment(x);else return;if(!this._onInitSegment)throw new y.IllegalStateException("MP4Remuxer: onInitSegment callback must be specified!");this._onInitSegment(C,{type:C,data:E.buffer,codec:T,container:C+"/"+_,mediaDuration:x.duration})},k.prototype._calculateDtsBase=function(C,x){this._dtsBaseInited||(C.samples&&C.samples.length&&(this._audioDtsBase=C.samples[0].dts),x.samples&&x.samples.length&&(this._videoDtsBase=x.samples[0].dts),this._dtsBase=Math.min(this._audioDtsBase,this._videoDtsBase),this._dtsBaseInited=!0)},k.prototype.flushStashedSamples=function(){var C=this._videoStashedLastSample,x=this._audioStashedLastSample,E={type:"video",id:1,sequenceNumber:0,samples:[],length:0};C!=null&&(E.samples.push(C),E.length=C.length);var _={type:"audio",id:2,sequenceNumber:0,samples:[],length:0};x!=null&&(_.samples.push(x),_.length=x.length),this._videoStashedLastSample=null,this._audioStashedLastSample=null,this._remuxVideo(E,!0),this._remuxAudio(_,!0)},k.prototype._remuxAudio=function(C,x){if(this._audioMeta!=null){var E=C,_=E.samples,T=void 0,D=-1,P=-1,M=this._audioMeta.refSampleDuration,$=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,I=this._dtsBaseInited&&this._audioNextDts===void 0,N=!1;if(!(!_||_.length===0)&&!(_.length===1&&!x)){var j=0,U=null,z=0;$?(j=0,z=E.length):(j=8,z=8+E.length);var G=null;if(_.length>1&&(G=_.pop(),z-=G.length),this._audioStashedLastSample!=null){var X=this._audioStashedLastSample;this._audioStashedLastSample=null,_.unshift(X),z+=X.length}G!=null&&(this._audioStashedLastSample=G);var ie=_[0].dts-this._dtsBase;if(this._audioNextDts)T=ie-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())T=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(N=!0);else{var ee=this._audioSegmentInfoList.getLastSampleBefore(ie);if(ee!=null){var W=ie-(ee.originalDts+ee.duration);W<=3&&(W=0);var q=ee.dts+ee.duration+W;T=ie-q}else T=0}if(N){var Q=ie-T,ne=this._videoSegmentInfoList.getLastSegmentBefore(ie);if(ne!=null&&ne.beginDts=_e*M&&this._fillAudioTimestampGap&&!m.default.safari){Be=!0;var Ne=Math.floor(T/M);d.default.w(this.TAG,`Large audio timestamp gap detected, may cause AV sync to drift. Silent frames will be generated to avoid unsync. `+("originalDts: "+xe+" ms, curRefDts: "+be+" ms, ")+("dtsCorrection: "+Math.round(T)+" ms, generate: "+Ne+" frames")),re=Math.floor(be),ze=Math.floor(be+M)-re;var ae=p.default.getSilentFrame(this._audioMeta.originalCodec,this._audioMeta.channelCount);ae==null&&(d.default.w(this.TAG,"Unable to generate silent frame for "+(this._audioMeta.originalCodec+" with "+this._audioMeta.channelCount+" channels, repeat last frame")),ae=me),Ke=[];for(var Se=0;Se=1?ze=we[we.length-1].duration:ze=Math.floor(M);this._audioNextDts=re+ze}D===-1&&(D=re),we.push({dts:re,pts:re,cts:0,unit:X.unit,size:X.unit.byteLength,duration:ze,originalDts:xe,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Be&&we.push.apply(we,Ke)}}if(we.length===0){E.samples=[],E.length=0;return}$?U=new Uint8Array(z):(U=new Uint8Array(z),U[0]=z>>>24&255,U[1]=z>>>16&255,U[2]=z>>>8&255,U[3]=z&255,U.set(h.default.types.mdat,4));for(var ve=0;ve1&&(U=_.pop(),j-=U.length),this._videoStashedLastSample!=null){var z=this._videoStashedLastSample;this._videoStashedLastSample=null,_.unshift(z),j+=z.length}U!=null&&(this._videoStashedLastSample=U);var G=_[0].dts-this._dtsBase;if(this._videoNextDts)T=G-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())T=0;else{var X=this._videoSegmentInfoList.getLastSampleBefore(G);if(X!=null){var ie=G-(X.originalDts+X.duration);ie<=3&&(ie=0);var ee=X.dts+X.duration+ie;T=G-ee}else T=0}for(var W=new g.MediaSegmentInfo,q=[],Q=0;Q<_.length;Q++){var z=_[Q],ne=z.dts-this._dtsBase,ae=z.isKeyframe,re=ne-T,Ce=z.cts,we=re+Ce;D===-1&&(D=re,M=we);var ve=0;if(Q!==_.length-1){var me=_[Q+1].dts-this._dtsBase-T;ve=me-re}else if(U!=null){var me=U.dts-this._dtsBase-T;ve=me-re}else q.length>=1?ve=q[q.length-1].duration:ve=Math.floor(this._videoMeta.refSampleDuration);if(ae){var xe=new g.SampleInfo(re,we,ve,z.dts,!0);xe.fileposition=z.fileposition,W.appendSyncPoint(xe)}q.push({dts:re,pts:we,cts:Ce,units:z.units,size:z.length,isKeyframe:ae,duration:ve,originalDts:ne,flags:{isLeading:0,dependsOn:ae?2:1,isDependedOn:ae?1:0,hasRedundancy:0,isNonSync:ae?0:1}})}N=new Uint8Array(j),N[0]=j>>>24&255,N[1]=j>>>16&255,N[2]=j>>>8&255,N[3]=j&255,N.set(h.default.types.mdat,4);for(var Q=0;Q=0&&/(rv)(?::| )([\w.]+)/.exec(p)||p.indexOf("compatible")<0&&/(firefox)[ \/]([\w.]+)/.exec(p)||[],g=/(ipad)/.exec(p)||/(ipod)/.exec(p)||/(windows phone)/.exec(p)||/(iphone)/.exec(p)||/(kindle)/.exec(p)||/(android)/.exec(p)||/(windows)/.exec(p)||/(mac)/.exec(p)||/(linux)/.exec(p)||/(cros)/.exec(p)||[],y={browser:m[5]||m[3]||m[1]||"",version:m[2]||m[4]||"0",majorVersion:m[4]||m[2]||"0",platform:g[0]||""},S={};if(y.browser){S[y.browser]=!0;var k=y.majorVersion.split(".");S.version={major:parseInt(y.majorVersion,10),string:y.version},k.length>1&&(S.version.minor=parseInt(k[1],10)),k.length>2&&(S.version.build=parseInt(k[2],10))}if(y.platform&&(S[y.platform]=!0),(S.chrome||S.opr||S.safari)&&(S.webkit=!0),S.rv||S.iemobile){S.rv&&delete S.rv;var C="msie";y.browser=C,S[C]=!0}if(S.edge){delete S.edge;var x="msedge";y.browser=x,S[x]=!0}if(S.opr){var E="opera";y.browser=E,S[E]=!0}if(S.safari&&S.android){var _="android";y.browser=_,S[_]=!0}S.name=y.browser,S.platform=y.platform;for(var T in d)d.hasOwnProperty(T)&&delete d[T];Object.assign(d,S)}h(),l.default=d}),"./src/utils/exception.js":(function(s,l,c){c.r(l),c.d(l,{RuntimeException:function(){return h},IllegalStateException:function(){return p},InvalidArgumentException:function(){return m},NotImplementedException:function(){return g}});var d=(function(){var y=function(S,k){return y=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(C,x){C.__proto__=x}||function(C,x){for(var E in x)Object.prototype.hasOwnProperty.call(x,E)&&(C[E]=x[E])},y(S,k)};return function(S,k){if(typeof k!="function"&&k!==null)throw new TypeError("Class extends value "+String(k)+" is not a constructor or null");y(S,k);function C(){this.constructor=S}S.prototype=k===null?Object.create(k):(C.prototype=k.prototype,new C)}})(),h=(function(){function y(S){this._message=S}return Object.defineProperty(y.prototype,"name",{get:function(){return"RuntimeException"},enumerable:!1,configurable:!0}),Object.defineProperty(y.prototype,"message",{get:function(){return this._message},enumerable:!1,configurable:!0}),y.prototype.toString=function(){return this.name+": "+this.message},y})(),p=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"IllegalStateException"},enumerable:!1,configurable:!0}),S})(h),m=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"InvalidArgumentException"},enumerable:!1,configurable:!0}),S})(h),g=(function(y){d(S,y);function S(k){return y.call(this,k)||this}return Object.defineProperty(S.prototype,"name",{get:function(){return"NotImplementedException"},enumerable:!1,configurable:!0}),S})(h)}),"./src/utils/logger.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=(function(){function m(){}return m.e=function(g,y){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+y;m.ENABLE_CALLBACK&&m.emitter.emit("log","error",S),m.ENABLE_ERROR&&(console.error?console.error(S):console.warn?console.warn(S):console.log(S))},m.i=function(g,y){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+y;m.ENABLE_CALLBACK&&m.emitter.emit("log","info",S),m.ENABLE_INFO&&(console.info?console.info(S):console.log(S))},m.w=function(g,y){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+y;m.ENABLE_CALLBACK&&m.emitter.emit("log","warn",S),m.ENABLE_WARN&&(console.warn?console.warn(S):console.log(S))},m.d=function(g,y){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+y;m.ENABLE_CALLBACK&&m.emitter.emit("log","debug",S),m.ENABLE_DEBUG&&(console.debug?console.debug(S):console.log(S))},m.v=function(g,y){(!g||m.FORCE_GLOBAL_TAG)&&(g=m.GLOBAL_TAG);var S="["+g+"] > "+y;m.ENABLE_CALLBACK&&m.emitter.emit("log","verbose",S),m.ENABLE_VERBOSE&&console.log(S)},m})();p.GLOBAL_TAG="flv.js",p.FORCE_GLOBAL_TAG=!1,p.ENABLE_ERROR=!0,p.ENABLE_INFO=!0,p.ENABLE_WARN=!0,p.ENABLE_DEBUG=!0,p.ENABLE_VERBOSE=!0,p.ENABLE_CALLBACK=!1,p.emitter=new(h()),l.default=p}),"./src/utils/logging-control.js":(function(s,l,c){c.r(l);var d=c("./node_modules/events/events.js"),h=c.n(d),p=c("./src/utils/logger.js"),m=(function(){function g(){}return Object.defineProperty(g,"forceGlobalTag",{get:function(){return p.default.FORCE_GLOBAL_TAG},set:function(y){p.default.FORCE_GLOBAL_TAG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"globalTag",{get:function(){return p.default.GLOBAL_TAG},set:function(y){p.default.GLOBAL_TAG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableAll",{get:function(){return p.default.ENABLE_VERBOSE&&p.default.ENABLE_DEBUG&&p.default.ENABLE_INFO&&p.default.ENABLE_WARN&&p.default.ENABLE_ERROR},set:function(y){p.default.ENABLE_VERBOSE=y,p.default.ENABLE_DEBUG=y,p.default.ENABLE_INFO=y,p.default.ENABLE_WARN=y,p.default.ENABLE_ERROR=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableDebug",{get:function(){return p.default.ENABLE_DEBUG},set:function(y){p.default.ENABLE_DEBUG=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableVerbose",{get:function(){return p.default.ENABLE_VERBOSE},set:function(y){p.default.ENABLE_VERBOSE=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableInfo",{get:function(){return p.default.ENABLE_INFO},set:function(y){p.default.ENABLE_INFO=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableWarn",{get:function(){return p.default.ENABLE_WARN},set:function(y){p.default.ENABLE_WARN=y,g._notifyChange()},enumerable:!1,configurable:!0}),Object.defineProperty(g,"enableError",{get:function(){return p.default.ENABLE_ERROR},set:function(y){p.default.ENABLE_ERROR=y,g._notifyChange()},enumerable:!1,configurable:!0}),g.getConfig=function(){return{globalTag:p.default.GLOBAL_TAG,forceGlobalTag:p.default.FORCE_GLOBAL_TAG,enableVerbose:p.default.ENABLE_VERBOSE,enableDebug:p.default.ENABLE_DEBUG,enableInfo:p.default.ENABLE_INFO,enableWarn:p.default.ENABLE_WARN,enableError:p.default.ENABLE_ERROR,enableCallback:p.default.ENABLE_CALLBACK}},g.applyConfig=function(y){p.default.GLOBAL_TAG=y.globalTag,p.default.FORCE_GLOBAL_TAG=y.forceGlobalTag,p.default.ENABLE_VERBOSE=y.enableVerbose,p.default.ENABLE_DEBUG=y.enableDebug,p.default.ENABLE_INFO=y.enableInfo,p.default.ENABLE_WARN=y.enableWarn,p.default.ENABLE_ERROR=y.enableError,p.default.ENABLE_CALLBACK=y.enableCallback},g._notifyChange=function(){var y=g.emitter;if(y.listenerCount("change")>0){var S=g.getConfig();y.emit("change",S)}},g.registerListener=function(y){g.emitter.addListener("change",y)},g.removeListener=function(y){g.emitter.removeListener("change",y)},g.addLogListener=function(y){p.default.emitter.addListener("log",y),p.default.emitter.listenerCount("log")>0&&(p.default.ENABLE_CALLBACK=!0,g._notifyChange())},g.removeLogListener=function(y){p.default.emitter.removeListener("log",y),p.default.emitter.listenerCount("log")===0&&(p.default.ENABLE_CALLBACK=!1,g._notifyChange())},g})();m.emitter=new(h()),l.default=m}),"./src/utils/polyfill.js":(function(s,l,c){c.r(l);var d=(function(){function h(){}return h.install=function(){Object.setPrototypeOf=Object.setPrototypeOf||function(p,m){return p.__proto__=m,p},Object.assign=Object.assign||function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var m=Object(p),g=1;g=128){m.push(String.fromCharCode(k&65535)),y+=2;continue}}}else if(g[y]<240){if(d(g,y,2)){var k=(g[y]&15)<<12|(g[y+1]&63)<<6|g[y+2]&63;if(k>=2048&&(k&63488)!==55296){m.push(String.fromCharCode(k&65535)),y+=3;continue}}}else if(g[y]<248&&d(g,y,3)){var k=(g[y]&7)<<18|(g[y+1]&63)<<12|(g[y+2]&63)<<6|g[y+3]&63;if(k>65536&&k<1114112){k-=65536,m.push(String.fromCharCode(k>>>10|55296)),m.push(String.fromCharCode(k&1023|56320)),y+=4;continue}}}m.push("�"),++y}return m.join("")}l.default=h})},r={};function o(s){var l=r[s];if(l!==void 0)return l.exports;var c=r[s]={exports:{}};return n[s].call(c.exports,c,c.exports,o),c.exports}o.m=n,(function(){o.n=function(s){var l=s&&s.__esModule?function(){return s.default}:function(){return s};return o.d(l,{a:l}),l}})(),(function(){o.d=function(s,l){for(var c in l)o.o(l,c)&&!o.o(s,c)&&Object.defineProperty(s,c,{enumerable:!0,get:l[c]})}})(),(function(){o.g=(function(){if(typeof globalThis=="object")return globalThis;try{return this||new Function("return this")()}catch{if(typeof window=="object")return window}})()})(),(function(){o.o=function(s,l){return Object.prototype.hasOwnProperty.call(s,l)}})(),(function(){o.r=function(s){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})}})();var a=o("./src/index.js");return a})()})})(tj)),tj.exports}var VTt=jTt();const tU=Jc(VTt);var nj={};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */var Jue;function zTt(){return Jue||(Jue=1,(function(e){(function(){var t=typeof window<"u"?window:rw,n={};(function(o,a,s){var l,c=typeof Object.create=="function"?Object.create:function(i){function u(){}return u.prototype=i,new u},d=typeof Object.defineProperties=="function"?Object.defineProperty:function(i,u,f){return i==Array.prototype||i==Object.prototype||(i[u]=f.value),i};function h(i){i=[typeof globalThis=="object"&&globalThis,i,typeof o=="object"&&o,typeof self=="object"&&self,typeof a=="object"&&a];for(var u=0;u>>0)+"_",b=0;return u}),m("Symbol.iterator",function(i){if(i)return i;i=Symbol("Symbol.iterator");for(var u="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),f=0;f"u"?!0:(typeof A=="function"?A=new A("unhandledrejection",{cancelable:!0}):typeof R=="function"?A=new R("unhandledrejection",{cancelable:!0}):(A=p.document.createEvent("CustomEvent"),A.initCustomEvent("unhandledrejection",!1,!0,A)),A.promise=this,A.reason=this.i,B(A))},u.prototype.B=function(){if(this.g!=null){for(var A=0;A1114111||b!==Math.floor(b))throw new RangeError("invalid_code_point "+b);b<=65535?f+=String.fromCharCode(b):(b-=65536,f+=String.fromCharCode(b>>>10&1023|55296),f+=String.fromCharCode(b&1023|56320))}return f}}),m("WeakSet",function(i){function u(f){if(this.g=new WeakMap,f){f=_(f);for(var v;!(v=f.next()).done;)this.add(v.value)}}return(function(){if(!i||!Object.seal)return!1;try{var f=Object.seal({}),v=Object.seal({}),b=new i([f]);return!b.has(f)||b.has(v)?!1:(b.delete(f),b.add(v),!b.has(f)&&b.has(v))}catch{return!1}})()?i:(u.prototype.add=function(f){return this.g.set(f,!0),this},u.prototype.has=function(f){return this.g.has(f)},u.prototype.delete=function(f){return this.g.delete(f)},u)}),m("Array.prototype.find",function(i){return i||function(u,f){return ve(this,u,f).v}}),m("String.prototype.startsWith",function(i){return i||function(u,f){var v=xe(this,u,"startsWith"),b=v.length,w=u.length;f=Math.max(0,Math.min(f|0,v.length));for(var A=0;A=w}}),m("Object.entries",function(i){return i||function(u){var f=[],v;for(v in u)we(u,v)&&f.push([v,u[v]]);return f}});var Be=typeof Object.assign=="function"?Object.assign:function(i,u){for(var f=1;f1342177279)throw new RangeError("Invalid count value");u|=0;for(var v="";u;)u&1&&(v+=f),(u>>>=1)&&(f+=f);return v}}),m("Number.EPSILON",function(){return 2220446049250313e-31}),m("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}),m("Number.isFinite",function(i){return i||function(u){return typeof u!="number"?!1:!isNaN(u)&&u!==1/0&&u!==-1/0}}),m("Object.values",function(i){return i||function(u){var f=[],v;for(v in u)we(u,v)&&f.push(u[v]);return f}}),m("Math.log2",function(i){return i||function(u){return Math.log(u)/Math.LN2}}),m("String.prototype.endsWith",function(i){return i||function(u,f){var v=xe(this,u,"endsWith");f===void 0&&(f=v.length),f=Math.max(0,Math.min(f|0,v.length));for(var b=u.length;b>0&&f>0;)if(v[--f]!=u[--b])return!1;return b<=0}}),m("Math.trunc",function(i){return i||function(u){if(u=Number(u),isNaN(u)||u===1/0||u===-1/0||u===0)return u;var f=Math.floor(Math.abs(u));return u<0?-f:f}});var Ke=this||self;function ze(i,u){i=i.split(".");var f=Ke;i[0]in f||typeof f.execScript>"u"||f.execScript("var "+i[0]);for(var v;i.length&&(v=i.shift());)i.length||u===void 0?f[v]&&f[v]!==Object.prototype[v]?f=f[v]:f=f[v]={}:f[v]=u}function be(i){this.g=Math.exp(Math.log(.5)/i),this.i=this.h=0}be.prototype.sample=function(i,u){var f=Math.pow(this.g,i);u=u*(1-f)+f*this.h,isNaN(u)||(this.h=u,this.i+=i)};function _e(i){return i.h/(1-Math.pow(i.g,i.i))}function Ne(){this.h=new be(2),this.j=new be(5),this.g=0,this.i=128e3,this.l=16e3}Ne.prototype.configure=function(i){this.i=i.minTotalBytes,this.l=i.minBytes,this.h.g=Math.exp(Math.log(.5)/i.fastHalfLife),this.j.g=Math.exp(Math.log(.5)/i.slowHalfLife)},Ne.prototype.sample=function(i,u){if(!(u-1&&i.splice(u,1)}function on(i,u,f){if(f||(f=Ct),i.length!=u.length)return!1;u=u.slice(),i=_(i);for(var v=i.next(),b={};!v.done;b={mi:void 0},v=i.next()){if(b.mi=v.value,v=u.findIndex((function(w){return function(A){return f(w.mi,A)}})(b)),v==-1)return!1;u[v]=u[u.length-1],u.pop()}return u.length==0}function lt(i,u,f){if(i===u)return!0;if(!i||!u)return i==u;if(f||(f=Ct),i.length!=u.length)return!1;for(var v=0;v0?v.i:v.h)(v.g,f,i,u)}function nr(i,u,f,v){Xe([f,"has been deprecated and will be removed in",u,". We are currently at version",i,". Additional information:",v].join(" "))}function Ar(i,u,f,v){$e([f,"has been deprecated and has been removed in",u,". We are now at version",i,". Additional information:",v].join(" "))}var ji=null;/* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */var Ho=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* @license Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */function Mt(i){var u;i instanceof Mt?(vt(this,i.bc),this.hd=i.hd,Bt(this,i.Db),jt(this,i.Cd),this.Sb=i.Sb,rn(this,i.g.clone()),this.Rc=i.Rc):i&&(u=String(i).match(Ho))?(vt(this,u[1]||"",!0),this.hd=en(u[2]||""),Bt(this,u[3]||"",!0),jt(this,u[4]),this.Sb=en(u[5]||"",!0),rn(this,u[6]||"",!0),this.Rc=en(u[7]||"")):this.g=new se(null)}l=Mt.prototype,l.bc="",l.hd="",l.Db="",l.Cd=null,l.Sb="",l.Rc="",l.toString=function(){var i=[],u=this.bc;if(u&&i.push(dn(u,qn,!0),":"),u=this.Db){i.push("//");var f=this.hd;f&&i.push(dn(f,qn,!0),"@"),i.push(encodeURIComponent(u).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),u=this.Cd,u!=null&&i.push(":",String(u))}return(u=this.Sb)&&(this.Db&&u.charAt(0)!="/"&&i.push("/"),i.push(dn(u,u.charAt(0)=="/"?ur:Dr,!0))),(u=this.g.toString())&&i.push("?",u),(u=this.Rc)&&i.push("#",dn(u,ce)),i.join("")},l.resolve=function(i){var u=this.clone();u.bc==="data"&&(u=new Mt);var f=!!i.bc;f?vt(u,i.bc):f=!!i.hd,f?u.hd=i.hd:f=!!i.Db,f?Bt(u,i.Db):f=i.Cd!=null;var v=i.Sb;if(f)jt(u,i.Cd);else if(f=!!i.Sb){if(v.charAt(0)!="/")if(this.Db&&!this.Sb)v="/"+v;else{var b=u.Sb.lastIndexOf("/");b!=-1&&(v=u.Sb.substr(0,b+1)+v)}if(v==".."||v==".")v="";else if(v.indexOf("./")!=-1||v.indexOf("/.")!=-1){b=v.lastIndexOf("/",0)==0,v=v.split("/");for(var w=[],A=0;A1||w.length==1&&w[0]!="")&&w.pop(),b&&A==v.length&&w.push("")):(w.push(R),b=!0)}v=w.join("/")}}return f?u.Sb=v:f=i.g.toString()!=="",f?rn(u,i.g.clone()):f=!!i.Rc,f&&(u.Rc=i.Rc),u},l.clone=function(){return new Mt(this)};function vt(i,u,f){i.bc=f?en(u,!0):u,i.bc&&(i.bc=i.bc.replace(/:$/,""))}function Bt(i,u,f){i.Db=f?en(u,!0):u}function jt(i,u){if(u){if(u=Number(u),isNaN(u)||u<0)throw Error("Bad port number "+u);i.Cd=u}else i.Cd=null}function rn(i,u,f){u instanceof se?i.g=u:(f||(u=dn(u,Wo)),i.g=new se(u))}function en(i,u){return i?u?decodeURI(i):decodeURIComponent(i):""}function dn(i,u,f){return i!=null?(i=encodeURI(i).replace(u,Sn),f&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function Sn(i){return i=i.charCodeAt(0),"%"+(i>>4&15).toString(16)+(i&15).toString(16)}var qn=/[#\/\?@]/g,Dr=/[#\?:]/g,ur=/[#\?]/g,Wo=/[#\?@]/g,ce=/#/g;function se(i){this.g=i||null}function te(i){if(!i.eb&&(i.eb=new Map,i.Sd=0,i.g))for(var u=i.g.split("&"),f=0;f=0){var w=u[f].substring(0,v);b=u[f].substring(v+1)}else w=u[f];w=decodeURIComponent(w),b=b||"",i.add(w,decodeURIComponent(b))}}l=se.prototype,l.eb=null,l.Sd=null;function Z(i){return te(i),i.Sd}l.add=function(i,u){te(this),this.g=null;var f=this.eb.has(i)?this.eb.get(i):null;return f||this.eb.set(i,f=[]),f.push(u),this.Sd++,this},l.set=function(i,u){return te(this),this.g=null,this.eb.has(i)?this.eb.set(i,[u]):this.add(i,u),this},l.get=function(i){return te(this),this.eb.get(i)||[]},l.toString=function(){if(this.g)return this.g;if(!this.eb||!this.eb.size)return"";for(var i=[],u=_(this.eb.keys()),f=u.next();!f.done;f=u.next()){var v=f.value;f=encodeURIComponent(v),v=this.eb.get(v);for(var b=0;b=f+2&&(i[f]&224)==192&&(i[f+1]&192)==128?(v=(i[f]&31)<<6|i[f+1]&63,f+=1):i.length>=f+3&&(i[f]&240)==224&&(i[f+1]&192)==128&&(i[f+2]&192)==128?(v=(i[f]&15)<<12|(i[f+1]&63)<<6|i[f+2]&63,f+=2):i.length>=f+4&&(i[f]&241)==240&&(i[f+1]&192)==128&&(i[f+2]&192)==128&&(i[f+3]&192)==128&&(v=(i[f]&7)<<18|(i[f+1]&63)<<12|(i[f+2]&63)<<6|i[f+3]&63,f+=3),v<=65535)u+=String.fromCharCode(v);else{v-=65536;var b=v&1023;u+=String.fromCharCode(55296+(v>>10)),u+=String.fromCharCode(56320+b)}}return u}function Rt(i,u,f){if(!i)return"";if(!f&&i.byteLength%2!=0)throw new Ae(2,2,2004);f=Math.floor(i.byteLength/2);var v=new Uint16Array(f);i=it(i);for(var b=0;b=9&&f[v]<=126}if(!i)return"";var f=Re(i);if(f[0]==239&&f[1]==187&&f[2]==191)return st(f);if(f[0]==254&&f[1]==255)return Rt(f.subarray(2),!1);if(f[0]==255&&f[1]==254)return Rt(f.subarray(2),!0);if(f[0]==0&&f[2]==0)return Rt(i,!1);if(f[1]==0&&f[3]==0)return Rt(i,!0);if(u(0)&&u(1)&&u(2)&&u(3))return st(i);throw new Ae(2,2,2003)}function Kt(i){if(o.TextEncoder&&!Fe().rh()){var u=new TextEncoder;return Ee(u.encode(i))}i=encodeURIComponent(i),i=unescape(i),u=new Uint8Array(i.length);for(var f=0;f",""":'"',"'":"'"," ":" ","‎":"‎","‏":"‏"},f=/&(?:amp|lt|gt|quot|apos|nbsp|lrm|rlm|#[xX]?[0-9a-fA-F]+);/g,v=RegExp(f.source);return i&&v.test(i)?i.replace(f,function(b){return b[1]=="#"?(b=b[2]=="x"||b[2]=="X"?parseInt(b.substring(3),16):parseInt(b.substring(2),10),b>=0&&b<=1114111?String.fromCodePoint(b):""):u[b]||"'"}):i||""}ze("shaka.util.StringUtils",tt),tt.resetFromCharCode=function(){cr.g=void 0},tt.toUTF16=hn,tt.toUTF8=Kt,tt.fromBytesAutoDetect=Jt,tt.fromUTF16=Rt,tt.fromUTF8=st;var cr=new bt(function(){function i(f){try{var v=new Uint8Array(f);return String.fromCharCode.apply(null,v).length>0}catch{return!1}}for(var u={Oc:65536};u.Oc>0;u={Oc:u.Oc},u.Oc/=2)if(i(u.Oc))return(function(f){return function(v){for(var b="",w=0;w"u"&&Xe("Could not find LCEVC Library dependencies on this page"),typeof LCEVCdec<"u")this.h=LCEVCdec;else if(typeof LcevcDil<"u")this.h=LcevcDil,this.j=!0,Zt("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{Xe("Could not find LCEVC Library on this page"),i=!1;break e}typeof this.h.SupportObject>"u"?(Xe("Could not find LCEVC Library on this page"),i=!1):(this.h.SupportObject.SupportStatus||Xe(this.h.SupportObject.SupportError),i=typeof this.h<"u"&&typeof libDPIModule<"u"&&this.i instanceof HTMLCanvasElement&&this.h.SupportObject.SupportStatus)}i&&!this.g&&this.h.SupportObject.webGLSupport(this.i)&&(this.i.classList.remove("shaka-hidden"),this.g=this.j?new this.h.LcevcDil(this.l,this.i,this.m):new this.h.LCEVCdec(this.l,this.i,this.m))}function si(i,u,f,v){v.type!=="video"||i.o&&!v.baseOriginalId||i.g&&i.g.appendBuffer(u,"video",v.id,-f,!i.o)}function eu(i){i.g&&i.i.classList.add("shaka-hidden")}Go.prototype.release=function(){this.g&&(this.g.close(),this.g=null)};function Il(i){return i&&typeof LCEVCdec<"u"?i.codecs=="lvc1":!1}ze("shaka.lcevc.Dec",Go),Go.prototype.release=Go.prototype.release;function No(i){if($f.has(i))return $f.get(i);var u=o.ManagedMediaSource||o.MediaSource;return u?(u=u.isTypeSupported(i),$f.set(i,u),u):!1}function dc(){var i=o.ManagedSourceBuffer||o.SourceBuffer;return!!i&&!!i.prototype&&!!i.prototype.changeType}function eg(){var i=o.ManagedMediaSource||o.MediaSource;return i&&i.prototype?!!i.prototype.setLiveSeekableRange&&!!i.prototype.clearLiveSeekableRange:!1}var $f=new Map;function tu(){}tu.prototype.extract=function(){},tu.prototype.decode=function(){return[]},tu.prototype.clear=function(){},tu.prototype.getStreams=function(){return[]};function fc(){}fc.prototype.init=function(){},fc.prototype.parse=function(){return[]};function ep(){}l=ep.prototype,l.init=function(){},l.xf=function(){},l.Nd=function(){},l.remove=function(){},l.Vf=function(){},ze("shaka.media.IClosedCaptionParser",ep);function Bs(i){this.h=new Map,this.i=0,this.j=new fc,(i=td(i.toLowerCase()))&&(this.j=i()),this.g=new tu,(i=Mu)&&(this.g=i(),this.h.set(this.i,this.g))}l=Bs.prototype,l.init=function(i,u,f){if(u=u===void 0?!1:u,f=f===void 0?-1:f,f!=-1&&this.i!=f){u=f;var v=this.h.get(u);this.h.set(this.i,this.g),v?this.g=v:((v=Mu)&&(this.g=v()),this.h.set(u,this.g))}else u||this.Nd();this.j.init(i),f!=-1&&(this.i=f)},l.xf=function(i){i=this.j.parse(i),i=_(i);for(var u=i.next();!u.done;u=i.next()){u=u.value;var f=Re(u.packet);f.length>0&&this.g.extract(f,u.pts)}return this.g.decode()},l.Nd=function(){this.g.clear()},l.remove=function(i){i=i===void 0?[]:i,i=new Set(i);for(var u=_(this.h.keys()),f=u.next();!f.done;f=u.next())if(f=f.value,!i.has(f)){var v=this.h.get(f);v&&v.clear(),this.h.delete(f)}},l.Vf=function(){return this.g.getStreams()};function Bf(i,u){Nd.set(i,u)}function td(i){return Nd.get(i)}ze("shaka.media.ClosedCaptionParser",Bs),Bs.findDecoder=function(){return Mu},Bs.unregisterDecoder=function(){Mu=null},Bs.registerDecoder=function(i){Mu=i},Bs.findParser=td,Bs.unregisterParser=function(i){Nd.delete(i)},Bs.registerParser=Bf;var Nd=new Map,Mu=null;function el(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=ws,this.scroll=tp}ze("shaka.text.CueRegion",el);var ws=1;el.units={PX:0,PERCENTAGE:ws,LINES:2};var tp="";el.scrollMode={NONE:tp,UP:"up"};function hc(i){this.h=i||"",this.g=0}function pc(i){Ou(i,/[ \t]+/gm)}function Ou(i,u){return u.lastIndex=i.g,u=u.exec(i.h),u=u==null?null:{position:u.index,length:u[0].length,results:u},i.g==i.h.length||u==null||u.position!=i.g?null:(i.g+=u.length,u.results)}function vc(i){return i.g==i.h.length?null:(i=Ou(i,/[^ \t\n]*/gm))?i[0]:null}function Nf(i){if(i=Ou(i,Xt),i==null)return null;var u=Number(i[2]),f=Number(i[3]);return u>59||f>59?null:(Number(i[6])||0)/1e3+f+u*60+(Number(i[1])||0)*3600}function It(i){return i?Nf(new hc(i)):null}var Xt=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function ln(){}function fn(i){function u(v){switch(typeof v){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return v;default:if(!v||ArrayBuffer.isView(v))return v;if(f.has(v))return null;var b=Array.isArray(v);if(v.constructor!=Object&&!b)return null;f.add(v);var w=b?[]:{},A;for(A in v)w[A]=u(v[A]);return b&&(w.length=v.length),w}}var f=new WeakSet;return u(i)}function An(i){var u={},f;for(f in i)u[f]=i[f];return u}function Xn(i){if(Array.isArray(i)){for(var u=[],f=0;f",b),A=i.substring(A,b);var B=A.indexOf(w);if(B==-1){var V=w.indexOf(".");V>0&&(B=A.indexOf(w.substring(0,V)))}if(B==-1)throw w=i.substring(0,b).split(` `),Error(`Unexpected close tag Line: `+(w.length-1)+` Column: `+(w[w.length-1].length+1)+` Char: `+i[b]);b+1&&(b+=1);break}else if(i.charCodeAt(b+1)===33){if(i.charCodeAt(b+2)==45){for(;b!==-1&&(i.charCodeAt(b)!==62||i.charCodeAt(b-1)!=45||i.charCodeAt(b-2)!=45||b==-1);)b=i.indexOf(">",b+1);b===-1&&(b=i.length)}else if(i.charCodeAt(b+2)===91&&i.charCodeAt(b+8)===91&&i.substr(b+3,5).toLowerCase()==="cdata"){B=i.indexOf("]]>",b),B==-1?(R.push(i.substr(b+9)),b=i.length):(R.push(i.substring(b+9,B)),b=B+3);continue}b++;continue}e:{V=A,b++;var K=v(),Y={};for(B=[];i.charCodeAt(b)!==62&&i[b];){var oe=i.charCodeAt(b);if(oe>64&&oe<91||oe>96&&oe<123){oe=v();for(var ue=i.charCodeAt(b);ue&&ue!==39&&ue!==34&&!(ue>64&&ue<91||ue>96&&ue<123)&&ue!==62;)b++,ue=i.charCodeAt(b);var he=b+1;if(b=i.indexOf(i[b],he),he=i.slice(he,b),ue===39||ue===34){if(b===-1){if(V={tagName:K,attributes:Y,children:B,parent:null},u)for(K=0;K0&&R.push(B):(R.length&&B.length==1&&B[0]==` `||B.trim().length>0)&&R.push(B),b++;return R}function v(){for(var w=b;`\r >/= `.indexOf(i[b])===-1&&i[b];)b++;return i.slice(w,b)}var b=0;return f("")}function $u(i){return typeof i=="string"}function mc(i){var u=[];if(!i.children)return[];i=_(i.children);for(var f=i.next();!f.done;f=i.next())f=f.value,typeof f!="string"&&u.push(f);return u}function Nr(i,u){var f=[];if(!i.children)return[];i=_(i.children);for(var v=i.next();!v.done;v=i.next())v=v.value,v.tagName===u&&f.push(v);return f}function br(i){return typeof i=="string"?cn(i):(i=i.children.reduce(function(u,f){return typeof f=="string"?u+f:u},""),i===""?null:cn(i))}function po(i){return Array.from(i.children).every(function(u){return typeof u=="string"})?((i=br(i))&&(i=i.trim()),i):null}function Aa(i,u,f){if(f=f===void 0?[]:f,i.tagName===u&&f.push(i),i.children){i=_(i.children);for(var v=i.next();!v.done;v=i.next())Aa(v.value,u,f)}return f}function ii(i,u){return i=Nr(i,u),i.length!=1?null:i[0]}function Ia(i,u,f){return i=kS(i,u,f),i.length!=1?null:i[0]}function Mn(i,u,f,v){v=v===void 0?null:v;var b=null;return i=i.attributes[u],i!=null&&(b=f(i)),b??v}function Bu(i,u,f){return u=Xi(u),i.attributes[u+":"+f]||null}function kS(i,u,f){var v=Xi(u);if(u=[],i.children)for(f=v?v+":"+f:f,i=_(i.children),v=i.next();!v.done;v=i.next())(v=v.value)&&v.tagName===f&&u.push(v);return u}function Ns(i,u,f){u=_(u);for(var v=u.next();!v.done;v=u.next())if(v=Bu(i,v.value,f))return v;return null}function Ff(i){return i?(/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(i)&&(i+="Z"),i=Date.parse(i),isNaN(i)?null:i/1e3):null}function Fd(i){return!i||(i=RegExp("^P(?:([0-9]*)Y)?(?:([0-9]*)M)?(?:([0-9]*)D)?(?:T(?:([0-9]*)H)?(?:([0-9]*)M)?(?:([0-9.]*)S)?)?$","i").exec(i),!i)?null:(i=31536e3*Number(i[1]||null)+2592e3*Number(i[2]||null)+86400*Number(i[3]||null)+3600*Number(i[4]||null)+60*Number(i[5]||null)+Number(i[6]||null),isFinite(i)?i:null)}function xS(i){var u=/([0-9]+)-([0-9]+)/.exec(i);return!u||(i=Number(u[1]),!isFinite(i))?null:(u=Number(u[2]),isFinite(u)?{start:i,end:u}:null)}function Fs(i){return i=Number(i),i%1===0?i:null}function jd(i){return i=Number(i),i%1===0&&i>0?i:null}function js(i){return i=Number(i),i%1===0&&i>=0?i:null}function CS(i){return i=Number(i),isNaN(i)?null:i}function wS(i){return i?i.toLowerCase()==="true":!1}function qbe(i){var u,f=(u=i.match(/^(\d+)\/(\d+)$/))?Number(u[1])/Number(u[2]):Number(i);return isNaN(f)?null:f}function ES(i){var u=[];i=cn(i).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),i=_(i);for(var f=i.next();!f.done;f=i.next()){f=f.value;var v=f.match(/^([\w]+)/);if(v){var b=f.match(/(@id='(.*?)')/),w=f.match(/(@t='(\d+)')/),A=f.match(/(@n='(\d+)')/),R=f.match(/\[(\d+)\]/);u.push({name:v[0],id:b?b[0].match(/'(.*?)'/)[0].replace(/'/gm,""):null,t:w?Number(w[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,n:A?Number(A[0].match(/'(.*?)'/)[0].replace(/'/gm,"")):null,position:R?Number(R[1])-1:null,Cc:f.split("/@")[1]||null})}else f.startsWith("@")&&u.length&&(u[u.length-1].Cc=f.slice(1))}return u}function RK(i,u){var f=ES(u.attributes.sel||"");if(f.length){var v=f[f.length-1],b=u.attributes.pos||null;f=v.position,f==null&&(v.t!==null&&(f=MK(i,"t",v.t)),v.n!==null&&(f=MK(i,"n",v.n))),f===null?f=b==="prepend"?0:i.length:b==="prepend"?--f:b==="after"&&++f,b=u.tagName,(v=v.Cc)&&i[f]?OK(i[f],b,v,po(u)||""):(b!=="remove"&&b!=="replace"||i.splice(f,1),b!=="add"&&b!=="replace"||i.splice.apply(i,[f,0].concat(T(u.children))))}}function MK(i,u,f){var v=0;i=_(i);for(var b=i.next();!b.done;b=i.next()){if(Number(b.value.attributes[u])===f)return v;v++}return null}function OK(i,u,f,v){u==="remove"?delete i.attributes[f]:(u==="add"||u==="replace")&&(i.attributes[f]=v)}function $K(i){var u="",f=i.tagName.split(":");f.length>0&&(u=f[0],u=xI.has(u)?xI.get(u):""),u=document.createElementNS(u,i.tagName);for(var v in i.attributes)u.setAttribute(v,i.attributes[v]);for(i=_(i.children),v=i.next();!v.done;v=i.next())v=v.value,f=void 0,typeof v=="string"?f=new Text(v):f=$K(v),u.appendChild(f);return u}function SI(i){if(!i)return null;var u={tagName:i.tagName,attributes:An(i.attributes),children:[],parent:null};i=_(i.children);for(var f=i.next();!f.done;f=i.next())f=f.value,typeof f=="string"||(f=SI(f),f.parent=u),u.children.push(f);return u}var kI=new Map,xI=new Map;function Pi(i,u,f){this.startTime=i,this.endTime=u,this.payload=f,this.region=new el,this.position=null,this.positionAlign=IS,this.size=0,this.textAlign=Vd,this.direction=k3,this.writingMode=j0,this.lineInterpretation=x3,this.line=null,this.lineHeight="",this.lineAlign=V0,this.displayAlign=S3,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=UK,this.fontStyle=EI,this.linePadding=this.letterSpacing=this.fontFamily="",this.opacity=1,this.textCombineUpright="",this.textDecoration=[],this.textStrokeWidth=this.textStrokeColor=this.textShadow="",this.wrapLine=!0,this.id="",this.nestedCues=[],this.lineBreak=this.isContainer=!1,this.rubyTag=null,this.cellResolution={columns:32,rows:15}}function BK(i,u){return i=new Pi(i,u,""),i.lineBreak=!0,i}Pi.prototype.clone=function(){var i=new Pi(0,0,""),u;for(u in this)i[u]=this[u],Array.isArray(i[u])&&(i[u]=i[u].slice());return i};function TS(i,u){if(i.payload!=u.payload||!(Math.abs(i.startTime-u.startTime)<.001&&Math.abs(i.endTime-u.endTime)<.001))return!1;for(var f in i)if(f!="startTime"&&f!="endTime"&&f!="payload"){if(f=="nestedCues"){if(!lt(i.nestedCues,u.nestedCues,TS))return!1}else if(f=="region"||f=="cellResolution"){for(var v in i[f])if(i[f][v]!=u[f][v])return!1}else if(Array.isArray(i[f])){if(!lt(i[f],u[f]))return!1}else if(i[f]!=u[f])return!1}return!0}function AS(i,u){u=u===void 0?new Map:u;var f=i.payload;if(f.includes("<")){u.size===0&&NK(u);var v=f;f=[];for(var b=-1,w=0;w"&&b>0&&(b=v.substr(b,w-b),b.match(Xbe)&&f.push(b),b=-1);for(f=_(f),w=f.next();!w.done;w=f.next())w=w.value,v=v.replace("<"+w+">",'
'),v+="
";e:{w=v,b=[];var A=-1;f="",v=!1;for(var R=0;R",R);if(B===-1){f=w;break e}if((B=w.substring(R+1,B))&&B=="v"){v=!0;var V=null;if(b.length&&(V=b[b.length-1]),V){if(V===B)f+="/"+B+">";else{if(!V.startsWith("v")){f+=w[R];continue}f+="/"+V+">"}R+=B.length+1}else f+=w[R]}else f+=w[R]}else w[R]==="<"?(A=R+1,w[A]!="v"&&(A=-1)):w[R]===">"&&A>0&&(b.push(w.substr(A,R-A)),A=-1),f+=w[R];for(w=_(b),b=w.next();!b.done;b=w.next())b=b.value,A=b.replace(" ",".voice-"),f=f.replace("<"+b+">","<"+A+">"),f=f.replace("",""),v||(f+="")}f=Ybe(f),i.payload="",v=""+f.replace(/\n/g,"
")+"
";try{var K=ai(v,"span")}catch{}if(K)if(K=K.children,K.length!=1||K[0].tagName)for(K=_(K),f=K.next();!f.done;f=K.next())FK(f.value,i,u);else i.payload=cn(f);else i.payload=cn(f)}else i.payload=cn(f)}function NK(i){for(var u=_(Object.entries(VK)),f=u.next();!f.done;f=u.next()){var v=_(f.value);f=v.next().value,v=v.next().value;var b=new Pi(0,0,"");b.color=v,i.set("."+f,b)}for(u=_(Object.entries(zK)),f=u.next();!f.done;f=u.next())v=_(f.value),f=v.next().value,v=v.next().value,b=new Pi(0,0,""),b.backgroundColor=v,i.set("."+f,b)}function Ybe(i){var u={"< ":""," >":" >"},f=/(< +>|<\s|\s>)/g,v=RegExp(f.source);return i&&v.test(i)?i.replace(f,function(b){return u[b]||""}):i||""}function FK(i,u,f){var v=u.clone();if(v.nestedCues=[],v.payload="",v.rubyTag="",v.line=null,v.region=new el,v.position=null,v.size=0,v.textAlign=Vd,i.tagName)for(var b=_(i.tagName.split(/(?=[ .])+/g)),w=b.next();!w.done;w=b.next()){var A=w=w.value;if(A.startsWith(".voice-")){var R=A.split("-").pop();A='v[voice="'+R+'"]',f.has(A)||(A="v[voice="+R+"]")}switch(f.has(A)&&(R=v,A=f.get(A))&&(R.backgroundColor=_3(A.backgroundColor,R.backgroundColor),R.color=_3(A.color,R.color),R.fontFamily=_3(A.fontFamily,R.fontFamily),R.fontSize=_3(A.fontSize,R.fontSize),R.textShadow=_3(A.textShadow,R.textShadow),R.fontWeight=A.fontWeight,R.fontStyle=A.fontStyle,R.opacity=A.opacity,R.rubyTag=A.rubyTag,R.textCombineUpright=A.textCombineUpright,R.wrapLine=A.wrapLine),w){case"br":v=BK(v.startTime,v.endTime),u.nestedCues.push(v);return;case"b":v.fontWeight=tg;break;case"i":v.fontStyle=ng;break;case"u":v.textDecoration.push(jf);break;case"font":(w=i.attributes.color)&&(v.color=w);break;case"div":if(w=i.attributes.time,!w)break;(w=It(w))&&(v.startTime=w);break;case"ruby":case"rp":case"rt":v.rubyTag=w}}if(b=i.children,$u(i)||b.length==1&&$u(b[0]))for(f=br(i).split(` `),i=!0,f=_(f),b=f.next();!b.done;b=f.next())b=b.value,i||(i=BK(v.startTime,v.endTime),u.nestedCues.push(i)),b.length>0&&(i=v.clone(),i.payload=cn(b),u.nestedCues.push(i)),i=!1;else for(u.nestedCues.push(v),u=_(b),i=u.next();!i.done;i=u.next())FK(i.value,v,f)}function _3(i,u){return i&&i.length>0?i:u}ze("shaka.text.Cue",Pi),Pi.parseCuePayload=AS,Pi.equal=TS,Pi.prototype.clone=Pi.prototype.clone;var IS="auto";Pi.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:IS};var Vd="center",CI={LEFT:"left",RIGHT:"right",CENTER:Vd,START:"start",END:"end"};Pi.textAlign=CI;var S3="after",jK={BEFORE:"before",CENTER:"center",AFTER:S3};Pi.displayAlign=jK;var k3="ltr";Pi.direction={HORIZONTAL_LEFT_TO_RIGHT:k3,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var j0="horizontal-tb";Pi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:j0,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var x3=0;Pi.lineInterpretation={LINE_NUMBER:x3,PERCENTAGE:1};var V0="start",wI={CENTER:"center",START:V0,END:"end"};Pi.lineAlign=wI;var VK={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Pi.defaultTextColor=VK;var zK={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Pi.defaultTextBackgroundColor=zK;var UK=400,tg=700;Pi.fontWeight={NORMAL:UK,BOLD:tg};var EI="normal",ng="italic",HK={NORMAL:EI,ITALIC:ng,OBLIQUE:"oblique"};Pi.fontStyle=HK;var jf="underline";Pi.textDecoration={UNDERLINE:jf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var Xbe=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function np(){}np.prototype.destroy=function(){};function Vf(i,u,f){TI.set(i.toLowerCase().split(";")[0]+"-"+f,{priority:f,yf:u})}function rg(i,u){for(var f=i.toLowerCase().split(";")[0],v=_([WK,II,AI,rp]),b=v.next();!b.done;b=v.next())if(b=TI.get(f+"-"+b.value)){var w=b.yf(),A=w.isSupported(i,u);if(w.destroy(),A)return b.yf}return null}ze("shaka.transmuxer.TransmuxerEngine",np),np.findTransmuxer=rg,np.unregisterTransmuxer=function(i,u){TI.delete(i.toLowerCase().split(";")[0]+"-"+u)},np.registerTransmuxer=Vf,np.prototype.destroy=np.prototype.destroy;var TI=new Map,rp=1,AI=2,II=3,WK=4;np.PluginPriority={FALLBACK:rp,PREFERRED_SECONDARY:AI,PREFERRED:II,APPLICATION:WK};function LI(){}function yo(i,u){var f=i;return u&&!zf.includes(i)&&(f+='; codecs="'+u+'"'),f}function LS(i,u){return u&&(i+='; codecs="'+u+'"'),i}function DI(i,u,f){var v=yo(i,u);return u=LS(i,u),rg(u)?(i=rg(u))?(i=i(),f=i.convertCodecs(f,u),i.destroy()):f=u:f=i!="video/mp2t"&&f=="audio"?v.replace("video","audio"):v,f}function C3(i){return i.split(";")[0].split("/")[1]}function Js(i){var u=GK(i);switch(i=u[0].toLowerCase(),u=u[1].toLowerCase(),!0){case(i==="mp4a"&&u==="69"):case(i==="mp4a"&&u==="6b"):case(i==="mp4a"&&u==="40.34"):return"mp3";case(i==="mp4a"&&u==="66"):case(i==="mp4a"&&u==="67"):case(i==="mp4a"&&u==="68"):case(i==="mp4a"&&u==="40.2"):case(i==="mp4a"&&u==="40.02"):case(i==="mp4a"&&u==="40.5"):case(i==="mp4a"&&u==="40.05"):case(i==="mp4a"&&u==="40.29"):case(i==="mp4a"&&u==="40.42"):return"aac";case(i==="mp4a"&&u==="a5"):case i==="ac3":case i==="ac-3":return"ac-3";case(i==="mp4a"&&u==="a6"):case i==="eac3":case i==="ec-3":return"ec-3";case i==="ac-4":return"ac-4";case(i==="mp4a"&&u==="b2"):return"dtsx";case(i==="mp4a"&&u==="a9"):return"dtsc";case i==="vp09":case i==="vp9":return"vp9";case i==="avc1":case i==="avc3":return"avc";case i==="hvc1":case i==="hev1":return"hevc";case i==="vvc1":case i==="vvi1":return"vvc";case i==="dvh1":case i==="dvhe":return u&&u.startsWith("05")?"dovi-p5":"dovi-hevc";case i==="dvav":case i==="dva1":return"dovi-avc";case i==="dav1":return"dovi-av1";case i==="dvc1":case i==="dvi1":return"dovi-vvc"}return i}function ip(i){var u=[];i=_(i.split(","));for(var f=i.next();!f.done;f=i.next())f=GK(f.value),u.push(f[0]);return u.sort().join(",")}function Ll(i){return i.split(";")[0]}function tl(i){return i=i.split(/ *; */),i.shift(),(i=i.find(function(u){return u.startsWith("codecs=")}))?i.split("=")[1].replace(/^"|"$/g,""):""}function w3(i){return i==="application/x-mpegurl"||i==="application/vnd.apple.mpegurl"}function GK(i){i=i.split(".");var u=i[0];return i.shift(),[u,i.join(".")]}ze("shaka.util.MimeUtils",LI),LI.getFullTypeWithAllCodecs=LS,LI.getFullType=yo,new Map().set("codecs","codecs").set("frameRate","framerate").set("bandwidth","bitrate").set("width","width").set("height","height").set("channelsCount","channels");var zf=["audio/aac","audio/ac3","audio/ec3","audio/mpeg"];function Uf(i){this.i=null,this.l=i,this.C=!1,this.m=this.u=0,this.o=1/0,this.h=this.g=null,this.F="",this.B=function(){},this.j=new Map}function Vs(i,u){A3.set(i,u)}function E3(i){return A3.get(i)}function T3(i){return A3.has(i)?!0:i=="application/cea-608"||i=="application/cea-708"?!!Mu:!1}Uf.prototype.destroy=function(){return this.l=this.i=null,this.j.clear(),Promise.resolve()};function Zbe(i,u,f,v,b){var w,A,R,B,V,K,Y;return re(function(oe){if(oe.g==1)return I(oe,Promise.resolve(),2);if(!i.i||!i.l)return oe.return();if(f==null||v==null)return i.i.parseInit(Re(u)),oe.return();for(w=i.C?f:i.u,A={periodStart:i.u,segmentStart:f,segmentEnd:v,vttOffset:w},R=i.i.parseMedia(Re(u),A,b,[]),B=_(R),V=B.next();!V.done;V=B.next())K=V.value,i.B(K,b||null,A);Y=R.filter(function(ue){return ue.startTime>=i.m&&ue.startTime=u)return b.return();f&&e_e(v,i,u),v.l&&v.l.remove(i,u)&&v.g!=null&&(u<=v.g||i>=v.h||(i<=v.g&&u>=v.h?v.g=v.h=null:i<=v.g&&uv.g&&u>=v.h&&(v.h=i)),YK(v)),N(b)})};function Jbe(i,u,f){i.m=u,i.o=f}function KK(i,u,f){i.F=u,(u=i.j.get(u))&&(u=u.filter(function(v){return v.endTime<=f}),u.length&&i.l.append(u))}function qK(i,u,f){u.startTime+=f,u.endTime+=f,u=_(u.nestedCues);for(var v=u.next();!v.done;v=u.next())qK(i,v.value,f)}function Qbe(i,u,f){var v=new Map;u=_(u);for(var b=u.next();!b.done;b=u.next()){var w=b.value;b=w.stream,w=w.cue,v.has(b)||v.set(b,[]),qK(i,w,f),w.startTime>=i.m&&w.startTime=f}),i.j.set(b,w)}}function YK(i){for(var u=1/0,f=-1/0,v=_(i.j.values()),b=v.next();!b.done;b=v.next()){b=_(b.value);for(var w=b.next();!w.done;w=b.next())w=w.value,u=Math.min(u,w.startTime),f=Math.max(f,w.endTime)}u!==1/0&&f!==-1/0&&(i.g=i.g==null?Math.max(u,i.m):Math.min(i.g,Math.max(u,i.m)),i.h=Math.max(i.h,Math.min(f,i.o)))}ze("shaka.text.TextEngine",Uf),Uf.prototype.destroy=Uf.prototype.destroy,Uf.findParser=E3,Uf.unregisterParser=function(i){A3.delete(i)},Uf.registerParser=Vs;var A3=new Map;function I3(i){this.h=i,this.g=null}I3.prototype.ia=function(i){var u=this;this.stop();var f=!0,v=null;return this.g=function(){o.clearTimeout(v),f=!1},v=o.setTimeout(function(){f&&u.h()},i*1e3),this},I3.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function vr(i){this.h=i,this.g=null}vr.prototype.Jb=function(){return this.stop(),this.h(),this},vr.prototype.ia=function(i){var u=this;return this.stop(),this.g=new I3(function(){u.h()}).ia(i),this},vr.prototype.Ea=function(i){var u=this;return this.stop(),this.g=new I3(function(){u.g.ia(i),u.h()}).ia(i),this},vr.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},ze("shaka.util.Timer",vr),vr.prototype.stop=vr.prototype.stop,vr.prototype.tickEvery=vr.prototype.Ea,vr.prototype.tickAfter=vr.prototype.ia,vr.prototype.tickNow=vr.prototype.Jb;function t_e(i,u){return i.concat(u)}function n_e(){}function op(i){return i!=null}function DS(i,u){return Promise.race([u,new Promise(function(f,v){new vr(v).ia(i)})])}function gc(){}function ig(i,u){return i=qr(i),u=qr(u),i.split("-")[0]==u.split("-")[0]}function L3(i,u){return i=qr(i),u=qr(u),i=i.split("-"),u=u.split("-"),i[0]==u[0]&&i.length==1&&u.length==2}function PI(i,u){return i=qr(i),u=qr(u),i=i.split("-"),u=u.split("-"),i.length==2&&u.length==2&&i[0]==u[0]}function qr(i){i=_(i.split("-x-"));var u=i.next().value;u=u===void 0?"":u,i=i.next().value,i=i===void 0?"":i;var f=_(u.split("-"));return u=f.next().value,u=u===void 0?"":u,f=f.next().value,f=f===void 0?"":f,i=i?"x-"+i:"",u=u.toLowerCase(),u=XK.get(u)||u,f=f.toUpperCase(),(f?u+"-"+f:u)+(i?"-"+i:"")}function z0(i,u){return i=qr(i),u=qr(u),u==i?4:L3(u,i)?3:PI(u,i)?2:L3(i,u)?1:0}function PS(i){var u=i.indexOf("-");return i=u>=0?i.substring(0,u):i,i=i.toLowerCase(),i=XK.get(i)||i}function RI(i){return i.language?qr(i.language):i.audio&&i.audio.language?qr(i.audio.language):i.video&&i.video.language?qr(i.video.language):"und"}function RS(i,u){i=qr(i);var f=new Set;u=_(u);for(var v=u.next();!v.done;v=u.next())f.add(qr(v.value));for(u=_(f),v=u.next();!v.done;v=u.next())if(v=v.value,v==i)return v;for(u=_(f),v=u.next();!v.done;v=u.next())if(v=v.value,L3(v,i))return v;for(u=_(f),v=u.next();!v.done;v=u.next())if(v=v.value,PI(v,i))return v;for(f=_(f),u=f.next();!u.done;u=f.next())if(u=u.value,L3(i,u))return u;return null}ze("shaka.util.LanguageUtils",gc),gc.findClosestLocale=RS,gc.getLocaleForVariant=RI,gc.getLocaleForText=function(i){return qr(i.language||"und")},gc.getBase=PS,gc.relatedness=z0,gc.areSiblings=function(i,u){var f=PS(i),v=PS(u);return i!=f&&u!=v&&f==v},gc.normalize=qr,gc.isSiblingOf=PI,gc.isParentOf=L3,gc.areLanguageCompatible=ig,gc.areLocaleCompatible=function(i,u){return i=qr(i),u=qr(u),i==u};var XK=new Map([["aar","aa"],["abk","ab"],["afr","af"],["aka","ak"],["alb","sq"],["amh","am"],["ara","ar"],["arg","an"],["arm","hy"],["asm","as"],["ava","av"],["ave","ae"],["aym","ay"],["aze","az"],["bak","ba"],["bam","bm"],["baq","eu"],["bel","be"],["ben","bn"],["bih","bh"],["bis","bi"],["bod","bo"],["bos","bs"],["bre","br"],["bul","bg"],["bur","my"],["cat","ca"],["ces","cs"],["cha","ch"],["che","ce"],["chi","zh"],["chu","cu"],["chv","cv"],["cor","kw"],["cos","co"],["cre","cr"],["cym","cy"],["cze","cs"],["dan","da"],["deu","de"],["div","dv"],["dut","nl"],["dzo","dz"],["ell","el"],["eng","en"],["epo","eo"],["est","et"],["eus","eu"],["ewe","ee"],["fao","fo"],["fas","fa"],["fij","fj"],["fin","fi"],["fra","fr"],["fre","fr"],["fry","fy"],["ful","ff"],["geo","ka"],["ger","de"],["gla","gd"],["gle","ga"],["glg","gl"],["glv","gv"],["gre","el"],["grn","gn"],["guj","gu"],["hat","ht"],["hau","ha"],["heb","he"],["her","hz"],["hin","hi"],["hmo","ho"],["hrv","hr"],["hun","hu"],["hye","hy"],["ibo","ig"],["ice","is"],["ido","io"],["iii","ii"],["iku","iu"],["ile","ie"],["ina","ia"],["ind","id"],["ipk","ik"],["isl","is"],["ita","it"],["jav","jv"],["jpn","ja"],["kal","kl"],["kan","kn"],["kas","ks"],["kat","ka"],["kau","kr"],["kaz","kk"],["khm","km"],["kik","ki"],["kin","rw"],["kir","ky"],["kom","kv"],["kon","kg"],["kor","ko"],["kua","kj"],["kur","ku"],["lao","lo"],["lat","la"],["lav","lv"],["lim","li"],["lin","ln"],["lit","lt"],["ltz","lb"],["lub","lu"],["lug","lg"],["mac","mk"],["mah","mh"],["mal","ml"],["mao","mi"],["mar","mr"],["may","ms"],["mkd","mk"],["mlg","mg"],["mlt","mt"],["mon","mn"],["mri","mi"],["msa","ms"],["mya","my"],["nau","na"],["nav","nv"],["nbl","nr"],["nde","nd"],["ndo","ng"],["nep","ne"],["nld","nl"],["nno","nn"],["nob","nb"],["nor","no"],["nya","ny"],["oci","oc"],["oji","oj"],["ori","or"],["orm","om"],["oss","os"],["pan","pa"],["per","fa"],["pli","pi"],["pol","pl"],["por","pt"],["pus","ps"],["que","qu"],["roh","rm"],["ron","ro"],["rum","ro"],["run","rn"],["rus","ru"],["sag","sg"],["san","sa"],["sin","si"],["slk","sk"],["slo","sk"],["slv","sl"],["sme","se"],["smo","sm"],["sna","sn"],["snd","sd"],["som","so"],["sot","st"],["spa","es"],["sqi","sq"],["srd","sc"],["srp","sr"],["ssw","ss"],["sun","su"],["swa","sw"],["swe","sv"],["tah","ty"],["tam","ta"],["tat","tt"],["tel","te"],["tgk","tg"],["tgl","tl"],["tha","th"],["tib","bo"],["tir","ti"],["ton","to"],["tsn","tn"],["tso","ts"],["tuk","tk"],["tur","tr"],["twi","tw"],["uig","ug"],["ukr","uk"],["urd","ur"],["uzb","uz"],["ven","ve"],["vie","vi"],["vol","vo"],["wel","cy"],["wln","wa"],["wol","wo"],["xho","xh"],["yid","yi"],["yor","yo"],["zha","za"],["zho","zh"],["zul","zu"]]);function ZK(){}function JK(i,u,f,v,b){function w(Oe){var De=String(Oe.width||"")+String(Oe.height||"")+String(Math.round(Oe.frameRate||0))+(Oe.hdr||"")+Oe.fastSwitching;return Oe.dependencyStream&&(De+=Oe.dependencyStream.baseOriginalId||""),Oe.roles&&(De+=Oe.roles.sort().join("_")),De}function A(Oe){var De=Oe.language+(Oe.channelsCount||0)+(Oe.audioSamplingRate||0)+Oe.roles.join(",")+Oe.label+Oe.groupId+Oe.fastSwitching;return Oe.dependencyStream&&(De+=Oe.dependencyStream.baseOriginalId||""),De}if(b.length){var R=i.textStreams;b=_(b);for(var B=b.next(),V={};!B.done;V={Bh:void 0},B=b.next())if(V.Bh=B.value,B=R.filter((function(Oe){return function(De){return!!(De.codecs.startsWith(Oe.Bh)||De.mimeType.startsWith(Oe.Bh))}})(V)),B.length){R=B;break}i.textStreams=R}if(R=i.variants,(u.length||f.length)&&(R=r_e(R,u,f)),v.length){for(u=new xt,f=_(R),R=f.next();!R.done;R=f.next())R=R.value,u.push(String(R.video.width||0),R);var K=[];u.forEach(function(Oe,De){Oe=0;var qe=[];De=_(De);for(var ot=De.next(),mt={};!ot.done;mt={Tf:void 0},ot=De.next())mt.Tf=ot.value,ot=v.filter((function(Qe){return function(He){return Qe.Tf.decodingInfos[0][He]}})(mt)).length,ot>Oe?(Oe=ot,qe=[mt.Tf]):ot==Oe&&qe.push(mt.Tf);K.push.apply(K,T(qe))}),R=K}for(f=new Set,u=new Set,R=_(R),b=R.next();!b.done;b=R.next())b=b.value,b.audio&&f.add(b.audio),b.video&&u.add(b.video);R=Array.from(f).sort(function(Oe,De){return Oe.bandwidth-De.bandwidth});var Y=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,B=A(b),V=f.get(B)||[],V.length){var oe=V[V.length-1],ue=Js(oe.codecs),he=Js(b.codecs);ue!=he||b.bandwidth&&oe.bandwidth&&!(b.bandwidth>oe.bandwidth)||(V.push(b),Y.push(b.id))}else V.push(b),Y.push(b.id);f.set(B,V)}var ge={vp8:1,avc:1,"dovi-avc":.95,vp9:.9,vp09:.9,hevc:.85,"dovi-hevc":.8,"dovi-p5":.75,av01:.7,"dovi-av1":.65,vvc:.6};R=Array.from(u).sort(function(Oe,De){if(!Oe.bandwidth||!De.bandwidth||Oe.bandwidth==De.bandwidth){if(Oe.codecs&&De.codecs&&Oe.codecs!=De.codecs&&Oe.width==De.width){var qe=Js(Oe.codecs),ot=Js(De.codecs);if(qe!=ot)return(ge[qe]||1)-(ge[ot]||1)}return Oe.width-De.width}return Oe.bandwidth-De.bandwidth}),u=dc();var ye=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,B=w(b),V=f.get(B)||[],V.length){if(oe=V[V.length-1],!u&&(ue=Js(oe.codecs),he=Js(b.codecs),ue!==he))continue;ue=Js(oe.codecs),he=Js(b.codecs),ue!=he||b.bandwidth&&oe.bandwidth&&!(b.bandwidth>oe.bandwidth)||(V.push(b),ye.push(b.id))}else V.push(b),ye.push(b.id);f.set(B,V)}i.variants=i.variants.filter(function(Oe){var De=Oe.audio;return Oe=Oe.video,!(De&&!Y.includes(De.id)||Oe&&!ye.includes(Oe.id))})}function r_e(i,u,f){u=_(u);for(var v=u.next(),b={};!v.done;b={videoCodec:void 0},v=u.next())if(b.videoCodec=v.value,v=i.filter((function(w){return function(A){return A.video&&A.video.codecs.startsWith(w.videoCodec)}})(b)),v.length){i=v;break}for(f=_(f),u=f.next(),v={};!u.done;v={audioCodec:void 0},u=f.next())if(v.audioCodec=u.value,u=i.filter((function(w){return function(A){return A.audio&&A.audio.codecs.startsWith(w.audioCodec)}})(v)),u.length){i=u;break}return i}function i_e(i,u,f){i.variants=i.variants.filter(function(v){return MS(v,u,f)})}function MS(i,u,f){function v(R,B,V){return R>=B&&R<=V}var b=i.video;if(b&&b.width&&b.height){var w=b.width,A=b.height;if(A>w&&(A=_([A,w]),w=A.next().value,A=A.next().value),!v(w,u.minWidth,Math.min(u.maxWidth,f.width))||!v(A,u.minHeight,Math.min(u.maxHeight,f.height))||!v(b.width*b.height,u.minPixels,u.maxPixels))return!1}return!(i&&i.video&&i.video.frameRate&&!v(i.video.frameRate,u.minFrameRate,u.maxFrameRate)||i&&i.audio&&i.audio.channelsCount&&!v(i.audio.channelsCount,u.minChannelsCount,u.maxChannelsCount)||!v(i.bandwidth,u.minBandwidth,u.maxBandwidth))}function o_e(i,u,f,v){return f=f===void 0?[]:f,v=v===void 0?{}:v,re(function(b){return b.g==1?I(b,QK(i,u,u.offlineSessionIds.length>0,f,v),2):(u_e(u),I(b,c_e(u),0))})}function QK(i,u,f,v,b){var w,A;return re(function(R){if(R.g==1)return Fe().Ui()&&s_e(u.variants),I(R,MI(u.variants,f,!1,v),2);w=null,i&&(A=i.g)&&(w=A.keySystem),u.variants=u.variants.filter(function(B){var V=a_e(B,w,b);if(!V){var K=[];B.audio&&K.push(sq(B.audio)),B.video&&K.push(sq(B.video))}return V}),N(R)})}function s_e(i){var u=new Map().set("dvav","avc3").set("dva1","avc1").set("dvhe","hev1").set("dvh1","hvc1").set("dvc1","vvc1").set("dvi1","vvi1"),f=new Set;i=_(i);for(var v=i.next();!v.done;v=i.next())v=v.value,v.video&&f.add(v.video);for(f=_(f),i=f.next();!i.done;i=f.next()){i=i.value,v=_(u);for(var b=v.next();!b.done;b=v.next()){var w=_(b.value);if(b=w.next().value,w=w.next().value,i.codecs.includes(b)){i.codecs=i.codecs.replace(b,w);break}}}}function a_e(i,u,f){if(!i.decodingInfos.some(function(B){return!(!B.supported||u&&(B=B.keySystemAccess)&&(f[B.keySystem]||B.keySystem)!=u)}))return!1;var v=Fe(),b=v.Nb()==="Xbox";v=v.Ua()==="MOBILE"&&v.Ha()==="GECKO";var w=i.video,A=w&&w.width||0,R=w&&w.height||0;return b&&w&&(A>1920||R>1080)&&(w.codecs.includes("avc1.")||w.codecs.includes("avc3."))||(b=w&&w.dependencyStream)&&!Il(b)?!1:(i=i.audio,!(v&&i&&i.encrypted&&i.codecs.toLowerCase().includes("opus")||i&&i.dependencyStream))}function eq(i,u){var f,v,b,w,A,R,B;return re(function(V){if(V.g==1){for(f=function(K,Y){if(K){var oe=An(K);return oe.supported=K.supported&&Y.supported,oe.powerEfficient=K.powerEfficient&&Y.powerEfficient,oe.smooth=K.smooth&&Y.smooth,Y.keySystemAccess&&!oe.keySystemAccess&&(oe.keySystemAccess=Y.keySystemAccess),oe}return Y},v=null,b=[],w=_(u),A=w.next(),R={};!A.done;R={cache:void 0,Pe:void 0},A=w.next())B=A.value,R.Pe=Xn(B),R.cache=NS,R.cache.has(R.Pe)?v=f(v,R.cache.get(R.Pe)):b.push(l_e(B).then((function(K){return function(Y){var oe=null;Y=_(Y||[]);for(var ue=Y.next();!ue.done;ue=Y.next())oe=f(oe,ue.value);oe&&(K.cache.set(K.Pe,oe),v=f(v,oe))}})(R)));return I(V,Promise.all(b),2)}v&&i.decodingInfos.push(v),N(V)})}function l_e(i){var u=[""];i.video&&(u=tl(i.video.contentType).split(","));var f=[""];i.audio&&(f=tl(i.audio.contentType).split(","));var v=[];u=_(u);for(var b=u.next();!b.done;b=u.next()){b=b.value;for(var w=_(f),A=w.next(),R={};!A.done;R={Qc:void 0},A=w.next())A=A.value,R.Qc=fn(i),i.video&&(R.Qc.video.contentType=yo(Ll(R.Qc.video.contentType),b)),i.audio&&(R.Qc.audio.contentType=yo(Ll(R.Qc.audio.contentType),A)),v.push(new Promise((function(B){return function(V,K){(Fe().Ua()=="MOBILE"?DS(5,navigator.mediaCapabilities.decodingInfo(B.Qc)):navigator.mediaCapabilities.decodingInfo(B.Qc)).then(function(Y){V(Y)}).catch(K)}})(R)))}return Promise.all(v).catch(function(){return JSON.stringify(i),null})}function MI(i,u,f,v){var b,w,A,R,B,V,K,Y,oe,ue,he,ge,ye,Oe,De,qe,ot,mt;return re(function(Qe){switch(Qe.g){case 1:if(i.some(function(He){return He.decodingInfos.length}))return Qe.return();b=_(v),w=b.next(),A={};case 2:if(w.done){Qe.A(4);break}A.Ci=w.value,R=!1,B=_(i),V=B.next();case 5:if(V.done){Qe.A(7);break}K=V.value,Y=tq(K,u,f).filter((function(He){return function(ct){return ct=ct[0],(ct.keySystemConfiguration&&ct.keySystemConfiguration.keySystem)===He.Ci}})(A)),oe=_(Y),ue=oe.next();case 8:if(ue.done){Qe.A(10);break}return he=ue.value,I(Qe,eq(K,he),9);case 9:ue=oe.next(),Qe.A(8);break;case 10:K.decodingInfos.some(function(He){return He.supported})&&(R=!0),V=B.next(),Qe.A(5);break;case 7:if(R)return Qe.return();A={Ci:void 0},w=b.next(),Qe.A(2);break;case 4:ge=_(i),ye=ge.next();case 12:if(ye.done){Qe.A(0);break}Oe=ye.value,De=tq(Oe,u,f).filter(function(He){return He=He[0],He=He.keySystemConfiguration&&He.keySystemConfiguration.keySystem,!He||!v.includes(He)}),qe=_(De),ot=qe.next();case 15:if(ot.done){ye=ge.next(),Qe.A(12);break}return mt=ot.value,I(Qe,eq(Oe,mt),16);case 16:ot=qe.next(),Qe.A(15)}})}function tq(i,u,f){var v=i.audio,b=i.video,w=[],A=[];if(b)for(var R=_(b.fullMimeTypes),B=R.next();!B.done;B=R.next()){B=B.value;var V=tl(B);if(V.includes(",")&&!v){var K=V.split(","),Y=Ll(B);V=mi("video",K),K=mi("audio",K),K=D3(K,Y),Y=DI(Y,K,"audio"),A.push({contentType:Y,channels:2,bitrate:i.bandwidth||1,samplerate:1,spatialRendering:!1})}if(V=nq(V),B={contentType:DI(Ll(B),V,"video"),width:b.width||64,height:b.height||64,bitrate:b.bandwidth||i.bandwidth||1,framerate:b.frameRate||30},b.hdr)switch(b.hdr){case"PQ":B.transferFunction="pq";break;case"HLG":B.transferFunction="hlg"}b.colorGamut&&(B.colorGamut=b.colorGamut),w.push(B)}if(v)for(R=_(v.fullMimeTypes),B=R.next();!B.done;B=R.next())V=B.value,B=Ll(V),V=D3(tl(V),B),B=DI(B,V,"audio"),A.push({contentType:B,channels:v.channelsCount||2,bitrate:v.bandwidth||i.bandwidth||1,samplerate:v.audioSamplingRate||1,spatialRendering:v.spatialAudio});for(R=[],w.length==0&&w.push(null),A.length==0&&A.push(null),w=_(w),B=w.next();!B.done;B=w.next())for(B=B.value,V=_(A),Y=V.next();!Y.done;Y=V.next())Y=Y.value,K={type:f?"file":"media-source"},B&&(K.video=B),Y&&(K.audio=Y),R.push(K);if(A=(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[]),!A.length)return[R];for(i=[],f=new Map,A=_(A),w=A.next();!w.done;w=A.next())w=w.value,f.get(w.keySystem)||f.set(w.keySystem,[]),f.get(w.keySystem).push(w);for(A=u?"required":"optional",u=u?["persistent-license"]:["temporary"],w=_(f.keys()),B=w.next();!B.done;B=w.next()){for(B=B.value,Y=f.get(B),V=new Map,Y=_(Y),K=Y.next();!K.done;K=Y.next()){K=K.value;var oe=K.videoRobustness+","+K.audioRobustness;V.get(oe)||V.set(oe,[]),V.get(oe).push(K)}for(V=_(V.values()),Y=V.next();!Y.done;Y=V.next()){Y=Y.value,K=[],oe=_(R);for(var ue=oe.next();!ue.done;ue=oe.next()){ue=Object.assign({},ue.value);for(var he={keySystem:B,initDataType:"cenc",persistentState:A,distinctiveIdentifier:"optional",sessionTypes:u},ge=_(Y),ye=ge.next();!ye.done;ye=ge.next()){if(ye=ye.value,ye.initData&&ye.initData.length){for(var Oe=new Set,De=_(ye.initData),qe=De.next();!qe.done;qe=De.next())Oe.add(qe.value.initDataType);he.initDataType=ye.initData[0].initDataType}ye.distinctiveIdentifierRequired&&(he.distinctiveIdentifier="required"),ye.persistentStateRequired&&(he.persistentState="required"),ye.sessionType&&(he.sessionTypes=[ye.sessionType]),v&&(he.audio?(ye.encryptionScheme&&(he.audio.encryptionScheme=he.audio.encryptionScheme||ye.encryptionScheme),he.audio.robustness=he.audio.robustness||ye.audioRobustness):(he.audio={robustness:ye.audioRobustness},ye.encryptionScheme&&(he.audio.encryptionScheme=ye.encryptionScheme)),he.audio.robustness==""&&delete he.audio.robustness),b&&(he.video?(ye.encryptionScheme&&(he.video.encryptionScheme=he.video.encryptionScheme||ye.encryptionScheme),he.video.robustness=he.video.robustness||ye.videoRobustness):(he.video={robustness:ye.videoRobustness},ye.encryptionScheme&&(he.video.encryptionScheme=ye.encryptionScheme)),he.video.robustness==""&&delete he.video.robustness)}ue.keySystemConfiguration=he,K.push(ue)}i.push(K)}}return i}function D3(i,u){var f=Fe();return i.toLowerCase()=="flac"?f.Ha()!="WEBKIT"?"flac":"fLaC":i.toLowerCase()==="opus"?f.Ha()!="WEBKIT"?"opus":C3(u)=="mp4"?"Opus":"opus":i.toLowerCase()=="ac-3"&&f.oe()?"ec-3":i}function nq(i){if(i.includes("avc1")){var u=i.split(".");if(u.length==3)return i=u.shift()+".",i+=parseInt(u.shift(),10).toString(16),i+=("000"+parseInt(u.shift(),10).toString(16)).slice(-4)}else if(i=="vp9")return"vp09.00.41.08";return i}function u_e(i){i.textStreams=i.textStreams.filter(function(u){return u=yo(u.mimeType,u.codecs),T3(u)})}function c_e(i){var u,f,v,b,w,A,R;return re(function(B){switch(B.g){case 1:u=[],f=_(i.imageStreams),v=f.next();case 2:if(v.done){B.A(4);break}if(b=v.value,w=b.mimeType,w=="application/mp4"&&b.codecs=="mjpg"&&(w="image/jpg"),FS.has(w)){B.A(5);break}if(A=p_e.get(w),!A){FS.set(w,!1),B.A(5);break}return I(B,d_e(A),7);case 7:R=B.h,FS.set(w,R);case 5:FS.get(w)&&u.push(b),v=f.next(),B.A(2);break;case 4:i.imageStreams=u,N(B)}})}function d_e(i){return new Promise(function(u){var f=new Image;f.src=i,"decode"in f?f.decode().then(function(){u(!0)}).catch(function(){u(!1)}):f.onload=f.onerror=function(){u(f.height===2)}})}function U0(i){var u=i.audio,f=i.video,v=u?u.mimeType:null,b=f?f.mimeType:null,w=u?u.codecs:null,A=f?f.codecs:null,R=u?u.groupId:null,B=[];f&&B.push(f.mimeType),u&&B.push(u.mimeType),B=B[0]||null;var V=[];u&&V.push(u.kind),f&&V.push(f.kind),V=V[0]||null;var K=new Set;if(u)for(var Y=_(u.roles),oe=Y.next();!oe.done;oe=Y.next())K.add(oe.value);if(f)for(Y=_(f.roles),oe=Y.next();!oe.done;oe=Y.next())K.add(oe.value);if(i={id:i.id,active:!1,type:"variant",bandwidth:i.bandwidth,language:i.language,label:null,videoLabel:null,kind:V,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:B,audioMimeType:v,videoMimeType:b,codecs:"",audioCodec:w,videoCodec:A,primary:i.primary,roles:Array.from(K),audioRoles:null,videoRoles:null,forced:!1,videoId:null,audioId:null,audioGroupId:R,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:null,originalAudioId:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:null},f&&(i.videoId=f.id,i.originalVideoId=f.originalId,i.width=f.width||null,i.height=f.height||null,i.frameRate=f.frameRate||null,i.pixelAspectRatio=f.pixelAspectRatio||null,i.videoBandwidth=f.bandwidth||null,i.hdr=f.hdr||null,i.colorGamut=f.colorGamut||null,i.videoLayout=f.videoLayout||null,i.videoRoles=f.roles,i.videoLabel=f.label,(v=f.dependencyStream)&&(i.width=v.width||i.width,i.height=v.height||i.height,i.videoCodec=v.codecs||i.videoCodec,i.videoBandwidth&&v.bandwidth&&(i.videoBandwidth+=v.bandwidth)),A.includes(","))){i.channelsCount=f.channelsCount,i.audioSamplingRate=f.audioSamplingRate,i.spatialAudio=f.spatialAudio,i.originalLanguage=f.originalLanguage,i.audioMimeType=b,b=A.split(",");try{i.videoCodec=mi("video",b),i.audioCodec=mi("audio",b)}catch{}}return u&&(i.audioId=u.id,i.originalAudioId=u.originalId,i.channelsCount=u.channelsCount,i.audioSamplingRate=u.audioSamplingRate,i.audioBandwidth=u.bandwidth||null,i.spatialAudio=u.spatialAudio,i.label=u.label,i.audioRoles=u.roles,i.accessibilityPurpose=u.accessibilityPurpose,i.originalLanguage=u.originalLanguage,b=u.dependencyStream)&&(i.audioCodec=b.codecs||i.audioCodec,i.audioBandwidth&&b.bandwidth&&(i.audioBandwidth+=b.bandwidth)),f&&!i.videoBandwidth&&(u?i.audioBandwidth&&(i.videoBandwidth=i.bandwidth-i.audioBandwidth):i.videoBandwidth=i.bandwidth),u&&!i.audioBandwidth&&(f?i.videoBandwidth&&(i.audioBandwidth=i.bandwidth-i.videoBandwidth):i.audioBandwidth=i.bandwidth),u=[],i.videoCodec&&u.push(i.videoCodec),i.audioCodec&&u.push(i.audioCodec),i.codecs=u.join(", "),i}function H0(i){return{id:i.id,active:!1,type:Tn,bandwidth:i.bandwidth||0,language:i.language,label:i.label,kind:i.kind||null,mimeType:i.mimeType,codecs:i.codecs||null,primary:i.primary,roles:i.roles,accessibilityPurpose:i.accessibilityPurpose,forced:i.forced,originalTextId:i.originalId,originalLanguage:i.originalLanguage}}function OI(i){var u=i.width||null,f=i.height||null,v=null;i.segmentIndex&&(v=nd(i.segmentIndex));var b=i.tilesLayout;return v&&(b=v.tilesLayout||b),b&&u!=null&&(u/=Number(b.split("x")[0])),b&&f!=null&&(f/=Number(b.split("x")[1])),{id:i.id,type:"image",bandwidth:i.bandwidth||0,width:u,height:f,mimeType:i.mimeType,codecs:i.codecs||null,tilesLayout:b||null,originalImageId:i.originalId}}function OS(i){return i.__shaka_id||(i.__shaka_id=h_e++),i.__shaka_id}function rq(i){var u={id:OS(i),active:i.mode!="disabled",type:Tn,bandwidth:0,language:qr(i.language||"und"),label:i.label,kind:i.kind,mimeType:null,codecs:null,primary:!1,roles:[],accessibilityPurpose:null,forced:i.kind=="forced",originalTextId:i.id,originalLanguage:i.language};return i.kind=="captions"&&(u.mimeType="unknown"),i.kind=="subtitles"&&(u.mimeType="text/vtt"),i.kind&&(u.roles=[i.kind]),u}function $S(i,u){var f=i?i.language:null;if(f={id:OS(i||u),active:i?i.enabled:u.selected,type:"variant",bandwidth:0,language:qr(f||"und"),label:i?i.label:null,videoLabel:null,kind:i?i.kind:null,width:null,height:null,frameRate:null,pixelAspectRatio:null,hdr:null,colorGamut:null,videoLayout:null,mimeType:null,audioMimeType:null,videoMimeType:null,codecs:null,audioCodec:null,videoCodec:null,primary:i?i.kind=="main":!1,roles:[],forced:!1,audioRoles:null,videoRoles:null,videoId:null,audioId:null,audioGroupId:null,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,tilesLayout:null,audioBandwidth:null,videoBandwidth:null,originalVideoId:u?u.id:null,originalAudioId:i?i.id:null,originalTextId:null,originalImageId:null,accessibilityPurpose:null,originalLanguage:f},i&&i.kind&&(f.roles=[i.kind],f.audioRoles=[i.kind]),i&&i.configuration&&(i.configuration.codec&&(f.audioCodec=i.configuration.codec,f.codecs=f.audioCodec),i.configuration.bitrate&&(f.audioBandwidth=i.configuration.bitrate,f.bandwidth+=f.audioBandwidth),i.configuration.sampleRate&&(f.audioSamplingRate=i.configuration.sampleRate),i.configuration.numberOfChannels&&(f.channelsCount=i.configuration.numberOfChannels)),u&&u.configuration&&(u.configuration.codec&&(f.videoCodec=u.configuration.codec,f.codecs=f.codecs?f.codecs+(","+f.videoCodec):f.videoCodec),u.configuration.bitrate&&(f.videoBandwidth=u.configuration.bitrate,f.bandwidth+=f.videoBandwidth),u.configuration.framerate&&(f.frameRate=u.configuration.framerate),u.configuration.width&&(f.width=u.configuration.width),u.configuration.height&&(f.height=u.configuration.height),u.configuration.colorSpace&&u.configuration.colorSpace.transfer))switch(u.configuration.colorSpace.transfer){case"pq":f.hdr="PQ";break;case"hlg":f.hdr="HLG";break;case"bt709":f.hdr="SDR"}return f}function P3(i){return i.allowedByApplication&&i.allowedByKeySystem&&i.disabledUntilTime==0}function BS(i){return i.filter(function(u){return P3(u)})}function og(i,u,f,v){var b=i,w=i.filter(function(B){return B.primary});w.length&&(b=w);var A=b.length?b[0].language:"";if(b=b.filter(function(B){return B.language==A}),u){var R=RS(qr(u),i.map(function(B){return B.language}));R&&(b=i.filter(function(B){return qr(B.language)==R}))}if(b=b.filter(function(B){return B.forced==v}),f){if(i=iq(b,f),i.length)return i}else if(i=b.filter(function(B){return B.roles.length==0}),i.length)return i;return i=b.map(function(B){return B.roles}).reduce(t_e,[]),i.length?iq(b,i[0]):b}function iq(i,u){return i.filter(function(f){return f.roles.includes(u)})}function f_e(i){var u=[];return i.audio&&u.push(i.audio),i.video&&u.push(i.video),u}function oq(i,u){u.length&&(u=u.filter(function(f){return Js(i.codecs)==Js(f.codecs)}).sort(function(f,v){return f.bandwidth&&v.bandwidth&&f.bandwidth!=v.bandwidth?f.bandwidth-v.bandwidth:(f.width||0)-(v.width||0)}),i.trickModeVideo=u[0],u.length>1&&(u=u.find(function(f){return i.width==f.width&&i.height==f.height})))&&(i.trickModeVideo=u)}function sq(i){return i.type=="audio"?"type=audio codecs="+i.codecs+" bandwidth="+i.bandwidth+" channelsCount="+i.channelsCount+" audioSamplingRate="+i.audioSamplingRate:i.type=="video"?"type=video codecs="+i.codecs+" bandwidth="+i.bandwidth+" frameRate="+i.frameRate+" width="+i.width+" height="+i.height:"unexpected stream type"}function aq(i,u,f){if(f.autoShowText==0)return!1;if(f.autoShowText==1)return!0;var v=qr(f.preferredTextLanguage);return u=qr(u.language),f.autoShowText==2?ig(u,v):f.autoShowText==3?i?(i=qr(i.language),ig(u,v)&&!ig(i,u)):!1:(Xe("Invalid autoShowText setting!"),!1)}function lq(i){var u={id:0,language:"und",disabledUntilTime:0,primary:!1,audio:null,video:null,bandwidth:100,allowedByApplication:!0,allowedByKeySystem:!0,decodingInfos:[]};i=_(i);for(var f=i.next();!f.done;f=i.next()){f=f.value;var v={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:f?Ll(f):"",codecs:f?tl(f):"",encrypted:!0,drmInfos:[],keyIds:new Set,language:"und",originalLanguage:null,label:null,type:"video",primary:!1,trickModeVideo:null,dependencyStream:null,emsgSchemeIdUris:null,roles:[],forced:!1,channelsCount:null,audioSamplingRate:null,spatialAudio:!1,closedCaptions:null,accessibilityPurpose:null,external:!1,fastSwitching:!1,fullMimeTypes:new Set,isAudioMuxedInVideo:!1,baseOriginalId:null};v.fullMimeTypes.add(yo(v.mimeType,v.codecs)),f.startsWith("audio/")?(v.type="audio",u.audio=v):u.video=v}return u}ze("shaka.util.StreamUtils",ZK),ZK.meetsRestrictions=MS;var NS=new Map,h_e=0,FS=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),p_e=new Map().set("image/webp","data:image/webp;base64,UklGRjoAAABXRUJQVlA4IC4AAACyAgCdASoCAAIALmk0mk0iIiIiIgBoSygABc6WWgAA/veff/0PP8bA//LwYAAA").set("image/avif","data:image/avif;base64,AAAAIGZ0eXBhdmlmAAAAAGF2aWZtaWYxbWlhZk1BMUIAAADybWV0YQAAAAAAAAAoaGRscgAAAAAAAAAAcGljdAAAAAAAAAAAAAAAAGxpYmF2aWYAAAAADnBpdG0AAAAAAAEAAAAeaWxvYwAAAABEAAABAAEAAAABAAABGgAAAB0AAAAoaWluZgAAAAAAAQAAABppbmZlAgAAAAABAABhdjAxQ29sb3IAAAAAamlwcnAAAABLaXBjbwAAABRpc3BlAAAAAAAAAAIAAAACAAAAEHBpeGkAAAAAAwgICAAAAAxhdjFDgQ0MAAAAABNjb2xybmNseAACAAIAAYAAAAAXaXBtYQAAAAAAAAABAAEEAQKDBAAAACVtZGF0EgAKCBgANogQEAwgMg8f8D///8WfhwB8+ErK42A=");function Zi(){var i=this;this.H=null,this.B=!1,this.u=new Ne,this.j=new Ye,navigator.connection&&navigator.connection.addEventListener&&this.j.D(navigator.connection,"change",function(){if(i.B&&i.g.useNetworkInformation){i.u=new Ne,i.g&&i.u.configure(i.g.advanced);var u=i.chooseVariant();u&&navigator.onLine&&i.H(u,i.g.clearBufferSwitch,i.g.safeMarginSwitch)}}),this.o=[],this.I=1,this.J=!1,this.h=this.m=this.g=this.C=null,this.l=new vr(function(){if(i.B&&(i.g.restrictToElementSize||i.g.restrictToScreenSize)){var u=i.chooseVariant();u&&i.H(u,i.g.clearBufferSwitch,i.g.safeMarginSwitch)}}),this.F=o,"documentPictureInPicture"in o&&this.j.D(o.documentPictureInPicture,"enter",function(){i.F=o.documentPictureInPicture.window,i.l&&i.l.Jb(),i.j.Ba(i.F,"pagehide",function(){i.F=o,i.l&&i.l.Jb()})}),this.G=this.i=null}l=Zi.prototype,l.stop=function(){this.H=null,this.B=!1,this.o=[],this.I=1,this.m=this.C=null,this.h&&(this.h.disconnect(),this.h=null),this.l&&this.l.stop(),this.G=this.i=null},l.release=function(){this.stop(),this.j.release(),this.l=null},l.init=function(i){this.H=i},l.chooseVariant=function(i){i=i===void 0?!1:i;var u=1/0,f=1/0;if(this.g.restrictToScreenSize&&(f=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,u=this.F.screen.height*f,f*=this.F.screen.width),this.h&&this.g.restrictToElementSize){var v=this.g.ignoreDevicePixelRatio?1:this.F.devicePixelRatio,b=this.m.clientHeight,w=this.m.clientWidth;this.i&&document.pictureInPictureElement&&document.pictureInPictureElement==this.m&&(b=this.i.height,w=this.i.width),u=Math.min(u,b*v),f=Math.min(f,w*v)}if(b=this.o.filter(function(V){return V&&!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)}),b.length||(b=this.o),v=b,i&&b.length!=this.o.length&&(v=this.o.filter(function(V){return V&&!!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)})),i=$I(this,this.g.restrictions,v,1/0,1/0),u!=1/0||f!=1/0){for(i=v_e(i),i=_(i),b=i.next();!b.done;b=i.next())if(b=b.value,b.height>=u&&b.width>=f){u=b.height,f=b.width;break}i=$I(this,this.g.restrictions,v,u,f)}for(u=this.getBandwidthEstimate(),v.length&&!i.length&&(i=$I(this,null,v,1/0,1/0),i=[i[0]]),f=i[0]||null,v=0;v=w&&u<=A&&(f.bandwidth!=b.bandwidth||f.bandwidth==b.bandwidth&&f.video&&b.video&&(f.video.width=this.g.cacheLoadThreshold&&this.u.sample(b,u),f&&this.C!=null&&this.B&&uq(this)},l.trySuggestStreams=function(){this.B&&(this.C=Date.now(),uq(this,!0))},l.getBandwidthEstimate=function(){var i=this.g.defaultBandwidthEstimate;return navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&(i=navigator.connection.downlink*1e6),navigator.connection&&navigator.connection.downlink&&this.g.useNetworkInformation&&this.g.preferNetworkInformationBandwidth?i:(i=this.u.getBandwidthEstimate(i),this.G?this.G.getBandwidthEstimate(i):i)},l.setVariants=function(i){return on(i,this.o)?!1:(this.o=i,!0)},l.playbackRateChanged=function(i){this.I=i},l.setMediaElement=function(i){function u(){f.l.ia(m_e)}var f=this;this.m=i,this.h&&(this.h.disconnect(),this.h=null),this.m&&"ResizeObserver"in o&&(this.h=new ResizeObserver(u),this.h.observe(this.m)),this.j.D(i,"enterpictureinpicture",function(v){v.pictureInPictureWindow&&(f.i=v.pictureInPictureWindow,f.j.D(f.i,"resize",u))}),this.j.D(i,"leavepictureinpicture",function(){f.i&&f.j.Ma(f.i,"resize",u),f.i=null})},l.setCmsdManager=function(i){this.G=i},l.configure=function(i){this.g=i,this.u&&this.g&&this.u.configure(this.g.advanced)};function uq(i,u){if(u===void 0||!u){if(!i.J){if(u=i.u,!(u.g>=u.i))return;i.J=!0,i.C-=(i.g.switchInterval-i.g.minTimeToSwitch)*1e3}if(Date.now()-i.C=i.l)if(i.i)i.g=1,i.h=i.j;else throw new Ae(2,7,1010);return u=i.g,i.g++,u==0?v.return():(f=i.h*(1+(Math.random()*2-1)*i.o),I(v,new Promise(function(b){new vr(b).ia(f/1e3)}),2))}i.h*=i.m,N(v)})}function yc(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function li(){var i,u,f=new Promise(function(v,b){i=v,u=b});return f.resolve=i,f.reject=u,f}li.prototype.resolve=function(){},li.prototype.reject=function(){};function bo(i,u){this.promise=i,this.i=u,this.g=null}function sp(i){return new bo(Promise.reject(i),function(){return Promise.resolve()})}function NI(){var i=Promise.reject(new Ae(2,7,7001));return i.catch(function(){}),new bo(i,function(){return Promise.resolve()})}function ag(i){return new bo(Promise.resolve(i),function(){return Promise.resolve()})}function pq(i){return new bo(i,function(){return i.catch(function(){})})}bo.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function vq(i){return new bo(Promise.all(i.map(function(u){return u.promise})),function(){return Promise.all(i.map(function(u){return u.abort()}))})}bo.prototype.finally=function(i){return this.promise.then(function(){return i(!0)},function(){return i(!1)}),this},bo.prototype.Xa=function(i,u){function f(R){return function(B){if(b.g&&R)w.reject(A);else{var V=R?i:u;V?v=g_e(V,B,w):(R?w.resolve:w.reject)(B)}}}function v(){return w.reject(A),b.abort()}var b=this,w=new li;w.catch(function(){});var A=new Ae(2,7,7001);return this.promise.then(f(!0),f(!1)),new bo(w,function(){return v()})};function g_e(i,u,f){try{var v=i(u);return v&&v.promise&&v.abort?(f.resolve(v.promise),function(){return v.abort()}):(f.resolve(v),function(){return Promise.resolve(v).then(function(){},function(){})})}catch(b){return f.reject(b),function(){return Promise.resolve()}}}p.Object.defineProperties(bo.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),ze("shaka.util.AbortableOperation",bo),bo.prototype.chain=bo.prototype.Xa,bo.prototype.finally=bo.prototype.finally,bo.all=vq,bo.prototype.abort=bo.prototype.abort,bo.notAbortable=pq,bo.completed=ag,bo.aborted=NI,bo.failed=sp;function Cn(i,u){if(u)if(u instanceof Map)for(var f=_(u.keys()),v=f.next();!v.done;v=f.next())v=v.value,Object.defineProperty(this,v,{value:u.get(v),writable:!0,enumerable:!0});else for(f in u)Object.defineProperty(this,f,{value:u[f],writable:!0,enumerable:!0});this.defaultPrevented=this.cancelable=this.bubbles=!1,this.timeStamp=o.performance&&o.performance.now?o.performance.now():Date.now(),this.type=i,this.isTrusted=!1,this.target=this.currentTarget=null,this.g=!1}function mq(i){var u=new Cn(i.type),f;for(f in i)Object.defineProperty(u,f,{value:i[f],writable:!0,enumerable:!0});return u}Cn.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},Cn.prototype.stopImmediatePropagation=function(){this.g=!0},Cn.prototype.stopPropagation=function(){},ze("shaka.util.FakeEvent",Cn);var US={rl:"abrstatuschanged",ul:"adaptation",vl:"audiotrackchanged",wl:"audiotrackschanged",xl:"boundarycrossed",yl:"buffering",zl:"canupdatestarttime",Al:"complete",Bl:"currentitemchanged",Cl:"downloadcompleted",Dl:"downloadfailed",El:"downloadheadersreceived",Fl:"drmsessionupdate",Gl:"emsg",Ml:"itemsinserted",Nl:"itemsremoved",bm:"prft",Error:"error",Hl:"expirationupdated",Il:"firstquartile",Jl:"gapjumped",Ol:"keystatuschanged",Rl:"loaded",Sl:"loading",Ul:"manifestparsed",Vl:"manifestupdated",Wl:"mediaqualitychanged",Xl:"mediasourcerecovered",Yl:"metadataadded",Metadata:"metadata",Zl:"midpoint",$l:"nospatialvideoinfo",am:"onstatechange",dm:"ratechange",hm:"segmentappended",im:"sessiondata",jm:"spatialvideoinfo",lm:"stalldetected",nm:"started",om:"statechanged",pm:"streaming",qm:"textchanged",rm:"texttrackvisibility",sm:"thirdquartile",tm:"timelineregionadded",um:"timelineregionenter",vm:"timelineregionexit",wm:"trackschanged",ym:"unloading",Am:"variantchanged"};function Yr(){this.ab=new xt,this.Fe=this}Yr.prototype.addEventListener=function(i,u){this.ab&&this.ab.push(i,u)},Yr.prototype.removeEventListener=function(i,u){this.ab&&this.ab.remove(i,u)},Yr.prototype.dispatchEvent=function(i){if(!this.ab)return!0;var u=this.ab.get(i.type)||[],f=this.ab.get("All");for(f&&(u=u.concat(f)),u=_(u),f=u.next();!f.done;f=u.next()){f=f.value,i.target=this.Fe,i.currentTarget=this.Fe;try{f.handleEvent?f.handleEvent(i):f.call(this,i)}catch{}if(i.g)break}return i.defaultPrevented},Yr.prototype.release=function(){this.ab=null};function lg(){this.g=[]}function W0(i,u){i.g.push(u.finally(function(){Dt(i.g,u)}))}lg.prototype.destroy=function(){for(var i=[],u=_(this.g),f=u.next();!f.done;f=u.next())f=f.value,f.promise.catch(function(){}),i.push(f.abort());return this.g=[],Promise.all(i)};function $i(i,u,f,v,b,w,A){Yr.call(this),this.i=null,this.j=!1,this.u=new lg,this.g=new Set,this.h=new Set,this.o=i||null,this.m=u||null,this.B=f||null,this.C=v||null,this.F=b||null,this.H=w||null,this.G=A||null,this.l=new Map}x($i,Yr),l=$i.prototype,l.configure=function(i){this.i=i};function Hf(i,u,f,v){v=v===void 0?!1:v,f=f||Sq;var b=WS.get(i);(!b||f>=b.priority)&&WS.set(i,{priority:f,yf:u,Fk:v})}function gq(i,u){for(var f=_(i.g),v=f.next();!v.done;v=f.next())u.g.add(v.value);for(i=_(i.h),f=i.next();!f.done;f=i.next())u.h.add(f.value)}l.Ik=function(i){this.g.add(i)},l.hl=function(i){this.g.delete(i)},l.oj=function(){this.g.clear()},l.Jk=function(i){this.h.add(i)},l.il=function(i){this.h.delete(i)},l.pj=function(){this.h.clear()},l.Qh=function(){this.l.clear()};function Fo(i,u,f){return{uris:i,method:"GET",body:null,headers:{},allowCrossSiteCredentials:!1,retryParameters:u,licenseRequestType:null,sessionId:null,drmInfo:null,initData:null,initDataType:null,streamDataCallback:f===void 0?null:f}}l.destroy=function(){return this.j=!0,this.g.clear(),this.h.clear(),this.l.clear(),Yr.prototype.release.call(this),this.u.destroy()},l.request=function(i,u,f){var v=this,b=new _q;if(this.j){var w=Promise.reject(new Ae(2,7,7001));return w.catch(function(){}),new HS(w,function(){return Promise.resolve()},b)}u.method=u.method||"GET",u.headers=u.headers||{},u.retryParameters=u.retryParameters?fn(u.retryParameters):yc(),u.uris=fn(u.uris),w=y_e(this,i,u,f);var A=w.Xa(function(){return yq(v,i,u,f,new fq(u.retryParameters,!1),0,null,b)}),R=A.Xa(function(oe){return b_e(v,i,oe,f)}),B=Date.now(),V=0;w.promise.then(function(){V=Date.now()-B},function(){});var K=0;A.promise.then(function(){K=Date.now()},function(){});var Y=R.Xa(function(oe){var ue=Date.now()-K,he=oe.response;return he.timeMs+=V,he.timeMs+=ue,oe.fk||!v.o||he.fromCache||u.method=="HEAD"||i!=Nu||v.o(he.timeMs,he.data.byteLength,bq(f),u,f),v.G&&v.G(i,he,f),he},function(oe){throw oe&&(oe.severity=2),oe});return w=new HS(Y.promise,function(){return Y.abort()},b),W0(this.u,w),w};function y_e(i,u,f,v){function b(R){w=w.Xa(function(){return f.body&&(f.body=Ee(f.body)),R(u,f,v)})}var w=ag(void 0);i.F&&b(i.F),i=_(i.g);for(var A=i.next();!A.done;A=i.next())b(A.value);return w.Xa(void 0,function(R){throw R instanceof Ae&&R.code==7001?R:new Ae(2,1,1006,R)})}function yq(i,u,f,v,b,w,A,R){i.i.forceHTTP&&(f.uris[w]=f.uris[w].replace("https://","http://")),i.i.forceHTTPS&&(f.uris[w]=f.uris[w].replace("http://","https://")),w>0&&i.H&&i.H(u,v,f.uris[w],f.uris[w-1]);var B=new Mt(f.uris[w]),V=B.bc,K=!1;V||(V=location.protocol,V=V.slice(0,-1),vt(B,V),f.uris[w]=B.toString()),V=V.toLowerCase();var Y=(V=WS.get(V))?V.yf:null;if(!Y)return sp(new Ae(2,1,1e3,B));var oe=V.Fk;(B=i.l.get(B.Db))&&(f.headers["common-access-token"]=B);var ue=null,he=null,ge=!1,ye=!1,Oe;return pq(hq(b)).Xa(function(){if(i.j)return NI();Oe=Date.now();var De=0;f.requestStartTime=Date.now();var qe=Y(f.uris[w],f,u,function(Qe,He,ct){ue&&ue.stop(),he&&he.ia(mt/1e3),i.o&&u==Nu&&(De++,f.packetNumber=De,i.o(Qe,He,bq(v),f,v),K=!0,R.g=ct)},function(Qe){ye=!0,f.timeToFirstByte=Date.now()-f.requestStartTime,i.m&&i.m(Qe,f,u)},{minBytesForProgressEvents:i.i.minBytesForProgressEvents});if(!oe)return qe;var ot=f.retryParameters.connectionTimeout;ot&&(ue=new vr(function(){ge=!0,qe.abort()}),ue.ia(ot/1e3));var mt=f.retryParameters.stallTimeout;return mt&&(he=new vr(function(){ge=!0,qe.abort()})),qe}).Xa(function(De){ue&&ue.stop(),he&&he.stop(),De.timeMs==null&&(De.timeMs=Date.now()-Oe);var qe=De.headers["common-access-token"];if(qe){var ot=new Mt(De.uri);i.l.set(ot.Db,qe)}return qe={response:De,fk:K},!ye&&i.m&&i.m(De.headers,f,u),i.B&&i.B(f,De),qe},function(De){if(ue&&ue.stop(),he&&he.stop(),i.C){var qe=null,ot=0;De instanceof Ae&&(qe=De,De.code==1001&&(ot=De.data[1])),i.C(f,qe,ot,ge)}if(i.j)return NI();if(ge&&(De=new Ae(1,1,1003,f.uris[w],u)),De instanceof Ae){if(De.code==7001)throw De;if(De.code==1010)throw A;if(De.severity==1){if(qe=new Map().set("error",De),qe=new Cn("retry",qe),qe.cancelable=!0,i.dispatchEvent(qe),qe.defaultPrevented)throw De;return w=(w+1)%f.uris.length,yq(i,u,f,v,b,w,De,R)}}throw De})}function b_e(i,u,f,v){var b=ag(void 0);i=_(i.h);for(var w=i.next(),A={};!w.done;A={Ji:void 0},w=i.next())A.Ji=w.value,b=b.Xa((function(R){return function(){var B=f.response;return B.data&&(B.data=Ee(B.data)),(0,R.Ji)(u,B,v)}})(A));return b.Xa(function(){return f},function(R){var B=2;if(R instanceof Ae){if(R.code==7001)throw R;B=R.severity}throw new Ae(B,1,1007,R)})}function bq(i){if(i){var u=i.segment;if(i=i.stream,u&&i&&i.fastSwitching&&u.Xc)return!1}return!0}ze("shaka.net.NetworkingEngine",$i),$i.prototype.request=$i.prototype.request,$i.prototype.destroy=$i.prototype.destroy,$i.makeRequest=Fo,$i.defaultRetryParameters=function(){return yc()},$i.prototype.clearCommonAccessTokenMap=$i.prototype.Qh,$i.prototype.clearAllResponseFilters=$i.prototype.pj,$i.prototype.unregisterResponseFilter=$i.prototype.il,$i.prototype.registerResponseFilter=$i.prototype.Jk,$i.prototype.clearAllRequestFilters=$i.prototype.oj,$i.prototype.unregisterRequestFilter=$i.prototype.hl,$i.prototype.registerRequestFilter=$i.prototype.Ik,$i.unregisterScheme=function(i){WS.delete(i)},$i.registerScheme=Hf,$i.prototype.configure=$i.prototype.configure;function _q(){this.g=0}$i.NumBytesRemainingClass=_q;function HS(i,u,f){bo.call(this,i,u),this.h=f}x(HS,bo),$i.PendingRequest=HS;var Nu=1;$i.RequestType={MANIFEST:0,SEGMENT:Nu,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},$i.AdvancedRequestType={INIT_SEGMENT:0,MEDIA_SEGMENT:1,MEDIA_PLAYLIST:2,MASTER_PLAYLIST:3,MPD:4,MSS:5,MPD_PATCH:6,MEDIATAILOR_SESSION_INFO:7,MEDIATAILOR_TRACKING_INFO:8,MEDIATAILOR_STATIC_RESOURCE:9,MEDIATAILOR_TRACKING_EVENT:10,INTERSTITIAL_ASSET_LIST:11,INTERSTITIAL_AD_URL:12};var Sq=3;$i.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Sq};var WS=new Map;function ug(i){this.g=!1,this.h=new li,this.i=i}ug.prototype.destroy=function(){var i=this;return this.g?this.h:(this.g=!0,this.i().then(function(){i.h.resolve()},function(){i.h.resolve()}))};function Ei(i,u){if(i.g)throw u instanceof Ae&&u.code==7003?u:new Ae(2,7,7003,u)}function FI(i,u){var f=[];i=_(i);for(var v=i.next();!v.done;v=i.next())f.push(u(v.value));return f}function __e(i,u){i=_(i);for(var f=i.next();!f.done;f=i.next())if(!u(f.value))return!1;return!0}function cg(i){for(var u=new Map,f=_(Object.keys(i)),v=f.next();!v.done;v=f.next())v=v.value,u.set(v,i[v]);return u}function jI(i){var u={};return i.forEach(function(f,v){u[v]=f}),u}function Ri(i,u){this.h=it(i),this.i=u==kq,this.g=0}l=Ri.prototype,l.Ia=function(){return this.g2097151)throw new Ae(2,3,3001);return this.g+=8,u*4294967296+i},l.Tb=function(i,u){if(this.g+i>this.h.byteLength)throw Wf();var f=Re(this.h,this.g,i);return this.g+=i,u?new Uint8Array(f):f},l.skip=function(i){if(this.g+i>this.h.byteLength)throw Wf();this.g+=i},l.Ki=function(i){if(this.gthis.h.byteLength)throw Wf();this.g=i},l.Yc=function(){for(var i=this.g;this.Ia()&&this.h.getUint8(this.g)!=0;)this.g+=1;return i=Re(this.h,i,this.g-i),this.g+=1,st(i)};function Wf(){return new Ae(2,3,3e3)}ze("shaka.util.DataViewReader",Ri),Ri.prototype.readTerminatedString=Ri.prototype.Yc,Ri.prototype.seek=Ri.prototype.seek,Ri.prototype.rewind=Ri.prototype.Ki,Ri.prototype.skip=Ri.prototype.skip,Ri.prototype.readBytes=Ri.prototype.Tb,Ri.prototype.readUint64=Ri.prototype.Dd,Ri.prototype.readInt32=Ri.prototype.Zg,Ri.prototype.readUint32=Ri.prototype.U,Ri.prototype.readUint16=Ri.prototype.Ca,Ri.prototype.readUint8=Ri.prototype.Y,Ri.prototype.getLength=Ri.prototype.getLength,Ri.prototype.getPosition=Ri.prototype.Oa,Ri.prototype.hasMoreData=Ri.prototype.Ia;var kq=1;Ri.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:kq};function ui(){this.i=new Map,this.h=new Map,this.g=!1}l=ui.prototype,l.box=function(i,u){return i=xq(i),this.i.set(i,S_e),this.h.set(i,u),this},l.S=function(i,u){return i=xq(i),this.i.set(i,Cq),this.h.set(i,u),this},l.stop=function(){this.g=!0},l.parse=function(i,u,f){for(i=new Ri(i,0),this.g=!1;i.Ia()&&!this.g;)this.zd(0,i,u,f)},l.zd=function(i,u,f,v){var b=u.Oa();if(v&&b+8>u.getLength())this.g=!0;else{var w=u.U(),A=u.U(),R=KS(A),B=!1;switch(w){case 0:w=u.getLength()-b;break;case 1:if(v&&u.Oa()+8>u.getLength()){this.g=!0;return}w=u.Dd(),B=!0}var V=this.h.get(A);if(V){var K=null,Y=null;if(this.i.get(A)==Cq){if(v&&u.Oa()+4>u.getLength()){this.g=!0;return}Y=u.U(),K=Y>>>24,Y&=16777215}A=b+w,f&&A>u.getLength()&&(A=u.getLength()),v&&A>u.getLength()?this.g=!0:(A-=u.Oa(),u=A>0?u.Tb(A,!1):new Uint8Array(0),u=new Ri(u,0),V({name:R,parser:this,partialOkay:f||!1,stopOnPartial:v||!1,version:K,flags:Y,reader:u,size:w,start:b+i,has64BitSize:B}))}else u.skip(Math.min(b+w-u.Oa(),u.getLength()-u.Oa()))}};function sr(i){for(var u=ap(i);i.reader.Ia()&&!i.parser.g;)i.parser.zd(i.start+u,i.reader,i.partialOkay,i.stopOnPartial)}function Gf(i){for(var u=ap(i),f=i.reader.U(),v=0;v>24&255,i>>16&255,i>>8&255,i&255)}function ap(i){return 8+(i.has64BitSize?8:0)+(i.flags!=null?4:0)}ze("shaka.util.Mp4Parser",ui),ui.headerSize=ap,ui.typeToString=KS,ui.allData=dg,ui.audioSampleEntry=GS,ui.visualSampleEntry=Dl,ui.sampleDescription=Gf,ui.children=sr,ui.prototype.parseNext=ui.prototype.zd,ui.prototype.parse=ui.prototype.parse,ui.prototype.stop=ui.prototype.stop,ui.prototype.fullBox=ui.prototype.S,ui.prototype.box=ui.prototype.box;var S_e=0,Cq=1;function VI(i){var u=this;this.g=[],this.h=[],this.data=[],new ui().box("moov",sr).box("moof",sr).S("pssh",function(f){if(!(f.version>1)){var v=Re(f.reader.h,-12,f.size);if(u.data.push(v),v=f.reader.Tb(16,!1),u.g.push(Dn(v)),f.version>0){v=f.reader.U();for(var b=0;b0&&(w+=4+16*f.size);var A=new Uint8Array(w),R=it(A),B=0;if(R.setUint32(B,w),B+=4,R.setUint32(B,1886614376),B+=4,v<1?R.setUint32(B,0):R.setUint32(B,16777216),B+=4,A.set(u,B),B+=u.length,v>0)for(R.setUint32(B,f.size),B+=4,u=_(f),f=u.next();!f.done;f=u.next())f=rr(f.value),A.set(f,B),B+=f.length;return R.setUint32(B,b),A.set(i,B+4),A}function YS(i){var u=this;this.F=i,this.j=this.B=null,this.qa=this.T=!1,this.J=0,this.g=null,this.o=new Ye,this.i=new Map,this.X=[],this.C=new Map,this.K=!1,this.m=new li,this.h=null,this.u=function(f){f.severity==2&&u.m.reject(f),i.onError(f)},this.aa=new Map,this.ma=new Map,this.M=new vr(function(){return P_e(u)}),this.R=!1,this.N=[],this.$=!1,this.G=new vr(function(){M_e(u)}),this.m.catch(function(){}),this.l=new ug(function(){return k_e(u)}),this.O=!1,this.H=this.I=null,this.V=function(){return!1}}l=YS.prototype,l.destroy=function(){return this.l.destroy()};function k_e(i){return re(function(u){switch(u.g){case 1:return i.o.release(),i.o=null,i.m.reject(),i.G.stop(),i.G=null,i.M.stop(),i.M=null,I(u,M3(i),2);case 2:if(!i.j){u.A(3);break}return j(u,4),I(u,i.j.setMediaKeys(null),6);case 6:z(u,5);break;case 4:G(u);case 5:i.j=null;case 3:i.g=null,i.B=null,i.C=new Map,i.h=null,i.u=function(){},i.F=null,i.O=!1,i.I=null,N(u)}})}l.configure=function(i,u){this.h=i,u&&(this.V=u),this.G&&this.T&&this.g&&this.G.Ea(this.h.updateExpirationTime)};function x_e(i,u,f){return i.qa=!0,i.C=new Map,i.R=f,Eq(i,u,!1)}function wq(i,u,f,v){v=v===void 0?!0:v,i.C=new Map,f=_(f);for(var b=f.next();!b.done;b=f.next())i.C.set(b.value,{initData:null,initDataType:null});for(f=_(i.h.persistentSessionsMetadata),b=f.next();!b.done;b=f.next())b=b.value,i.C.set(b.sessionId,{initData:b.initData,initDataType:b.initDataType});return i.R=i.C.size>0,Eq(i,u,v)}function C_e(i,u,f,v,b,w){var A,R,B,V,K;return re(function(Y){return Y.g==1?(A=[],w.length&&A.push(w[0].contentType),b.length&&A.push(b[0].contentType),R=function(oe){return oe=fr(u,oe,null),oe.licenseServerUri=f,oe.serverCertificate=v,oe.persistentStateRequired=!0,oe.sessionType="persistent-license",oe},B=lq(A),B.video&&(V=R(w[0].encryptionScheme||""),B.video.drmInfos.push(V)),B.audio&&(K=R(b[0].encryptionScheme||""),B.audio.drmInfos.push(K)),I(Y,MI([B],!0,i.O,[]),2)):(Ei(i.l),Y.return(Lq(i,[B])))})}function Eq(i,u,f){var v,b,w,A,R,B,V,K,Y,oe,ue,he,ge,ye,Oe,De,qe,ot;return re(function(mt){if(mt.g==1){for($q(i.h.clearKeys,u),v=u.some(function(Qe){return!!(Qe.video&&Qe.video.drmInfos.length||Qe.audio&&Qe.audio.drmInfos.length)}),b=cg(i.h.servers),w=cg(i.h.advanced||{}),!v&&f&&$_e(u,b),A=new WeakSet,R=_(u),B=R.next();!B.done;B=R.next())for(V=B.value,K=Oq(V),Y=_(K),oe=Y.next();!oe.done;oe=Y.next())ue=oe.value,A.has(ue)||(A.add(ue),N_e(ue,b,w,i.h.keySystemsMapping));for(he=function(Qe,He){var ct=[];Qe=_(Qe);for(var pt=Qe.next();!pt.done;pt=Qe.next()){pt=pt.value;var ft=pt[He]||w.has(pt.keySystem)&&w.get(pt.keySystem)[He]||"",_t;if((_t=ft=="")&&(_t=(_t=pt.keySystem)?!!_t.match(/^com\.widevine\.alpha/):!1),_t&&(He=="audioRobustness"?ft=[i.h.defaultAudioRobustnessForWidevine]:He=="videoRobustness"&&(ft=[i.h.defaultVideoRobustnessForWidevine])),typeof ft=="string")ct.push(pt);else if(Array.isArray(ft))for(ft.length===0&&(ft=[""]),ft=_(ft),_t=ft.next();!_t.done;_t=ft.next()){var kt={};ct.push(Object.assign({},pt,(kt[He]=_t.value,kt)))}}return ct},ge=new WeakSet,ye=_(u),Oe=ye.next();!Oe.done;Oe=ye.next())De=Oe.value,De.video&&!ge.has(De.video)&&(De.video.drmInfos=he(De.video.drmInfos,"videoRobustness"),De.video.drmInfos=he(De.video.drmInfos,"audioRobustness"),ge.add(De.video)),De.audio&&!ge.has(De.audio)&&(De.audio.drmInfos=he(De.audio.drmInfos,"videoRobustness"),De.audio.drmInfos=he(De.audio.drmInfos,"audioRobustness"),ge.add(De.audio));return I(mt,MI(u,i.R,i.O,i.h.preferredKeySystems),2)}return Ei(i.l),qe=v||b.size>0,qe?(ot=Lq(i,u),mt.return(v?ot:ot.catch(function(){}))):(i.T=!0,mt.return(Promise.resolve()))})}function Tq(i){var u;return re(function(f){switch(f.g){case 1:if(i.j.mediaKeys)return f.return();if(!i.I){f.A(2);break}return I(f,i.I,3);case 3:return Ei(i.l),f.return();case 2:return j(f,4),i.I=i.j.setMediaKeys(i.B),I(f,i.I,6);case 6:z(f,5);break;case 4:u=G(f),i.u(new Ae(2,6,6003,u.message));case 5:Ei(i.l),N(f)}})}function w_e(i,u){return re(function(f){if(f.g==1)return I(f,Tq(i),2);R3(i,u.initDataType,Re(u.initData)),N(f)})}l.fc=function(i){var u=this,f,v;return re(function(b){if(b.g==1)return u.j===i?b.return():u.B?(u.j=i,u.h.delayLicenseRequestUntilPlayed&&u.o.Ba(u.j,"play",function(){for(var w=_(u.N),A=w.next();!A.done;A=w.next())UI(u,A.value);u.$=!0,u.N=[]}),u.j.remote?(u.o.D(u.j.remote,"connect",function(){return M3(u)}),u.o.D(u.j.remote,"connecting",function(){return M3(u)}),u.o.D(u.j.remote,"disconnect",function(){return M3(u)})):"webkitCurrentPlaybackTargetIsWireless"in u.j&&u.o.D(u.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return M3(u)}),u.H=u.g&&u.g.initData.find(function(w){return w.initData.length>0})||null,f=u.g.keySystem,(v=Fe().Rg(f))||!u.H&&u.g.keySystem==="com.apple.fps"&&!u.C.size?b.A(2):I(b,Tq(u),2)):(u.o.Ba(i,"encrypted",function(){u.u(new Ae(2,6,6010))}),b.return());Aq(u).catch(function(){}),!v&&(u.H||u.C.size||u.h.parseInbandPsshEnabled)||u.o.D(u.j,"encrypted",function(w){return w_e(u,w)}),N(b)})};function E_e(i){var u,f,v,b,w;return re(function(A){switch(A.g){case 1:if(!i.B||!i.g)return A.return();if(!i.g.serverCertificateUri||i.g.serverCertificate&&i.g.serverCertificate.length){A.A(2);break}return u=Fo([i.g.serverCertificateUri],i.h.retryParameters),j(A,3),f=i.F.tc.request(5,u,{isPreload:i.V()}),I(A,f.promise,5);case 5:v=A.h,i.g.serverCertificate=Re(v.data),z(A,4);break;case 3:throw b=G(A),new Ae(2,6,6017,b);case 4:if(i.l.g)return A.return();case 2:return!i.g.serverCertificate||!i.g.serverCertificate.length?A.return():(j(A,6),I(A,i.B.setServerCertificate(i.g.serverCertificate),8));case 8:z(A,0);break;case 6:throw w=G(A),new Ae(2,6,6004,w.message)}})}function T_e(i,u){var f,v,b;return re(function(w){if(w.g==1)return I(w,Pq(i,u,{initData:null,initDataType:null}),2);if(w.g!=3)return f=w.h,f?(v=[],(b=i.i.get(f))&&(b.Kb=new li,v.push(b.Kb)),v.push(f.remove()),I(w,Promise.all(v),3)):w.return();i.i.delete(f),N(w)})}function Aq(i){var u,f,v,b,w;return re(function(A){if(A.g==1)return i.C.size?(i.C.forEach(function(R,B){Pq(i,B,R)}),I(A,i.m,3)):A.A(2);if(A.g!=2){if(u=i.g&&i.g.keyIds||new Set([]),u.size>0&&O_e(i))return A.return(i.m);i.K=!1,i.m=new li,i.m.catch(function(){})}for(f=(i.g?i.g.initData:[])||[],v=_(f),b=v.next();!b.done;b=v.next())w=b.value,R3(i,w.initDataType,w.initData);return O3(i)&&i.m.resolve(),A.return(i.m)})}function R3(i,u,f){if(f.length){if(i.h.ignoreDuplicateInitData){var v=i.i.values();v=_(v);for(var b=v.next();!b.done;b=v.next())if(Te(f,b.value.initData))return;var w=!1;if(i.C.forEach(function(A){!w&&Te(f,A.initData)&&(w=!0)}),w)return}i.K=!0,i.i.size>0&&O3(i)&&(i.m.resolve(),i.K=!1,i.m=new li,i.m.catch(function(){})),L_e(i,u,f,i.g.sessionType)}}function Iq(i){return i=i.i.keys(),i=FI(i,function(u){return u.sessionId}),Array.from(i)}l.Gg=function(){var i=this,u=this.i.keys();return u=FI(u,function(f){var v=i.i.get(f);return{sessionId:f.sessionId,sessionType:v.type,initData:v.initData,initDataType:v.initDataType}}),Array.from(u)},l.Wd=function(){var i=1/0,u=this.i.keys();u=_(u);for(var f=u.next();!f.done;f=u.next())f=f.value,isNaN(f.expiration)||(i=Math.min(i,f.expiration));return i};function A_e(i){return i.J?i.J:NaN}l.Xe=function(){return jI(this.ma)};function Lq(i,u){var f,v,b,w,A,R,B;return re(function(V){switch(V.g){case 1:if(f=new Map,v=I_e(i,u,f),!v)throw navigator.requestMediaKeySystemAccess?new Ae(2,6,6001):new Ae(2,6,6020);Ei(i.l),j(V,2),v.getConfiguration();var K=b=i.h.keySystemsMapping[v.keySystem]||v.keySystem,Y=f.get(b),oe=[],ue=[],he=[],ge=[],ye=[],Oe=new Set,De=new Set;B_e(Y,oe,ue,ge,he,ye,Oe,De);var qe=i.R?"persistent-license":"temporary";for(K={keySystem:K,encryptionScheme:oe[0],licenseServerUri:ue[0],distinctiveIdentifierRequired:Y[0].distinctiveIdentifierRequired,persistentStateRequired:Y[0].persistentStateRequired,sessionType:Y[0].sessionType||qe,audioRobustness:Y[0].audioRobustness||"",videoRobustness:Y[0].videoRobustness||"",serverCertificate:ge[0],serverCertificateUri:he[0],initData:ye,keyIds:Oe},De.size>0&&(K.keySystemUris=De),Y=_(Y),De=Y.next();!De.done;De=Y.next())De=De.value,De.distinctiveIdentifierRequired&&(K.distinctiveIdentifierRequired=De.distinctiveIdentifierRequired),De.persistentStateRequired&&(K.persistentStateRequired=De.persistentStateRequired);if(i.g=K,!i.g.licenseServerUri)throw new Ae(2,6,6012,i.g.keySystem);return I(V,v.createMediaKeys(),4);case 4:if(w=V.h,Ei(i.l),i.B=w,!(i.h.minHdcpVersion!=""&&"getStatusForPolicy"in i.B)){V.A(5);break}return j(V,6),I(V,i.B.getStatusForPolicy({minHdcpVersion:i.h.minHdcpVersion}),8);case 8:if(A=V.h,A!="usable")throw new Ae(2,6,6018);Ei(i.l),z(V,5,2);break;case 6:throw R=G(V,2),R instanceof Ae?R:new Ae(2,6,6019,R.message);case 5:return i.T=!0,i.G.Ea(i.h.updateExpirationTime),I(V,E_e(i),9);case 9:Ei(i.l),z(V,0);break;case 2:throw B=G(V),Ei(i.l,B),i.g=null,B instanceof Ae?B:new Ae(2,6,6002,B.message)}})}function I_e(i,u,f){for(var v=_(u),b=v.next();!b.done;b=v.next()){b=_(Oq(b.value));for(var w=b.next();!w.done;w=b.next())w=w.value,f.has(w.keySystem)||f.set(w.keySystem,[]),f.get(w.keySystem).push(w)}if(f.size==1&&f.has(""))throw new Ae(2,6,6e3);v=i.h.preferredKeySystems,v.length||(b=cg(i.h.servers),b.size==1&&(v=Array.from(b.keys()))),b=_(v);var A=b.next();for(w={};!A.done;w={Di:void 0},A=b.next()){w.Di=A.value,A=_(u);for(var R=A.next();!R.done;R=A.next())if(R=R.value.decodingInfos.find((function(Y){return function(oe){return oe.supported&&oe.keySystemAccess!=null&&oe.keySystemAccess.keySystem==Y.Di}})(w)))return R.keySystemAccess}for(b=_([!0,!1]),w=b.next();!w.done;w=b.next())for(w=w.value,A=_(u),R=A.next();!R.done;R=A.next()){R=_(R.value.decodingInfos);for(var B=R.next();!B.done;B=R.next())if(B=B.value,B.supported&&B.keySystemAccess){var V=B.keySystemAccess.keySystem;if(!v.includes(V)){var K=f.get(V);for(!K&&i.h.keySystemsMapping[V]&&(K=f.get(i.h.keySystemsMapping[V])),V=_(K),K=V.next();!K.done;K=V.next())if(!!K.value.licenseServerUri==w)return B.keySystemAccess}}}return null}function zI(i){O3(i)&&i.m.resolve()}function Dq(i,u){new vr(function(){u.loaded=!0,zI(i)}).ia(j_e)}function Pq(i,u,f){var v,b,w,A,R,B,V;return re(function(K){switch(K.g){case 1:try{v=i.B.createSession("persistent-license")}catch(Y){return b=new Ae(2,6,6005,Y.message),i.u(b),K.return(Promise.reject(b))}return i.o.D(v,"message",function(Y){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(Y):UI(i,Y)}),i.o.D(v,"keystatuseschange",function(Y){return Rq(i,Y)}),w={initData:f.initData,initDataType:f.initDataType,loaded:!1,Ug:1/0,Kb:null,type:"persistent-license"},i.i.set(v,w),j(K,2),I(K,v.load(u),4);case 4:return A=K.h,Ei(i.l),A||(i.i.delete(v),R=i.h.persistentSessionOnlinePlayback?1:2,i.u(new Ae(R,6,6013)),w.loaded=!0),Dq(i,w),zI(i),K.return(v);case 2:B=G(K),Ei(i.l,B),i.i.delete(v),V=i.h.persistentSessionOnlinePlayback?1:2,i.u(new Ae(V,6,6005,B.message)),w.loaded=!0,zI(i);case 3:return K.return(Promise.resolve())}})}function L_e(i,u,f,v){try{var b=i.B.createSession(v)}catch(w){i.u(new Ae(2,6,6005,w.message));return}i.o.D(b,"message",function(w){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(w):UI(i,w)}),i.o.D(b,"keystatuseschange",function(w){return Rq(i,w)}),i.i.set(b,{initData:f,initDataType:u,loaded:!1,Ug:1/0,Kb:null,type:v});try{f=i.h.initDataTransform(f,u,i.g)}catch(w){u=w,w instanceof Ae||(u=new Ae(2,6,6016,w)),i.u(u);return}i.h.logLicenseExchange&&Yn(f),b.generateRequest(u,f).catch(function(w){if(!i.l.g){i.i.delete(b);var A=w.errorCode;if(A&&A.systemCode){var R=A.systemCode;R<0&&(R+=4294967296),R="0x"+R.toString(16)}i.u(new Ae(2,6,6006,w.message,w,R))}})}function D_e(i){return re(function(u){return u.g==1?i.K?I(u,i.m,3):u.A(0):I(u,Promise.all(i.X.map(function(f){return f.promise})),0)})}function UI(i,u){var f,v,b,w,A,R,B,V,K,Y,oe,ue,he,ge,ye,Oe;re(function(De){switch(De.g){case 1:if(f=u.target,i.h.logLicenseExchange&&Yn(u.message),v=i.i.get(f),b=i.g.licenseServerUri,w=i.h.advanced[i.g.keySystem],u.messageType=="individualization-request"&&w&&w.individualizationServer&&(b=w.individualizationServer),A=Fo([b],i.h.retryParameters),A.body=u.message,A.method="POST",A.licenseRequestType=u.messageType,A.sessionId=f.sessionId,A.drmInfo=i.g,v&&(A.initData=v.initData,A.initDataType=v.initDataType),w&&w.headers)for(R in w.headers)A.headers[R]=w.headers[R];if(i.g.keySystem==="org.w3.clearkey"){var qe=A,ot=i.g;try{var mt=Jt(qe.body);if(mt){var Qe=JSON.parse(mt);Qe.type||(Qe.type=ot.sessionType,qe.body=Kt(JSON.stringify(Qe)))}}catch{}}if(BI(i.g.keySystem))if(qe=Rt(A.body,!0,!0),qe.includes("PlayReadyKeyMessage")){for(qe=ai(qe,"PlayReadyKeyMessage"),ot=Aa(qe,"HttpHeader"),ot=_(ot),mt=ot.next();!mt.done;mt=ot.next())Qe=mt.value,mt=Aa(Qe,"name")[0],Qe=Aa(Qe,"value")[0],A.headers[br(mt)]=br(Qe);qe=Aa(qe,"Challenge")[0],A.body=dr(br(qe))}else A.headers["Content-Type"]="text/xml; charset=utf-8";return B=Date.now(),j(De,2),K=i.F.tc.request(2,A,{isPreload:i.V()}),i.X.push(K),I(De,K.promise,4);case 4:V=De.h,Dt(i.X,K),z(De,3);break;case 2:return Y=G(De),i.l.g||(oe={sessionId:f.sessionId,sessionType:v.type,initData:v.initData,initDataType:v.initDataType},ue=new Ae(2,6,6007,Y,oe),i.i.size==1?(i.u(ue),v&&v.Kb&&v.Kb.reject(ue)):(v&&v.Kb&&v.Kb.reject(ue),i.i.delete(f),O3(i)&&(i.m.resolve(),i.M.ia(.1)))),De.return();case 3:return i.l.g?De.return():(i.J+=(Date.now()-B)/1e3,i.h.logLicenseExchange&&Yn(V.data),j(De,5),I(De,f.update(V.data),7));case 7:z(De,6);break;case 5:return ge=(he=G(De))&&he.message||String(he),ye=new Ae(2,6,6008,ge),i.u(ye),v&&v.Kb&&v.Kb.reject(ye),De.return();case 6:if(i.l.g)return De.return();Oe=new Cn("drmsessionupdate"),i.F.onEvent(Oe),v&&(v.Kb&&v.Kb.resolve(),Dq(i,v)),N(De)}})}function Rq(i,u){u=u.target;var f=i.i.get(u),v=!1;u.keyStatuses.forEach(function(w,A){if(typeof A=="string"){var R=A;A=w,w=R}if(R=Fe(),BI(i.g.keySystem)&&A.byteLength==16&&R.gh()){R=it(A);var B=R.getUint32(0,!0),V=R.getUint16(4,!0),K=R.getUint16(6,!0);R.setUint32(0,B,!1),R.setUint16(4,V,!1),R.setUint16(6,K,!1)}w!="status-pending"&&(f.loaded=!0),w=="expired"&&(v=!0),A=Dn(A).slice(0,32),i.aa.set(A,w)});var b=u.expiration-Date.now();(b<0||v&&b<1e3)&&f&&!f.Kb&&(i.i.delete(u),Mq(u)),O3(i)&&(i.m.resolve(),i.M.ia(V_e))}function P_e(i){var u=i.aa,f=i.ma;f.clear(),u.forEach(function(v,b){return f.set(b,v)}),u=Array.from(f.values()),u.length&&u.every(function(v){return v=="expired"})&&i.u(new Ae(2,6,6014)),i.F.vf(jI(f))}function R_e(){var i,u,f,v,b,w,A,R,B,V,K,Y,oe,ue,he,ge,ye,Oe,De,qe,ot,mt,Qe,He,ct,pt,ft,_t,kt,Nt,Vt,Tt;return re(function(Lt){if(Lt.g==1){if(i="org.w3.clearkey com.widevine.alpha com.widevine.alpha.experiment com.microsoft.playready com.microsoft.playready.hardware com.microsoft.playready.recommendation com.microsoft.playready.recommendation.3000 com.microsoft.playready.recommendation.3000.clearlead com.chromecast.playready com.apple.fps.1_0 com.apple.fps com.huawei.wiseplay".split(" "),!(o.MediaKeys&&o.navigator&&o.navigator.requestMediaKeySystemAccess&&o.MediaKeySystemAccess&&o.MediaKeySystemAccess.prototype.getConfiguration)){for(u={},f=_(i),v=f.next();!v.done;v=f.next())b=v.value,u[b]=null;return Lt.return(u)}for(w="1.0 1.1 1.2 1.3 1.4 2.0 2.1 2.2 2.3".split(" "),A=["SW_SECURE_CRYPTO","SW_SECURE_DECODE","HW_SECURE_CRYPTO","HW_SECURE_DECODE","HW_SECURE_ALL"],R=["150","2000","3000"],B={"com.widevine.alpha":A,"com.widevine.alpha.experiment":A,"com.microsoft.playready.recommendation":R},V=[{contentType:'video/mp4; codecs="avc1.42E01E"'},{contentType:'video/webm; codecs="vp8"'}],K=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],Y={videoCapabilities:V,audioCapabilities:K,initDataTypes:["cenc","sinf","skd","keyids"]},oe=[null,"cenc","cbcs"],ue=new Map,he=Fe(),ge=function(qt,un,Zn){var En,Ir,gr,Zr,Sr,$n,ki,Rr,Lr,hr,Vi,Ni,no;return re(function(ri){switch(ri.g){case 1:return j(ri,2),I(ri,un.createMediaKeys(),5);case 5:En=ri.h;case 4:z(ri,3);break;case 2:return G(ri),ri.return();case 3:if(gr=(Ir=un.getConfiguration().sessionTypes)?Ir.includes("persistent-license"):!1,he.ti()&&(gr=!1),Zr=un.getConfiguration().videoCapabilities,Sr=un.getConfiguration().audioCapabilities,$n={persistentState:gr,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},ue.get(qt)?$n=ue.get(qt):ue.set(qt,$n),(ki=Zr[0].encryptionScheme)&&!$n.encryptionSchemes.includes(ki)&&$n.encryptionSchemes.push(ki),(Rr=Zr[0].robustness)&&!$n.videoRobustnessLevels.includes(Rr)&&$n.videoRobustnessLevels.push(Rr),(Lr=Sr[0].robustness)&&!$n.audioRobustnessLevels.includes(Lr)&&$n.audioRobustnessLevels.push(Lr),!(Zn&&"getStatusForPolicy"in En)){ri.A(0);break}hr=_(w),Vi=hr.next();case 7:if(Vi.done){ri.A(0);break}if(Ni=Vi.value,$n.minHdcpVersions.includes(Ni)){ri.A(8);break}return I(ri,En.getStatusForPolicy({minHdcpVersion:Ni}),10);case 10:if(no=ri.h,no=="usable")$n.minHdcpVersions.includes(Ni)||$n.minHdcpVersions.push(Ni);else{ri.A(0);break}case 8:Vi=hr.next(),ri.A(7)}})},ye=function(qt,un,Zn,En,Ir){Ir=Ir===void 0?!1:Ir;var gr,Zr,Sr,$n,ki,Rr,Lr,hr,Vi,Ni,no;return re(function(ri){switch(ri.g){case 1:for(j(ri,2),gr=fn(Y),Zr=_(gr.videoCapabilities),Sr=Zr.next();!Sr.done;Sr=Zr.next())$n=Sr.value,$n.encryptionScheme=un,$n.robustness=Zn;for(ki=_(gr.audioCapabilities),Rr=ki.next();!Rr.done;Rr=ki.next())Lr=Rr.value,Lr.encryptionScheme=un,Lr.robustness=En;return hr=fn(gr),hr.persistentState="required",hr.sessionTypes=["persistent-license"],Vi=[hr,gr],no=Fe(),no.Ua()=="MOBILE"?I(ri,DS(5,navigator.requestMediaKeySystemAccess(qt,Vi)),7):I(ri,navigator.requestMediaKeySystemAccess(qt,Vi),6);case 6:Ni=ri.h,ri.A(5);break;case 7:Ni=ri.h;case 5:return I(ri,ge(qt,Ni,Ir),8);case 8:z(ri,0);break;case 2:G(ri),N(ri)}})},Oe=_(i),De=Oe.next();!De.done;De=Oe.next())qe=De.value,ue.set(qe,null);for(ot=function(qt){return!(Fe().Ha()==="WEBKIT"&&qt==="org.w3.clearkey")},mt=[],Qe=_(i),He=Qe.next();!He.done;He=Qe.next())if(ct=He.value,ot(ct)){for(pt=!0,ft=_(oe),_t=ft.next();!_t.done;_t=ft.next())kt=_t.value,mt.push(ye(ct,kt,"","",pt)),pt=!1;for(Nt=_(B[ct]||[]),Vt=Nt.next();!Vt.done;Vt=Nt.next())Tt=Vt.value,mt.push(ye(ct,null,Tt,"")),mt.push(ye(ct,null,"",Tt))}return I(Lt,Promise.all(mt),2)}return Lt.return(jI(ue))})}function Mq(i){return re(function(u){if(u.g==1)return j(u,2),I(u,DS(F_e,Promise.all([i.close().catch(function(){}),i.closed])),4);if(u.g!=2)return z(u,0);G(u),N(u)})}function M3(i){var u;return re(function(f){return u=Array.from(i.i.entries()),i.i.clear(),I(f,Promise.all(u.map(function(v){v=_(v);var b=v.next().value,w=v.next().value;return re(function(A){if(A.g==1)return j(A,2),i.qa||i.C.has(b.sessionId)||w.type!=="persistent-license"||i.h.persistentSessionOnlinePlayback?I(A,Mq(b),5):I(A,b.remove(),5);if(A.g!=2)return z(A,0);G(A),N(A)})})),0)})}function Oq(i){return(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[])}function M_e(i){i.i.forEach(function(u,f){var v=u.Ug,b=f.expiration;isNaN(b)&&(b=1/0),b!=v&&(i.F.onExpirationUpdated(f.sessionId,b),u.Ug=b)})}function O3(i){return i=i.i.values(),__e(i,function(u){return u.loaded})}function O_e(i){for(var u=_(i.g&&i.g.keyIds||new Set([])),f=u.next();!f.done;f=u.next())if(i.aa.get(f.value)!=="usable")return!1;return!0}function $_e(i,u){var f=[];for(u.forEach(function(v,b){f.push({keySystem:b,licenseServerUri:v,distinctiveIdentifierRequired:!1,persistentStateRequired:!1,audioRobustness:"",videoRobustness:"",serverCertificate:null,serverCertificateUri:"",initData:[],keyIds:new Set})}),i=_(i),u=i.next();!u.done;u=i.next())u=u.value,u.video&&(u.video.drmInfos=f),u.audio&&(u.audio.drmInfos=f)}function B_e(i,u,f,v,b,w,A,R){var B=[];i=_(i);for(var V=i.next(),K={};!V.done;K={Ka:void 0},V=i.next()){if(K.Ka=V.value,u.includes(K.Ka.encryptionScheme)||u.push(K.Ka.encryptionScheme),K.Ka.keySystem=="org.w3.clearkey"&&K.Ka.licenseServerUri.startsWith("data:application/json;base64,")?B.includes(K.Ka.licenseServerUri)||B.push(K.Ka.licenseServerUri):f.includes(K.Ka.licenseServerUri)||f.push(K.Ka.licenseServerUri),b.includes(K.Ka.serverCertificateUri)||b.push(K.Ka.serverCertificateUri),K.Ka.serverCertificate&&(v.some((function(ue){return function(he){return Te(he,ue.Ka.serverCertificate)}})(K))||v.push(K.Ka.serverCertificate)),K.Ka.initData){V=_(K.Ka.initData);for(var Y=V.next(),oe={};!Y.done;oe={Lg:void 0},Y=V.next())oe.Lg=Y.value,w.some((function(ue){return function(he){var ge=ue.Lg;return he.keyId&&he.keyId==ge.keyId?!0:he.initDataType==ge.initDataType&&Te(he.initData,ge.initData)}})(oe))||w.push(oe.Lg)}if(K.Ka.keyIds)for(V=_(K.Ka.keyIds),Y=V.next();!Y.done;Y=V.next())A.add(Y.value);if(K.Ka.keySystemUris&&R)for(K=_(K.Ka.keySystemUris),V=K.next();!V.done;V=K.next())R.add(V.value)}if(B.length==1)f.push(B[0]);else if(B.length>0){for(u=[],B=_(B),v=B.next();!v.done;v=B.next())v=o.atob(v.value.split("data:application/json;base64,").pop()),v=JSON.parse(v),u.push.apply(u,T(v.keys));B=JSON.stringify({keys:u}),f.push("data:application/json;base64,"+o.btoa(B))}}function N_e(i,u,f,v){var b=i.keySystem;b&&(b!="org.w3.clearkey"||!i.licenseServerUri)&&(u.size&&u.get(b)&&(u=u.get(b),i.licenseServerUri=u),i.keyIds||(i.keyIds=new Set),(f=f.get(b))&&(i.distinctiveIdentifierRequired||(i.distinctiveIdentifierRequired=f.distinctiveIdentifierRequired),i.persistentStateRequired||(i.persistentStateRequired=f.persistentStateRequired),i.serverCertificate||(i.serverCertificate=f.serverCertificate),f.sessionType&&(i.sessionType=f.sessionType),i.serverCertificateUri||(i.serverCertificateUri=f.serverCertificateUri)),v[b]&&(i.keySystem=v[b]),o.cast&&o.cast.__platform__&&b=="com.microsoft.playready"&&(i.keySystem="com.chromecast.playready"))}function $q(i,u){if(i=cg(i),i.size!=0){i=Gr(i),u=_(u);for(var f=u.next();!f.done;f=u.next())f=f.value,f.video&&(f.video.drmInfos=[i]),f.audio&&(f.audio.drmInfos=[i])}}var F_e=1,j_e=5,V_e=.5;function z_e(){this.g=fg,this.i=new Map().set(fg,2).set(G0,1),this.h=0}function HI(i,u){var f=i.g!==u;return i.g=u,f&&u===fg&&(i.h=Date.now()),f}var G0=0,fg=1;/* @license Shaka Player Copyright 2023 Google LLC SPDX-License-Identifier: Apache-2.0 */function WI(i,u,f){this.g=i,this.i=u,this.h=f}function Bq(i,u){return re(function(f){if(f.g==1)return I(f,o_e(i.h,u,i.g.drm.preferredKeySystems,i.g.drm.keySystemsMapping),2);if(i.g.streaming.dontChooseCodecs||JK(u,i.g.preferredVideoCodecs,i.g.preferredAudioCodecs,i.g.preferredDecodingAttributes,i.g.preferredTextFormats),!u.variants.some(P3))throw new Ae(2,4,4032);return f.return(Fq(i,u))})}function Nq(i,u){var f=i.g.restrictions;i=i.i;var v=!1;u=_(u.variants);for(var b=u.next();!b.done;b=u.next()){b=b.value;var w=b.allowedByApplication;b.allowedByApplication=MS(b,f,i),w!=b.allowedByApplication&&(v=!0)}return v}function Fq(i,u){var f=Nq(i,u);if(u){var v=i.h?i.h.g:null;if(v&&i.h.B){for(var b=new Set,w=_(u.variants),A=w.next();!A.done;A=w.next())A=A.value,A.audio&&b.add(A.audio),A.video&&b.add(A.video);for(b=_(b),w=b.next();!w.done;w=b.next())jq(i,v.keySystem,w.value)}Vq(i,u)}return f}function jq(i,u,f){f=_(f.drmInfos);for(var v=f.next();!v.done;v=f.next())if(v=v.value,v.keySystem==u){v=_(v.initData||[]);for(var b=v.next();!b.done;b=v.next())b=b.value,R3(i.h,b.initDataType,b.initData)}}function Vq(i,u){i=i.h?i.h.Xe():{};var f=Object.keys(i);f=f.length&&f[0]=="00";var v=!1,b=!1,w=new Set,A=new Set,R=new Set;u=_(u.variants);for(var B=u.next();!B.done;B=u.next())B=B.value,B.audio&&R.add(B.audio),B.video&&R.add(B.video),B.allowedByApplication?B.allowedByKeySystem&&(v=!0):b=!0;for(R=_(R),u=R.next();!u.done;u=R.next())if(u=u.value,u.keyIds.size)for(u=_(u.keyIds),B=u.next();!B.done;B=u.next()){B=B.value;var V=i[f?"00":B];V?zq.includes(V)&&A.add(V):w.add(B)}if(!v)throw i={hasAppRestrictions:b,missingKeys:Array.from(w),restrictedKeyStatuses:Array.from(A)},new Ae(2,4,4012,i)}var zq=["output-restricted","internal-error"];function $3(){}function K0(i,u){hg.set(i,u)}function U_e(){var i={};if(Fe(),Ud())for(var u=_(hg.keys()),f=u.next();!f.done;f=u.next())i[f.value]=!0;for(u=_(["application/dash+xml","application/x-mpegurl","application/vnd.apple.mpegurl","application/vnd.ms-sstr+xml"]),f=u.next();!f.done;f=u.next())f=f.value,i[f]=Ud()?hg.has(f):Y0().canPlayType(f)!="";return i}function Uq(i,u){if(u){var f=hg.get(u.toLowerCase());if(f)return f}throw new Ae(2,4,4e3,i,u)}ze("shaka.media.ManifestParser",$3),$3.unregisterParserByMime=function(i){hg.delete(i)},$3.registerParserByMime=K0,$3.registerParserByExtension=function(){Zt("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},$3.AccessibilityPurpose={zm:"visually impaired",Kl:"hard of hearing",gm:"spoken subtitles"};var hg=new Map;ze("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function XS(i,u){var f=null,v=null,b=null,w=null,A=i.U();return u&1&&(b=i.Dd()),u&2&&(w=i.U()),u&8&&(f=i.U()),u&16&&(v=i.U()),{trackId:A,Td:f,Ud:v,kj:b,Li:w}}function ZS(i,u){return u==1?(u=i.U(),i=i.U(),{baseMediaDecodeTime:u*4294967296+i}):{baseMediaDecodeTime:i.U()}}function JS(i,u){return u==1?(i.skip(8),i.skip(8)):(i.skip(4),i.skip(4)),u=i.U(),i.skip(4),i=i.Ca(),{timescale:u,language:String.fromCharCode((i>>10)+96)+String.fromCharCode(((i&960)>>5)+96)+String.fromCharCode((i&31)+96)}}function QS(i,u,f){var v=i.U(),b=[],w=null;f&1&&(w=i.Zg()),f&4&&i.skip(4);for(var A=0;A0)var b=wr("avcC",i.Ra);else{b=wr;for(var w=7,A=[],R=[],B=0,V=0,K=0,Y=0;Y0&&(B=A[0][1],K=A[0][2],V=A[0][3]),w=new Uint8Array(w),Y=0,w[Y++]=1,w[Y++]=B,w[Y++]=K,w[Y++]=V,w[Y++]=255,w[Y++]=224|A.length,B=0;B>8,w[Y++]=A[B].length&255,w.set(A[B],Y),Y+=A[B].length;for(w[Y++]=R.length,A=0;A>8,w[Y++]=R[A].length&255,w.set(R[A],Y),Y+=R[A].length;b=b("avcC",w)}f=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(T(Hi(f,2)),T(Hi(v,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),v="avc1",R=Gq(i),A=new Uint8Array([]),i.encrypted&&(A=q0(i.stream,i.codecs),v="encv"),v=wr(v,f,b,R,A)}else i.codecs.includes("hvc1")&&(v=i.stream.width||0,b=i.stream.height||0,f=new Uint8Array([]),i.Ra.byteLength>0&&(f=wr("hvcC",i.Ra)),v=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0].concat(T(Hi(v,2)),T(Hi(b,2)),[0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17])),b="hvc1",R=Gq(i),A=new Uint8Array([]),i.encrypted&&(A=q0(i.stream,i.codecs),b="encv"),v=wr(b,v,f,R,A));break;case"audio":f=="mp3"?i=wr(".mp3",N3(i)):f=="ac-3"?(f=wr("dac3",i.Ga),v="ac-3",b=new Uint8Array([]),i.encrypted&&(b=q0(i.stream,i.codecs),v="enca"),i=wr(v,N3(i),f,b)):f=="ec-3"?(f=wr("dec3",i.Ga),v="ec-3",b=new Uint8Array([]),i.encrypted&&(b=q0(i.stream,i.codecs),v="enca"),i=wr(v,N3(i),f,b)):f=="opus"?(f=wr("dOps",i.Ga),v="Opus",b=new Uint8Array([]),i.encrypted&&(b=q0(i.stream,i.codecs),v="enca"),i=wr(v,N3(i),f,b)):(i.Ga.byteLength>0?f=wr("esds",i.Ga):(f=wr,v=i.id+1,b=i.stream.channelsCount||2,A=i.stream.audioSamplingRate||44100,B=mi("audio",i.codecs.split(",")),V={96e3:0,88200:1,64e3:2,48e3:3,44100:4,32e3:5,24e3:6,22050:7,16e3:8,12e3:9,11025:10,8e3:11,7350:12},R=V[A],(B==="mp4a.40.5"||B==="mp4a.40.29")&&(R=V[A*2]),A=parseInt(B.split(".").pop(),10),v=new Uint8Array([0,0,0,0,3,25].concat(T(Hi(v,2)),[0,4,17,64,21,0,0,0,0,0,0,0,0,0,0,0,5,2,A<<3|R>>>1,R<<7|b<<3,6,1,2])),f=f("esds",v)),v="mp4a",b=new Uint8Array([]),i.encrypted&&(b=q0(i.stream,i.codecs),v="enca"),i=wr(v,N3(i),f,b)),v=i}return i=wr("stsd",eSe.value(),v),u("stbl",i,wr("stts",q_e.value()),wr("stsc",Y_e.value()),wr("stsz",Z_e.value()),wr("stco",X_e.value()))}function Gq(i){if(!i.Za&&!i.$a)return new Uint8Array([]);var u=i.$a;return i=new Uint8Array([].concat(T(Hi(i.Za,4)),T(Hi(u,4)))),wr("pasp",i)}function N3(i){return new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,i.stream.channelsCount||2,0,16,0,0,0,0].concat(T(Hi(i.stream.audioSamplingRate||44100,2)),[0,0]))}function q0(i,u){var f=wr;u=new Uint8Array([].concat(T(Hi(qq(u.split(".")[0]),4)))),u=wr("frma",u);var v="cenc",b=i.drmInfos[0];b&&b.encryptionScheme&&(v=b.encryptionScheme),v=new Uint8Array([0,0,0,0].concat(T(Hi(qq(v),4)),[0,1,0,0])),v=wr("schm",v),b=wr;var w=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);i=_(i.drmInfos);for(var A=i.next();!A.done;A=i.next())if((A=A.value)&&A.keyIds&&A.keyIds.size){A=_(A.keyIds);for(var R=A.next();!R.done;R=A.next())w=Kq(R.value)}return i=new Uint8Array([0,0,0,0,0,0,1,8]),w=wr("tenc",i,w),f("sinf",u,v,b("schi",w))}function F3(i){var u=[];i=_(i.g);for(var f=i.next();!f.done;f=i.next()){f=f.value;var v=u.push,b=v.apply,w=wr,A=new Uint8Array([0,0,0,0].concat(T(Hi(f.data?f.data.sequenceNumber:0,4))));A=wr("mfhd",A);var R,B=f.data?f.data.zb:[],V=new Uint8Array(4+B.length);for(R=0;R=0;u--)f.push(i>>8*u&255);return f}function Kq(i){for(var u=new Uint8Array(i.length/2),f=0;f=0;b--)v+=u[b].byteLength;for(b=new Uint8Array(v),b[0]=v>>24&255,b[1]=v>>16&255,b[2]=v>>8&255,b[3]=v&255,b.set(f,4),f=0,v=8;f=0;K--)V.push(2>>8*K&255);for(i.set(new Uint8Array(V),R),i.set(B,R+4),R=_(A),B=R.next();!B.done;B=R.next())B=B.value,e6(i,B.start,B.size+4)}}return i}function sSe(i,u,f,v,b,w){var A=q0(i,v.name),R=u.subarray(v.start,v.start+v.size);for(i=new Uint8Array(v.size+A.byteLength),i.set(R,0),it(i).setUint32(4,w),i.set(A,v.size),e6(i,0,i.byteLength),w=new Uint8Array(u.byteLength+i.byteLength),v=Fe().df()?v.start:v.start+v.size,A=u.subarray(v),w.set(u.subarray(0,v)),w.set(i,v),w.set(A,v+i.byteLength),u=_(b),b=u.next();!b.done;b=u.next())b=b.value,e6(w,b.start,b.size+i.byteLength);return i=it(w,f.start),f=ap(f),u=i.getUint32(f),i.setUint32(f,u+1),w}function e6(i,u,f){i=it(i,u),u=i.getUint32(0),u!=0&&(u==1?(i.setUint32(8,f>>32),i.setUint32(12,f&4294967295)):i.setUint32(0,f))}function aSe(i){function u(b){v.push({start:b.start,size:b.size}),sr(b)}var f=Re(i),v=[];return new ui().box("moov",u).box("trak",u).box("mdia",u).box("minf",u).box("stbl",u).box("stsd",function(b){v.push({start:b.start,size:b.size});for(var w=it(f,b.start),A=0;A0)return u}if(i.g.length>0&&i.m)for(i=_(i.g),i=i.next();!i.done;i=i.next()){KI(i.value);break}return null}l.$j=function(){return this.tilesLayout},l.Zj=function(){return this.B},l.Jc=function(){return this.status},l.xk=function(){this.status=Jq},l.Qg=function(){this.preload=!0},l.isPreload=function(){return this.preload},l.wd=function(){this.l=!1},l.kk=function(){return this.l},l.ri=function(){this.Xc=!0},l.nk=function(){return this.Xc},l.pi=function(){this.ee=!0},l.lk=function(){return this.ee},l.oi=function(){this.o=!0},l.gk=function(){return this.o},l.If=function(i){this.thumbnailSprite=i},l.Xj=function(){return this.thumbnailSprite},l.offset=function(i){this.startTime+=i,this.endTime+=i,this.j+=i;for(var u=_(this.g),f=u.next();!f.done;f=u.next())f=f.value,f.startTime+=i,f.endTime+=i,f.j+=i},l.yh=function(i){this.h==null?$e("Sync attempted without sync time!"):(i=this.h-i-this.startTime,Math.abs(i)>=.001&&this.offset(i))},l.pe=function(i,u){this.u=i,this.F=u===void 0?!1:u},l.Yb=function(i){var u=this.u;return(i===void 0||i)&&this.F&&(this.u=null),u};function Zq(i,u){i.ba=u,i=_(i.g);for(var f=i.next();!f.done;f=i.next())Zq(f.value,u)}ze("shaka.media.SegmentReference",Fn),Fn.prototype.getSegmentData=Fn.prototype.Yb,Fn.prototype.setSegmentData=Fn.prototype.pe,Fn.prototype.syncAgainst=Fn.prototype.yh,Fn.prototype.offset=Fn.prototype.offset,Fn.prototype.getThumbnailSprite=Fn.prototype.Xj,Fn.prototype.setThumbnailSprite=Fn.prototype.If,Fn.prototype.hasByterangeOptimization=Fn.prototype.gk,Fn.prototype.markAsByterangeOptimization=Fn.prototype.oi,Fn.prototype.isLastPartial=Fn.prototype.lk,Fn.prototype.markAsLastPartial=Fn.prototype.pi,Fn.prototype.isPartial=Fn.prototype.nk,Fn.prototype.markAsPartial=Fn.prototype.ri,Fn.prototype.isIndependent=Fn.prototype.kk,Fn.prototype.markAsNonIndependent=Fn.prototype.wd,Fn.prototype.isPreload=Fn.prototype.isPreload,Fn.prototype.markAsPreload=Fn.prototype.Qg,Fn.prototype.markAsUnavailable=Fn.prototype.xk,Fn.prototype.getStatus=Fn.prototype.Jc,Fn.prototype.getTileDuration=Fn.prototype.Zj,Fn.prototype.getTilesLayout=Fn.prototype.$j,Fn.prototype.getEndByte=Fn.prototype.Gc,Fn.prototype.getStartByte=Fn.prototype.Ic,Fn.prototype.getEndTime=Fn.prototype.Ej,Fn.prototype.getStartTime=Fn.prototype.getStartTime,Fn.prototype.getUris=Fn.prototype.P;var Kf=0,Jq=1;Fn.Status={ql:Kf,xm:Jq,Tl:2};function V3(i){return i.length==1&&i.end(0)-i.start(0)<1e-4}function Qq(i){return!i||V3(i)?null:i.length==1&&i.start(0)<0?0:i.length?i.start(0):null}function t6(i){return!i||V3(i)?null:i.length?i.end(i.length-1):null}function qI(i,u){return!i||!i.length||V3(i)||u>i.end(i.length-1)?!1:u>=i.start(0)}function eY(i,u){if(!i||!i.length||V3(i))return 0;var f=0;i=_(qf(i));for(var v=i.next();!v.done;v=i.next()){var b=v.value;v=b.start,b=b.end,b>u&&(f+=b-Math.max(v,u))}return f}function lSe(i,u,f){return!i||!i.length||V3(i)?null:(i=qf(i).findIndex(function(v,b,w){return v.start>u&&(b==0||w[b-1].end-u<=f)}),i>=0?i:null)}function qf(i){if(!i)return[];for(var u=[],f=0;f=0;--v)i.removeChild(f[v]),u=!0;return i.src&&(i.removeAttribute("src"),u=!0),u}function z3(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function Y0(){return mg||(XI||(XI=new vr(function(){mg=null})),(mg=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(mg=document.createElement("video")),XI.ia(1),mg)}function uSe(i,u){var f,v,b,w,A;return re(function(R){if(R.g==1)return"fonts"in document&&"FontFace"in o?I(R,document.fonts.ready,2):R.return();if(!("entries"in document.fonts))return R.return();for(f=function(B){B=B.entries();for(var V=[],K=B.next();K.done===!1;)V.push(K.value),K=B.next();return V},v=_(f(document.fonts)),b=v.next();!b.done;b=v.next())if(w=b.value,w.family===i&&w.display==="swap")return R.return();A=new FontFace(i,"url("+u+")",{display:"swap"}),document.fonts.add(A),N(R)})}ze("shaka.util.Dom",YI),YI.removeAllChildren=z3,YI.clearSourceFromVideo=n6;var XI=null,mg=null;/* @license Shaka Player Copyright 2022 Google LLC SPDX-License-Identifier: Apache-2.0 */function ZI(){}function nY(i,u){return u+10<=i.length&&i[u]===73&&i[u+1]===68&&i[u+2]===51&&i[u+3]<255&&i[u+4]<255&&i[u+6]<128&&i[u+7]<128&&i[u+8]<128&&i[u+9]<128}function rY(i,u){return u+10<=i.length&&i[u]===51&&i[u+1]===68&&i[u+2]===73&&i[u+3]<255&&i[u+4]<255&&i[u+6]<128&&i[u+7]<128&&i[u+8]<128&&i[u+9]<128}function JI(i,u){var f=(i[u]&127)<<21;return f|=(i[u+1]&127)<<14,f|=(i[u+2]&127)<<7,f|=i[u+3]&127}function cSe(i){var u={key:i.type,description:"",data:"",mimeType:null,pictureType:null};if(i.type==="APIC"){if(i.size<2||i.data[0]!==3)return null;var f=i.data.subarray(1).indexOf(0);if(f===-1)return null;var v=st(Re(i.data,1,f)),b=i.data[2+f],w=i.data.subarray(3+f).indexOf(0);if(w===-1)return null;var A=st(Re(i.data,3+f,w)),R;return v==="-->"?R=st(Re(i.data,4+f+w)):R=Ee(i.data.subarray(4+f+w)),u.mimeType=v,u.pictureType=b,u.description=A,u.data=R,u}return i.type==="TXXX"?i.size<2||i.data[0]!==3||(v=i.data.subarray(1).indexOf(0),v===-1)?null:(f=st(Re(i.data,1,v)),i=st(Re(i.data,2+v)).replace(/\0*$/,""),u.description=f,u.data=i,u):i.type==="WXXX"?i.size<2||i.data[0]!==3||(v=i.data.subarray(1).indexOf(0),v===-1)?null:(f=st(Re(i.data,1,v)),i=st(Re(i.data,2+v)).replace(/\0*$/,""),u.description=f,u.data=i,u):i.type==="PRIV"?i.size<2||(f=i.data.indexOf(0),f===-1)?null:(f=st(Re(i.data,0,f)),u.description=f,f=="com.apple.streaming.transportStreamTimestamp"?(f=i.data.subarray(f.length+1),i=f[3]&1,f=(f[4]<<23)+(f[5]<<15)+(f[6]<<7)+f[7],f/=45,i&&(f+=4772185884e-2),u.data=f):(i=Ee(i.data.subarray(f.length+1)),u.data=i),u):i.type[0]==="T"?i.size<2||i.data[0]!==3?null:(i=st(i.data.subarray(1)).replace(/\0*$/,""),u.data=i,u):i.type[0]==="W"?(i=st(i.data).replace(/\0*$/,""),u.data=i,u):i.data?(u.data=Ee(i.data),u):null}function X0(i){for(var u=0,f=[];nY(i,u);){var v=JI(i,u+6);for(i[u+5]>>6&1&&(u+=10),u+=10,v=u+v;u+10>6&1&&(v+=10),v+=10,v+=JI(i,u+6),rY(i,u+10)&&(v+=10),u+=v;return v>0?i.subarray(f,f+v):new Uint8Array([])}ze("shaka.util.Id3Utils",ZI),ZI.getID3Data=gg,ZI.getID3Frames=X0;function iY(i){return new Date(Date.UTC(1900,0,1,0,0,0,0)+i).getTime()}function Yf(i,u){if(this.j=i,u!==void 0&&u){u=new Uint8Array(i.byteLength);for(var f=0,v=0;v=2&&i[v]==3&&i[v-1]==0&&i[v-2]==0||(u[f]=i[v],f++);this.j=Re(u,0,f)}this.i=this.j.byteLength,this.g=this.h=0}function QI(i){var u=i.j.byteLength-i.i,f=new Uint8Array(4),v=Math.min(4,i.i);v!==0&&(f.set(i.j.subarray(u,u+v)),i.h=new Ri(f,0).U(),i.g=v*8,i.i-=v)}function Rl(i,u){if(i.g<=u){u-=i.g;var f=Math.floor(u/8);u-=f*8,i.g-=f,QI(i)}i.h<<=u,i.g-=u}function kr(i,u){var f=Math.min(i.g,u),v=i.h>>>32-f;return i.g-=f,i.g>0?i.h<<=f:i.i>0&&QI(i),f=u-f,f>0?v<>>u)!==0)return i.h<<=u,i.g-=u,u;return QI(i),u+eL(i)}function zs(i){Rl(i,1+eL(i))}function yn(i){var u=eL(i);return kr(i,u+1)-1}function yg(i){return i=yn(i),1&i?1+i>>>1:-1*(i>>>1)}function Rn(i){return kr(i,1)===1}function Xr(i){return kr(i,8)}function r6(i,u){for(var f=8,v=8,b=0;b>4>1){var R=b+5+i[b+4];if(R==b+188)continue}else R=b+4;switch(A){case 0:w&&(R+=i[R]+1),this.I=(i[R+10]&31)<<8|i[R+11];break;case 17:case 8191:break;case this.I:w&&(R+=i[R]+1),w=i,A={audio:-1,video:-1,bf:-1,audioCodec:"",videoCodec:""};var B=R+3+((w[R+1]&15)<<8|w[R+2])-4;for(R+=12+((w[R+10]&15)<<8|w[R+11]);R0)for(var Y=R+5,oe=K;oe>2;){var ue=w[Y+1]+2;switch(w[Y]){case 5:var he=gn(w.subarray(Y+2,Y+ue));A.audio==-1&&he==="Opus"?(A.audio=V,A.audioCodec="opus"):A.video==-1&&he==="AV01"&&(A.video=V,A.videoCodec="av1");break;case 106:A.audio==-1&&(A.audio=V,A.audioCodec="ac3");break;case 122:A.audio==-1&&(A.audio=V,A.audioCodec="ec3");break;case 124:A.audio==-1&&(A.audio=V,A.audioCodec="aac");break;case 127:A.audioCodec=="opus"&&(he=null,w[Y+2]===128&&(he=w[Y+3]),he!=null&&(this.H={channelCount:(he&15)===0?2:he&15,nj:he,sampleRate:48e3}))}Y+=ue,oe-=ue}break;case 15:A.audio==-1&&(A.audio=V,A.audioCodec="aac");break;case 17:A.audio==-1&&(A.audio=V,A.audioCodec="aac-loas");break;case 21:A.bf==-1&&(A.bf=V);break;case 27:A.video==-1&&(A.video=V,A.videoCodec="avc");break;case 3:case 4:A.audio==-1&&(A.audio=V,A.audioCodec="mp3");break;case 36:A.video==-1&&(A.video=V,A.videoCodec="hvc");break;case 129:A.audio==-1&&(A.audio=V,A.audioCodec="ac3");break;case 132:case 135:A.audio==-1&&(A.audio=V,A.audioCodec="ec3")}R+=K+5}w=A,w.video!=-1&&(this.K=w.video,this.m=w.videoCodec),w.audio!=-1&&(this.F=w.audio,this.C=w.audioCodec),w.bf!=-1&&(this.G=w.bf),v&&!this.J&&(v=!1,b=u-188),this.J=!0;break;case this.K:R=i.subarray(R,b+188),w?this.j.push([R]):this.j.length&&this.j[this.j.length-1]&&this.j[this.j.length-1].push(R);break;case this.F:R=i.subarray(R,b+188),w?this.i.push([R]):this.i.length&&this.i[this.i.length-1]&&this.i[this.i.length-1].push(R);break;case this.G:R=i.subarray(R,b+188),w?this.l.push([R]):this.l.length&&this.l[this.l.length-1]&&this.l[this.l.length-1].push(R);break;default:v=!0}}return this};function tL(i,u){if((u[0]<<16|u[1]<<8|u[2])!==1)return null;var f={data:new Uint8Array(0),packetLength:u[4]<<8|u[5],pts:null,dts:null,nalus:[]};if(f.packetLength&&f.packetLength>u.byteLength-6)return null;var v=u[7];if(v&192){var b=(u[9]&14)*536870912+(u[10]&255)*4194304+(u[11]&254)*16384+(u[12]&255)*128+(u[13]&254)/2;i.u==null&&(i.u=b),f.pts=sY(b,i.u),i.u=f.pts,f.dts=f.pts,v&64&&(v=(u[14]&14)*536870912+(u[15]&255)*4194304+(u[16]&254)*16384+(u[17]&255)*128+(u[18]&254)/2,i.o==null&&(i.o=v),f.dts=f.pts!=b?sY(v,i.o):v),i.o=f.dts}return i=u[8]+9,u.byteLength<=i?null:(f.data=u.subarray(i),f)}l.Ek=function(i){return Zt("TsParser.parseAvcNalus","Please use parseNalus function instead."),this.Wg(i,{ge:null,state:null})},l.Wg=function(i,u){var f=i.pts?i.pts/9e4:null;i=i.data;var v=i.byteLength,b=1;this.m=="hvc"&&(b=2);var w=u.state||0,A=w,R=0,B=[],V=-1,K=0;for(w==-1&&(V=0,K=this.m=="hvc"?i[0]>>1&63:i[0]&31,w=0,R=1);R=0?B.push({data:i.subarray(V+b,Y),fullData:i.subarray(V,Y),type:K,time:f,state:null}):(w=B.length?B[B.length-1]:u.ge)&&(A&&R<=4-A&&w.state&&(w.data=w.data.subarray(0,w.data.byteLength-A),w.fullData=w.fullData.subarray(0,w.fullData.byteLength-A)),Y>0&&(Y=i.subarray(0,Y),w.data=or(w.data,Y),w.fullData=or(w.fullData,Y),w.state=0)),R>1&63:i[R]&31,V=R,w=0):w=-1):w=0:w=3:w=Y?0:1}return V>=0&&w>=0&&B.push({data:i.subarray(V+b,v),fullData:i.subarray(V,v),type:K,time:f,state:w}),!B.length&&u.ge&&(f=B.length?B[B.length-1]:u.ge)&&(f.data=or(f.data,i),f.fullData=or(f.fullData,i)),u.state=w,B},l.getMetadata=function(){for(var i=[],u=_(this.l),f=u.next();!f.done;f=u.next())f=or.apply(er,T(f.value)),(f=tL(this,f))&&i.push({cueTime:f.pts?f.pts/9e4:null,data:f.data,frames:X0(f.data),dts:f.dts,pts:f.pts});return i},l.ub=function(){if(this.i.length&&!this.h.length)for(var i=_(this.i),u=i.next();!u.done;u=i.next()){var f=or.apply(er,T(u.value)),v=tL(this,f);u=this.h.length?this.h[this.h.length-1]:null,v&&v.pts!=null&&v.dts!=null&&(!u||u.pts!=v.pts&&u.dts!=v.dts)?this.h.push(v):this.h.length&&(f=v?v.data:f)&&(u=this.h.pop(),u.data=or(u.data,f),this.h.push(u))}return this.h},l.ud=function(i){if(i=i===void 0?!0:i,this.j.length&&!this.g.length){for(var u=_(this.j),f=u.next();!f.done;f=u.next()){var v=or.apply(er,T(f.value)),b=tL(this,v);f=this.g.length?this.g[this.g.length-1]:null,b&&b.pts!=null&&b.dts!=null&&(!f||f.pts!=b.pts&&f.dts!=b.dts)?this.g.push(b):this.g.length&&(v=b?b.data:v)&&(f=this.g.pop(),f.data=or(f.data,v),this.g.push(f))}if(i){for(u={ge:null,state:null},f=[],v=_(this.g),b=v.next();!b.done;b=v.next())b=b.value,b.nalus=this.Wg(b,u),b.nalus.length&&(f.push(b),u.ge=b.nalus[b.nalus.length-1]);this.g=f}}return i?this.g:(i=this.g,this.g=[],i)},l.getStartTime=function(i){if(i=="audio"){i=null;var u=this.ub();return u.length&&(i=u[0],i=Math.min(i.dts,i.pts)/9e4),i}return i=="video"?(i=null,u=this.ud(!1),u.length&&(i=u[0],i=Math.min(i.dts,i.pts)/9e4),i):null},l.Vd=function(){return{audio:this.C,video:this.m}},l.$e=function(){for(var i=[],u=_(this.ud()),f=u.next();!f.done;f=u.next())i.push.apply(i,T(f.value.nalus));return i},l.dk=function(){Zt("TsParser.getVideoResolution","Please use getVideoInfo function instead.");var i=this.Jg();return{height:i.height,width:i.width}},l.Jg=function(){return this.m=="hvc"?hSe(this):fSe(this)};function oY(i){var u=i.ud();return u.length>1&&(i=u[0].pts,u=u[1].pts,!isNaN(u-i))?String(Math.abs(1/(u-i)*9e4)):null}function fSe(i){var u={height:null,width:null,codec:null,frameRate:null},f=i.$e();if(!f.length||(f=f.find(function(ue){return ue.type==7}),!f))return u;f=new Yf(f.data);var v=Xr(f),b=Xr(f),w=Xr(f);if(zs(f),pSe.includes(v)){var A=yn(f);if(A===3&&Rl(f,1),zs(f),zs(f),Rl(f,1),Rn(f)){A=A!==3?8:12;for(var R=0;R0)for(Oe=b;Oe<8;Oe++)kr(v,2);for(Oe=0;Oe>He&1)<<31-He;return Qe>>>0})(B),A=A==1?"H":"L",w="hvc1"+("."+["","A","B","C"][w]+R),w+="."+v.toString(16).toUpperCase(),w+="."+A+he,ue&&(w+="."+ue.toString(16).toUpperCase()),oe&&(w+="."+oe.toString(16).toUpperCase()),Y&&(w+="."+Y.toString(16).toUpperCase()),K&&(w+="."+K.toString(16).toUpperCase()),V&&(w+="."+V.toString(16).toUpperCase()),f&&(w+="."+f.toString(16).toUpperCase()),u.codec=w,u.frameRate=oY(i),u}function sY(i,u){var f=1;for(i>u&&(f=-1);Math.abs(u-i)>4294967296;)i+=f*8589934592;return i}function bg(i){return!(nL(i)<0)}function nL(i){for(var u=Math.min(1e3,i.length-564),f=0;f0||i.B.dispatchAllEmsgBoxes;K&&V.S("emsg",function(he){var ge=b.emsgSchemeIdUris;if(he.version===0)var ye=he.reader.Yc(),Oe=he.reader.Yc(),De=he.reader.U(),qe=he.reader.U(),ot=he.reader.U(),mt=he.reader.U(),Qe=v.startTime+qe/De;else De=he.reader.U(),Qe=he.reader.Dd()/De+v.timestampOffset,qe=Qe-v.startTime,ot=he.reader.U(),mt=he.reader.U(),ye=he.reader.Yc(),Oe=he.reader.Yc();he=he.reader.Tb(he.reader.getLength()-he.reader.Oa(),!0),(ge&&ge.includes(ye)||i.B.dispatchAllEmsgBoxes)&&(ye=="urn:mpeg:dash:event:2012"?i.O.Dk():(ge=Qe+ot/De,i.O.Bk({startTime:Qe,endTime:ge,schemeIdUri:ye,value:Oe,timescale:De,presentationTimeDelta:qe,eventDuration:ot,id:mt,messageData:he}),(ye=="https://aomedia.org/emsg/ID3"||ye=="https://developer.apple.com/streaming/emsg-id3")&&(De=X0(he),De.length&&i.O.onMetadata([{cueTime:Qe,data:he,frames:De,dts:Qe,pts:Qe}],0,ge))))});var Y=v.ba.timescale;u=Y&&!isNaN(Y);var oe=0,ue=!1;u&&V.S("prft",function(he){var ge=he.reader,ye=he.version;ge.U(),he=ge.U();var Oe=ge.U();he=he*1e3+Oe/4294967296*1e3,ye===0?ge=ge.U():(ye=ge.U(),ge=ge.U(),ge=ye*4294967296+ge),he=iY(he),ge=new Map().set("detail",{wallClockTime:he,programStartDate:new Date(he-ge/Y*1e3)}),ge=new Cn("prft",ge),i.O.onEvent(ge)}).box("moof",sr).box("traf",sr).S("tfdt",function(he){ue||(oe=ZS(he.reader,he.version).baseMediaDecodeTime/Y,ue=!0,K||he.parser.stop())}),(K||u)&&V.parse(f,!1,A),ue&&v.timestampOffset==0&&(R=oe)}else w.includes("/mp4")||w.includes("/webm")||!bg(V)||(i.$.has(u)||i.$.set(u,new Ti),B=i.$.get(u),B.clearData(),B.Gf(v.i),B.parse(V),V=B.getStartTime(u),V!=null&&(R=V),B=B.getMetadata());return{timestamp:R,metadata:B}}function s6(i,u,f,v,b,w,A,R,B,V,K){A=A===void 0?!1:A,R=R===void 0?!1:R,B=B===void 0?!1:B,V=V===void 0?!1:V;var Y,oe,ue,he,ge,ye,Oe,De,qe,ot,mt,Qe,He,ct,pt,ft,_t,kt,Nt,Vt;return re(function(Tt){switch(Tt.g){case 1:if(Y=Kr,u!=Y.Na){Tt.A(2);break}if(i.X!="HLS"){Tt.A(3);break}return I(Tt,i.Ta,4);case 4:oe=Tt.h,i.h.u=oe;case 3:return I(Tt,Zbe(i.h,f,v?v.startTime:null,v?v.endTime:null,v?v.P()[0]:null),5);case 5:return Tt.return();case 2:if(V||!i.m){Tt.A(6);break}return I(Tt,s6(i,Y.ka,f,v,b,w,A,R,B,!0),7);case 7:return I(Tt,s6(i,Y.Aa,f,v,b,w,A,R,B,!0),8);case 8:return Tt.return();case 6:if(!i.l.has(u))return Tt.return();if(ue=i.l.get(u).timestampOffset,he=i.F.get(u),i.j.has(u)&&(he=i.j.get(u).getOriginalMimeType()),v&&(ge=bSe(i,u,f,v,b,he,B),ye=ge.timestamp,Oe=ge.metadata,ye!=null&&(i.V==null&&u==Y.Aa&&(i.V=ye,i.wa=v.startTime,i.T!=null&&(De=0,i.wa==i.qa&&(De=i.V-i.T),i.ma.resolve(De))),i.T==null&&u==Y.ka&&(i.T=ye,i.qa=v.startTime,i.V!=null&&(qe=0,i.wa==i.qa&&(qe=i.V-i.T),i.ma.resolve(qe))),ot=ye,mt=zf,!i.I&&mt.includes(i.F.get(u))&&(ot=0),Qe=v.startTime-ot,He=Math.abs(ue-Qe),(He>=.001||A||R)&&(!B||Qe>0||!ue)&&(ue=Qe,i.ib&&(ts(i,u,function(){return Sg(i,u)},null),ts(i,u,function(){return kg(i,u,ue)},null))),(u==Y.Aa||!i.l.has(Y.Aa))&&i.Ta.resolve(ue)),Oe.length)&&i.O.onMetadata(Oe,ue,v?v.endTime:null),w&&u==Y.Aa&&(i.h||o6(i,"application/cea-608",i.I,!1),i.J||(ct=he.split(";",1)[0],i.J=new Bs(ct)),v?(pt=i.J.xf(f),pt.length&&Qbe(i.h,pt,ue)):i.J.init(f,R,K)),!i.j.has(u)){Tt.A(9);break}return I(Tt,i.j.get(u).transmux(f,b,v,i.i.duration,u),10);case 10:ft=Tt.h,ArrayBuffer.isView(ft)?f=ft:(_t=ft,_t.init!=null&&(kt=_t.init,ts(i,u,function(){i.H&&si(i.H,kt,ue,b),i.l.get(u).appendBuffer(kt)},v?v.P()[0]:null)),f=_t.data);case 9:if(f=wSe(i,b,f,v,u),!v||!i.I||u==Y.Na){Tt.A(11);break}if(!A&&!R){Tt.A(11);break}if(Nt=v.startTime,i.X!="HLS"||i.m||u!=Y.ka||!i.l.has(Y.Aa)){Tt.A(13);break}return I(Tt,i.ma,14);case 14:Vt=Tt.h,Math.abs(Vt)>.15&&(Nt-=Vt);case 13:ts(i,u,function(){return Sg(i,u)},null),ts(i,u,function(){return kg(i,u,Nt)},null);case 11:return I(Tt,ts(i,u,function(){var Lt=f;i.H&&si(i.H,Lt,ue,b),i.l.get(u).appendBuffer(Lt)},v?v.P()[0]:null),15);case 15:N(Tt)}})}function _Se(i,u){var f=Q0(i,"video")||0;KK(i.h,u,f)}function SSe(i){i.h&&KK(i.h,"",0)}l.remove=function(i,u,f,v){var b=this,w,A;return re(function(R){return R.g==1?(w=Kr,i==w.Aa&&b.J&&(b.J.remove(v),A=b.h.g||0,b.h.remove(A,f,!0)),i==w.Na?I(R,b.h.remove(u,f),0):f>u?I(R,ts(b,i,function(){return a6(b,i,u,f)},null),5):R.A(0)):b.m?I(R,ts(b,w.ka,function(){return a6(b,w.ka,u,f)},null),0):R.A(0)})};function uY(i,u){var f;return re(function(v){return v.g==1?(f=Kr,u==f.Na?i.h?I(v,i.h.remove(0,1/0),0):v.return():u===f.Aa&&i.J&&i.h?I(v,i.h.remove(0,1/0,!0),4):v.A(4)):v.g!=6?I(v,ts(i,u,function(){return a6(i,u,0,i.i.duration)},null),6):i.m?I(v,ts(i,f.ka,function(){return a6(i,f.ka,0,i.i.duration)},null),0):v.A(0)})}l.flush=function(i){var u=this,f;return re(function(v){return v.g==1?(f=Kr,i==f.Na?v.return():I(v,ts(u,i,function(){u.g.currentTime-=.001,up(u,i)},null),2)):u.m?I(v,ts(u,f.ka,function(){var b=f.ka;u.g.currentTime-=.001,up(u,b)},null),0):v.A(0)})};function cY(i,u,f,v,b,w,A,R,B){var V,K,Y;return re(function(oe){return oe.g==1?(V=Kr,u==V.Na?(w||(i.h.u=f),Jbe(i.h,v,b),oe.return()):(K=[],I(oe,ASe(i,u,A,R,B),2))):(Y=oe.h,Y||(K.push(ts(i,u,function(){return Sg(i,u)},null)),i.m&&K.push(ts(i,V.ka,function(){return Sg(i,V.ka)},null))),w||(K.push(ts(i,u,function(){return kg(i,u,f)},null)),i.m&&K.push(ts(i,V.ka,function(){return kg(i,V.ka,f)},null))),(v!=0||b!=1/0)&&(K.push(ts(i,u,function(){return dY(i,u,v,b)},null)),i.m&&K.push(ts(i,V.ka,function(){return dY(i,V.ka,v,b)},null))),K.length?I(oe,Promise.all(K),0):oe.A(0))})}function kSe(i,u,f){var v,b;return re(function(w){return w.g==1?(v=Kr,u==v.Na||(u==v.Aa&&(i.Ta=new li),!i.I||(b=Q0(i,u))&&Math.abs(b-f)<.15)?w.return():(ts(i,u,function(){return Sg(i,u)},null),i.m&&ts(i,v.ka,function(){return Sg(i,v.ka)},null),I(w,ts(i,u,function(){return kg(i,u,f)},null),2))):i.m?I(w,ts(i,v.ka,function(){return kg(i,v.ka,f)},null),0):w.A(0)})}l.endOfStream=function(i){var u=this;return re(function(f){return I(f,U3(u,function(){Z0(u)||J0(u)||(i?u.i.endOfStream(i):u.i.endOfStream())}),0)})},l.Ab=function(i){var u=this;return re(function(f){return I(f,U3(u,function(){if(u.B.durationReductionEmitsUpdateEnd&&i=u.o&&v&&!u.i)&&(u.j&&u.j(u.g,b),u.i=!0,u.g=f.g.currentTime),u=!v}u&&(u=i.g.currentTime,f=i.g.buffered,v=lSe(f,u,i.h.gapDetectionThreshold),v==null||v==0&&!i.B||(b=f.start(v),(w=i.h.gapPadding)&&(b=Math.ceil((b+w)*100)/100),b>=i.F.Gb()||b-u<.001||(v!=0&&f.end(v-1),DSe(i,b),u==i.l&&(i.l=b),i.G++,i.u(new Cn("gapjumped")))))}}}function DSe(i,u){i.C=!0,i.j.Ba(i.g,"seeked",function(){i.C=!1}),i.g.currentTime=u}function PSe(i){if(!i.h.stallEnabled)return null;var u=i.h.stallThreshold,f=i.h.stallSkip;return new gY(new yY(i.g),u,function(){var v;return re(function(b){if(b.g==1)return v=qf(i.g.buffered),v.length?f?(i.g.currentTime+=f,b.A(2)):I(b,i.g.play(),3):b.return();if(b.g!=2){if(!i.g)return b.return();i.g.pause(),i.g.play()}i.H++,i.u(new Cn("stalldetected")),N(b)})})}function gY(i,u,f){this.h=i,this.m=bY(i),this.g=i.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.o=u,this.j=f}gY.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null};function yY(i){var u=this;this.g=i,this.h=new Ye,this.i=!1,this.h.D(this.g,"audiofocuspaused",function(){u.i=!0}),this.h.D(this.g,"audiofocusgranted",function(){u.i=!1}),this.h.D(this.g,"audiofocuslost",function(){u.i=!0})}function bY(i){if(i.g.paused||i.g.playbackRate==0||i.i||i.g.buffered.length==0)var u=!1;else e:{u=i.g.currentTime,i=_(qf(i.g.buffered));for(var f=i.next();!f.done;f=i.next())if(f=f.value,!(uf.end-.5)){u=!0;break e}u=!1}return u}yY.prototype.release=function(){this.h&&this.h.release(),this.h=null};function xg(i,u,f,v){u==HTMLMediaElement.HAVE_NOTHING||i.readyState>=u?v():(u=RSe.value().get(u),f.Ba(i,u,v))}var RSe=new bt(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function _Y(i,u,f,v){var b=this;this.g=i,this.m=u,this.u=f,this.l=null,this.j=function(){return b.l==null&&(b.l=v()),b.l},this.o=!1,this.h=new Ye,this.i=new CY(i),xg(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){kY(b,b.j())})}_Y.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i!=null&&(this.i.release(),this.i=null),this.m=function(){},this.g=null};function dL(i){return i.o?i.g.currentTime:i.j()}function SY(i,u){i.g.readyState>0?wY(i.i,u):xg(i.g,HTMLMediaElement.HAVE_METADATA,i.h,function(){kY(i,i.j())})}function kY(i,u){Math.abs(i.g.currentTime-u)<.001?xY(i):(i.h.Ba(i.g,"seeking",function(){xY(i)}),wY(i.i,i.g.currentTime&&i.g.currentTime!=0?i.g.currentTime:u))}function xY(i){i.o=!0,i.h.D(i.g,"seeking",function(){return i.m()}),i.u(i.g.currentTime)}function CY(i){var u=this;this.g=i,this.m=10,this.j=this.l=this.i=0,this.h=new vr(function(){u.i<=0||u.g.currentTime!=u.l||u.g.currentTime===u.j?u.h.stop():(u.g.currentTime=u.j,u.i--)})}CY.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function wY(i,u){i.l=i.g.currentTime,i.j=u,i.i=i.m,i.g.currentTime=u,i.h.Ea(.1)}function EY(i){this.g=i,this.i=!1,this.h=null,this.j=new Ye}l=EY.prototype,l.ready=function(){function i(){if(u.h==null||u.h==0&&u.g.duration!=1/0)u.i=!0;else{var f=u.g.currentTime,v=null;if(typeof u.h=="number")v=u.h;else if(u.h instanceof Date){var b=TY(u);b!==null&&(v=u.h.getTime()/1e3-b,v=AY(u,v))}v==null?u.i=!0:(v<0&&(v=Math.max(0,f+v)),f!=v?(u.j.Ba(u.g,"seeking",function(){u.i=!0}),u.g.currentTime=v):u.i=!0)}}var u=this;xg(this.g,HTMLMediaElement.HAVE_FUTURE_DATA,this.j,function(){i()})},l.release=function(){this.j&&(this.j.release(),this.j=null),this.g=null},l.Wf=function(i){this.h=this.i?this.h:i},l.He=function(){var i=this.i?this.g.currentTime:this.h;return i instanceof Date&&(i=i.getTime()/1e3-(TY(this)||0),i=AY(this,i)),i||0},l.Ih=function(){return 0},l.Gh=function(){return 0},l.Hh=function(){return!1},l.xi=function(){},l.ki=function(){var i=t6(this.g.buffered);return i!=null&&i>=this.g.duration-1};function TY(i){return i.g.getStartDate&&(i=i.g.getStartDate().getTime(),!isNaN(i))?i/1e3:null}function AY(i,u){return i=i.g.seekable,i.length>0&&(u=Math.max(i.start(0),u),u=Math.min(i.end(i.length-1),u)),u}function IY(i,u,f,v,b,w){var A=this;this.h=i,this.g=u.presentationTimeline,this.l=f,this.u=b,this.o=null,this.i=new cL(i,u.presentationTimeline,f,w),this.j=new _Y(i,function(){e:{var R=A.i;R.m=!0,R.B=!1,R.i&&R.i.Ea(R.h.gapJumpTimerTime),H3(R);var B=dL(A.j);if(R=PY(A,B),!eg()&&Math.abs(R-B)>.001){B=!1;var V=Fe().Mi();if(V){var K=Date.now()/1e3;(!A.o||A.o0&&!this.h.paused?RY(this,i):i},l.Ih=function(){return this.i.H},l.Gh=function(){return this.i.G},l.Hh=function(){return this.i.C};function LY(i,u){return u==null?u=i.g.getDuration()<1/0?i.g.Xb():i.g.Gb():u instanceof Date?u=u.getTime()/1e3-(i.g.m||i.g.i):u<0&&(u=i.g.Gb()+u),DY(i,RY(i,u))}l.xi=function(){this.i.wf()},l.ki=function(){if(this.g.W()){var i=this.g.Hc(),u=t6(this.h.buffered);if(u!=null&&u>=i)return!0}return!1};function DY(i,u){var f=i.g.getDuration();return u>=f?f-i.l.durationBackoff:u}function PY(i,u){var f=i.l.rebufferingGoal,v=i.l.safeSeekOffset,b=i.g.Xb(),w=i.g.Gb(),A=i.g.getDuration();w-b<3&&(b=w-3);var R=i.g.Xd(f),B=i.g.Xd(v);return f=i.g.Xd(f+v),u>=A?DY(i,u):u>w?w-i.l.safeSeekEndOffset:u=R||qI(i.h.buffered,u)?u:f}function RY(i,u){var f=i.g.Xb();return ui?i:u)}function Or(i){this.g=i,this.m=null,this.i=0,this.o=!1}l=Or.prototype,l.getNumReferences=function(){return this.g.length},l.getNumEvicted=function(){return this.i},l.release=function(){this.o||(this.g=[],this.m&&this.m.stop(),this.m=null)},l.yk=function(){this.o=!0},l.Fb=function(i){for(var u=_(this.g),f=u.next();!f.done;f=u.next())i(f.value)};function nd(i){return i.g[0]||null}l.find=function(i){for(var u=this.g.length-1,f=u;f>=0;--f){var v=this.g[f],b=f=v.startTime&&i=this.g.length?null:this.g[i])},l.offset=function(i){if(!this.o)for(var u=_(this.g),f=u.next();!f.done;f=u.next())f.value.offset(i)},l.nf=function(i){if(!this.o&&i.length){var u=Math.round(i[0].startTime*1e3)/1e3;this.g=this.g.filter(function(f){return Math.round(f.startTime*1e3)/1e3u&&(f.g.length==0||v.endTime>f.g[0].startTime)}),this.nf(i),this.Ya(u)},l.Ya=function(i){if(!this.o){var u=this.g.length;this.g=this.g.filter(function(f){return f.endTime>i}),this.i+=u-this.g.length}},l.pd=function(i,u,f){if(f=f===void 0?!1:f,!this.o){for(;this.g.length&&this.g[this.g.length-1].startTime>=u;)this.g.pop();for(;this.g.length&&this.g[0].endTime<=i;)this.g.shift(),f||this.i++;this.g.length!=0&&(i=this.g[this.g.length-1],u=new Fn(i.startTime,u,i.C,i.startByte,i.endByte,i.ba,i.timestampOffset,i.appendWindowStart,i.appendWindowEnd,i.g,i.tilesLayout,i.B,i.h,i.status,i.aesKey),u.mimeType=i.mimeType,u.codecs=i.codecs,u.i=i.i,this.g[this.g.length-1]=u)}},l.Nf=function(i,u){var f=this;this.o||(this.m&&this.m.stop(),this.m=new vr(function(){var v=u();v?f.g.push.apply(f.g,T(v)):(f.m.stop(),f.m=null)}),this.m.Ea(i))},Or.prototype[Symbol.iterator]=function(){return this.Vb(0)},Or.prototype.Vb=function(i,u,f){u=u===void 0?!1:u,f=f===void 0?!1:f;var v=this.find(i);if(v==null)return null;var b=this.get(v);f?v++:v--;var w=-1;if(b&&b.g.length>0)for(var A=b.g.length-1;A>=0;--A){var R=b.g[A];if(i>=R.startTime&&i0&&i.m&&this.g>=i.g.length&&(this.h++,this.g=0,i=this.i.get(this.h)),i&&i.g.length>0?i.g[this.g]:i},l.next=function(){var i=this.i.get(this.h);return this.reverse?i&&i.g.length>0?(this.g--,this.g<0&&(this.h--,this.g=(i=this.i.get(this.h))&&i.g.length>0?i.g.length-1:0)):(this.h--,this.g=0):i&&i.g.length>0?(this.g++,i.m&&this.g==i.g.length&&(this.h++,this.g=0)):(this.h++,this.g=0),i=this.current(),{value:i,done:!i}},l.eh=function(){var i=this.current();if(i&&i.Xc&&!i.l&&(i=this.i.get(this.h))&&i.g.length>0)for(var u=i.g[this.g];u.l&&!(this.g<=0);)this.g--,u=i.g[this.g]},ze("shaka.media.SegmentIterator",Fu),Fu.prototype.resetToLastIndependent=Fu.prototype.eh,Fu.prototype.next=Fu.prototype.next,Fu.prototype.current=Fu.prototype.current,Fu.prototype.currentPosition=Fu.prototype.tj,Fu.prototype.setReverse=Fu.prototype.Id;function Ji(){Or.call(this,[]),this.h=[]}x(Ji,Or),l=Ji.prototype,l.clone=function(){var i=new Ji;return i.h=this.h.slice(),i.i=this.i,i},l.release=function(){this.h=[]},l.Fb=function(i){for(var u=_(this.h),f=u.next();!f.done;f=u.next())f.value.Fb(i)};function MSe(i,u){i=_(i.h);for(var f=i.next();!f.done;f=i.next())u(f.value)}l.find=function(i){for(var u=this.i,f=_(this.h),v=f.next();!v.done;v=f.next()){v=v.value;var b=v.find(i);if(b!=null)return b+u;u+=v.getNumEvicted()+v.getNumReferences()}return null};function OSe(i,u){i=_(i.h);for(var f=i.next();!f.done;f=i.next())if(f=f.value,f.find(u)!=null)return f.Te();return-1}l.get=function(i){for(var u=this.i,f=_(this.h),v=f.next();!v.done;v=f.next()){v=v.value;var b=v.get(i-u);if(b)return b;b=v.getNumReferences(),u+=v.getNumEvicted()+b}return null},l.offset=function(){},l.nf=function(){},l.Ya=function(i){if(this.h.length){var u=this.h[0];u.Ya(i),u.getNumReferences()==0&&(this.h.shift(),this.i+=u.getNumEvicted(),u.release(),this.Ya(i))}},l.fe=function(){},l.pd=function(){},l.Nf=function(){},ze("shaka.media.MetaSegmentIndex",Ji),Ji.prototype.updateEvery=Ji.prototype.Nf,Ji.prototype.fit=Ji.prototype.pd,Ji.prototype.mergeAndEvict=Ji.prototype.fe,Ji.prototype.evict=Ji.prototype.Ya,Ji.prototype.merge=Ji.prototype.nf,Ji.prototype.offset=Ji.prototype.offset,Ji.prototype.get=Ji.prototype.get,Ji.prototype.find=Ji.prototype.find,Ji.prototype.forEachTopLevelReference=Ji.prototype.Fb,Ji.prototype.release=Ji.prototype.release;function W3(i){var u=this;this.g=i,this.j=!1,this.i=this.g.Ye(),this.h=new vr(function(){u.g.ui(u.i*.25)})}W3.prototype.release=function(){this.set(this.Tc()),this.h&&(this.h.stop(),this.h=null),this.g=null},W3.prototype.set=function(i){this.i=i,fL(this)},W3.prototype.Tc=function(){return this.g.Tc()};function fL(i){i.h.stop();var u=i.j?0:i.i;if(u>=0)try{i.g.Ye()!=u&&i.g.ph(u);return}catch{}i.h.Ea(.25),i.g.Ye()!=0&&i.g.ph(0)}function hL(i){var u=this;this.j=i,this.h=new Ye,this.g=new Set,this.i=new vr(function(){MY(u,!1)}).Jb(),i.paused||this.i.Ea(.25),this.h.D(i,"playing",function(){u.i.Jb().Ea(.25)}),this.h.D(i,"pause",function(){u.i.stop()})}hL.prototype.release=function(){this.h&&(this.h.release(),this.h=null),this.i.stop();for(var i=_(this.g),u=i.next();!u.done;u=i.next())u.value.release();this.g.clear()};function MY(i,u){var f=i.j.currentTime;i=_(i.g);for(var v=i.next();!v.done;v=i.next())v.value.j(f,u)}function u6(i){Yr.call(this),this.g=new Map,this.h=i}x(u6,Yr),u6.prototype.release=function(){this.g.clear(),Yr.prototype.release.call(this)};function $Se(i,u){var f=i.g.get(u);return f||(f={me:[],lg:null,contentType:u},i.g.set(u,f)),f}function BSe(i,u,f){var v=$Se(i,u.contentType);NSe(i,v),i={xd:u,position:f},v=v.me,u=v.findIndex(function(b){return b.position>=f}),u>=0?v.splice(u,v[u].position==f?1:0,i):v.push(i)}u6.prototype.j=function(i){for(var u=_(this.g.values()),f=u.next();!f.done;f=u.next()){f=f.value;var v=f.lg;e:{for(var b=f.me,w=b.length-1;w>=0;w--){var A=b[w];if(A.position<=i){b=A.xd;break e}}b=null}w=b&&!(v===b||v&&b&&v.bandwidth==b.bandwidth&&v.audioSamplingRate==b.audioSamplingRate&&v.codecs==b.codecs&&v.contentType==b.contentType&&v.frameRate==b.frameRate&&v.height==b.height&&v.mimeType==b.mimeType&&v.channelsCount==b.channelsCount&&v.pixelAspectRatio==b.pixelAspectRatio&&v.width==b.width),A=b&&v&&b.label&&v.label&&v.label!==b.label;var R=b&&v&&b.language&&v.language&&v.language!==b.language;v=b&&v&&b.roles&&v.roles&&!lt(v.roles,b.roles),(A||R||v)&&OY(this,i,b.contentType)&&(f.lg=b,v=new Cn("audiotrackchange",new Map([["quality",b],["position",i]])),this.dispatchEvent(v)),w&&OY(this,i,b.contentType)&&(f.lg=b,JSON.stringify(b),f=new Cn("qualitychange",new Map([["quality",b],["position",i]])),this.dispatchEvent(f))}};function OY(i,u,f){return!!((i=i.h()[f])&&i.length>0&&(f=i[i.length-1].end,u>=i[0].start&&u0){var f=i[0].start,v=i[i.length-1].end,b=u.me;u.me=b.filter(function(w,A){return!(w.position<=f&&A+1=v)})}else u.me=[]}function c6(i){var u={bandwidth:i.bandwidth||0,audioSamplingRate:null,codecs:i.codecs,contentType:i.type,frameRate:null,height:null,mimeType:i.mimeType,channelsCount:null,pixelAspectRatio:null,width:null,label:null,roles:i.roles,language:null};return i.type=="video"&&(u.frameRate=i.frameRate||null,u.height=i.height||null,u.pixelAspectRatio=i.pixelAspectRatio||null,u.width=i.width||null),i.type=="audio"&&(u.audioSamplingRate=i.audioSamplingRate,u.channelsCount=i.channelsCount,u.label=i.label||null,u.language=i.language),u}function G3(i){Yr.call(this),this.h=new Map,this.i=i,this.g=null}x(G3,Yr),G3.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),Yr.prototype.release.call(this)};function pL(i,u){var f=u.schemeIdUri+"_"+u.id+"_"+(u.startTime.toFixed(1)+"_"+u.endTime.toFixed(1));i.h.has(f)||(i.h.set(f,u),u=new Cn("regionadd",new Map([["region",u]])),i.dispatchEvent(u),FSe(i))}function FSe(i){i.g||(i.g=new vr(function(){for(var u=i.i(),f=_(i.h),v=f.next();!v.done;v=f.next()){var b=_(v.value);v=b.next().value,b=b.next().value,b.endTimev.endTime&&q3(this,v);u&&vL(this)},d6.prototype.Id=function(i){this.o=i,this.h&&this.h.Id(i)};function vL(i){if(i.g.size)for(var u=Array.from(i.g.keys()),f=_(i.j.keys()),v=f.next(),b={};!v.done;b={Mg:void 0},v=f.next())b.Mg=v.value,u.some((function(w){return function(A){return j3(A.ba,w.Mg)}})(b))||q3(i,b.Mg)}function NY(i,u){i.m=u;for(var f=Array.from(i.g.keys());f.length>u;){var v=f.pop();v&&q3(i,v)}vL(i)}function VSe(i,u){u&&u!==i.i&&(rd(i),i.i=u)}function q3(i,u){var f=i.g;u instanceof nl&&(f=i.j),i=f.get(u),f.delete(u),i&&i.abort()}function mL(i){this.g=i,this.je=this.wh=null}function FY(i,u,f){var v=new Uint8Array(0);return i.je=i.g(u,f,function(b){return re(function(w){if(w.g==1)return v.byteLength>0?v=or(v,b):v=b,i.wh?I(w,i.wh(v),3):w.A(0);v=new Uint8Array(0),N(w)})}),i.je.promise.catch(function(b){return b instanceof Ae&&b.code==7001?Promise.resolve():Promise.reject(b)})}mL.prototype.abort=function(){this.je&&this.je.abort()},ze("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function gL(i){var u=Ll(i),f=u.split("/")[0];return i=tl(i),{type:f,mimeType:u,codecs:i,language:null,height:null,width:null,channelCount:null,sampleRate:null,closedCaptions:new Map,ve:null,colorGamut:null,frameRate:null}}function zSe(i,u,f){function v(He){Oe=He.name;var ct=He.reader;ct.skip(24);var pt=ct.Ca(),ft=ct.Ca();ct.skip(50),oe=String(pt),Y=String(ft),He.reader.Ia()&&sr(He)}function b(He){var ct=Hq(He.reader);ue=ct.channelCount,he=ct.sampleRate,w(He.name)}function w(He){switch(He=He.toLowerCase(),He){case"avc1":case"avc3":R.push(He+".42E01E"),V=!0;break;case"hev1":case"hvc1":R.push(He+".1.6.L93.90"),V=!0;break;case"dvh1":case"dvhe":R.push(He+".05.04"),V=!0;break;case"vp09":R.push(He+".00.10.08"),V=!0;break;case"av01":R.push(He+".0.01M.08"),V=!0;break;case"mp4a":A.push("mp4a.40.2"),B=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":A.push(He),B=!0;break;case"apac":A.push("apac.31.00"),B=!0}}var A=[],R=[],B=!1,V=!1,K=null,Y=null,oe=null,ue=null,he=null,ge=null,ye=null,Oe;if(new ui().box("moov",sr).box("trak",sr).box("mdia",sr).S("mdhd",function(He){K=JS(He.reader,He.version).language}).box("minf",sr).box("stbl",sr).S("stsd",Gf).box("mp4a",function(He){var ct=Hq(He.reader);ue=ct.channelCount,he=ct.sampleRate,He.reader.Ia()?sr(He):w(He.name)}).box("esds",function(He){He=He.reader;for(var ct="mp4a",pt,ft;He.Ia();){pt=He.Y();for(var _t=He.Y();_t&128;)_t=He.Y();if(pt==3)He.Ca(),_t=He.Y(),_t&128&&He.Ca(),_t&64&&He.skip(He.Y()),_t&32&&He.Ca();else if(pt==4)ft=He.Y(),He.skip(12);else if(pt==5)break}ft&&(ct+="."+B3(ft),pt==5&&He.Ia()&&(pt=He.Y(),ft=(pt&248)>>3,ft===31&&He.Ia()&&(ft=32+((pt&7)<<3)+((He.Y()&224)>>5)),ct+="."+ft)),A.push(ct),B=!0}).box("ac-3",b).box("ec-3",b).box("ac-4",b).box("Opus",b).box("fLaC",b).box("apac",b).box("avc1",v).box("avc3",v).box("hev1",v).box("hvc1",v).box("dva1",v).box("dvav",v).box("dvh1",v).box("dvhe",v).box("vp09",v).box("av01",v).box("avcC",function(He){var ct=Oe||"";switch(Oe){case"dvav":ct="avc3";break;case"dva1":ct="avc1"}He=He.reader,He.skip(1),He=ct+"."+B3(He.Y())+B3(He.Y())+B3(He.Y()),R.push(He),V=!0}).box("hvcC",function(He){var ct=Oe||"";switch(Oe){case"dvh1":ct="hvc1";break;case"dvhe":ct="hev1"}var pt=He.reader;pt.skip(1),He=pt.Y();var ft=["","A","B","C"][He>>6],_t=He&31,kt=pt.U(),Nt=(He&32)>>5?"H":"L";He=[pt.Y(),pt.Y(),pt.Y(),pt.Y(),pt.Y(),pt.Y()],pt=pt.Y();for(var Vt=0,Tt=0;Tt<32&&(Vt|=kt&1,Tt!=31);Tt++)Vt<<=1,kt>>=1;for(ct=ct+("."+ft+_t)+("."+B3(Vt,!0)),ct+="."+Nt+pt,ft="",_t=He.length;_t--;)((Nt=He[_t])||ft)&&(ft="."+Nt.toString(16).toUpperCase()+ft);ct+=ft,R.push(ct),V=!0}).box("dvcC",function(He){var ct=Oe||"";switch(Oe){case"hvc1":ct="dvh1";break;case"hev1":ct="dvhe";break;case"avc1":ct="dva1";break;case"avc3":ct="dvav";break;case"av01":ct="dav1"}var pt=He.reader;pt.skip(2),He=pt.Y(),pt=pt.Y(),R.push(ct+"."+Pl(He>>1&127)+"."+Pl(He<<5&32|pt>>3&31)),V=!0}).box("dvvC",function(He){var ct=Oe||"";switch(Oe){case"hvc1":ct="dvh1";break;case"hev1":ct="dvhe";break;case"avc1":ct="dva1";break;case"avc3":ct="dvav";break;case"av01":ct="dav1"}var pt=He.reader;pt.skip(2),He=pt.Y(),pt=pt.Y(),R.push(ct+"."+Pl(He>>1&127)+"."+Pl(He<<5&32|pt>>3&31)),V=!0}).S("vpcC",function(He){var ct=Oe||"",pt=He.reader;He=pt.Y();var ft=pt.Y();pt=pt.Y()>>4&15,R.push(ct+"."+Pl(He)+"."+Pl(ft)+"."+Pl(pt)),V=!0}).box("av1C",function(He){var ct=Oe||"";switch(Oe){case"dav1":ct="av01"}var pt=He.reader;pt.skip(1),He=pt.Y(),pt=pt.Y();var ft=He>>>5,_t=(pt&64)>>6;R.push(ct+"."+ft+"."+Pl(He&31)+(pt>>>7?"H":"M")+"."+Pl(ft===2&&_t?(pt&32)>>5?12:10:_t?10:8)+"."+((pt&16)>>4)+"."+((pt&8)>>3)+((pt&4)>>2)+(pt&3)+"."+Pl(1)+"."+Pl(1)+"."+Pl(1)+".0"),V=!0}).box("enca",GS).box("encv",Dl).box("sinf",sr).box("frma",function(He){He=GI(He.reader).codec,w(He)}).box("colr",function(He){R=R.map(function(ft){if(ft.startsWith("av01.")){var _t=He.reader,kt=_t.Oa(),Nt=_t.Tb(4,!1),Vt=String.fromCharCode(Nt[0]);if(Vt+=String.fromCharCode(Nt[1]),Vt+=String.fromCharCode(Nt[2]),Vt+=String.fromCharCode(Nt[3]),Vt==="nclx"){Nt=_t.Ca(),Vt=_t.Ca();var Tt=_t.Ca(),Lt=_t.Y()>>7,qt=ft.split(".");qt.length==10&&(qt[6]=Pl(Nt),qt[7]=Pl(Vt),qt[8]=Pl(Tt),qt[9]=String(Lt),ft=qt.join("."))}_t.seek(kt)}return ft});var ct=H_e(He.reader),pt=ct.colorGamut;ge=ct.ve,ye=pt}).parse(i||u,!0,!0),!A.length&&!R.length)return null;var De=B&&!V,qe=new Map;if(V&&!f){f=new Bs("video/mp4"),i&&f.init(i);try{f.xf(u);for(var ot=_(f.Vf()),mt=ot.next();!mt.done;mt=ot.next()){var Qe=mt.value;qe.set(Qe,Qe)}}catch{}f.Nd()}return{type:De?"audio":"video",mimeType:De?"audio/mp4":"video/mp4",codecs:yL(A.concat(R)).join(", "),language:K,height:Y,width:oe,channelCount:ue,sampleRate:he,closedCaptions:qe,ve:ge,colorGamut:ye,frameRate:null}}function yL(i){var u=new Set,f=[];i=_(i);for(var v=i.next();!v.done;v=i.next()){v=v.value;var b=ip(v);u.has(b)||(f.push(v),u.add(b))}return u=Ta("audio",f),v=Ta("video",f),i=Ta(Tn,f),v=USe(v),u=u.concat(v).concat(i),f.length&&!u.length?f:u}function USe(i){if(i.length<=1)return i;var u=i.find(function(f){return f.startsWith("dvav.")||f.startsWith("dva1.")||f.startsWith("dvh1.")||f.startsWith("dvhe.")||f.startsWith("dav1.")||f.startsWith("dvc1.")||f.startsWith("dvi1.")});return u?No('video/mp4; codecs="'+u+'"')?[u]:i.filter(function(f){return f!=u}):i}function HSe(i){var u=null;return new ui().box("moov",sr).box("trak",sr).box("mdia",sr).box("minf",sr).box("stbl",sr).S("stsd",Gf).box("encv",Dl).box("enca",GS).box("sinf",sr).box("schi",sr).S("tenc",function(f){f=f.reader,f.Y(),f.Y(),f.Y(),f.Y(),f=f.Tb(16,!1),u=Dn(f)}).parse(i,!0),u}function bL(i,u,f){var v,b,w,A,R;return re(function(B){if(B.g==1)return v=u,v.cryptoKey?B.A(2):I(B,v.fetchKey(),3);if(b=v.iv,!b)for(b=Re(new ArrayBuffer(16)),w=v.firstMediaSequenceNumber+f,A=b.byteLength-1;A>=0;A--)b[A]=w&255,w>>=8;return u.blockCipherMode=="CBC"?R={name:"AES-CBC",iv:b}:R={name:"AES-CTR",counter:b,length:64},B.return(o.crypto.subtle.decrypt(R,v.cryptoKey,i))})}function Y3(i,u,f,v,b){return i=Fo(i,v,b),(u!=0||f!=null)&&(i.headers.Range=f?"bytes="+u+"-"+f:"bytes="+u+"-"),i}function jY(i,u){var f=this;this.g=u,this.j=i,this.i=null,this.M=new Map,this.C=1,this.B=this.o=null,this.V=0,this.h=new Map,this.N=!1,this.X=null,this.F=!1,this.l=new ug(function(){return WSe(f)}),this.R=Date.now()/1e3,this.m=new Map,this.T={projection:null,hfov:null},this.aa=0,this.$=1/0,this.H=null,this.O=[],this.u=new vr(function(){if(f.j&&f.g)if(f.j.presentationTimeline.W()){var v=f.j.presentationTimeline.Xb(),b=f.j.presentationTimeline.Gb();b-v>1?xSe(f.g.Z,v,b):oL(f.g.Z)}else oL(f.g.Z),f.u&&f.u.stop();else f.u&&f.u.stop()}),this.I=null,this.J=!1,this.K=new vr(function(){var v=f.g.video;!v.ended&&f.I&&(f.J=!0,v.currentTime=f.I,f.I=null)}),this.G=new Ye}l=jY.prototype,l.destroy=function(){return this.l.destroy()};function WSe(i){var u,f,v,b,w,A,R;return re(function(B){if(B.g==1){for(i.u&&i.u.stop(),i.u=null,i.K&&i.K.stop(),i.K=null,i.G&&(i.G.release(),i.G=null),u=[],f=_(i.h.values()),v=f.next();!v.done;v=f.next())b=v.value,Xf(b),u.push(m6(b)),b.ha&&(rd(b.ha),b.ha=null);for(w=_(i.m.values()),A=w.next();!A.done;A=w.next())R=A.value,rd(R);return I(B,Promise.all(u),2)}i.h.clear(),i.m.clear(),i.g=null,i.j=null,i.i=null,i.I=null,N(B)})}l.configure=function(i){if(this.i=i,this.X=new fq({maxAttempts:Math.max(i.retryParameters.maxAttempts,2),baseDelay:i.retryParameters.baseDelay,backoffFactor:i.retryParameters.backoffFactor,fuzzFactor:i.retryParameters.fuzzFactor},!0),i.disableAudioPrefetch){var u=this.h.get("audio");u&&u.ha&&(rd(u.ha),u.ha=null),u=_(this.m.keys());for(var f=u.next();!f.done;f=u.next())f=f.value,rd(this.m.get(f)),this.m.delete(f)}for(i.disableTextPrefetch&&(u=this.h.get(Tn))&&u.ha&&(rd(u.ha),u.ha=null),i.disableVideoPrefetch&&(u=this.h.get("video"))&&u.ha&&(rd(u.ha),u.ha=null),u=_(this.h.keys()),f=u.next();!f.done;f=u.next())f=this.h.get(f.value),f.ha?(NY(f.ha,i.segmentPrefetchLimit),i.segmentPrefetchLimit>0||(rd(f.ha),f.ha=null)):i.segmentPrefetchLimit>0&&(f.ha=SL(this,f.stream));i.disableAudioPrefetch||JSe(this)};function GSe(i,u,f){i.j.presentationTimeline.W()||(i.aa=u,i.$=f)}l.start=function(i){var u=this;return re(function(f){if(f.g==1)return I(f,ZSe(u,i||new Map),2);Ei(u.l),u.N=!0,N(f)})};function KSe(i,u){var f,v,b,w,A,R;re(function(B){switch(B.g){case 1:return f=Kr,i.V++,v=i.V,j(B,2),I(B,uY(i.g.Z,f.Na),4);case 4:z(B,3);break;case 2:b=G(B),i.g&&i.g.onError(b);case 3:w=yo(u.mimeType,u.codecs),o6(i.g.Z,w,i.j.sequenceMode,u.external),A=i.g.Z.aa,(A.isTextVisible()||i.i.alwaysStreamText)&&i.V==v&&(R=h6(i,u),i.h.set(f.Na,R),va(i,R,0)),N(B)}})}function qSe(i){var u=i.h.get(Tn);u&&(Xf(u),m6(u).catch(function(){}),i.H=i.h.get(Tn),i.h.delete(Tn),u.stream&&u.stream.closeSegmentIndex&&u.stream.closeSegmentIndex()),i.B=null}function VY(i,u){for(var f=i.g.Ob()<0,v=_(i.h.values()),b=v.next();!b.done;b=v.next())b=b.value,b.ua&&b.ua.Id(f),b.ha&&b.ha.Id(f);for(v=_(i.m.values()),b=v.next();!b.done;b=v.next())b.value.Id(f);(f=i.h.get("video"))&&(v=f.stream)&&(u?(u=v.trickModeVideo)&&!f.Mc&&(Cg(i,u,!1,0,!1),f.Mc=v):(u=f.Mc)&&(f.Mc=null,Cg(i,u,!0,0,!1)))}function zY(i,u,f,v,b,w){f=f===void 0?!1:f,v=v===void 0?0:v,b=b===void 0?!1:b,w=w===void 0?!1:w,i.o=u,i.N&&(u.video&&Cg(i,u.video,f,v,b,w),u.audio&&Cg(i,u.audio,f,v,b,w))}function f6(i,u){re(function(f){if(f.g==1)return i.H=null,i.B=u,i.N?u.segmentIndex?f.A(2):I(f,u.createSegmentIndex(),2):f.return();Cg(i,u,!0,0,!1),N(f)})}function YSe(i){var u=i.h.get(Tn);u&&Cg(i,u.stream,!0,0,!0)}function XSe(i,u){for(var f=_(i.M.entries()),v=f.next();!v.done;v=f.next()){var b=_(v.value);v=b.next().value,b=b.next().value,v.includes(u.type)&&(b(),i.M.delete(v))}}function Cg(i,u,f,v,b,w){var A=i.h.get(u.type);A||u.type!=Tn?A&&(A.Mc&&(u.trickModeVideo?(A.Mc=u,u=u.trickModeVideo):A.Mc=null),A.stream!=u||b)&&(i.m.has(u)?A.ha=i.m.get(u):A.ha&&VSe(A.ha,u),u.type==Tn&&A.stream!=u&&(b=yo(u.mimeType,u.codecs),o6(i.g.Z,b,i.j.sequenceMode,u.external)),!i.m.has(A.stream)&&A.stream.closeSegmentIndex&&(A.Ja?(b="("+A.type+":"+A.stream.id+")",i.M.has(b)||i.M.set(b,A.stream.closeSegmentIndex)):A.stream.closeSegmentIndex()),b=A.stream.isAudioMuxedInVideo!=u.isAudioMuxedInVideo,A.stream=u,A.ua=null,A.cg=!!w,u.dependencyStream?A.Ec=h6(i,u.dependencyStream):A.Ec=null,KY(i),b&&(A.pb=null,A.qc=null,A.nc=null,u.isAudioMuxedInVideo&&(u=null,A.type==="video"?u=i.h.get("audio"):A.type==="audio"&&(u=i.h.get("video")),u&&(m6(u).catch(function(){}),u.pb=null,u.qc=null,u.nc=null,_L(i,u),UY(i,u).catch(function(R){i.g&&i.g.onError(R)})))),f?A.Ub?A.Kd=!0:A.Ja?(A.ec=!0,A.ld=v,A.Kd=!0):(Xf(A),CL(i,A,!0,v).catch(function(R){i.g&&i.g.onError(R)})):A.Ja||A.qb||va(i,A,0),UY(i,A).catch(function(R){i.g&&i.g.onError(R)})):KSe(i,u)}function UY(i,u){var f,v,b;return re(function(w){if(w.g==1)return u.Va?(f=u.stream,v=u.Va,f.segmentIndex?w.A(2):I(w,f.createSegmentIndex(),2)):w.return();if(w.g!=4)return b=f.dependencyStream,!b||b.segmentIndex?w.A(4):I(w,b.createSegmentIndex(),4);if(u.Va!=v||u.stream!=f)return w.return();var A=i.g.lc(),R=Q0(i.g.Z,u.type),B=u.stream.segmentIndex.find(u.La?u.La.endTime:A),V=B==null?null:u.stream.segmentIndex.get(B);B=V?KI(V):null,V&&!B&&(B=(V.endTime-V.getStartTime())*(u.stream.bandwidth||i.o.bandwidth)/8),B?((V=V.ba)&&(B+=(V.endByte?V.endByte+1-V.startByte:null)||0),V=i.g.getBandwidthEstimate(),A=B*8/V<(R||0)-A-i.i.rebufferingGoal||u.Va.h.g>B):A=!0,A&&u.Va.abort(),N(w)})}l.bd=function(){if(this.g){for(var i=this.g.lc(),u=_(this.h.keys()),f=u.next();!f.done;f=u.next()){var v=f.value;f=this.h.get(v);var b;if((b=!this.J)&&(b=this.g.Z,v==Tn?(b=b.h,b=b.g==null||b.h==null?!1:i>=b.g&&i0?new d6(i.i.segmentPrefetchLimit,u,function(v,b,w){return v6(v,b,w||null,i.i.retryParameters,i.g.tc)},i.g.Ob()<0,i.g.al):null}function JSe(i){for(var u=i.i.segmentPrefetchLimit,f=i.i.prefetchAudioLanguages,v=_(i.j.variants),b=v.next(),w={};!b.done;w={Mb:void 0},b=v.next())if(w.Mb=b.value,w.Mb.audio)if(i.m.has(w.Mb.audio)){if(b=i.m.get(w.Mb.audio),NY(b,u),!(u>0&&f.some((function(R){return function(B){return ig(R.Mb.audio.language,B)}})(w)))){var A=i.h.get(w.Mb.audio.type);b!==(A&&A.ha)&&rd(b),i.m.delete(w.Mb.audio)}}else u<=0||!f.some((function(R){return function(B){return ig(R.Mb.audio.language,B)}})(w))||!(b=SL(i,w.Mb.audio))||(w.Mb.audio.segmentIndex||w.Mb.audio.createSegmentIndex(),i.m.set(w.Mb.audio,b))}l.updateDuration=function(){var i=eg(),u=this.j.presentationTimeline.getDuration();u<1/0?(i&&(this.u&&this.u.stop(),oL(this.g.Z)),this.g.Z.Ab(u)):i?(this.u&&this.u.Ea(.5),this.g.Z.Ab(1/0)):this.g.Z.Ab(4294967296)};function QSe(i,u){var f,v,b,w,A,R,B,V,K;return re(function(Y){switch(Y.g){case 1:if(Ei(i.l),f=Kr,u.Ja||u.qb==null||u.Ub)return Y.return();if(u.qb=null,!u.ec){Y.A(2);break}return I(Y,CL(i,u,u.Kd,u.ld),3);case 3:return Y.return();case 2:if(XSe(i,u),u.stream.segmentIndex){Y.A(4);break}return v=u.stream,j(Y,5),I(Y,u.stream.createSegmentIndex(),7);case 7:z(Y,6);break;case 5:return b=G(Y),I(Y,wL(i,u,b),8);case 8:return Y.return();case 6:if(v!=u.stream)return v.closeSegmentIndex&&v.closeSegmentIndex(),u.Ja||u.qb||va(i,u,0),Y.return();case 4:if(!u.Ec){Y.A(9);break}if(u.Ec.stream.segmentIndex){Y.A(9);break}return j(Y,11),I(Y,u.Ec.stream.createSegmentIndex(),13);case 13:z(Y,9);break;case 11:G(Y);case 9:j(Y,14),w=e6e(i,u),w!=null&&(va(i,u,w),u.Zd=!1),z(Y,15);break;case 14:return A=G(Y),I(Y,wL(i,u,A),16);case 16:return Y.return();case 15:if(u.type===f.Na)return Y.return();if(R=[u],B=u.type===f.ka?f.Aa:f.ka,(V=i.h.get(B))&&R.push(V),!i.N||!R.every(function(oe){return oe.endOfStream})){Y.A(0);break}return I(Y,i.g.Z.endOfStream(),18);case 18:Ei(i.l),K=i.g.Z.getDuration(),K!=0&&K=w)return f/2;if(R=!u.ua,B=HY(i,u,v,B),!B)return f;A=u.pb;var V=B.ba;A&&V&&j3(V,A)&&(A.g=V.g),A=!1,R&&u.cg&&(A=!0,u.cg=!1),R=1/0,V=Array.from(i.h.values()),V=_(V);for(var K=V.next();!K.done;K=V.next())K=K.value,xL(K)||K.ua&&!K.ua.current()||(R=Math.min(R,K.La?K.La.endTime:v));return b>=R+i.j.presentationTimeline.h?f:(u.ha&&u.ua&&!i.m.has(u.stream)&&(u.ha.Ya(B.startTime+.001),K3(u.ha,B.startTime).catch(function(){})),Z3(i)&&o6e(i,u,B)||(t6e(i,u,v,B,A).catch(function(){}),u.Ec&&WY(i,u.Ec,v,w)),null)}function HY(i,u,f,v){if(u.ua)return(f=u.ua.current())&&u.La&&Math.abs(u.La.startTime-f.startTime)<.001&&(f=u.ua.next().value),f;if(u.La||v)return f=u.La?u.La.endTime:v,i=i.g.Ob()<0,u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,i)),u.ua&&u.ua.next().value;v=i.j.sequenceMode||Z3(i)?0:i.i.inaccurateManifestTolerance;var b=Math.max(f-v,0);i=i.g.Ob()<0;var w=null;return v&&(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(b,!1,i)),w=u.ua&&u.ua.next().value),w||(u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,i)),w=u.ua&&u.ua.next().value),w}function t6e(i,u,f,v,b){var w,A,R,B,V,K,Y,oe,ue,he,ge,ye,Oe,De,qe,ot,mt;return re(function(Qe){switch(Qe.g){case 1:if(w=Kr,A=u.stream,R=u.ua,u.Ja=!0,j(Qe,2),v.Jc()==2)throw new Ae(1,1,1011);return I(Qe,r6e(i,u,v,b),4);case 4:return Ei(i.l),i.F?Qe.return():(B=A.mimeType=="video/mp4"||A.mimeType=="audio/mp4",V=o.ReadableStream,i.i.lowLatencyMode&&i.j.isLowLatency&&V&&B&&(i.j.type!="HLS"||v.o)?(oe=new Uint8Array(0),he=ue=!1,ye=function(He){var ct,pt,ft;return re(function(_t){switch(_t.g){case 1:if(ue||(he=!0,Ei(i.l),i.F))return _t.return();if(j(_t,2),oe=or(oe,He),ct=!1,pt=0,new ui().box("mdat",function(kt){pt=kt.size+kt.start,ct=!0}).parse(oe,!1,!0),!ct){_t.A(4);break}return ft=oe.subarray(0,pt),oe=oe.subarray(pt),I(_t,kL(i,u,f,A,v,ft,!0,b),5);case 5:u.ha&&u.ua&&K3(u.ha,v.startTime,!0);case 4:z(_t,0);break;case 2:ge=G(_t),N(_t)}})},I(Qe,X3(i,u,v,ye),9)):(K=X3(i,u,v),I(Qe,K,7)));case 7:return Y=Qe.h,Ei(i.l),i.F?Qe.return():(Ei(i.l),u.ec?(u.Ja=!1,va(i,u,0),Qe.return()):I(Qe,kL(i,u,f,A,v,Y,!1,b),6));case 9:if(Oe=Qe.h,ge)throw ge;if(he){Qe.A(10);break}return ue=!0,Ei(i.l),i.F?Qe.return():u.ec?(u.Ja=!1,va(i,u,0),Qe.return()):I(Qe,kL(i,u,f,A,v,Oe,!1,b),10);case 10:u.ha&&u.ua&&K3(u.ha,v.startTime,!0);case 6:if(Ei(i.l),i.F)return Qe.return();u.La=v,R.next(),u.Ja=!1,u.ah=!1,De=i.g.Z.Fc(),qe=De[u.type],JSON.stringify(qe),u.ec||(ot=null,u.type===w.Aa?ot=i.h.get(w.ka):u.type===w.ka&&(ot=i.h.get(w.Aa)),ot&&ot.type==w.ka?i.g.wf(v,u.stream,ot.stream.isAudioMuxedInVideo):i.g.wf(v,u.stream,u.stream.codecs.includes(","))),Xf(u),va(i,u,0),z(Qe,0);break;case 2:if(mt=G(Qe),Ei(i.l,mt),i.F)return Qe.return();if(u.Ja=!1,mt.code==7001)u.Ja=!1,Xf(u),va(i,u,0),Qe.A(0);else if(u.type==w.Na&&i.i.ignoreTextStreamFailures)i.h.delete(w.Na),Qe.A(0);else return mt.code==3017?I(Qe,n6e(i,u,mt),0):(u.Zd=!0,mt.category==1&&u.ha&&q3(u.ha,v),mt.severity=2,I(Qe,wL(i,u,mt),0))}})}function WY(i,u,f,v){var b,w,A,R,B,V,K,Y,oe,ue,he;return re(function(ge){switch(ge.g){case 1:for(b=u.stream,R=(A=(w=b.segmentIndex)&&w.Vb(f))&&A.next().value;R&&i.O.includes(R.startTime);)R=A&&A.next().value;if(!R){ge.A(0);break}if(B=R.ba,!B||j3(B,u.pb)){ge.A(3);break}return u.pb=B,j(ge,4),I(ge,X3(i,u,B),6);case 6:V=ge.h;var ye=i.g.Z;ye.H&&si(ye.H,V,0,b),i.O=[],z(ge,3);break;case 4:throw K=G(ge),u.pb=null,K;case 3:if(u.La&&u.La==R){ge.A(0);break}return u.La=R,j(ge,8),I(ge,X3(i,u,R),10);case 10:Y=ge.h,ye=i.g.Z,ye.H&&si(ye.H,Y,0,b),i.O.push(R.startTime),z(ge,9);break;case 8:throw oe=G(ge),u.La=null,oe;case 9:if(ue=Math.max.apply(Math,[0].concat(T(i.O))),he=i.g.lc(),he+v>ue)return I(ge,WY(i,u,R.startTime,v),0);ge.A(0)}})}function n6e(i,u,f){var v,b,w,A,R,B,V;return re(function(K){switch(K.g){case 1:if(v=Array.from(i.h.values()),v.some(function(Y){return Y!=u&&Y.ah})){K.A(2);break}if(i.i.avoidEvictionOnQuotaExceededError)return b=EL(i,f),i.g.disableStream(u.stream,b)||va(i,u,4),K.return();if(w=Math.round(100*i.C),w>20){i.C-=.2,K.A(3);break}if(w>4){i.C-=.04,K.A(3);break}if(A=EL(i,f),R=i.g.disableStream(u.stream,A),!R){u.Zd=!0,i.F=!0,i.g.onError(f),K.A(5);break}return i.C=1,B=i.g.lc(),I(K,p6(i,u,B),5);case 5:return K.return();case 3:return u.ah=!0,V=i.g.lc(),I(K,p6(i,u,V),2);case 2:va(i,u,4),N(K)}})}function r6e(i,u,f,v){var b,w,A,R,B,V,K,Y,oe,ue,he,ge,ye,Oe,De,qe;return re(function(ot){switch(ot.g){case 1:if(b=Kr,w=u.La==null,A=[],R=Math.max(0,Math.max(f.appendWindowStart,i.aa)-.1),B=Math.min(f.appendWindowEnd,i.$)+.1,V=f.codecs||u.stream.codecs,K=ip(V),Y=Ll(f.mimeType||u.stream.mimeType),oe=f.timestampOffset,oe==u.kf&&R==u.qc&&B==u.nc&&K==u.hf&&Y==u.jf){ot.A(2);break}if(ue=u.hf&&u.jf&&ISe(i.g.Z,u.type,Y,V,y6(i)),!ue){ot.A(3);break}if(he=null,u.type===b.Aa?he=i.h.get(b.ka):u.type===b.ka&&(he=i.h.get(b.Aa)),!he){ot.A(3);break}return I(ot,m6(he).catch(function(){}),5);case 5:he.pb=null,he.qc=null,he.nc=null,_L(i,he);case 3:return I(ot,GY(i,u,oe,R,B,f,K,Y),2);case 2:return j3(f.ba,u.pb)||(u.pb=f.ba,f.l&&f.ba&&(ge=X3(i,u,f.ba),ye=function(){var mt,Qe,He,ct,pt,ft,_t,kt,Nt,Vt,Tt;return re(function(Lt){switch(Lt.g){case 1:return j(Lt,2),I(Lt,ge,4);case 4:return mt=Lt.h,Ei(i.l),Qe=null,He=new Map,ct={projection:null,hfov:null},u.stream&&(pt=u.stream.videoLayout)&&(ft=pt.split("/"),ft.includes("PROJ-RECT")?ct.projection="rect":ft.includes("PROJ-EQUI")?ct.projection="equi":ft.includes("PROJ-HEQU")?ct.projection="hequ":ft.includes("PROJ-PRIM")?ct.projection="prim":ft.includes("PROJ-AIV")&&(ct.projection="hequ")),_t=new ui,_t.box("moov",sr).box("trak",sr).box("mdia",sr).S("mdhd",function(qt){Qe=JS(qt.reader,qt.version).timescale}).box("hdlr",function(qt){switch(qt=qt.reader,qt.skip(8),qt.Yc()){case"soun":He.set(b.ka,Qe);break;case"vide":He.set(b.Aa,Qe)}Qe=null}),u.type!==b.Aa||ct.projection||_t.box("minf",sr).box("stbl",sr).S("stsd",Gf).box("encv",Dl).box("avc1",Dl).box("avc3",Dl).box("hev1",Dl).box("hvc1",Dl).box("dvav",Dl).box("dva1",Dl).box("dvh1",Dl).box("dvhe",Dl).box("dvc1",Dl).box("dvi1",Dl).box("vexu",sr).box("proj",sr).S("prji",function(qt){qt=qt.reader.Yc(),ct.projection=qt}).box("hfov",function(qt){qt=qt.reader.U()/1e3,ct.hfov=qt}),_t.parse(mt,!0,!0),u.type===b.Aa&&i6e(i,ct),He.has(u.type)?f.ba.timescale=He.get(u.type):Qe!=null&&(f.ba.timescale=Qe),kt=u.stream.segmentIndex,kt instanceof Ji&&(Nt=OSe(kt,f.startTime)),Vt=u.stream.closedCaptions&&u.stream.closedCaptions.size>0,I(Lt,i.g.Oh(u.type,mt),5);case 5:return I(Lt,s6(i.g.Z,u.type,mt,null,u.stream,Vt,u.bd,v,!1,!1,Nt),6);case 6:z(Lt,0);break;case 2:throw Tt=G(Lt),u.pb=null,Tt}})},Oe=f.startTime,w&&(De=Q0(i.g.Z,u.type),De!=null&&(Oe=De)),i.g.Ck(Oe,f.ba),A.push(ye()))),qe=u.La?u.La.i:-1,f.i!=qe&&A.push(kSe(i.g.Z,u.type,f.startTime)),I(ot,Promise.all(A),0)}})}function GY(i,u,f,v,b,w,A,R){var B,V,K,Y,oe;return re(function(ue){switch(ue.g){case 1:if(B=Kr,V=y6(i),j(ue,2),u.qc=v,u.nc=b,A&&(u.hf=A),R&&(u.jf=R),u.kf=f,K=i.j.sequenceMode||i.j.type=="HLS",Y=null,u.type===B.Aa?Y=i.h.get(B.ka):u.type===B.ka&&(Y=i.h.get(B.Aa)),!(Y&&Y.stream&&Y.stream.isAudioMuxedInVideo)){ue.A(4);break}return I(ue,cY(i.g.Z,Y.type,f,v,b,K,Y.stream.mimeType,Y.stream.codecs,V),4);case 4:return I(ue,cY(i.g.Z,u.type,f,v,b,K,w.mimeType||u.stream.mimeType,w.codecs||u.stream.codecs,V),6);case 6:z(ue,0);break;case 2:throw oe=G(ue),u.qc=null,u.nc=null,u.hf=null,u.jf=null,u.kf=null,oe}})}function kL(i,u,f,v,b,w,A,R){A=A===void 0?!1:A,R=R===void 0?!1:R;var B,V,K,Y;return re(function(oe){switch(oe.g){case 1:return B=v.closedCaptions&&v.closedCaptions.size>0,i.i.shouldFixTimestampOffset&&(V=v.mimeType=="video/mp4"||v.mimeType=="audio/mp4",K=null,b.ba&&(K=b.ba.timescale),V&&K&&v.type==="video"&&i.j.type=="DASH"&&new ui().box("moof",sr).box("traf",sr).S("tfdt",function(ue){var he,ge,ye,Oe,De,qe;return re(function(ot){return he=ZS(ue.reader,ue.version),ge=he.baseMediaDecodeTime,ge?(ye=-ge/K,Oe=Number(u.kf)||0,OeB&&(Y=Math.max(R-w,V-B-A)),Y<=B?oe.return():I(oe,i.g.Z.remove(u.type,A,A+Y,b),2));if(oe.g!=4)return Ei(i.l),i.H?I(oe,p6(i,i.H,f),4):oe.A(0);Ei(i.l),N(oe)})}function xL(i){return i&&i.type==Tn&&(i.stream.mimeType=="application/cea-608"||i.stream.mimeType=="application/cea-708")}function X3(i,u,f,v){var b,w,A,R,B;return re(function(V){switch(V.g){case 1:if(b=f.Yb())return V.return(b);if(w=null,u.ha){var K=u.ha,Y=K.g;f instanceof nl&&(Y=K.j),Y.has(f)?(K=Y.get(f),v&&(K.wh=v),w=K.je):w=null}return w||(w=v6(f,u.stream,v||null,i.i.retryParameters,i.g.tc)),A=0,u.ua&&(A=u.ua.h),u.Va=w,I(V,w.promise,2);case 2:if(R=V.h,u.Va=null,B=R.data,!f.aesKey){V.A(3);break}return I(V,bL(B,f.aesKey,A),4);case 4:B=V.h;case 3:return V.return(B)}})}function v6(i,u,f,v,b,w){w=w===void 0?!1:w;var A=i instanceof Fn?i:void 0,R=A?1:0;return i=Y3(i.P(),i.startByte,i.endByte,v,f),i.contentType=u.type,b.request(Nu,i,{type:R,stream:u,segment:A,isPreload:w})}function CL(i,u,f,v){var b,w;return re(function(A){if(A.g==1)return u.ec=!1,u.Kd=!1,u.ld=0,u.Ub=!0,u.La=null,u.ua=null,u.ha&&!i.m.has(u.stream)&&rd(u.ha),v?(b=i.g.lc(),w=i.g.Z.getDuration(),I(A,i.g.Z.remove(u.type,b+v,w),3)):I(A,uY(i.g.Z,u.type),4);if(A.g!=3)return Ei(i.l),f?I(A,i.g.Z.flush(u.type),3):A.A(3);Ei(i.l),u.Ub=!1,u.endOfStream=!1,u.Ja||u.qb||va(i,u,0),N(A)})}function va(i,u,f){var v=u.type;(v!=Tn||i.h.has(v))&&(u.qb=new I3(function(){var b;return re(function(w){if(w.g==1)return j(w,2),I(w,QSe(i,u),4);if(w.g!=2)return z(w,0);b=G(w),i.g&&i.g.onError(b),N(w)})}).ia(f))}function Xf(i){i.qb!=null&&(i.qb.stop(),i.qb=null)}function m6(i){return re(function(u){return i.Va?I(u,i.Va.abort(),0):u.A(0)})}function wL(i,u,f){var v;return re(function(b){if(b.g==1)return f.code==3024?(u.Ja=!1,Xf(u),va(i,u,0),b.return()):I(b,hq(i.X),2);if(Ei(i.l),f.category===1&&f.code!=1003){if(u.Mc)return VY(i,!1),b.return();v=EL(i,f),f.handled=i.g.disableStream(u.stream,v),f.handled&&(f.severity=1)}(!f.handled||f.code!=1011)&&i.g.onError(f),f.handled||i.i.failureCallback(f),N(b)})}function EL(i,u){return i.i.maxDisabledTime===0&&u.code==1011?1:i.i.maxDisabledTime}function g6(i,u){u=u===void 0?!1:u;var f,v,b,w,A,R;return re(function(B){if(B.g==1){if(f=Date.now()/1e3,v=i.i.minTimeBetweenRecoveries,!u){if(!i.i.allowMediaSourceRecoveries||f-i.R1)return!0}else if(!u.Jf()){for(u=_(i.h.keys()),f=u.next();!f.done;f=u.next())if(f=i.h.get(f.value),f.type!==Kr.Na&&(f=f.stream)&&f.fullMimeTypes&&f.fullMimeTypes.size>1){for(i=new Set,u=_(f.fullMimeTypes),f=u.next();!f.done;f=u.next())i.add(C3(f.value));return i.size>1}}return!1}function KY(i){i.G.Pa(),Z3(i)&&(i.G.D(i.g.video,"waiting",function(){return TL(i)}),i.G.D(i.g.video,"timeupdate",function(){return TL(i)}))}function TL(i){if(Z3(i)){i.K.stop();var u=i.g.lc(),f=i.h.get("video")||i.h.get("audio");f&&(f=f.pb)&&f.g!==null&&(u=f.g-u,u<0||u>1||(i.I=f.g+.1,i.K.ia(u)))}}function o6e(i,u,f){if(u.type===Tn)return!1;var v=u.pb;if(!v)return!1;var b=f.ba;if(f=v.g!==b.g,i.i.crossBoundaryStrategy==="reset_to_encrypted"&&(v.encrypted||b.encrypted||(f=!1),v.encrypted&&(i.i.crossBoundaryStrategy="keep")),i.i.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&v.encrypted==b.encrypted&&(f=!1),i.i.crossBoundaryStrategy==="keep"&&v.mimeType&&b.mimeType){var w=Js(tl(v.mimeType)),A=Js(tl(v.mimeType));v.mimeType==b.mimeType&&w==A&&(f=!1)}return f&&(i.J||u.bd)&&(i.J=!1,g6(i,!0).then(function(){var R=new Map().set("oldEncrypted",v.encrypted).set("newEncrypted",b.encrypted);i.g.onEvent(new Cn("boundarycrossed",R))})),f}function y6(i,u){function f(w){if(w.fullMimeTypes&&w.fullMimeTypes.size>1&&i.h.has(w.type)){var A=i.h.get(w.type),R=Q0(i.g.Z,A.type),B=i.g.lc();(A=HY(i,A,B,R))&&A.codecs&&A.mimeType&&(w.codecs=A.codecs,w.mimeType=A.mimeType)}}u=u===void 0?!1:u;var v=new Map,b=i.o.audio;return b&&(f(b),v.set("audio",b)),(b=i.o.video)&&(f(b),v.set("video",b)),u&&i.B&&v.set(Tn,i.B),v}function b6(){}function AL(i,u,f,v,b){var w=b in v,A=w?f.constructor==Object&&Object.keys(v).length==0:f.constructor==Object&&Object.keys(f).length==0,R=w||A,B=!0,V;for(V in u){var K=b+"."+V,Y=w?v[b]:f[V];R||V in f?u[V]===void 0?Y===void 0||R?delete i[V]:i[V]=fn(Y):A?i[V]=u[V]:Y.constructor==Object&&u[V]&&u[V].constructor==Object?(i[V]||(i[V]=fn(Y)),K=AL(i[V],u[V],Y,v,K),B=B&&K):typeof u[V]!=typeof Y||u[V]==null||typeof u[V]!="function"&&u[V].constructor!=Y.constructor?($e("Invalid config, wrong type for "+K),B=!1):typeof f[V]=="function"&&f[V].length!=u[V].length?(Xe("Unexpected number of arguments for "+K),i[V]=u[V]):i[V]=Array.isArray(i[V])?u[V].slice():u[V]:($e("Invalid config, unrecognized key "+K),B=!1)}return B}function _6(i,u){for(var f={},v=f,b=0,w=0;b=i.indexOf(".",b),!(b<0);)(b==0||i[b-1]!="\\")&&(w=i.substring(w,b).replace(/\\\./g,"."),v[w]={},v=v[w],w=b+1),b+=1;return v[i.substring(w).replace(/\\\./g,".")]=u,f}function wg(i,u){return i&&u}function qY(i,u){function f(w){for(var A=_(Object.keys(w)),R=A.next();!R.done;R=A.next())if(R=R.value,!(w[R]instanceof HTMLElement))if(b(w[R])&&Object.keys(w[R]).length===0)delete w[R];else{var B=w[R];Array.isArray(B)&&B.length===0||typeof w[R]=="function"?delete w[R]:b(w[R])&&(f(w[R]),Object.keys(w[R]).length===0&&delete w[R])}}function v(w,A){return Object.keys(w).reduce(function(R,B){var V=w[B];return A.hasOwnProperty(B)?V instanceof HTMLElement&&A[B]instanceof HTMLElement?V.isEqualNode(A[B])||(R[B]=V):b(V)&&b(A[B])?(V=v(V,A[B]),(Object.keys(V).length>0||!b(V))&&(R[B]=V)):Array.isArray(V)&&Array.isArray(A[B])?on(V,A[B])||(R[B]=V):Number.isNaN(V)&&Number.isNaN(A[B])||V!==A[B]&&(R[B]=V):R[B]=V,R},{})}function b(w){return w&&typeof w=="object"&&!Array.isArray(w)}return i=v(i,u),f(i),i}ze("shaka.util.ConfigUtils",b6),b6.getDifferenceFromConfigObjects=qY,b6.convertToConfigObject=_6,b6.mergeConfigObjects=AL,ze("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function rl(){}function YY(i){return i=Jt(i),new Mt(i).Db}function J3(i,u,f){function v(R){it(w).setUint32(A,R.byteLength,!0),A+=4,w.set(Re(R),A),A+=R.byteLength}if(!f||!f.byteLength)throw new Ae(2,6,6015);var b;typeof u=="string"?b=hn(u,!0):b=u,i=Jt(i),i=hn(i,!0);var w=new Uint8Array(12+i.byteLength+b.byteLength+f.byteLength),A=0;return v(i),v(b),v(f),w}function IL(i,u,f){return u!=="skd"?i:(u=f.serverCertificate,f=Jt(i).split("skd://").pop(),J3(i,f,u))}function S6(i,u){i===2&&(i=u.drmInfo)&&jS(i.keySystem)&&(u.headers["Content-Type"]="application/octet-stream")}ze("shaka.drm.FairPlay",rl),rl.commonFairPlayResponse=function(i,u){if(i===2&&(i=u.originalRequest.drmInfo)&&jS(i.keySystem)){try{var f=st(u.data)}catch{return}if(i=!1,f=f.trim(),f.substr(0,5)===""&&f.substr(-6)===""&&(f=f.slice(5,-6),i=!0),!i)try{var v=JSON.parse(f);v.ckc&&(f=v.ckc,i=!0),v.CkcMessage&&(f=v.CkcMessage,i=!0),v.License&&(f=v.License,i=!0)}catch{}i&&(u.data=Ee(dr(f)))}},rl.muxFairPlayRequest=function(i,u){S6(i,u)},rl.expressplayFairPlayRequest=function(i,u){if(i===2){var f=u.drmInfo;f&&jS(f.keySystem)&&S6(i,u)}},rl.conaxFairPlayRequest=function(i,u){S6(i,u)},rl.ezdrmFairPlayRequest=function(i,u){S6(i,u)},rl.verimatrixFairPlayRequest=function(i,u){i===2&&(i=u.drmInfo)&&jS(i.keySystem)&&(i=Re(u.body),i=Yn(i),u.headers["Content-Type"]="application/x-www-form-urlencoded",u.body=Kt("spc="+i))},rl.muxInitDataTransform=function(i,u,f){return IL(i,u,f)},rl.expressplayInitDataTransform=function(i,u,f){return IL(i,u,f)},rl.conaxInitDataTransform=function(i,u,f){if(u!=="skd")return i;u=f.serverCertificate,f=Jt(i).split("skd://").pop().split("?").shift(),f=o.atob(f);var v=new ArrayBuffer(f.length*2);v=at(v);for(var b=0,w=f.length;b2||b.channelsCount>2)&&v.channelsCount!=b.channelsCount||v.spatialAudio!==b.spatialAudio||u&&!XY(v,b))&&ZY(v.roles,b.roles)&&v.groupId===b.groupId)}return!v&&(v=f.video&&i.video)&&(f=f.video,v=i.video,v=!((!u||XY(f,v))&&ZY(f.roles,v.roles))),v?!1:(this.g.add(i),!0)},k6.prototype.values=function(){return this.g.values()};function XY(i,u){if(i.mimeType!=u.mimeType||(i=i.codecs.split(",").map(function(v){return ip(v)}),u=u.codecs.split(",").map(function(v){return ip(v)}),i.length!=u.length))return!1;i.sort(),u.sort();for(var f=0;fu)}).sort(function(f,v){return f.audio||v.audio?f.audio?v.audio?(v.audio.channelsCount||0)-(f.audio.channelsCount||0):1:-1:0})}function f6e(i,u){if(u=="AUTO"){var f=i.some(function(v){return!!(v.video&&v.video.hdr&&v.video.hdr=="HLG")});u=Fe().sd(f)}return i.filter(function(v){return!(v.video&&v.video.hdr&&v.video.hdr!=u)})}function h6e(i,u){return i.filter(function(f){return!(f.video&&f.video.videoLayout&&f.video.videoLayout!=u)})}function p6e(i,u){return i.filter(function(f){return!(f.audio&&f.audio.spatialAudio!=u)})}function v6e(i,u){return i.filter(function(f){return!(f.audio&&f.audio.codecs!=u)})}function x6(){}function Eg(){var i=1/0,u=Fe();navigator.connection&&navigator.connection.saveData&&(i=360);var f={retryParameters:yc(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(R,B,V){return o.shakaMediaKeysPolyfill==="apple"&&B=="skd"&&(B=V.serverCertificate,V=YY(R),R=J3(R,V,B)),R},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},v="reload";dc()&&u.Pc()&&(v="smooth");var b={retryParameters:yc(),availabilityWindowOverride:NaN,disableAudio:!1,disableVideo:!1,disableText:!1,disableThumbnails:!1,disableIFrames:!1,defaultPresentationDelay:0,segmentRelativeVttTiming:!1,raiseFatalErrorOnManifestUpdateRequestFailure:!1,continueLoadingWhenPaused:!0,ignoreSupplementalCodecs:!1,updatePeriod:-1,ignoreDrmInfo:!1,enableAudioGroups:!0,dash:{clockSyncUri:"",disableXlinkProcessing:!0,xlinkFailGracefully:!1,ignoreMinBufferTime:!1,autoCorrectDrift:!0,initialSegmentLimit:1e3,ignoreSuggestedPresentationDelay:!1,ignoreEmptyAdaptationSet:!1,ignoreMaxSegmentDuration:!1,keySystemsByURI:{"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:e2719d58-a985-b3c9-781a-b030af78d30e":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:94ce86fb-07ff-4f43-adb8-93d2fa968ca2":"com.apple.fps","urn:uuid:3d5e6d35-9b9a-41e8-b843-dd3c6e72c42c":"com.huawei.wiseplay"},manifestPreprocessor:C6,manifestPreprocessorTXml:w6,sequenceMode:!1,useStreamOnceInPeriodFlattening:!1,enableFastSwitching:!0},hls:{ignoreTextStreamFailures:!1,ignoreImageStreamFailures:!1,defaultAudioCodec:"mp4a.40.2",defaultVideoCodec:"avc1.42E01E",ignoreManifestProgramDateTime:!1,ignoreManifestProgramDateTimeForTypes:[],mediaPlaylistFullMimeType:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"',liveSegmentsDelay:3,sequenceMode:u.fd(),ignoreManifestTimestampsInSegmentsMode:!1,disableCodecGuessing:!1,disableClosedCaptionsDetection:!1,allowLowLatencyByteRangeOptimization:!0,allowRangeRequestsToGuessMimeType:!1},mss:{manifestPreprocessor:C6,manifestPreprocessorTXml:w6,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},w={trackSelectionCallback:function(R){return re(function(B){return B.return(R)})},downloadSizeCallback:function(R){var B;return re(function(V){return V.g==1?navigator.storage&&navigator.storage.estimate?I(V,navigator.storage.estimate(),3):V.return(!0):(B=V.h,V.return(B.usage+R0?I(A,Promise.all(f),0):A.A(0)})}function I6e(i){var u,f,v,b,w;return re(function(A){return!i.o&&(u=rX(i))&&(i.o=u),i.o?(f=i.h.presentationTimeline.W(),v=[],b=i.o,b.video&&v.push(RL(i,b.video,f)),b.audio&&v.push(RL(i,b.audio,f)),(w=og(i.h.textStreams,i.g.preferredTextLanguage,i.g.preferredTextRole,i.g.preferForcedSubs)[0]||null)&&aq(b.audio,w,i.g)&&(v.push(RL(i,w,f)),i.T=w),I(A,Promise.all(v),0)):A.A(0)})}function rX(i){if(!i.u){var u=i.g.abrFactory;i.u=u(),i.u.configure(i.g.abr)}return u=BS(i.h.variants),u=i.C.create(u),i.u.setVariants(Array.from(u.values())),i.u.chooseVariant(!0)}function RL(i,u,f){var v,b,w,A,R;return re(function(B){return B.g==1?(v=i.g.streaming.segmentPrefetchLimit||2,b=new d6(v,u,function(V,K,Y){return v6(V,K,Y||null,i.g.streaming.retryParameters,i.Da,i.F)},!1),i.M.set(u.id,b),u.segmentIndex?B.A(2):I(B,u.createSegmentIndex(),2)):(w=typeof i.m=="number"?i.m:0,A=u.segmentIndex.Vb(w),R=null,A&&(R=A.current(),R||(R=A.next().value)),R||(R=nd(u.segmentIndex)),R?f?R.ba?I(B,$Y(b,R.ba),0):B.A(0):I(B,K3(b,R.startTime),0):B.A(0))})}l.ll=function(){return this.B},l.destroy=function(){var i=this,u,f,v;return re(function(b){if(b.g==1)return i.j=!0,!i.l||i.qa?b.A(2):I(b,i.l.stop(),2);if(b.g!=4)return i.u&&i.u.release(),i.I&&!i.wa&&i.I.release(),!i.i||i.aa?b.A(4):I(b,i.i.destroy(),4);if(i.M.size>0&&!i.xa)for(u=_(i.M.values()),f=u.next();!f.done;f=u.next())v=f.value,rd(v);N(b)})};function iX(i){function u(f){return f.video&&f.audio||f.video&&f.video.codecs.includes(",")}i.variants.some(u)&&(i.variants=i.variants.filter(u))}ze("shaka.media.PreloadManager",ju),ju.prototype.destroy=ju.prototype.destroy,ju.prototype.waitForFinish=ju.prototype.ll,ju.prototype.getPrefetchedTextTrack=ju.prototype.Qj,ju.prototype.getPrefetchedVariantTrack=ju.prototype.Rj;function tv(i,u){Yr.call(this);var f=this;this.i=i,this.l=u,this.g=new Map,this.m=[{kd:null,jd:Tg,Uc:function(v,b){return Jf(f,"enter",v,b)}},{kd:t2,jd:Tg,Uc:function(v,b){return Jf(f,"enter",v,b)}},{kd:n2,jd:Tg,Uc:function(v,b){return Jf(f,"enter",v,b)}},{kd:Tg,jd:t2,Uc:function(v,b){return Jf(f,"exit",v,b)}},{kd:Tg,jd:n2,Uc:function(v,b){return Jf(f,"exit",v,b)}},{kd:t2,jd:n2,Uc:function(v,b){b?Jf(f,"skip",v,b):(Jf(f,"enter",v,b),Jf(f,"exit",v,b))}},{kd:n2,jd:t2,Uc:function(v,b){return Jf(f,"skip",v,b)}}],this.h=new Ye,this.h.D(this.i,"regionremove",function(v){f.g.delete(v.region)})}x(tv,Yr),tv.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,Yr.prototype.release.call(this)},tv.prototype.j=function(i,u){if(!this.l||i!=0){this.l=!1;for(var f=_(this.i.h.values()),v=f.next();!v.done;v=f.next()){v=v.value;var b=this.g.get(v),w=iv.endTime?n2:Tg;this.g.set(v,w);for(var A=_(this.m),R=A.next();!R.done;R=A.next())R=R.value,R.kd==b&&R.jd==w&&R.Uc(v,u)}}};function Jf(i,u,f,v){u=new Cn(u,new Map([["region",f],["seeking",v]])),i.dispatchEvent(u)}var t2=1,Tg=2,n2=3;function nv(i,u,f){var v,b,w,A,R,B,V;return re(function(K){switch(K.g){case 1:return v=Ag(i),(b=L6e.get(v))?K.return(b):(w=0,A=Fo([i],f),j(K,2),A.method="HEAD",I(K,u.request(w,A).promise,4));case 4:R=K.h,b=R.headers["content-type"],z(K,3);break;case 2:if(B=G(K),!B||B.code!=1002&&B.code!=1001){K.A(3);break}return A.method="GET",I(K,u.request(w,A).promise,6);case 6:V=K.h,b=V.headers["content-type"];case 3:return K.return(b?b.toLowerCase().split(";").shift():"")}})}function Ag(i){return i=new Mt(i).Sb.split("/").pop().split("."),i.length==1?"":i.pop().toLowerCase()}var L6e=new Map().set("mp4","video/mp4").set("m4v","video/mp4").set("m4a","audio/mp4").set("webm","video/webm").set("weba","audio/webm").set("mkv","video/webm").set("ts","video/mp2t").set("ogv","video/ogg").set("ogg","audio/ogg").set("mpg","video/mpeg").set("mpeg","video/mpeg").set("mov","video/quicktime").set("m3u8","application/x-mpegurl").set("mpd","application/dash+xml").set("ism","application/vnd.ms-sstr+xml").set("mp3","audio/mpeg").set("aac","audio/aac").set("flac","audio/flac").set("wav","audio/wav").set("sbv","text/x-subviewer").set("srt","text/srt").set("vtt","text/vtt").set("webvtt","text/vtt").set("ttml","application/ttml+xml").set("lrc","application/x-subtitle-lrc").set("ssa","text/x-ssa").set("ass","text/x-ssa").set("jpeg","image/jpeg").set("jpg","image/jpeg").set("png","image/png").set("svg","image/svg+xml").set("webp","image/webp").set("avif","image/avif").set("html","text/html").set("htm","text/html");/* @license Copyright 2013 Ali Al Dallal Licensed under the MIT license. Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */for(var cp={ach:"Lwo",ady:"Адыгэбзэ",af:"Afrikaans","af-NA":"Afrikaans (Namibia)","af-ZA":"Afrikaans (South Africa)",ak:"Tɕɥi",ar:"العربية","ar-AR":"العربية","ar-MA":"العربية","ar-SA":"العربية (السعودية)","ay-BO":"Aymar aru",az:"Azərbaycan dili","az-AZ":"Azərbaycan dili","be-BY":"Беларуская",bg:"Български","bg-BG":"Български",bn:"বাংলা","bn-IN":"বাংলা (ভারত)","bn-BD":"বাংলা(বাংলাদেশ)","bs-BA":"Bosanski",ca:"Català","ca-ES":"Català",cak:"Maya Kaqchikel","ck-US":"ᏣᎳᎩ (tsalagi)",cs:"Čeština","cs-CZ":"Čeština",cy:"Cymraeg","cy-GB":"Cymraeg",da:"Dansk","da-DK":"Dansk",de:"Deutsch","de-AT":"Deutsch (Österreich)","de-DE":"Deutsch (Deutschland)","de-CH":"Deutsch (Schweiz)",dsb:"Dolnoserbšćina",el:"Ελληνικά","el-GR":"Ελληνικά",en:"English","en-GB":"English (UK)","en-AU":"English (Australia)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-IN":"English (India)","en-PI":"English (Pirate)","en-UD":"English (Upside Down)","en-US":"English (US)","en-ZA":"English (South Africa)","en@pirate":"English (Pirate)",eo:"Esperanto","eo-EO":"Esperanto",es:"Español","es-AR":"Español (Argentine)","es-419":"Español (Latinoamérica)","es-CL":"Español (Chile)","es-CO":"Español (Colombia)","es-EC":"Español (Ecuador)","es-ES":"Español (España)","es-LA":"Español (Latinoamérica)","es-NI":"Español (Nicaragua)","es-MX":"Español (México)","es-US":"Español (Estados Unidos)","es-VE":"Español (Venezuela)",et:"eesti keel","et-EE":"Eesti (Estonia)",eu:"Euskara","eu-ES":"Euskara",fa:"فارسی","fa-IR":"فارسی","fb-LT":"Leet Speak",ff:"Fulah",fi:"Suomi","fi-FI":"Suomi","fo-FO":"Føroyskt",fr:"Français","fr-CA":"Français (Canada)","fr-FR":"Français (France)","fr-BE":"Français (Belgique)","fr-CH":"Français (Suisse)","fy-NL":"Frysk",ga:"Gaeilge","ga-IE":"Gaeilge (Gaelic)",gl:"Galego","gl-ES":"Galego","gn-PY":"Avañe'ẽ","gu-IN":"ગુજરાતી","gx-GR":"Ἑλληνική ἀρχαία",he:"עברית‏","he-IL":"עברית‏",hi:"हिन्दी","hi-IN":"हिन्दी",hr:"Hrvatski","hr-HR":"Hrvatski",hsb:"Hornjoserbšćina",ht:"Kreyòl",hu:"Magyar","hu-HU":"Magyar","hy-AM":"Հայերեն",id:"Bahasa Indonesia","id-ID":"Bahasa Indonesia",is:"Íslenska","is-IS":"Íslenska (Iceland)",it:"Italiano","it-IT":"Italiano",ja:"日本語","ja-JP":"日本語","jv-ID":"Basa Jawa","ka-GE":"ქართული","kk-KZ":"Қазақша",km:"ភាសាខ្មែរ","km-KH":"ភាសាខ្មែរ",kab:"Taqbaylit",kn:"ಕನ್ನಡ","kn-IN":"ಕನ್ನಡ (India)",ko:"한국어","ko-KR":"한국어 (韩国)",ku:"Kurdî","ku-TR":"Kurdî",la:"Latin","la-VA":"Latin",lb:"Lëtzebuergesch","li-NL":"Lèmbörgs",lt:"Lietuvių","lt-LT":"Lietuvių",lv:"Latviešu","lv-LV":"Latviešu",mai:"मैथिली, মৈথিলী","mg-MG":"Malagasy",mk:"Македонски","mk-MK":"Македонски (Македонски)",ml:"മലയാളം","ml-IN":"മലയാളം","mn-MN":"Монгол",mr:"मराठी","mr-IN":"मराठी",ms:"Bahasa Melayu","ms-MY":"Bahasa Melayu",mt:"Malti","mt-MT":"Malti",my:"ဗမာစကာ",nb:"Norsk (bokmål)","nb-NO":"Norsk (bokmål)",ne:"नेपाली","ne-NP":"नेपाली",nl:"Nederlands","nl-BE":"Nederlands (België)","nl-NL":"Nederlands (Nederland)","nn-NO":"Norsk (nynorsk)",no:"Norsk",oc:"Occitan","or-IN":"ଓଡ଼ିଆ",pa:"ਪੰਜਾਬੀ","pa-IN":"ਪੰਜਾਬੀ (ਭਾਰਤ ਨੂੰ)",pl:"Polski","pl-PL":"Polski","ps-AF":"پښتو",pt:"Português","pt-BR":"Português (Brasil)","pt-PT":"Português (Portugal)","qu-PE":"Qhichwa","rm-CH":"Rumantsch",ro:"Română","ro-RO":"Română",ru:"Русский","ru-RU":"Русский","sa-IN":"संस्कृतम्","se-NO":"Davvisámegiella","si-LK":"පළාත",sk:"Slovenčina","sk-SK":"Slovenčina (Slovakia)",sl:"Slovenščina","sl-SI":"Slovenščina","so-SO":"Soomaaliga",sq:"Shqip","sq-AL":"Shqip",sr:"Српски","sr-RS":"Српски (Serbia)",su:"Basa Sunda",sv:"Svenska","sv-SE":"Svenska",sw:"Kiswahili","sw-KE":"Kiswahili",ta:"தமிழ்","ta-IN":"தமிழ்",te:"తెలుగు","te-IN":"తెలుగు",tg:"забо́ни тоҷикӣ́","tg-TJ":"тоҷикӣ",th:"ภาษาไทย","th-TH":"ภาษาไทย (ประเทศไทย)",tl:"Filipino","tl-PH":"Filipino",tlh:"tlhIngan-Hol",tr:"Türkçe","tr-TR":"Türkçe","tt-RU":"татарча",uk:"Українська","uk-UA":"Українська",ur:"اردو","ur-PK":"اردو",uz:"O'zbek","uz-UZ":"O'zbek",vi:"Tiếng Việt","vi-VN":"Tiếng Việt","xh-ZA":"isiXhosa",yi:"ייִדיש","yi-DE":"ייִדיש (German)",zh:"中文","zh-HANS":"中文简体","zh-HANT":"中文繁體","zh-CN":"中文(中国)","zh-HK":"中文(香港)","zh-SG":"中文(新加坡)","zh-TW":"中文(台灣)","zu-ZA":"isiZulu"},oX=_(Object.keys(cp)),ML=oX.next();!ML.done;ML=oX.next()){var sX=ML.value;cp[sX.toLowerCase()]=cp[sX]}function aX(i,u){if(i.lineBreak)return` `;if(i.nestedCues.length)return i.nestedCues.map(function(A){return aX(A,i)}).join("");if(!i.payload)return i.payload;var f=[],v=i.fontWeight>=tg,b=i.fontStyle==ng,w=i.textDecoration.includes(jf);return v&&f.push(["b"]),b&&f.push(["i"]),w&&f.push(["u"]),b=i.color,b==""&&u&&(b=u.color),v="",(b=lX(b))&&(v+="."+b),b=i.backgroundColor,b==""&&u&&(b=u.backgroundColor),(u=lX(b))&&(v+=".bg_"+u),v&&f.push(["c",v]),f.reduceRight(function(A,R){var B=_(R);return R=B.next().value,B=B.next().value,"<"+R+(B===void 0?"":B)+">"+A+""},i.payload)}function lX(i){i=i.toLowerCase();var u=i.replace(/\s/g,"").match(/^rgba?\((\d+),(\d+),(\d+),?([^,\s)]+)?/i);switch(u?i="#"+(parseInt(u[1],10)|256).toString(16).slice(1)+(parseInt(u[2],10)|256).toString(16).slice(1)+(parseInt(u[3],10)|256).toString(16).slice(1):i.startsWith("#")&&i.length>7&&(i=i.slice(0,7)),i){case"white":case"#fff":case"#ffffff":return"white";case"lime":case"#0f0":case"#00ff00":return"lime";case"cyan":case"#0ff":case"#00ffff":return"cyan";case"red":case"#f00":case"#ff0000":return"red";case"yellow":case"#ff0":case"#ffff00":return"yellow";case"magenta":case"#f0f":case"#ff00ff":return"magenta";case"blue":case"#00f":case"#0000ff":return"blue";case"black":case"#000":case"#000000":return"black"}return null}function OL(i,u){var f=[];i=_(uX(i));for(var v=i.next();!v.done;v=i.next())if(v=v.value,v.isContainer)f.push.apply(f,T(OL(v.nestedCues,v)));else{var b=v.clone();b.nestedCues=[],b.payload=aX(v,u),f.push(b)}return f}function uX(i){var u=[];i=_(i);for(var f=i.next(),v={};!f.done;v={ig:void 0},f=i.next())v.ig=f.value,u.some((function(b){return function(w){return TS(b.ig,w)}})(v))||u.push(v.ig);return u}function D6e(i){function u(v){for(var b=5381,w=v.length;w;)b=b*33^v.charCodeAt(--w);return(b>>>0).toString()}if(i.startTime>=i.endTime)return null;var f=new VTTCue(i.startTime,i.endTime,i.payload);f.id=u(i.startTime.toString())+u(i.endTime.toString())+u(i.payload),f.lineAlign=i.lineAlign,f.positionAlign=i.positionAlign,i.size&&(f.size=i.size);try{f.align=i.textAlign}catch{}return i.textAlign=="center"&&f.align!="center"&&(f.align="middle"),i.writingMode=="vertical-lr"?f.vertical="lr":i.writingMode=="vertical-rl"&&(f.vertical="rl"),i.lineInterpretation==1&&(f.snapToLines=!1),i.line!=null&&(f.line=i.line),i.position!=null&&(f.position=i.position),f}function cX(i,u){var f=OL(u),v=[];u=i.cues?Array.from(i.cues):[],f=_(f);for(var b=f.next(),w={};!b.done;w={vd:void 0},b=f.next())w.vd=b.value,!u.some((function(A){return function(R){return R.startTime==A.vd.startTime&&R.endTime==A.vd.endTime&&R.text==A.vd.payload}})(w))&&w.vd.payload&&(b=D6e(w.vd))&&v.push(b);for(u=v.slice().sort(function(A,R){return A.startTime!=R.startTime?A.startTime-R.startTime:A.endTime!=R.endTime?A.endTime-R.startTime:"line"in VTTCue.prototype?v.indexOf(R)-v.indexOf(A):v.indexOf(A)-v.indexOf(R)}),u=_(u),f=u.next();!f.done;f=u.next())i.addCue(f.value)}function $L(i,u){var f=!1;i.mode==="disabled"&&(f=!0,i.mode="hidden");for(var v=0;v-1&&(f.has(u.g)?(v=f.get(u.g).track,v.mode==="disabled"&&(v.mode=u.u?"showing":"hidden")):u.g=-1),u.h=f},this.B=function(){if(!u.o){var f=u.j;u.o=new vr(function(){if(u.o=null,u.j===f){var v=-1,b=!1;if(u.h.has(u.g)){var w=u.h.get(u.g);w.track.mode==="showing"?(v=u.g,b=!0):w.track.mode==="hidden"&&(v=u.g)}if(!b)for(b=_(u.h),w=b.next();!w.done;w=b.next()){var A=_(w.value);if(w=A.next().value,A=A.next().value,A.track.mode==="showing"){v=w;break}else v<0&&A.track.mode==="hidden"&&(v=w)}for(b=_(u.h),w=b.next();!w.done;w=b.next())A=_(w.value),w=A.next().value,A=A.next().value,w!==v&&A.track.mode!=="disabled"&&(A.track.mode="disabled");u.g!==v&&(u.g=v,v>-1&&u.i.kh({id:v})),u.i.qh(v>-1&&u.h.get(v).track.mode==="showing")}}).ia(0)}},this.l.D(i,"loaded",function(){return u.enableTextDisplayer()}),this.enableTextDisplayer()}l=ns.prototype,l.configure=function(){},l.remove=function(i,u){if(this.i)this.h.has(this.g)&&$L(this.h.get(this.g).track,function(f){return f.startTimei});else return!1;return!0},l.append=function(i){this.h.has(this.g)&&cX(this.h.get(this.g).track,i)},l.destroy=function(){return this.i&&(this.j&&this.C(),this.i=null),this.l&&(this.l.release(),this.l=null),Promise.resolve()},l.isTextVisible=function(){return this.u},l.setTextVisibility=function(i){if(this.u=i,this.h.has(this.g)){var u=this.h.get(this.g).track;u.mode!=="disabled"&&(i=i?"showing":"hidden",u.mode!==i&&(u.mode=i))}else if(this.i&&this.i.m===3)if(u=Array.from(this.i.h.textTracks).filter(function(v){return["captions","subtitles","forced"].includes(v.kind)}),i){i=null,u=_(u);for(var f=u.next();!f.done;f=u.next())if(f=f.value,f.mode==="showing"){i=null;break}else i||f.mode!=="hidden"||(i=f);i&&(i.mode="showing")}else for(i=_(u),u=i.next();!u.done;u=i.next())u=u.value,u.mode==="showing"&&(u.mode="hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){!this.j&&this.i&&this.i.m===2&&(this.j=this.i.h,this.l.Ba(this.i,"unloading",this.C),this.l.D(this.i,"textchanged",this.m),this.l.D(this.j.textTracks,"change",this.B),this.m())};function P6e(i){var u=Fe();return i.forced&&u.Ha()==="WEBKIT"?"forced":i.kind==="caption"||i.roles&&i.roles.some(function(f){return f.includes("transcribes-spoken-dialog")})&&i.roles.some(function(f){return f.includes("describes-music-and-sound")})?"captions":"subtitles"}ze("shaka.text.NativeTextDisplayer",ns),ns.prototype.enableTextDisplayer=ns.prototype.enableTextDisplayer,ns.prototype.setTextLanguage=ns.prototype.setTextLanguage,ns.prototype.setTextVisibility=ns.prototype.setTextVisibility,ns.prototype.isTextVisible=ns.prototype.isTextVisible,ns.prototype.destroy=ns.prototype.destroy,ns.prototype.append=ns.prototype.append,ns.prototype.remove=ns.prototype.remove,ns.prototype.configure=ns.prototype.configure;function Qs(i,u){for(Zt("SimpleTextDisplayer","Please migrate to NativeTextDisplayer"),this.h=i,this.i=u,this.g=null,i=_(Array.from(this.h.textTracks)),u=i.next();!u.done;u=i.next())u=u.value,u.kind!=="metadata"&&u.kind!=="chapters"&&(u.mode="disabled",u.label==this.i&&(this.g=u));this.g&&(this.g.mode="hidden")}l=Qs.prototype,l.configure=function(){},l.remove=function(i,u){return this.g?($L(this.g,function(f){return f.startTimei}),!0):!1},l.append=function(i){this.g&&cX(this.g,i)},l.destroy=function(){return this.g&&($L(this.g,function(){return!0}),this.g.mode="disabled"),this.g=this.h=null,Promise.resolve()},l.isTextVisible=function(){return this.g?this.g.mode=="showing":!1},l.setTextVisibility=function(i){i&&!this.g&&dX(this),this.g&&(this.g.mode=i?"showing":"hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){dX(this)};function dX(i){i.h&&!i.g&&(i.g=i.h.addTextTrack("subtitles",i.i),i.g.mode="hidden")}ze("shaka.text.SimpleTextDisplayer",Qs),Qs.prototype.enableTextDisplayer=Qs.prototype.enableTextDisplayer,Qs.prototype.setTextLanguage=Qs.prototype.setTextLanguage,Qs.prototype.setTextVisibility=Qs.prototype.setTextVisibility,Qs.prototype.isTextVisible=Qs.prototype.isTextVisible,Qs.prototype.destroy=Qs.prototype.destroy,Qs.prototype.append=Qs.prototype.append,Qs.prototype.remove=Qs.prototype.remove,Qs.prototype.configure=Qs.prototype.configure;function ea(){}l=ea.prototype,l.configure=function(){},l.remove=function(){},l.append=function(){},l.destroy=function(){},l.isTextVisible=function(){return!1},l.setTextVisibility=function(){},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){},ze("shaka.text.StubTextDisplayer",ea),ea.prototype.enableTextDisplayer=ea.prototype.enableTextDisplayer,ea.prototype.setTextLanguage=ea.prototype.setTextLanguage,ea.prototype.setTextVisibility=ea.prototype.setTextVisibility,ea.prototype.isTextVisible=ea.prototype.isTextVisible,ea.prototype.destroy=ea.prototype.destroy,ea.prototype.append=ea.prototype.append,ea.prototype.remove=ea.prototype.remove,ea.prototype.configure=ea.prototype.configure;function ta(i,u){var f=this;this.m=!1,this.h=[],this.j=i,this.o=u,this.C=this.u=null,this.g=document.createElement("div"),this.g.classList.add("shaka-text-container"),this.g.style.textAlign="center",this.g.style.display="flex",this.g.style.flexDirection="column",this.g.style.alignItems="center",this.g.style.justifyContent="flex-end",this.B=new vr(function(){f.j.paused||dp(f)}),r2(this),this.l=new Map,this.i=new Ye,this.i.D(document,"fullscreenchange",function(){dp(f,!0)}),this.i.D(this.j,"seeking",function(){dp(f,!0)}),this.i.D(this.j,"ratechange",function(){r2(f)}),this.i.D(this.j,"resize",function(){var v=f.j,b=v.videoWidth;v=v.videoHeight,b&&v?f.u=b/v:f.u=null}),this.F=null,"ResizeObserver"in o&&(this.F=new ResizeObserver(function(){dp(f,!0)}),this.F.observe(this.g)),this.G=new Map}l=ta.prototype,l.configure=function(i){this.C=i,r2(this),dp(this,!0)},l.append=function(i){var u=[].concat(T(this.h));i=_(uX(i));for(var f=i.next(),v={};!f.done;v={jg:void 0},f=i.next())v.jg=f.value,u.some((function(b){return function(w){return TS(w,b.jg)}})(v))||this.h.push(v.jg);this.h.length&&r2(this),dp(this)},l.destroy=function(){return this.g&&(this.g.parentElement&&this.o.removeChild(this.g),this.g=null,this.m=!1,this.h=[],this.B&&(this.B.stop(),this.B=null),this.l.clear(),this.i&&(this.i.release(),this.i=null),this.F&&(this.F.disconnect(),this.F=null)),Promise.resolve()},l.remove=function(i,u){if(!this.g)return!1;var f=this.h.length;return this.h=this.h.filter(function(v){return v.startTime=u}),dp(this,f>this.h.length),this.h.length||r2(this),!0},l.isTextVisible=function(){return this.m},l.setTextVisibility=function(i){(this.m=i)?(this.g.parentElement||this.o.appendChild(this.g),dp(this,!0)):this.g.parentElement&&this.o.removeChild(this.g)},l.setTextLanguage=function(i){i&&i!="und"?this.g.setAttribute("lang",i):this.g.setAttribute("lang","")},l.enableTextDisplayer=function(){};function r2(i){i.B&&(i.h.length?i.B.Ea((i.C?i.C.captionsUpdatePeriod:.25)/Math.max(1,Math.abs(i.j.playbackRate))):i.B.stop())}function R6e(i,u){for(;u!=null;){if(u==i.g)return!0;u=u.parentElement}return!1}function fX(i,u,f,v,b){var w=!1,A=[],R=[];u=_(u);for(var B=u.next();!B.done;B=u.next()){B=B.value,b.push(B);var V=i.l.get(B),K=B.startTime<=v&&B.endTime>v,Y=V?V.gj:null;V&&(A.push(V.kg),V.$c&&A.push(V.$c),K||(w=!0,i.l.delete(B),V=null)),K&&(R.push(B),V?R6e(i,Y)||(w=!0):(M6e(i,B,b),V=i.l.get(B),Y=V.gj,w=!0)),B.nestedCues.length>0&&Y&&fX(i,B.nestedCues,Y,v,b),b.pop()}if(w){for(v=_(A),b=v.next();!b.done;b=v.next())b=b.value,b.parentElement&&b.parentElement.removeChild(b);for(R.sort(function(oe,ue){return oe.startTime!=ue.startTime?oe.startTime-ue.startTime:oe.endTime-ue.endTime}),R=_(R),v=R.next();!v.done;v=R.next())v=i.l.get(v.value),v.$c?(v.$c.contains(f)&&v.$c.removeChild(f),f.appendChild(v.$c),v.$c.appendChild(v.kg)):f.appendChild(v.kg)}}function dp(i,u){if(i.g){var f=i.j.currentTime;if(!i.m||u!==void 0&&u){u=_(i.G.values());for(var v=u.next();!v.done;v=u.next())z3(v.value);z3(i.g),i.l.clear(),i.G.clear()}i.m&&fX(i,i.h,i.g,f,[])}}function M6e(i,u,f){var v=f.length>1,b=v?"span":"div";u.lineBreak&&(b="br"),u.rubyTag&&(b=u.rubyTag),v=!v&&u.nestedCues.length>0;var w=document.createElement(b);if(b!="br"&&$6e(i,w,u,f,v),f=null,u.region&&u.region.id){var A=u.region,R=i.u===4/3?2.5:1.9;if(f=A.id+"_"+A.width+"x"+A.height+(A.heightUnits==ws?"%":"px")+"-"+A.viewportAnchorX+"x"+A.viewportAnchorY+(A.viewportAnchorUnits==ws?"%":"px"),i.G.has(f))f=i.G.get(f);else{b=document.createElement("span");var B=A.heightUnits==ws?"%":"px",V=A.widthUnits==ws?"%":"px",K=A.viewportAnchorUnits==ws?"%":"px";b.id="shaka-text-region---"+f,b.classList.add("shaka-text-region"),b.style.position="absolute";var Y=A.height,oe=A.width;A.heightUnits===2&&(Y=A.height*5.33,B="%"),A.widthUnits===2&&(oe=A.width*R,V="%"),b.style.height=Y+B,b.style.width=oe+V,A.viewportAnchorUnits===2?(R=A.viewportAnchorY/75*100,B=A.viewportAnchorX/(i.u===4/3?160:210)*100,R-=A.regionAnchorY*Y/100,B-=A.regionAnchorX*oe/100,b.style.top=R+"%",b.style.left=B+"%"):(b.style.top=A.viewportAnchorY-A.regionAnchorY*Y/100+K,b.style.left=A.viewportAnchorX-A.regionAnchorX*oe/100+K),A.heightUnits!==0&&A.widthUnits!==0&&A.viewportAnchorUnits!==0&&(A=Math.max(0,Math.min(100-(parseInt(b.style.width.slice(0,-1),10)||0),parseInt(b.style.left.slice(0,-1),10)||0)),b.style.top=Math.max(0,Math.min(100-(parseInt(b.style.height.slice(0,-1),10)||0),parseInt(b.style.top.slice(0,-1),10)||0))+"%",b.style.left=A+"%"),b.style.display="flex",b.style.flexDirection="column",b.style.alignItems="center",b.style.justifyContent=u.displayAlign=="before"?"flex-start":u.displayAlign=="center"?"center":"flex-end",i.G.set(f,b),f=b}}b=w,v&&(b=document.createElement("span"),b.classList.add("shaka-text-wrapper"),b.style.backgroundColor=u.backgroundColor,b.style.lineHeight="normal",w.appendChild(b)),i.l.set(u,{kg:w,gj:b,$c:f})}function O6e(i){var u=i.direction,f=i.positionAlign;return i=i.textAlign,f!==IS?f:i==="left"||i==="start"&&u===k3||i==="end"&&u==="rtl"?"line-left":i==="right"||i==="start"&&u==="rtl"||i==="end"&&u===k3?"line-right":"center"}function $6e(i,u,f,v,b){var w=u.style,A=f.nestedCues.length==0,R=v.length>1;w.whiteSpace="pre-wrap";var B=f.payload.replace(/\s+$/g,function(K){return" ".repeat(K.length)});if(w.webkitTextStrokeColor=f.textStrokeColor,w.webkitTextStrokeWidth=f.textStrokeWidth,w.color=f.color,w.direction=f.direction,w.opacity=f.opacity,w.paddingLeft=BL(f.linePadding,f,i.o),w.paddingRight=BL(f.linePadding,f,i.o),w.textCombineUpright=f.textCombineUpright,w.textShadow=f.textShadow,f.backgroundImage)w.backgroundImage="url('"+f.backgroundImage+"')",w.backgroundRepeat="no-repeat",w.backgroundSize="contain",w.backgroundPosition="center",f.backgroundColor&&(w.backgroundColor=f.backgroundColor),w.width="100%",w.height="100%";else{if(f.nestedCues.length)var V=u;else V=document.createElement("span"),u.appendChild(V);f.border&&(V.style.border=f.border),b||((u=B6e(v,function(K){return K.backgroundColor}))?V.style.backgroundColor=u:B&&(V.style.backgroundColor="rgba(0, 0, 0, 0.8)")),B&&(V.setAttribute("translate","no"),V.textContent=B)}R&&!v[v.length-1].isContainer?w.display="inline":(w.display="flex",w.flexDirection="column",w.alignItems="center",f.textAlign=="left"||f.textAlign=="start"?(w.width="100%",w.alignItems="start"):(f.textAlign=="right"||f.textAlign=="end")&&(w.width="100%",w.alignItems="end"),w.justifyContent=f.displayAlign=="before"?"flex-start":f.displayAlign=="center"?"center":"flex-end"),A||(w.margin="0"),w.fontFamily=f.fontFamily,w.fontWeight=f.fontWeight.toString(),w.fontStyle=f.fontStyle,w.letterSpacing=f.letterSpacing,v=i.C?i.C.fontScaleFactor:1,(v!==1||f.fontSize)&&(w.fontSize=BL(f.fontSize||"1em",f,i.o,v)),v=f.line,v!=null&&(A=f.lineInterpretation,A==x3&&(A=1,R=16,i.u&&i.u<1&&(R=32),v=v<0?100+v/R*100:v/R*100),A==1&&(w.position="absolute",f.writingMode==j0?(w.width="100%",f.lineAlign==V0?w.top=v+"%":f.lineAlign=="end"&&(w.bottom=100-v+"%")):f.writingMode=="vertical-lr"?(w.height="100%",f.lineAlign==V0?w.left=v+"%":f.lineAlign=="end"&&(w.right=100-v+"%")):(w.height="100%",f.lineAlign==V0?w.right=v+"%":f.lineAlign=="end"&&(w.left=100-v+"%")))),w.lineHeight=f.lineHeight,i=O6e(f),i=="line-left"?(w.cssFloat="left",f.position!==null&&(w.position="absolute",f.writingMode==j0?(w.left=f.position+"%",w.width="auto"):w.top=f.position+"%")):i=="line-right"?(w.cssFloat="right",f.position!==null&&(w.position="absolute",f.writingMode==j0?(w.right=100-f.position+"%",w.width="auto"):w.bottom=f.position+"%")):f.position!==null&&f.position!=50&&(w.position="absolute",f.writingMode==j0?(w.left=f.position+"%",w.width="auto"):w.top=f.position+"%",f.size&&(w.transform="translateX(-50%)")),w.textAlign=f.textAlign,w.textDecoration=f.textDecoration.join(" "),w.writingMode=f.writingMode,"writingMode"in document.documentElement.style&&w.writingMode==f.writingMode||(w.webkitWritingMode=f.writingMode),f.size&&(f.writingMode==j0?w.width=f.size+"%":w.height=f.size+"%")}function BL(i,u,f,v){v=v===void 0?1:v;var b=(b=new RegExp(/(\d*\.?\d+)([a-z]+|%+)/).exec(i))?{value:Number(b[1]),unit:b[2]}:null;if(!b)return i;switch(i=b.unit,v*=b.value,i){case"%":return v/100*f.clientHeight/u.cellResolution.rows+"px";case"c":return f.clientHeight*v/u.cellResolution.rows+"px";default:return v+i}}function B6e(i,u){for(var f=i.length-1;f>=0;f--){var v=u(i[f]);if(v||v===0)return v}return null}ze("shaka.text.UITextDisplayer",ta),ta.prototype.enableTextDisplayer=ta.prototype.enableTextDisplayer,ta.prototype.setTextLanguage=ta.prototype.setTextLanguage,ta.prototype.setTextVisibility=ta.prototype.setTextVisibility,ta.prototype.isTextVisible=ta.prototype.isTextVisible,ta.prototype.remove=ta.prototype.remove,ta.prototype.destroy=ta.prototype.destroy,ta.prototype.append=ta.prototype.append,ta.prototype.configure=ta.prototype.configure;function N6e(i,u){function f(w){for(var A=w,R=_(u),B=R.next();!B.done;B=R.next())B=B.value,B.end&&B.start "+f(b.endTime)+(function(w){var A=[];switch(w.textAlign){case"left":A.push("align:left");break;case"right":A.push("align:right");break;case Vd:A.push("align:middle");break;case"start":A.push("align:start");break;case"end":A.push("align:end")}switch(w.writingMode){case"vertical-lr":A.push("vertical:lr");break;case"vertical-rl":A.push("vertical:rl")}return A.length?" "+A.join(" "):""})(b)+` `,i+=b.payload+` `;return i}ze("shaka.text.WebVttGenerator",function(){});function NL(i,u){this.g=u,this.j=i,this.F=new Map,this.l=void 0,this.C=!1,this.J=!0,this.o=this.I=!1,this.B=this.u=void 0,this.H=0,this.K={request:!1,response:!1,event:!1},this.m={},this.i=new Ye,this.G=[],this.h=null}NL.prototype.setMediaElement=function(i){this.h=i,U6e(this)},NL.prototype.configure=function(i){this.g=i,H6e(this)};function F6e(i){i.F.clear(),i.C=!1,i.J=!0,i.I=!1,i.o=!1,i.u=0,i.B=0,i.H=0,i.K={request:!1,response:!1,event:!1},hX(i),i.m={},i.h=null,i.i.Pa()}function j6e(i,u){i.o=u,i.o?i.l==P6?i.l=R6:i.l==M6&&(i.l=O6):i.l==R6?i.l=P6:i.l==O6&&(i.l=M6)}function V6e(i,u){if(i.g&&i.g.enabled&&(na(i,"ps",{dd:"d"}),i.h&&i.h.autoplay)){var f=i.h.play();f&&f.then(function(){i.H=u}).catch(function(){i.H=0})}}function z6e(i,u,f){try{if(!i.g.enabled)return u;var v=FL(i);e:{switch(f.toLowerCase()){case"audio/mp4":case"audio/webm":case"audio/ogg":case"audio/mpeg":case"audio/aac":case"audio/flac":case"audio/wav":var b=A6;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":b=L6;break e;case"application/x-mpegurl":case"application/vnd.apple.mpegurl":case"application/dash+xml":case"video/vnd.mpeg.dash.mpd":case"application/vnd.ms-sstr+xml":b=SX;break e}b=void 0}v.ot=b,v.su=!0;var w=i2(v);return T6(u,w)}catch(A){return rt("CMCD_SRC_ERROR","Could not generate src CMCD data.",A),u}}function U6e(i){i.i.D(i.h,"playing",function(){i.B||(i.B=Date.now()),na(i,"ps",{dd:"p"})}),i.i.D(i.h,"volumechange",function(){na(i,i.h.muted?"m":"um")}),i.i.D(i.h,"play",function(){i.u||(i.u=Date.now(),na(i,"ps",{dd:"s"}))}),i.i.D(i.h,"pause",function(){na(i,"ps",{dd:"a"})}),i.i.D(i.j,"buffering",function(){na(i,"ps",{dd:"w"})}),i.i.D(i.h,"seeking",function(){return na(i,"ps",{dd:"k"})}),i.i.D(document,"fullscreenchange",function(){na(i,document.fullscreenElement?"pe":"pc")});var u=i.h;(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.i.D(u,"webkitpresentationmodechanged",function(){u.webkitPresentationMode?na(i,u.webkitPresentationMode!=="inline"?"pe":"pc"):u.webkitSupportsFullscreen&&na(i,u.webkitDisplayingFullscreen?"pe":"pc")}),i.i.D(i.h,"enterpictureinpicture",function(){na(i,"pe")}),i.i.D(i.h,"leavepictureinpicture",function(){na(i,"pc")}),"documentPictureInPicture"in o&&i.i.D(o.documentPictureInPicture,"enter",function(f){na(i,"pe"),i.i.Ba(f.window,"pagehide",function(){na(i,"pc")})}),i.i.D(document,"visibilitychange",function(){document.hidden?na(i,"b",{bg:!0}):na(i,"b")}),i.i.D(i.j,"complete",function(){na(i,"ps",{dd:"e"})})}function H6e(i){hX(i);var u=pX(i);u=_(u);for(var f=u.next();!f.done;f=u.next())if(f=f.value.timeInterval,f===void 0&&(f=rke),f>=1){var v=new vr(function(){return na(i,ike)});v.Ea(f),i.G.push(v)}}function hX(i){if(i.G)for(var u=_(i.G),f=u.next();!f.done;f=u.next())f.value.stop();i.G=[]}function pX(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===EX&&u.enabled}):[]}function vX(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===wX&&u.enabled===!0}):[]}function FL(i){return i.g.sessionId||(i.g.sessionId=o.crypto.randomUUID()),{v:i.g.version,sf:i.l,sid:i.g.sessionId,cid:i.g.contentId,mtp:i.j.getBandwidthEstimate()/1e3}}function na(i,u,f){if(f=f===void 0?{}:f,u=Object.assign({e:u,ts:Date.now()},f),u=zL(i,u,EX),f=i.g.targets,!(i.g.version0&&!A.includes(R))||mX(i,w,b)}}}function Ig(i,u,f){if(i.g.enabled){f=zL(i,f,CX);var v=gX({mode:CX,useHeaders:i.g.useHeaders,includeKeys:i.g.includeKeys||[]});i.m[v]||(i.m[v]={request:1,response:1}),f.sn=i.m[v].request++,v=i.g.includeKeys||[];var b=i.g.version==HL?Array.from(new Set([].concat(T(WL),T(J6e)))):kX;v=jL(v,b),f=VL(f,v),W6e(f,u,i.g.useHeaders)}}function mX(i,u,f,v){var b=yc(),w=f.url;if(f.useHeaders){if(u=_X(u),!Object.keys(u).length)return;v&&Object.assign(v.headers,u),v=Fo([w],b),Object.assign(v.headers,u)}else{if(u=i2(u),!u)return;w=T6(w,u),v&&(v.uri=w),v=Fo([w],b)}i.j.Wb().request(9,v)}function W6e(i,u,f){if(f)i=_X(i),Object.keys(i).length&&Object.assign(u.headers,i);else{var v=i2(i);v&&(u.uris=u.uris.map(function(b){return T6(b,v)}))}}function jL(i,u){if(!i||i.length===0)return u;for(var f=_(i),v=f.next();!v.done;v=f.next())u.includes(v.value);return i=i.filter(function(b){return u.includes(b)})}function VL(i,u){return Object.keys(i).reduce(function(f,v){return u.includes(v)&&(f[v]=i[v]),f},{})}function G6e(i){if(i.type===0)return Y6e;if(i=i.stream){var u=i.type;if(u=="video")return i.codecs&&i.codecs.includes(",")?L6:I6;if(u=="audio")return A6;if(u=="text")return i.mimeType==="application/mp4"?D6:UL}}function gX(i){var u=Object.keys(i).sort().reduce(function(f,v){return v!=="enabled"&&(f[v]=i[v]),f},{});return JSON.stringify(u)}function K6e(i,u){if(u=i.j.Fc()[u],!u.length)return NaN;var f=i.h?i.h.currentTime:0;return(i=u.find(function(v){return v.start<=f&&v.end>=f}))?(i.end-f)*1e3:NaN}function yX(i,u){if(u=i.j.Fc()[u],!u.length)return 0;var f=i.h?i.h.currentTime:0;return(i=u.find(function(v){return v.start<=f&&v.end>=f}))?(i.end-f)*1e3:0}function q6e(i,u){var f=i.j.mc();if(!f.length)return NaN;i=f[0],f=_(f);for(var v=f.next();!v.done;v=f.next())v=v.value,v.type==="variant"&&v.bandwidth>i.bandwidth&&(i=v);switch(u){case I6:return i.videoBandwidth||NaN;case A6:return i.audioBandwidth||NaN;default:return i.bandwidth}}function bX(i,u,f){var v=u.segment,b=0;v&&(b=v.endTime-v.startTime),b={d:b*1e3,st:i.j.W()?Z6e:X6e},b.ot=G6e(u);var w=b.ot===I6||b.ot===A6||b.ot===L6||b.ot===D6;if(u=u.stream){var A=i.j.Ob();if(w&&(b.bl=K6e(i,u.type),b.ot!==D6)){var R=yX(i,u.type);b.dl=A?R/Math.abs(A):R}if(u.bandwidth&&(b.br=u.bandwidth/1e3),u.segmentIndex&&v){if((A=u.segmentIndex.Vb(v.endTime,!0,A<0))&&(A=A.next().value)&&A!=v){if(f&&!lt(v.P(),A.P())){var B=A.P()[0];R=new URL(B);var V=new URL(f);if(R.origin!==V.origin)f=B;else{f=R.pathname.split("/").slice(1),B=V.pathname.split("/").slice(1,-1),V=Math.min(f.length,B.length);for(var K=0;K0&&f<=1?i*(1-f)+u*f:i};function TX(i){return i?i.toLowerCase()==="false"?!1:/^[-0-9]/.test(i)?parseInt(i,10):i.replace(/["]+/g,""):!0}ze("shaka.util.CmsdManager",Vu),Vu.prototype.getBandwidthEstimate=Vu.prototype.getBandwidthEstimate,Vu.prototype.getRoundTripTime=Vu.prototype.Uj,Vu.prototype.getResponseDelay=Vu.prototype.Tj,Vu.prototype.getEstimatedThroughput=Vu.prototype.$h,Vu.prototype.getMaxBitrate=Vu.prototype.bi;var AX="etp",IX="mb",LX="rd",DX="rtt";function PX(){this.g=null,this.h=[]}function GL(i,u){return re(function(f){if(f.g==1)return i.g?I(f,new Promise(function(v){return i.h.push(v)}),2):f.A(2);i.g=u,N(f)})}PX.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function Ot(i,u,f){u=u===void 0?null:u,Yr.call(this);var v=this;this.m=V6,this.h=null,this.xe=u,this.$=!1,this.Ie=new Ye,this.ye=new Ye,this.j=new Ye,this.ac=new Ye,this.yc=new Ye,this.G=this.H=this.F=this.J=null,this.Je=0,this.ma=new PX,this.O=this.aa=this.X=this.i=this.xc=this.I=this.l=this.ue=this.T=this.Kh=this.wa=this.M=this.ib=this.ya=this.we=this.R=this.Fa=this.N=this.ob=null,this.Sa=!1,this.Ce=this.o=null,this.Be=1e9,this.Ge=[],this.uc=new Map,this.kb=[],this.Xf=-1,this.g=id(this),this.Zf=JY(),this.V=null,this.Ke=-1,this.Zb=null,this.xa={width:1/0,height:1/0},this.Ae=new WI(this.g,this.xa,null),this.Ee=[],this.B=null,this.K=this.g.adaptationSetCriteriaFactory(),this.K.configure({language:this.g.preferredAudioLanguage,role:this.g.preferredAudioRole,videoRole:this.g.preferredVideoRole,channelCount:0,hdrLevel:this.g.preferredVideoHdrLevel,spatialAudio:this.g.preferSpatialAudio,videoLayout:this.g.preferredVideoLayout,audioLabel:this.g.preferredAudioLabel,videoLabel:this.g.preferredVideoLabel,codecSwitchingStrategy:this.g.mediaSource.codecSwitchingStrategy,audioCodec:"",activeAudioCodec:"",activeAudioChannelCount:0,preferredAudioCodecs:this.g.preferredAudioCodecs,preferredAudioChannelCount:this.g.preferredAudioChannelCount}),this.Fd=this.g.preferredTextLanguage,this.Md=this.g.preferredTextRole,this.Ld=this.g.preferForcedSubs,this.ze=[],f&&f(this),this.M=new NL(this,this.g.cmcd),this.wa=new Vu(this.g.cmsd),this.J=FX(this),this.Jd=this.qa=this.Da=this.C=null,this.ag=!1,this.Yf=[],this.$f=new vr(function(){return re(function(b){if(b.g==1)return v.qa?I(b,v.fc(v.Jd,!0),3):b.A(0);if(b.g!=4)return I(b,v.load(v.qa),4);v.ag?v.Jd.pause():v.Jd.play(),v.qa=null,v.ag=!1,N(b)})}),z6&&(this.C=z6(),this.C.configure(this.g.ads),this.yc.D(this.C,"ad-content-pause-requested",function(b){var w;return re(function(A){if(A.g==1)return v.$f.stop(),v.qa?A.A(0):(v.Jd=v.h,v.ag=v.be(),w=b.saveLivePosition||!1,I(A,v.Uh(!0,w),3));v.qa=A.h,N(A)})}),this.yc.D(this.C,"ad-content-resume-requested",function(b){if(b=b.offset||0,v.qa){var w=v.qa;w.m&&b&&(typeof w.m=="number"?w.m+=b:w.m.setTime(w.m.getTime()+b*1e3))}v.$f.ia(.1)}),this.yc.D(this.C,"ad-content-attach-requested",function(){return re(function(b){return v.h||!v.Jd?b.A(0):I(b,v.fc(v.Jd,!0),0)})})),U6&&(this.Da=U6(this),this.Da.configure(this.g.queue)),this.Ie.D(o,"online",function(){e7(v),v.fh()}),this.De=new vr(function(){for(var b=Date.now()/1e3,w=!1,A=!0,R=_(v.i.variants),B=R.next();!B.done;B=R.next())B=B.value,B.disabledUntilTime>0&&B.disabledUntilTime<=b&&(B.disabledUntilTime=0,w=!0),B.disabledUntilTime>0&&(A=!1);A&&v.De.stop(),w&&fp(v,!1,void 0,!1,!1)}),this.Ta=null,i&&(Zt("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.fc(i,!0)),this.u=null}x(Ot,Yr);function $6(i){i.T!=null&&(eu(i.T),i.T.release(),i.T=null)}function oke(i,u,f){f||u.lcevc.enabled?($6(i),i.T==null&&(i.T=new Go(i.h,i.Kh,u.lcevc,f),i.H&&(i.H.H=i.T))):$6(i)}function gi(i,u){return new Cn(i,u)}l=Ot.prototype,l.destroy=function(){var i=this,u;return re(function(f){switch(f.g){case 1:return i.m==bc?f.return():($6(i),u=i.detach(),i.m=bc,I(f,u,2));case 2:return I(f,i.ng(),3);case 3:if(i.Ie&&(i.Ie.release(),i.Ie=null),i.ye&&(i.ye.release(),i.ye=null),i.j&&(i.j.release(),i.j=null),i.ac&&(i.ac.release(),i.ac=null),i.yc&&(i.yc.release(),i.yc=null),i.Ce=null,i.g=null,i.B=null,i.xe=null,i.M=null,i.wa=null,!i.J){f.A(4);break}return I(f,i.J.destroy(),5);case 5:i.J=null;case 4:i.o&&(i.o.release(),i.o=null),i.Da&&(i.Da.destroy(),i.Da=null),Yr.prototype.release.call(i),N(f)}})};function RX(i,u){lZ.set(i,u)}function Lg(i,u){i.dispatchEvent(gi("onstatechange",new Map().set("state",u)))}l.fc=function(i,u){u=u===void 0?!0:u;var f=this,v,b,w;return re(function(A){switch(A.g){case 1:if(f.m==bc)throw new Ae(2,7,7e3);if(v=f.h&&f.h==i,!f.h||f.h==i){A.A(2);break}return I(A,f.detach(),2);case 2:return I(A,KL(f,"attach"),4);case 4:if(A.h)return A.return();if(j(A,5,6),v||(Lg(f,"attach"),b=function(){var R=t7(f,!1);R&&Dg(f,R)},f.ye.D(i,"error",b),f.h=i,f.M&&f.M.setMediaElement(i)),Fe(),!u||!Ud()||f.H){A.A(6);break}return I(A,qL(f),6);case 6:X(A),f.ma.release(),ie(A,0);break;case 5:return w=G(A),I(A,f.detach(),10);case 10:throw w}})},l.jj=function(i){this.Kh=i},l.detach=function(i){i=i===void 0?!1:i;var u=this;return re(function(f){if(f.g==1){if(u.m==bc)throw new Ae(2,7,7e3);return I(f,u.Bc(!1,i),2)}if(f.g!=3)return I(f,KL(u,"detach"),3);if(f.h)return f.return();try{u.h&&(u.ye.Pa(),u.h=null),Lg(u,"detach"),u.C&&!i&&u.C.release()}finally{u.ma.release()}N(f)})};function KL(i,u){var f;return re(function(v){return v.g==1?(f=++i.Je,I(v,GL(i.ma,u),2)):f!=i.Je?(i.ma.release(),v.return(!0)):v.return(!1)})}l.Bc=function(i,u){i=i===void 0?!0:i,u=u===void 0?!1:u;var f=this,v,b,w,A,R,B,V,K,Y,oe,ue,he,ge,ye,Oe,De;return re(function(qe){switch(qe.g){case 1:return f.m!=bc&&(f.m=V6),I(qe,KL(f,"unload"),2);case 2:return qe.h?qe.return():(U(qe,3),f.Sa=!1,Lg(f,"unload"),$6(f),v=f.ze.map(function(ot){return ot()}),f.ze=[],I(qe,Promise.all(v),5));case 5:if(f.dispatchEvent(gi("unloading")),f.we&&(f.we.release(),f.we=null),f.ya&&(f.ya.release(),f.ya=null),f.ib&&(f.ib.release(),f.ib=null),f.h&&(f.j.Pa(),f.ac.Pa()),f.De.stop(),f.ob&&(f.ob.release(),f.ob=null),f.Fa&&(f.Fa.stop(),f.Fa=null),!f.I){qe.A(6);break}return I(qe,f.I.stop(),7);case 7:f.I=null,f.xc=null;case 6:if(f.o&&f.o.stop(),!f.l){qe.A(8);break}return I(qe,f.l.destroy(),9);case 9:f.l=null;case 8:if(f.N&&(f.N.release(),f.N=null),f.G&&(f.G.release(),f.G=null),o.shakaMediaKeysPolyfill!=="webkit"||!f.F){qe.A(10);break}return I(qe,f.F.destroy(),11);case 11:f.F=null;case 10:if(!f.H){qe.A(12);break}return I(qe,f.H.destroy(),13);case 13:f.H=null;case 12:if(f.C&&!u&&f.C.onAssetUnload(),f.qa&&!u&&(f.qa.destroy(),f.qa=null),u||f.$f.stop(),f.M&&F6e(f.M),f.wa&&(f.wa.g=null),!f.u){qe.A(14);break}return I(qe,f.u.destroy(),15);case 15:f.u=null;case 14:if(f.$=!1,f.h){for(b=_(f.Yf),w=b.next();!w.done;w=b.next())A=w.value,A.src.startsWith("blob:")&&URL.revokeObjectURL(A.src),A.remove();f.Yf=[],n6(f.h)&&f.h.load()}if(!f.F){qe.A(16);break}return I(qe,f.F.destroy(),17);case 17:f.F=null;case 16:if(f.Ta&&f.X!=f.Ta.rd()&&(f.Ta.j||f.Ta.destroy(),f.Ta=null),f.X=null,f.aa=null,f.R=null,f.i){for(R=_(f.i.variants),B=R.next();!B.done;B=R.next())for(V=B.value,K=_([V.audio,V.video]),Y=K.next();!Y.done;Y=K.next())(oe=Y.value)&&oe.segmentIndex&&oe.segmentIndex.release();for(ue=_(f.i.textStreams),he=ue.next();!he.done;he=ue.next())ge=he.value,ge.segmentIndex&&ge.segmentIndex.release()}for(f.g&&f.g.streaming.clearDecodingCache&&(NS.clear(),sg.clear()),f.i=null,f.B=new E6,f.Jh=null,f.Zb=null,f.V=null,f.Ke=-1,f.Ge=[],ye=_(f.uc.values()),Oe=ye.next();!Oe.done;Oe=ye.next())De=Oe.value,De.stop();f.uc.clear(),f.kb=[],f.Xf=-1,f.J&&f.J.Qh(),o2(f);case 3:X(qe),f.ma.release(),ie(qe,4);break;case 4:if(Fe(),i&&Ud()&&!f.H&&f.h)return I(qe,qL(f),0);qe.A(0)}})},l.kl=function(i){this.O=i},l.load=function(i,u,f){u=u===void 0?null:u;var v=this,b,w,A,R,B,V,K,Y,oe,ue,he,ge,ye,Oe;return re(function(De){switch(De.g){case 1:if(v.m==bc)throw new Ae(2,7,7e3);if(b=null,w="",i instanceof ju){if(i.j)throw new Ae(2,7,7006);b=i,w=b.rd()||""}else w=i||"";return I(De,GL(v.ma,"load"),2);case 2:if(v.ma.release(),!v.h)throw new Ae(2,7,7002);if(!v.X){De.A(3);break}return v.X=w,I(De,v.Bc(!1),3);case 3:if(A=++v.Je,R=function(){return re(function(qe){if(qe.g==1)return v.Je==A?qe.A(0):b?I(qe,b.destroy(),3):qe.A(3);throw new Ae(2,7,7e3)})},B=function(qe,ot){return re(function(mt){switch(mt.g){case 1:return U(mt,2),I(mt,GL(v.ma,ot),4);case 4:return I(mt,R(),5);case 5:return I(mt,qe(),6);case 6:return I(mt,R(),7);case 7:b&&v.g&&(b.g=v.g);case 2:X(mt),v.ma.release(),ie(mt,0)}})},j(De,5,6),u==null&&b&&(u=b.getStartTime()),v.O=u,v.Sa=!1,v.dispatchEvent(gi("loading")),b){f=b.V,De.A(8);break}if(f){De.A(8);break}return I(De,B(function(){return re(function(qe){if(qe.g==1)return I(qe,BX(v,w),2);f=qe.h,N(qe)})},"guessMimeType_"),8);case 8:if(V=!!b,b){tX(b,v),v.B=b.getStats(),De.A(11);break}return I(De,OX(v,w,u,f,!0,v.g),12);case 12:(b=De.h)?(b.F=!1,tX(b,v),v.B=b.getStats(),b.start(),b.B.catch(function(){})):v.B=new E6;case 11:return K=!b,Y=Date.now()/1e3,v.B=b?b.getStats():new E6,v.X=w,v.aa=f||null,o2(v),oe=function(){var qe=v.h?v.h.buffered:null;return{start:Qq(qe)||0,end:t6(qe)||0}},v.ya=new G3(oe),v.ya.addEventListener("regionadd",function(qe){YL(v,qe.region,"metadataadded")}),K?I(De,B(function(){return re(function(qe){return I(qe,uke(v,f),0)})},"initializeSrcEqualsDrmInner_"),23):(v.ib=new G3(oe),I(De,B(function(){return re(function(qe){if(qe.g==1)return I(qe,Promise.race([b.ma,b.B]),2);v.xc=b.H;var ot=b;ot.qa=!0,v.I=ot.l,v.i=b.Hg(),N(qe)})},"waitForFinish"),15));case 15:if(v.H){De.A(16);break}return I(De,B(function(){return re(function(qe){return I(qe,qL(v),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return v.i&&v.i.textStreams.length&&(v.u.enableTextDisplayer?v.u.enableTextDisplayer():Zt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),I(De,B(function(){return re(function(qe){return I(qe,b.B,0)})},"waitForFinish"),18);case 18:if(v.g=b.getConfiguration(),v.Ae=b.G,v.I&&v.I.setMediaElement&&v.h&&v.I.setMediaElement(v.h),v.we=C6e(b),v.ue=b.Fa,(ue=b.C)&&(v.K=ue),V&&v.h&&v.h.nodeName==="AUDIO"&&(ske(v),v.configure("manifest.disableVideo",!0)),b.i){De.A(19);break}return I(De,B(function(){return re(function(qe){return I(qe,nX(b,v.h),0)})},"drmEngine_.init"),19);case 19:return v.F=w6e(b),I(De,B(function(){return re(function(qe){return I(qe,v.F.fc(v.h),0)})},"drmEngine_.attach"),21);case 21:return he=v.g.abrFactory,v.o&&v.Ce==he||(v.Ce=he,v.o&&v.o.release(),v.o=he(),typeof v.o.setMediaElement!="function"&&(Zt("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),v.o.setMediaElement=function(){}),typeof v.o.setCmsdManager!="function"&&(Zt("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),v.o.setCmsdManager=function(){}),typeof v.o.trySuggestStreams!="function"&&(Zt("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),v.o.trySuggestStreams=function(){}),v.o.configure(v.g.abr)),ge=E6e(b),ye=b.o,I(De,B(function(){return re(function(qe){return I(qe,lke(v,Y,ye,ge),0)})},"loadInner_"),22);case 22:x6e(b),v.aa&&Fe().aj()&&w3(v.aa)&&vSe(v.H,v.X,v.aa),De.A(14);break;case 23:return I(De,B(function(){return re(function(qe){return I(qe,cke(v,Y,f),0)})},"srcEqualsInner_"),14);case 14:v.dispatchEvent(gi("loaded"));case 6:if(X(De),!b){De.A(25);break}return I(De,b.destroy(),25);case 25:v.Ta=null,ie(De,0);break;case 5:if(Oe=G(De),!Oe||Oe.code==7e3){De.A(27);break}return I(De,v.Bc(!1),27);case 27:throw Oe}})};function ske(i){for(var u=_(i.i.variants),f=u.next();!f.done;f=u.next())f=f.value,f.video&&(f.video.closeSegmentIndex(),f.video=null),f.bandwidth=f.audio&&f.audio.bandwidth?f.audio.bandwidth:0;i.i.variants=i.i.variants.filter(function(v){return v.audio})}l.dj=function(i,u){i=i===void 0?!0:i,u=u===void 0?!1:u;var f=this,v;return re(function(b){return b.g==1?I(b,MX(f),2):b.g!=3?(v=b.h,I(b,f.Bc(i,u),3)):b.return(v)})},l.Uh=function(i,u){i=i===void 0?!1:i,u=u===void 0?!1:u;var f=this,v;return re(function(b){return b.g==1?I(b,MX(f,u),2):b.g!=3?(v=b.h,I(b,f.detach(i),3)):b.return(v)})};function MX(i,u){u=u===void 0?!1:u;var f,v,b;return re(function(w){if(w.g==1)return f=null,i.i&&i.I&&i.xc&&i.X&&i.g?(v=i.h.currentTime,i.W()&&!u&&(v=null),I(w,$X(i,i.X,v,i.aa,i.g,!0,!1),3)):w.A(2);if(w.g!=2){f=w.h,i.Ee.push(f),i.I&&i.I.setMediaElement&&i.I.setMediaElement(null),(b=i.l?i.l.o:null)&&(f.o=b);var A=f,R=i.I,B=i.xc;A.h=i.i,A.l=R,A.H=B,f.C=i.K,f.start(),i.i=null,i.I=null,i.xc=null,i.o=null,i.Ce=null}return w.return(f)})}l.preload=function(i,u,f,v){u=u===void 0?null:u;var b=this,w,A;return re(function(R){return R.g==1?(w=id(b),Zf(w,v||b.g,id(b)),I(R,OX(b,i,u,f,!1,w),2)):((A=R.h)?A.start():Dg(b,new Ae(2,7,7005)),R.return(A))})},l.ng=function(){var i=this,u,f,v,b;return re(function(w){for(u=[],f=_(i.Ee),v=f.next();!v.done;v=f.next())b=v.value,b.j||u.push(b.destroy());return i.Ee=[],I(w,Promise.all(u),0)})};function OX(i,u,f,v,b,w){b=b===void 0?!1:b;var A,R,B;return re(function(V){return V.g==1?v?V.A(2):I(V,BX(i,u),3):(V.g!=2&&(v=V.h),ake(i,v)?V.return(null):(A=w||i.g,R=!1,b&&i.h&&i.h.nodeName==="AUDIO"&&(R=!0),B=$X(i,u,f,v||null,A,!b,R),B=b?B.then(function(K){return K.F=!1,K}):B.then(function(K){return i.Ee.push(K),K}),V.return(B)))})}function $X(i,u,f,v,b,w,A){w=w===void 0?!0:w,A=A===void 0?!1:A;var R,B,V,K,Y,oe,ue,he,ge,ye,Oe,De,qe,ot,mt;return re(function(Qe){return Qe.g==1?(R=null,B=fn(b),A&&(B.manifest.disableVideo=!0),V=function(){return R.R&&R.j?null:R},K=function(){return V()?V().getConfiguration():i.g},i.xa.width!=1/0||i.xa.height!=1/0||i.g.ignoreHardwareResolution?Qe.A(2):(Y=Fe(),I(Qe,Y.jc(),3))):(Qe.g!=2&&(oe=Qe.h,i.xa.width=oe.width,i.xa.height=oe.height),ue=new WI(B,i.xa,null),he={networkingEngine:i.J,filter:function(He){var ct,pt;return re(function(ft){if(ft.g==1)return I(ft,Bq(ue,He),2);if(ft.g!=4)return ct=ft.h,ct?(pt=gi("trackschanged"),I(ft,Promise.resolve(),4)):ft.A(0);R.dispatchEvent(pt),N(ft)})},makeTextStreamsForClosedCaptions:function(He){return xke(i,He)},onTimelineRegionAdded:function(He){pL(R.I,He)},onEvent:function(He){return R.dispatchEvent(He)},onError:function(He){return R.onError(He)},isLowLatencyMode:function(){return K().streaming.lowLatencyMode},updateDuration:function(){i.l&&R.R&&i.l.updateDuration()},newDrmInfo:function(He){var ct=R.i,pt=ct?ct.g:null;pt&&ct.B&&jq(ue,pt.keySystem,He)},onManifestUpdated:function(){var He=new Map().set("isLive",i.W());R.dispatchEvent(gi("manifestupdated",He)),e2(R,!1,function(){i.C&&i.C.onManifestUpdated(i.W())})},getBandwidthEstimate:function(){return i.o.getBandwidthEstimate()},onMetadata:function(He,ct,pt,ft){var _t=He;(He=="com.apple.hls.interstitial"||He=="com.apple.hls.overlay")&&(_t="com.apple.quicktime.HLS",He={startTime:ct,endTime:pt,values:ft},i.C&&i.C.onHLSInterstitialMetadata(i,i.h,He)),ft=_(ft),He=ft.next();for(var kt={};!He.done;kt={Yg:void 0},He=ft.next())kt.Yg=He.value,kt.Yg.name!="ID"&&e2(R,!1,(function(Nt){return function(){XL(i,ct,pt,_t,Nt.Yg)}})(kt))},disableStream:function(He){return i.disableStream(He,i.g.streaming.maxDisabledTime)},addFont:function(He,ct){return i.addFont(He,ct)}},ge=new G3(function(){return i.Qa()}),ge.addEventListener("regionadd",function(He){var ct=He.region;l2(i,"timelineregionadded",ct,R),e2(R,!1,function(){i.C&&(i.C.onDashTimedMetadata(ct),i.C.onDASHInterstitialMetadata(i,i.h,ct))})}),ye=null,B.streaming.observeQualityChanges&&(ye=new u6(function(){return i.Fc()}),ye.addEventListener("qualitychange",function(He){iZ(i,He.quality,He.position)}),ye.addEventListener("audiotrackchange",function(He){iZ(i,He.quality,He.position,!0)})),Oe=!0,De={tc:i.J,onError:function(He){return R.onError(He)},vf:function(He){e2(R,!0,function(){i.F&&wke(i,He)})},onExpirationUpdated:function(He,ct){var pt=gi("expirationupdated");R.dispatchEvent(pt),(pt=R.l)&&pt.onExpirationUpdated&&pt.onExpirationUpdated(He,ct)},onEvent:function(He){R.dispatchEvent(He),He.type=="drmsessionupdate"&&Oe&&(Oe=!1,He=Date.now()/1e3-R.ya,(i.B||R.getStats()).m=He,i.T&&eu(i.T))}},qe=FX(i,V),gq(i.J,qe),ot=function(){return i.md(De)},mt={config:B,wk:he,Hk:ge,Gk:ye,md:ot,vk:ue,networkingEngine:qe,ij:w},R=new ju(u,v,f,mt),Qe.return(R))})}function BX(i,u){var f,v,b,w;return re(function(A){return A.g==1?(f=i.g.manifest.retryParameters,I(A,nv(u,i.J,f),2)):(v=A.h,v=="application/x-mpegurl"&&(b=Fe(),b.Ha()==="WEBKIT"&&(v="application/vnd.apple.mpegurl")),v=="video/quicktime"&&(w=Fe(),w.Ha()==="CHROMIUM"&&(v="video/mp4")),A.return(v))})}function ake(i,u){if(!Ud(Fe()))return!0;if(u){if((i.h||Y0()).canPlayType(u)=="")return!1;if(!Ud(Fe())||!hg.has(u))return!0;if(w3(u))return Fe().Ha()==="WEBKIT"&&(i.g.drm.servers["com.apple.fps"]||i.g.drm.servers["com.apple.fps.1_0"])?i.g.streaming.useNativeHlsForFairPlay:i.g.streaming.preferNativeHls;if(u==="application/dash+xml"||u==="video/vnd.mpeg.dash.mpd")return i.g.streaming.preferNativeDash}return!1}function B6(i,u){var f=i.g.textDisplayFactory;i.Jh!==f||u!==void 0&&u?(u=i.u,i.u=f(),i.u.configure?i.u.configure(i.g.textDisplayer):Zt("Text displayer w/ configure",'Text displayer should have a "configure" method!'),i.u.setTextLanguage||Zt("Text displayer w/ setTextLanguage",'Text displayer should have a "setTextLanguage" method!'),u?(i.u.setTextVisibility(u.isTextVisible()),u.destroy().catch(function(){})):i.u.setTextVisibility(i.$),i.H&&CSe(i.H,i.u),i.Jh=f,i.l&&YSe(i.l)):i.u&&i.u.configure&&i.u.configure(i.g.textDisplayer)}function qL(i){var u,f,v;return re(function(b){if(b.g==1)return Fe(),Lg(i,"media-source"),i.g.mediaSource.useSourceElements&&n6(i.h),B6(i),u=yke(i.h,i.u,{Jj:function(){return i.keySystem()},onMetadata:function(w,A,R){w=_(w);for(var B=w.next();!B.done;B=w.next())if(B=B.value,B.data&&typeof B.cueTime=="number"&&B.frames){var V=B.cueTime+A,K=R;K&&V>K&&(K=V);for(var Y=_(B.frames),oe=Y.next();!oe.done;oe=Y.next())XL(i,V,K,"org.id3",oe.value);i.C&&i.C.onHlsTimedMetadata(B,V)}},Bk:function(w){i.ib&&pL(i.ib,{schemeIdUri:w.schemeIdUri,startTime:w.startTime,endTime:w.endTime,id:String(w.id),emsg:w})},onEvent:function(w){return i.dispatchEvent(w)},Dk:function(){i.I&&i.I.update&&i.I.update()}},i.T,i.g.mediaSource),f=i.g.manifest,v=f.segmentRelativeVttTiming,u.Fa=v,I(b,u.M,2);i.H=u,N(b)})}function NX(i,u,f){function v(){return JL(i)}if(i.j.D(u,"playing",v),i.j.D(u,"pause",v),i.j.D(u,"ended",v),i.j.D(u,"ratechange",function(){var w=i.h.playbackRate;w!=0&&(i.N&&(i.N.set(w),i.m==Us&&i.o.playbackRateChanged(w),YX(i,w)),w=gi("ratechange"),i.dispatchEvent(w))}),u.remote&&(i.j.D(u.remote,"connect",function(){i.l&&u.remote.state=="connected"&&Qf(i),La(i)}),i.j.D(u.remote,"connecting",function(){return La(i)}),i.j.D(u.remote,"disconnect",function(){return re(function(w){if(w.g==1)return i.l&&u.remote.state=="disconnected"?I(w,g6(i.l),3):w.A(2);w.g!=2&&Qf(i),La(i),N(w)})})),u.audioTracks&&(i.j.D(u.audioTracks,"addtrack",function(){return La(i)}),i.j.D(u.audioTracks,"removetrack",function(){return La(i)}),i.j.D(u.audioTracks,"change",function(){return La(i)})),u.videoTracks&&(i.j.D(u.videoTracks,"addtrack",function(){return La(i)}),i.j.D(u.videoTracks,"removetrack",function(){return La(i)}),i.j.D(u.videoTracks,"change",function(){return La(i)})),(u.webkitPresentationMode||u.webkitSupportsFullscreen)&&i.j.D(u,"webkitpresentationmodechanged",function(){i.xe&&B6(i,!0)}),u.textTracks){var b=function(){i.m===Ml&&i.u instanceof ns&&Qf(i),La(i)};i.j.D(u.textTracks,"addtrack",function(w){if(w.track)switch(w=w.track,w.kind){case"metadata":hke(i,w);break;case"chapters":pke(i,w);break;default:b()}}),i.j.D(u.textTracks,"removetrack",b),i.j.D(u.textTracks,"change",b)}u.preload!="none"&&i.j.Ba(u,"loadedmetadata",function(){i.B.G=Date.now()/1e3-f})}function lke(i,u,f,v){var b,w,A,R,B,V,K,Y,oe,ue,he,ge,ye,Oe,De,qe,ot,mt,Qe,He,ct,pt,ft,_t,kt,Nt,Vt,Tt;return re(function(Lt){switch(Lt.g){case 1:for(Lg(i,"load"),b=i.h,i.N=new W3({Ye:function(){return b.playbackRate},Tc:function(){return b.defaultPlaybackRate},ph:function(qt){b.playbackRate=qt},ui:function(qt){b.currentTime+=qt}}),NX(i,b,u),("onchange"in o.screen)&&i.j.D(o.screen,"change",function(){if(i.K.getConfiguration){var qt=i.K.getConfiguration();qt.hdrLevel=="AUTO"?rv(i):i.g.preferredVideoHdrLevel=="AUTO"&&i.g.abr.enabled&&(qt.hdrLevel="AUTO",i.K.configure(qt),rv(i))}}),w=!1,A=_(i.i.variants),R=A.next();!R.done;R=A.next())B=R.value,(V=B.video&&B.video.dependencyStream)&&(w=Il(V));oke(i,i.g,w),i.Fd=i.g.preferredTextLanguage,i.Md=i.g.preferredTextRole,i.Ld=i.g.preferForcedSubs,n7(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),i.o.init(function(qt,un,Zn){i.i&&i.l&&qt!=i.l.o&&s2(i,qt,!0,un===void 0?!1:un,Zn===void 0?0:Zn)}),i.o.setMediaElement(b),i.o.setCmsdManager(i.wa),i.l=bke(i),i.l.configure(i.g.streaming),i.m=Us,i.dispatchEvent(gi("streaming")),K=f;case 2:for((oe=i.l.o)||K||(K=ZX(i,!0)),ue=[],Y=oe||K,he=_([Y.video,Y.audio]),ge=he.next();!ge.done;ge=he.next())(ye=ge.value)&&!ye.segmentIndex&&(ue.push(ye.createSegmentIndex()),ye.dependencyStream&&ue.push(ye.dependencyStream.createSegmentIndex()));if(!(ue.length>0)){Lt.A(4);break}return I(Lt,Promise.all(ue),4);case 4:if(!Y||Y.disabledUntilTime!=0){Lt.A(2);break}if(i.I&&i.I.onInitialVariantChosen&&i.I.onInitialVariantChosen(Y),i.i.isLowLatency&&(i.g.streaming.lowLatencyMode?i.configure(i.Zf):Xe("Low-latency live stream detected, but low-latency streaming mode is not enabled in Shaka Player. Set streaming.lowLatencyMode configuration to true, and see https://bit.ly/3clctcj for details.")),i.M&&(j6e(i.M,i.i.isLowLatency&&i.g.streaming.lowLatencyMode),V6e(i.M,u*1e3)),n7(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),GSe(i.l,i.g.playRangeStart,i.g.playRangeEnd),i.Sa=!0,i.dispatchEvent(gi("canupdatestarttime")),Oe=function(qt){i.G=vke(i,qt),i.ob=mke(i,qt),jX(i,b,!1)},i.g.streaming.startAtSegmentBoundary||(De=i.O,De==null&&i.i.startTime&&(De=i.i.startTime),Oe(De)),oe){Lt.A(7);break}if(!i.g.streaming.startAtSegmentBoundary){Lt.A(8);break}return qe=i.i.presentationTimeline,i.O instanceof Date&&(mt=qe.m||qe.i,Qe=i.O.getTime()/1e3-mt,Qe!=null&&(ot=Qe)),ot==null&&(ot=typeof i.O=="number"?i.O:i.h.currentTime),i.O==null&&i.i.startTime&&(ot=i.i.startTime),He=qe.Xb(),ct=qe.Gb(),otct&&(ot=ct),I(Lt,Cke(K,ot),9);case 9:pt=Lt.h,Oe(pt);case 8:s2(i,K,!0,!1,0);case 7:return i.G.ready(),ft=i.Kc().find(function(qt){return qt.active}),ft||((_t=og(i.i.textStreams,i.Fd,i.Md,i.Ld)[0]||null)&&DL(i.B.h,_t,!0),K&&(_t?(aq(K.audio,_t,i.g)&&(i.$=!0),i.$&&i.u.setTextVisibility(!0)):(i.$=!1,i.u.setTextVisibility(!1)),nZ(i)),_t&&(i.g.streaming.alwaysStreamText||i.Og())&&(f6(i.l,_t),a2(i))),I(Lt,i.l.start(v),10);case 10:i.g.abr.enabled&&(i.o.enable(),rZ(i)),La(i),i.i.variants.some(function(qt){return qt.primary}),((kt=i.W())&&(i.g.streaming.liveSync&&i.g.streaming.liveSync.enabled||i.i.serviceDescription||i.g.streaming.liveSync.panicMode)||i.g.streaming.vodDynamicPlaybackRate)&&(Nt=function(){return XX(i)},i.j.D(b,"timeupdate",Nt)),kt||(Vt=function(){return j6(i)},i.j.D(b,"timeupdate",Vt),j6(i),i.i.nextUrl&&(i.g.streaming.preloadNextUrlWindow>0&&(Tt=function(){var qt;return re(function(un){if(un.g==1)return qt=i.Qa().end-i.h.currentTime,isNaN(qt)||!(qt<=i.g.streaming.preloadNextUrlWindow)?un.A(0):(i.j.Ma(b,"timeupdate",Tt),I(un,i.preload(i.i.nextUrl),4));i.Ta=un.h,N(un)})},i.j.D(b,"timeupdate",Tt)),i.j.D(b,"ended",function(){i.load(i.Ta||i.i.nextUrl)}))),i.C&&i.C.onManifestUpdated(kt),N(Lt)}})}function uke(i,u){var f,v,b;return re(function(w){return w.g==1?(f=Date.now()/1e3,v=!0,i.F=i.md({tc:i.J,onError:function(A){Dg(i,A)},vf:function(){},onExpirationUpdated:function(){var A=gi("expirationupdated");i.dispatchEvent(A)},onEvent:function(A){i.dispatchEvent(A),A.type=="drmsessionupdate"&&v&&(v=!1,i.B.m=Date.now()/1e3-f)}}),i.F.configure(i.g.drm),b=lq([u]),i.F.O=!0,I(w,wq(i.F,[b],[]),2)):I(w,i.F.fc(i.h),0)})}function cke(i,u,f){var v,b,w,A,R,B,V,K,Y,oe,ue,he;return re(function(ge){switch(ge.g){case 1:if(Lg(i,"src-equals"),v=i.h,i.G=new EY(v),b=!1,i.ze.push(function(){b=!0}),i.dispatchEvent(gi("canupdatestarttime")),i.O!=null&&i.G.Wf(i.O),i.ob=gke(i,i.O||0),i.N=new W3({Ye:function(){return v.playbackRate},Tc:function(){return v.defaultPlaybackRate},ph:function(ye){v.playbackRate=ye},ui:function(ye){v.currentTime+=ye}}),jX(i,v,!0),v.textTracks&&(B6(i),w=function(ye){if(!(i.u instanceof ns)){var Oe=N6(i).find(function(De){return De.mode!=="disabled"});Oe&&(Oe.mode=ye?"showing":"hidden"),i.u instanceof Qs&&(Oe=_ke(i))&&(Oe.mode=!ye&&i.u.isTextVisible()?"showing":"hidden")}},i.j.D(v,"enterpictureinpicture",function(){return w(!0)}),i.j.D(v,"leavepictureinpicture",function(){return w(!1)}),v.remote?(i.j.D(v.remote,"connect",function(){return w(!1)}),i.j.D(v.remote,"connecting",function(){return w(!1)}),i.j.D(v.remote,"disconnect",function(){return w(!1)})):"webkitCurrentPlaybackTargetIsWireless"in v&&i.j.D(v,"webkitcurrentplaybacktargetiswirelesschanged",function(){return w(!1)}),A=v,(A.webkitPresentationMode||A.webkitSupportsFullscreen)&&i.j.D(A,"webkitpresentationmodechanged",function(){A.webkitPresentationMode?w(A.webkitPresentationMode!=="inline"):A.webkitSupportsFullscreen&&w(A.webkitDisplayingFullscreen)})),NX(i,v,u),R=z6e(i.M,i.X,f),!R.includes("#t=")&&(i.g.playRangeStart>0||isFinite(i.g.playRangeEnd))&&(R+="#t=",i.g.playRangeStart>0&&(R+=i.g.playRangeStart),isFinite(i.g.playRangeEnd)&&(R+=","+i.g.playRangeEnd)),!i.H){ge.A(2);break}return I(ge,i.H.destroy(),3);case 3:i.H=null;case 2:return n6(v),v.src=R,B=Fe(),B.Ua()=="TV"&&v.load(),v.preload!="none"&&!v.autoplay&&w3(f)&&B.Ha()==="WEBKIT"&&v.load(),i.m=Ml,i.dispatchEvent(gi("streaming")),V=new li,xg(v,HTMLMediaElement.HAVE_METADATA,i.j,function(){i.G.ready(),i.aa&&w3(i.aa)||V.resolve()}),K=function(){return new Promise(function(ye){var Oe=new vr(ye);i.j.D(v.textTracks,"change",function(){return Oe.ia(.5)}),Oe.ia(.5)})},xg(v,HTMLMediaElement.HAVE_CURRENT_DATA,i.j,function(){var ye,Oe,De,qe,ot;return re(function(mt){if(mt.g==1)return I(mt,K(),2);if(b)return mt.return();if(dke(i),ye=N6(i),ye.some(function(Qe){return Qe.mode==="showing"})&&(i.$=!0,i.u.setTextVisibility(!0)),!(i.u instanceof ns))for(ye.length&&(i.u.enableTextDisplayer?i.u.enableTextDisplayer():Zt("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),Oe=!1,De=_(ye),qe=De.next();!qe.done;qe=De.next())ot=qe.value,ot.mode!=="disabled"&&(Oe?(ot.mode="disabled",Xe("Found more than one enabled text track, disabling it",ot)):(GX(i,ot),Oe=!0));fke(i),i.aa&&w3(i.aa)&&V.resolve(),N(mt)})}),v.error?V.reject(t7(i)):v.preload=="none"&&(Xe('With