var H8e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var vYt=H8e((gf,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 Ti={},im=[],ka=()=>{},Xv=()=>!1,O0=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),n5=e=>e.startsWith("onUpdate:"),Ci=Object.assign,r5=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},W8e=Object.prototype.hasOwnProperty,qi=(e,t)=>W8e.call(e,t),Yn=Array.isArray,om=e=>Gm(e)==="[object Map]",$0=e=>Gm(e)==="[object Set]",xj=e=>Gm(e)==="[object Date]",Cde=e=>Gm(e)==="[object RegExp]",Ir=e=>typeof e=="function",Or=e=>typeof e=="string",Jl=e=>typeof e=="symbol",Zi=e=>e!==null&&typeof e=="object",i5=e=>(Zi(e)||Ir(e))&&Ir(e.then)&&Ir(e.catch),SU=Object.prototype.toString,Gm=e=>SU.call(e),wde=e=>Gm(e).slice(8,-1),j_=e=>Gm(e)==="[object Object]",o5=e=>Or(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Lh=Ca(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ede=Ca("bind,cloak,else-if,else,for,html,if,model,on,once,pre,show,slot,text,memo"),s5=e=>{const t=Object.create(null);return(n=>t[n]||(t[n]=e(n)))},G8e=/-\w/g,$o=s5(e=>e.replace(G8e,t=>t.slice(1).toUpperCase())),K8e=/\B([A-Z])/g,_l=s5(e=>e.replace(K8e,"-$1").toLowerCase()),B0=s5(e=>e.charAt(0).toUpperCase()+e.slice(1)),sm=s5(e=>e?`on${B0(e)}`:""),yl=(e,t)=>!Object.is(e,t),am=(e,...t)=>{for(let n=0;n{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:r,value:n})},zb=e=>{const t=parseFloat(e);return isNaN(t)?e:t},Ub=e=>{const t=Or(e)?Number(e):NaN;return isNaN(t)?e:t};let Bte;const V_=()=>Bte||(Bte=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),q8e=/^[_$a-zA-Z\xA0-\uFFFF][_$a-zA-Z0-9\xA0-\uFFFF]*$/;function Y8e(e){return q8e.test(e)?`__props.${e}`:`__props[${JSON.stringify(e)}]`}function X8e(e,t){return e+JSON.stringify(t,(n,r)=>typeof r=="function"?r.toString():r)}const Z8e={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"},J8e={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"},Q8e={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"},eTe={STABLE:1,1:"STABLE",DYNAMIC:2,2:"DYNAMIC",FORWARDED:3,3:"FORWARDED"},tTe={1:"STABLE",2:"DYNAMIC",3:"FORWARDED"},nTe="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(nTe),rTe=xU,Nte=2;function Tde(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-Nte;c<=l+Nte||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 v=t-(a-(h+p)),g=Math.max(1,n>a?h-v:n-t);s.push(" | "+" ".repeat(v)+"^".repeat(g))}else if(c>l){if(n>a){const v=Math.max(Math.min(n-a,h),1);s.push(" | "+"^".repeat(v))}a+=h+p}}break}return s.join(` `)}function Ge(e){if(Yn(e)){const t={};for(let n=0;n{if(n){const r=n.split(oTe);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function aTe(e){if(!e)return"";if(Or(e))return e;let t="";for(const n in e){const r=e[n];if(Or(r)||typeof r=="number"){const o=n.startsWith("--")?n:_l(n);t+=`${o}:${r};`}}return t}function ue(e){let t="";if(Or(e))t=e;else if(Yn(e))for(let n=0;n/="'\u0009\u000a\u000c\u0020]/,iP={};function pTe(e){if(iP.hasOwnProperty(e))return iP[e];const t=hTe.test(e);return t&&console.error(`unsafe attribute name: ${e}`),iP[e]=!t}const vTe={acceptCharset:"accept-charset",className:"class",htmlFor:"for",httpEquiv:"http-equiv"},mTe=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"),gTe=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"),yTe=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 bTe(e){if(e==null)return!1;const t=typeof e;return t==="string"||t==="number"||t==="boolean"}const _Te=/["'&<>]/;function STe(e){const t=""+e,n=_Te.exec(t);if(!n)return t;let r="",o,a,s=0;for(a=n.index;a||--!>|?@[\\\]^`{|}~]/g;function CTe(e,t){return e.replace(Mde,n=>t?n==='"'?'\\\\\\"':`\\\\${n}`:`\\${n}`)}function wTe(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&rFh(n,t))}const Ode=e=>!!(e&&e.__v_isRef===!0),je=e=>Or(e)?e:e==null?"":Yn(e)||Zi(e)&&(e.toString===SU||!Ir(e.toString))?Ode(e)?je(e.value):JSON.stringify(e,$de,2):String(e),$de=(e,t)=>Ode(t)?$de(e,t.value):om(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,o],a)=>(n[oP(r,a)+" =>"]=o,n),{})}:$0(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>oP(n))}:Jl(t)?oP(t):Zi(t)&&!Yn(t)&&!j_(t)?String(t):t,oP=(e,t="")=>{var n;return Jl(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};function Bde(e){return e==null?"initial":typeof e=="string"?e===""?" ":e:String(e)}const ETe=Object.freeze(Object.defineProperty({__proto__:null,EMPTY_ARR:im,EMPTY_OBJ:Ti,NO:Xv,NOOP:ka,PatchFlagNames:J8e,PatchFlags:Z8e,ShapeFlags:Q8e,SlotFlags:eTe,camelize:$o,capitalize:B0,cssVarNameEscapeSymbolsRE:Mde,def:kU,escapeHtml:STe,escapeHtmlComment:xTe,extend:Ci,genCacheKey:X8e,genPropsAccessExp:Y8e,generateCodeFrame:Tde,getEscapedCssVarName:CTe,getGlobalThis:V_,hasChanged:yl,hasOwn:qi,hyphenate:_l,includeBooleanAttr:wU,invokeArrayFns:am,isArray:Yn,isBooleanAttr:fTe,isBuiltInDirective:Ede,isDate:xj,isFunction:Ir,isGloballyAllowed:xU,isGloballyWhitelisted:rTe,isHTMLTag:Ade,isIntegerKey:o5,isKnownHtmlAttr:mTe,isKnownMathMLAttr:yTe,isKnownSvgAttr:gTe,isMap:om,isMathMLTag:Lde,isModelListener:n5,isObject:Zi,isOn:O0,isPlainObject:j_,isPromise:i5,isRegExp:Cde,isRenderableAttrValue:bTe,isReservedProp:Lh,isSSRSafeAttrName:pTe,isSVGTag:Ide,isSet:$0,isSpecialBooleanAttr:Rde,isString:Or,isSymbol:Jl,isVoidTag:Dde,looseEqual:Fh,looseIndexOf:z_,looseToNumber:zb,makeMap:Ca,normalizeClass:ue,normalizeCssVarValue:Bde,normalizeProps:Yi,normalizeStyle:Ge,objectToString:SU,parseStringStyle:CU,propsToAttrMap:vTe,remove:r5,slotFlagsText:tTe,stringifyStyle:aTe,toDisplayString:je,toHandlerKey:sm,toNumber:Ub,toRawType:wde,toTypeString:Gm},Symbol.toStringTag,{value:"Module"}));/** * @vue/reactivity v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let hl;class EU{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=hl,!t&&hl&&(this.index=(hl.scopes||(hl.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&&(hl=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(G4){let t=G4;for(G4=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;W4;){let t=W4;for(W4=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 jde(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function Vde(e){let t,n=e.depsTail,r=n;for(;r;){const o=r.prevDep;r.version===-1?(r===n&&(n=o),DU(r),TTe(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&&(zde(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function zde(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===Wb)||(e.globalVersion=Wb,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!Cj(e))))return;e.flags|=2;const t=e.dep,n=Ro,r=Id;Ro=e,Id=!0;try{jde(e);const o=e.fn(e._value);(t.version===0||yl(o,e._value))&&(e.flags|=128,e._value=o,t.version++)}catch(o){throw t.version++,o}finally{Ro=n,Id=r,Vde(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 TTe(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}function ATe(e,t){e.effect instanceof Hb&&(e=e.effect.fn);const n=new Hb(e);t&&Ci(n,t);try{n.run()}catch(o){throw n.stop(),o}const r=n.run.bind(n);return r.effect=n,r}function ITe(e){e.effect.stop()}let Id=!0;const Ude=[];function jh(){Ude.push(Id),Id=!1}function Vh(){const e=Ude.pop();Id=e===void 0?!0:e}function Fte(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=Ro;Ro=void 0;try{t()}finally{Ro=n}}}let Wb=0,LTe=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 l5{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(!Ro||!Id||Ro===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==Ro)n=this.activeLink=new LTe(Ro,this),Ro.deps?(n.prevDep=Ro.depsTail,Ro.depsTail.nextDep=n,Ro.depsTail=n):Ro.deps=Ro.depsTail=n,Hde(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=Ro.depsTail,n.nextDep=void 0,Ro.depsTail.nextDep=n,Ro.depsTail=n,Ro.deps===n&&(Ro.deps=r)}return n}trigger(t){this.version++,Wb++,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 Hde(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)Hde(r)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const S8=new WeakMap,lm=Symbol(""),wj=Symbol(""),Gb=Symbol("");function bl(e,t,n){if(Id&&Ro){let r=S8.get(e);r||S8.set(e,r=new Map);let o=r.get(n);o||(r.set(n,o=new l5),o.map=r,o.key=n),o.track()}}function bh(e,t,n,r,o,a){const s=S8.get(e);if(!s){Wb++;return}const l=c=>{c&&c.trigger()};if(IU(),t==="clear")s.forEach(l);else{const c=Yn(e),d=c&&o5(n);if(c&&n==="length"){const h=Number(r);s.forEach((p,v)=>{(v==="length"||v===Gb||!Jl(v)&&v>=h)&&l(p)})}else switch((n!==void 0||s.has(void 0))&&l(s.get(n)),d&&l(s.get(Gb)),t){case"add":c?d&&l(s.get("length")):(l(s.get(lm)),om(e)&&l(s.get(wj)));break;case"delete":c||(l(s.get(lm)),om(e)&&l(s.get(wj)));break;case"set":om(e)&&l(s.get(lm));break}}LU()}function DTe(e,t){const n=S8.get(e);return n&&n.get(t)}function o1(e){const t=Bi(e);return t===e?t:(bl(t,"iterate",Gb),lc(e)?t:t.map(Fa))}function u5(e){return bl(e=Bi(e),"iterate",Gb),e}const PTe={__proto__:null,[Symbol.iterator](){return aP(this,Symbol.iterator,Fa)},concat(...e){return o1(this).concat(...e.map(t=>Yn(t)?o1(t):t))},entries(){return aP(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 lP(this,"includes",e)},indexOf(...e){return lP(this,"indexOf",e)},join(e){return o1(this).join(e)},lastIndexOf(...e){return lP(this,"lastIndexOf",e)},map(e,t){return sh(this,"map",e,t,void 0,arguments)},pop(){return H2(this,"pop")},push(...e){return H2(this,"push",e)},reduce(e,...t){return jte(this,"reduce",e,t)},reduceRight(e,...t){return jte(this,"reduceRight",e,t)},shift(){return H2(this,"shift")},some(e,t){return sh(this,"some",e,t,void 0,arguments)},splice(...e){return H2(this,"splice",e)},toReversed(){return o1(this).toReversed()},toSorted(e){return o1(this).toSorted(e)},toSpliced(...e){return o1(this).toSpliced(...e)},unshift(...e){return H2(this,"unshift",e)},values(){return aP(this,"values",Fa)}};function aP(e,t,n){const r=u5(e),o=r[t]();return r!==e&&!lc(e)&&(o._next=o.next,o.next=()=>{const a=o._next();return a.done||(a.value=n(a.value)),a}),o}const RTe=Array.prototype;function sh(e,t,n,r,o,a){const s=u5(e),l=s!==e&&!lc(e),c=s[t];if(c!==RTe[t]){const p=c.apply(e,a);return l?Fa(p):p}let d=n;s!==e&&(l?d=function(p,v){return n.call(this,Fa(p),v,e)}:n.length>2&&(d=function(p,v){return n.call(this,p,v,e)}));const h=c.call(s,d,r);return l&&o?o(h):h}function jte(e,t,n,r){const o=u5(e);let a=n;return o!==e&&(lc(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 lP(e,t,n){const r=Bi(e);bl(r,"iterate",Gb);const o=r[t](...n);return(o===-1||o===!1)&&f5(n[0])?(n[0]=Bi(n[0]),r[t](...n)):o}function H2(e,t,n=[]){jh(),IU();const r=Bi(e)[t].apply(e,n);return LU(),Vh(),r}const MTe=Ca("__proto__,__v_isRef,__isVue"),Wde=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Jl));function OTe(e){Jl(e)||(e=String(e));const t=Bi(this);return bl(t,"has",e),t.hasOwnProperty(e)}class Gde{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?Jde:Zde:a?Xde:Yde).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(r)?t:void 0;const s=Yn(t);if(!o){let c;if(s&&(c=PTe[n]))return c;if(n==="hasOwnProperty")return OTe}const l=Reflect.get(t,n,Bo(t)?t:r);if((Jl(n)?Wde.has(n):MTe(n))||(o||bl(t,"get",n),a))return l;if(Bo(l)){const c=s&&o5(n)?l:l.value;return o&&Zi(c)?Kb(c):c}return Zi(l)?o?Kb(l):Xt(l):l}}class Kde extends Gde{constructor(t=!1){super(!1,t)}set(t,n,r,o){let a=t[n];if(!this._isShallow){const c=zh(a);if(!lc(r)&&!zh(r)&&(a=Bi(a),r=Bi(r)),!Yn(t)&&Bo(a)&&!Bo(r))return c||(a.value=r),!0}const s=Yn(t)&&o5(n)?Number(n)e,ix=e=>Reflect.getPrototypeOf(e);function jTe(e,t,n){return function(...r){const o=this.__v_raw,a=Bi(o),s=om(a),l=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,d=o[e](...r),h=n?Ej:t?k8:Fa;return!t&&bl(a,"iterate",c?wj:lm),{next(){const{value:p,done:v}=d.next();return v?{value:p,done:v}:{value:l?[h(p[0]),h(p[1])]:h(p),done:v}},[Symbol.iterator](){return this}}}}function ox(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function VTe(e,t){const n={get(o){const a=this.__v_raw,s=Bi(a),l=Bi(o);e||(yl(o,l)&&bl(s,"get",o),bl(s,"get",l));const{has:c}=ix(s),d=t?Ej:e?k8: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&&bl(Bi(o),"iterate",lm),o.size},has(o){const a=this.__v_raw,s=Bi(a),l=Bi(o);return e||(yl(o,l)&&bl(s,"has",o),bl(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=Bi(l),d=t?Ej:e?k8:Fa;return!e&&bl(c,"iterate",lm),l.forEach((h,p)=>o.call(a,d(h),d(p),s))}};return Ci(n,e?{add:ox("add"),set:ox("set"),delete:ox("delete"),clear:ox("clear")}:{add(o){!t&&!lc(o)&&!zh(o)&&(o=Bi(o));const a=Bi(this);return ix(a).has.call(a,o)||(a.add(o),bh(a,"add",o,o)),this},set(o,a){!t&&!lc(a)&&!zh(a)&&(a=Bi(a));const s=Bi(this),{has:l,get:c}=ix(s);let d=l.call(s,o);d||(o=Bi(o),d=l.call(s,o));const h=c.call(s,o);return s.set(o,a),d?yl(a,h)&&bh(s,"set",o,a):bh(s,"add",o,a),this},delete(o){const a=Bi(this),{has:s,get:l}=ix(a);let c=s.call(a,o);c||(o=Bi(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=Bi(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]=jTe(o,e,t)}),n}function c5(e,t){const n=VTe(e,t);return(r,o,a)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(qi(n,o)&&o in r?n:r,o,a)}const zTe={get:c5(!1,!1)},UTe={get:c5(!1,!0)},HTe={get:c5(!0,!1)},WTe={get:c5(!0,!0)},Yde=new WeakMap,Xde=new WeakMap,Zde=new WeakMap,Jde=new WeakMap;function GTe(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function KTe(e){return e.__v_skip||!Object.isExtensible(e)?0:GTe(wde(e))}function Xt(e){return zh(e)?e:d5(e,!1,$Te,zTe,Yde)}function PU(e){return d5(e,!1,NTe,UTe,Xde)}function Kb(e){return d5(e,!0,BTe,HTe,Zde)}function qTe(e){return d5(e,!0,FTe,WTe,Jde)}function d5(e,t,n,r,o){if(!Zi(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const a=KTe(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 yf(e){return zh(e)?yf(e.__v_raw):!!(e&&e.__v_isReactive)}function zh(e){return!!(e&&e.__v_isReadonly)}function lc(e){return!!(e&&e.__v_isShallow)}function f5(e){return e?!!e.__v_raw:!1}function Bi(e){const t=e&&e.__v_raw;return t?Bi(t):e}function h5(e){return!qi(e,"__v_skip")&&Object.isExtensible(e)&&kU(e,"__v_skip",!0),e}const Fa=e=>Zi(e)?Xt(e):e,k8=e=>Zi(e)?Kb(e):e;function Bo(e){return e?e.__v_isRef===!0:!1}function fe(e){return Qde(e,!1)}function d0(e){return Qde(e,!0)}function Qde(e,t){return Bo(e)?e:new YTe(e,t)}class YTe{constructor(t,n){this.dep=new l5,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Bi(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||lc(t)||zh(t);t=r?t:Bi(t),yl(t,n)&&(this._rawValue=t,this._value=r?t:Fa(t),this.dep.trigger())}}function XTe(e){e.dep&&e.dep.trigger()}function et(e){return Bo(e)?e.value:e}function ZTe(e){return Ir(e)?e():et(e)}const JTe={get:(e,t,n)=>t==="__v_raw"?e:et(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const o=e[t];return Bo(o)&&!Bo(n)?(o.value=n,!0):Reflect.set(e,t,n,r)}};function RU(e){return yf(e)?e:new Proxy(e,JTe)}class QTe{constructor(t){this.__v_isRef=!0,this._value=void 0;const n=this.dep=new l5,{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 efe(e){return new QTe(e)}function nn(e){const t=Yn(e)?new Array(e.length):{};for(const n in e)t[n]=tfe(e,n);return t}class e5e{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 DTe(Bi(this._object),this._key)}}class t5e{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 Lu(e,t,n){return Bo(e)?e:Ir(e)?new t5e(e):Zi(e)&&arguments.length>1?tfe(e,t,n):fe(e)}function tfe(e,t,n){const r=e[t];return Bo(r)?r:new e5e(e,t,n)}class n5e{constructor(t,n,r){this.fn=t,this.setter=n,this._value=void 0,this.dep=new l5(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=Wb-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=r}notify(){if(this.flags|=16,!(this.flags&8)&&Ro!==this)return Fde(this,!0),!0}get value(){const t=this.dep.track();return zde(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function r5e(e,t,n=!1){let r,o;return Ir(e)?r=e:(r=e.get,o=e.set),new n5e(r,o,n)}const i5e={GET:"get",HAS:"has",ITERATE:"iterate"},o5e={SET:"set",ADD:"add",DELETE:"delete",CLEAR:"clear"},sx={},x8=new WeakMap;let Gp;function s5e(){return Gp}function nfe(e,t=!1,n=Gp){if(n){let r=x8.get(n);r||x8.set(n,r=[]),r.push(e)}}function a5e(e,t,n=Ti){const{immediate:r,deep:o,once:a,scheduler:s,augmentJob:l,call:c}=n,d=_=>o?_:lc(_)||o===!1||o===0?_h(_,1):_h(_);let h,p,v,g,y=!1,S=!1;if(Bo(e)?(p=()=>e.value,y=lc(e)):yf(e)?(p=()=>d(e),y=!0):Yn(e)?(S=!0,y=e.some(_=>yf(_)||lc(_)),p=()=>e.map(_=>{if(Bo(_))return _.value;if(yf(_))return d(_);if(Ir(_))return c?c(_,2):_()})):Ir(e)?t?p=c?()=>c(e,2):e:p=()=>{if(v){jh();try{v()}finally{Vh()}}const _=Gp;Gp=h;try{return c?c(e,3,[g]):e(g)}finally{Gp=_}}:p=ka,t&&o){const _=p,T=o===!0?1/0:o;p=()=>_h(_(),T)}const k=a5(),C=()=>{h.stop(),k&&k.active&&r5(k.effects,h)};if(a&&t){const _=t;t=(...T)=>{_(...T),C()}}let x=S?new Array(e.length).fill(sx):sx;const E=_=>{if(!(!(h.flags&1)||!h.dirty&&!_))if(t){const T=h.run();if(o||y||(S?T.some((D,P)=>yl(D,x[P])):yl(T,x))){v&&v();const D=Gp;Gp=h;try{const P=[T,x===sx?void 0:S&&x[0]===sx?[]:x,g];x=T,c?c(t,3,P):t(...P)}finally{Gp=D}}}else h.run()};return l&&l(E),h=new Hb(p),h.scheduler=s?()=>s(E,!1):E,g=_=>nfe(_,!1,h),v=h.onStop=()=>{const _=x8.get(h);if(_){if(c)c(_,4);else for(const T of _)T();x8.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||!Zi(e)||e.__v_skip||(n=n||new Map,(n.get(e)||0)>=t))return e;if(n.set(e,t),t--,Bo(e))_h(e.value,t,n);else if(Yn(e))for(let r=0;r{_h(r,t,n)});else if(j_(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 rfe=[];function l5e(e){rfe.push(e)}function u5e(){rfe.pop()}function c5e(e,t){}const d5e={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"},f5e={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 t3(e,t,n,r){try{return r?e(...r):e()}catch(o){Km(o,t,n)}}function Yc(e,t,n,r){if(Ir(e)){const o=t3(e,t,n,r);return o&&i5(o)&&o.catch(a=>{Km(a,t,n)}),o}if(Yn(e)){const o=[];for(let a=0;a>>1,o=Ul[r],a=Yb(o);a=Yb(n)?Ul.push(e):Ul.splice(p5e(t),0,e),e.flags|=1,ofe()}}function ofe(){C8||(C8=ife.then(sfe))}function qb(e){Yn(e)?ey.push(...e):Kp&&e.id===-1?Kp.splice(M1+1,0,e):e.flags&1||(ey.push(e),e.flags|=1),ofe()}function Vte(e,t,n=rf+1){for(;nYb(n)-Yb(r));if(ey.length=0,Kp){Kp.push(...t);return}for(Kp=t,M1=0;M1e.id==null?e.flags&2?-1:1/0:e.id;function sfe(e){try{for(rf=0;rfO1.emit(o,...a)),ax=[]):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=>{afe(a,t)}),setTimeout(()=>{O1||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ax=[])},3e3)):ax=[]}let Ha=null,p5=null;function Xb(e){const t=Ha;return Ha=e,p5=e&&e.type.__scopeId||null,t}function v5e(e){p5=e}function m5e(){p5=null}const g5e=e=>de;function de(e,t=Ha,n){if(!t||e._n)return e;const r=(...o)=>{r._d&&Qb(-1);const a=Xb(t);let s;try{s=e(...o)}finally{Xb(a),r._d&&Qb(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function Ai(e,t){if(Ha===null)return e;const n=W_(Ha),r=e.dirs||(e.dirs=[]);for(let o=0;oe.__isTeleport,K4=e=>e&&(e.disabled||e.disabled===""),zte=e=>e&&(e.defer||e.defer===""),Ute=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Hte=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,Tj=(e,t)=>{const n=e&&e.to;return Or(n)?t?t(n):null:n},cfe={name:"Teleport",__isTeleport:!0,process(e,t,n,r,o,a,s,l,c,d){const{mc:h,pc:p,pbc:v,o:{insert:g,querySelector:y,createText:S,createComment:k}}=d,C=K4(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=(O,L)=>{x&16&&h(E,O,L,o,a,s,l,c)},M=()=>{const O=t.target=Tj(t.props,y),L=dfe(O,t,S,g);O&&(s!=="svg"&&Ute(O)?s="svg":s!=="mathml"&&Hte(O)&&(s="mathml"),o&&o.isCE&&(o.ce._teleportTargets||(o.ce._teleportTargets=new Set)).add(O),C||(P(O,L),WC(t,!1)))};C&&(P(n,D),WC(t,!0)),zte(t.props)?(t.el.__isMounted=!1,la(()=>{M(),delete t.el.__isMounted},a)):M()}else{if(zte(t.props)&&e.el.__isMounted===!1){la(()=>{cfe.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=K4(e.props),O=M?n:D,L=M?T:P;if(s==="svg"||Ute(D)?s="svg":(s==="mathml"||Hte(D))&&(s="mathml"),_?(v(e.dynamicChildren,_,O,o,a,s,l),KU(e,t,!0)):c||p(e,t,O,L,o,a,s,l,!1),C)M?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):lx(t,n,T,d,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const B=t.target=Tj(t.props,y);B&&lx(t,B,null,d,0)}else M&&lx(t,D,P,d,1);WC(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:v}=e;if(p&&(o(d),o(h)),a&&o(c),s&16){const g=a||!K4(v);for(let y=0;y{e.isMounted=!0}),Io(()=>{e.isUnmounting=!0}),e}const Cc=[Function,Array],$U={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Cc,onEnter:Cc,onAfterEnter:Cc,onEnterCancelled:Cc,onBeforeLeave:Cc,onLeave:Cc,onAfterLeave:Cc,onLeaveCancelled:Cc,onBeforeAppear:Cc,onAppear:Cc,onAfterAppear:Cc,onAppearCancelled:Cc},ffe=e=>{const t=e.subTree;return t.component?ffe(t.component):t},b5e={name:"BaseTransition",props:$U,setup(e,{slots:t}){const n=_o(),r=OU();return()=>{const o=t.default&&v5(t.default(),!0);if(!o||!o.length)return;const a=hfe(o),s=Bi(e),{mode:l}=s;if(r.isLeaving)return uP(a);const c=Wte(a);if(!c)return uP(a);let d=wy(c,s,r,n,p=>d=p);c.type!==ks&&Uh(c,d);let h=n.subTree&&Wte(n.subTree);if(h&&h.type!==ks&&!Cd(h,c)&&ffe(n).type!==ks){let p=wy(h,s,r,n);if(Uh(h,p),l==="out-in"&&c.type!==ks)return r.isLeaving=!0,p.afterLeave=()=>{r.isLeaving=!1,n.job.flags&8||n.update(),delete p.afterLeave,h=void 0},uP(a);l==="in-out"&&c.type!==ks?p.delayLeave=(v,g,y)=>{const S=vfe(r,h);S[String(h.key)]=h,v[yh]=()=>{g(),v[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 hfe(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ks){t=n;break}}return t}const pfe=b5e;function vfe(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 wy(e,t,n,r,o){const{appear:a,mode:s,persisted:l=!1,onBeforeEnter:c,onEnter:d,onAfterEnter:h,onEnterCancelled:p,onBeforeLeave:v,onLeave:g,onAfterLeave:y,onLeaveCancelled:S,onBeforeAppear:k,onAppear:C,onAfterAppear:x,onAppearCancelled:E}=t,_=String(e.key),T=vfe(n,e),D=(O,L)=>{O&&Yc(O,r,9,L)},P=(O,L)=>{const B=L[1];D(O,L),Yn(O)?O.every(j=>j.length<=1)&&B():O.length<=1&&B()},M={mode:s,persisted:l,beforeEnter(O){let L=c;if(!n.isMounted)if(a)L=k||c;else return;O[yh]&&O[yh](!0);const B=T[_];B&&Cd(e,B)&&B.el[yh]&&B.el[yh](),D(L,[O])},enter(O){let L=d,B=h,j=p;if(!n.isMounted)if(a)L=C||d,B=x||h,j=E||p;else return;let W=!1;const H=O[ux]=K=>{W||(W=!0,K?D(j,[O]):D(B,[O]),M.delayedLeave&&M.delayedLeave(),O[ux]=void 0)};L?P(L,[O,H]):H()},leave(O,L){const B=String(e.key);if(O[ux]&&O[ux](!0),n.isUnmounting)return L();D(v,[O]);let j=!1;const W=O[yh]=H=>{j||(j=!0,L(),H?D(S,[O]):D(y,[O]),O[yh]=void 0,T[B]===e&&delete T[B])};T[B]=e,g?P(g,[O,W]):W()},clone(O){const L=wy(O,t,n,r,o);return o&&o(L),L}};return M}function uP(e){if(U_(e))return e=wl(e),e.children=null,e}function Wte(e){if(!U_(e))return ufe(e.type)&&e.children?hfe(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&&Ir(n.default))return n.default()}}function Uh(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Uh(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 v5(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 E8=new WeakMap;function ty(e,t,n,r,o=!1){if(Yn(e)){e.forEach((y,S)=>ty(y,t&&(Yn(t)?t[S]:t),n,r,o));return}if(f0(r)&&!o){r.shapeFlag&512&&r.type.__asyncResolved&&r.component.subTree.component&&ty(e,t,n,r.component.subTree);return}const a=r.shapeFlag&4?W_(r.component):r.el,s=o?null:a,{i:l,r:c}=e,d=t&&t.r,h=l.refs===Ti?l.refs={}:l.refs,p=l.setupState,v=Bi(p),g=p===Ti?Xv:y=>qi(v,y);if(d!=null&&d!==c){if(Gte(t),Or(d))h[d]=null,g(d)&&(p[d]=null);else if(Bo(d)){d.value=null;const y=t;y.k&&(h[y.k]=null)}}if(Ir(c))t3(c,l,12,[s,h]);else{const y=Or(c),S=Bo(c);if(y||S){const k=()=>{if(e.f){const C=y?g(c)?p[c]:h[c]:c.value;if(o)Yn(C)&&r5(C,a);else if(Yn(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(),E8.delete(e)};C.id=-1,E8.set(e,C),la(C,n)}else Gte(e),k()}}}function Gte(e){const t=E8.get(e);t&&(t.flags|=8,E8.delete(e))}let Kte=!1;const s1=()=>{Kte||(console.error("Hydration completed but contains mismatches."),Kte=!0)},k5e=e=>e.namespaceURI.includes("svg")&&e.tagName!=="foreignObject",x5e=e=>e.namespaceURI.includes("MathML"),cx=e=>{if(e.nodeType===1){if(k5e(e))return"svg";if(x5e(e))return"mathml"}},z1=e=>e.nodeType===8;function C5e(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,_),w8(),_._vnode=E;return}p(_.firstChild,E,null,null,null),w8(),_._vnode=E},p=(E,_,T,D,P,M=!1)=>{M=M||!!_.dynamicChildren;const O=z1(E)&&E.data==="[",L=()=>S(E,_,T,D,P,O),{type:B,ref:j,shapeFlag:W,patchFlag:H}=_;let K=E.nodeType;_.el=E,H===-2&&(M=!1,_.dynamicChildren=null);let Y=null;switch(B){case h0:K!==3?_.children===""?(c(_.el=o(""),s(E),E),Y=E):Y=L():(E.data!==_.children&&(s1(),E.data=_.children),Y=a(E));break;case ks:x(E)?(Y=a(E),C(_.el=E.content.firstChild,E,T)):K!==8||O?Y=L():Y=a(E);break;case cm:if(O&&(E=a(E),K=E.nodeType),K===1||K===3){Y=E;const ne=!_.children.length;for(let X=0;X<_.staticCount;X++)ne&&(_.children+=Y.nodeType===1?Y.outerHTML:Y.data),X===_.staticCount-1&&(_.anchor=Y),Y=a(Y);return O?a(Y):Y}else L();break;case Bt:O?Y=y(E,_,T,D,P,M):Y=L();break;default:if(W&1)(K!==1||_.type.toLowerCase()!==E.tagName.toLowerCase())&&!x(E)?Y=L():Y=v(E,_,T,D,P,M);else if(W&6){_.slotScopeIds=P;const ne=s(E);if(O?Y=k(E):z1(E)&&E.data==="teleport start"?Y=k(E,E.data,"teleport end"):Y=a(E),t(_,ne,null,T,D,cx(ne),M),f0(_)&&!_.type.__asyncResolved){let X;O?(X=$(Bt),X.anchor=Y?Y.previousSibling:ne.lastChild):X=E.nodeType===3?Ue(""):$("div"),X.el=E,_.component.subTree=X}}else W&64?K!==8?Y=L():Y=_.type.hydrate(E,_,T,D,P,M,e,g):W&128&&(Y=_.type.hydrate(E,_,T,D,cx(s(E)),P,M,e,p))}return j!=null&&ty(j,null,D,_),Y},v=(E,_,T,D,P,M)=>{M=M||!!_.dynamicChildren;const{type:O,props:L,patchFlag:B,shapeFlag:j,dirs:W,transition:H}=_,K=O==="input"||O==="option";if(K||B!==-1){W&&sf(_,null,T,"created");let Y=!1;if(x(E)){Y=Nfe(null,H)&&T&&T.vnode.props&&T.vnode.props.appear;const X=E.content.firstChild;if(Y){const U=X.getAttribute("class");U&&(X.$cls=U),H.beforeEnter(X)}C(X,E,T),_.el=E=X}if(j&16&&!(L&&(L.innerHTML||L.textContent))){let X=g(E.firstChild,_,E,T,D,P,M);for(;X;){dx(E,1)||s1();const U=X;X=X.nextSibling,l(U)}}else if(j&8){let X=_.children;X[0]===` `&&(E.tagName==="PRE"||E.tagName==="TEXTAREA")&&(X=X.slice(1)),E.textContent!==X&&(dx(E,0)||s1(),E.textContent=_.children)}if(L){if(K||!M||B&48){const X=E.tagName.includes("-");for(const U in L)(K&&(U.endsWith("value")||U==="indeterminate")||O0(U)&&!Lh(U)||U[0]==="."||X)&&r(E,U,null,L[U],void 0,T)}else if(L.onClick)r(E,"onClick",null,L.onClick,void 0,T);else if(B&4&&yf(L.style))for(const X in L.style)L.style[X]}let ne;(ne=L&&L.onVnodeBeforeMount)&&mu(ne,T,_),W&&sf(_,null,T,"beforeMount"),((ne=L&&L.onVnodeMounted)||W||Y)&&Kfe(()=>{ne&&mu(ne,T,_),Y&&H.enter(E),W&&sf(_,null,T,"mounted")},D)}return E.nextSibling},g=(E,_,T,D,P,M,O)=>{O=O||!!_.dynamicChildren;const L=_.children,B=L.length;for(let j=0;j{const{slotScopeIds:O}=_;O&&(P=P?P.concat(O):O);const L=s(E),B=g(a(E),_,L,T,D,P,M);return B&&z1(B)&&B.data==="]"?a(_.anchor=B):(s1(),c(_.anchor=d("]"),L,B),B)},S=(E,_,T,D,P,M)=>{if(dx(E.parentElement,1)||s1(),_.el=null,M){const B=k(E);for(;;){const j=a(E);if(j&&j!==B)l(j);else break}}const O=a(E),L=s(E);return l(E),n(null,_,L,O,T,D,cx(L),P),T&&(T.vnode.el=_.el,y5(T,_.el)),O},k=(E,_="[",T="]")=>{let D=0;for(;E;)if(E=a(E),E&&z1(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 qte="data-allow-mismatch",w5e={0:"text",1:"children",2:"class",3:"style",4:"attribute"};function dx(e,t){if(t===0||t===1)for(;e&&!e.hasAttribute(qte);)e=e.parentElement;const n=e&&e.getAttribute(qte);if(n==null)return!1;if(n==="")return!0;{const r=n.split(",");return t===0&&r.includes("children")?!0:r.includes(w5e[t])}}const E5e=V_().requestIdleCallback||(e=>setTimeout(e,1)),T5e=V_().cancelIdleCallback||(e=>clearTimeout(e)),A5e=(e=1e4)=>t=>{const n=E5e(t,{timeout:e});return()=>T5e(n)};function I5e(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(I5e(o))return t(),r.disconnect(),!1;r.observe(o)}}),()=>r.disconnect()},D5e=e=>t=>{if(e){const n=matchMedia(e);if(n.matches)t();else return n.addEventListener("change",t,{once:!0}),()=>n.removeEventListener("change",t)}},P5e=(e=[])=>(t,n)=>{Or(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 R5e(e,t){if(z1(e)&&e.data==="["){let n=1,r=e.nextSibling;for(;r;){if(r.nodeType===1){if(t(r)===!1)break}else if(z1(r))if(r.data==="]"){if(--n===0)break}else r.data==="["&&n++;r=r.nextSibling}}else t(e)}const f0=e=>!!e.type.__asyncLoader;function Ym(e){Ir(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 v=()=>(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(v()),()=>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 Se({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=>R5e(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()=>cP(h,y);const S=E=>{d=null,Km(E,y,13,!r)};if(l&&y.suspense||Ey)return g().then(E=>()=>cP(E,y)).catch(E=>(S(E),()=>r?$(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&&U_(y.parent.vnode)&&y.parent.update()}).catch(E=>{S(E),C.value=E}),()=>{if(k.value&&h)return cP(h,y);if(C.value&&r)return $(r,{error:C.value});if(n&&!x.value)return $(n)}}})}function cP(e,t){const{ref:n,props:r,children:o,ce:a}=t.vnode,s=$(e,r,o);return s.ref=n,s.ce=a,delete t.vnode.ce,s}const U_=e=>e.type.__isKeepAlive,M5e={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=_o(),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,v=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&&am(P.a);const M=x.props&&x.props.onVnodeMounted;M&&mu(M,P.parent,x)},l)},r.deactivate=x=>{const E=x.component;A8(E.m),A8(E.a),d(x,v,null,1,l),la(()=>{E.da&&am(E.da);const _=x.props&&x.props.onVnodeUnmounted;_&&mu(_,E.parent,x),E.isDeactivated=!0},l)};function g(x){dP(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||!Cd(E,s))?g(E):s&&dP(s),o.delete(x),a.delete(x)}Rt(()=>[e.include,e.exclude],([x,E])=>{x&&y(_=>w4(x,_)),E&&y(_=>!w4(E,_))},{flush:"post",deep:!0});let k=null;const C=()=>{k!=null&&(I8(n.subTree.type)?la(()=>{o.set(k,fx(n.subTree))},n.subTree.suspense):o.set(k,fx(n.subTree)))};return bn(C),Qa(C),Io(()=>{o.forEach(x=>{const{subTree:E,suspense:_}=n,T=fx(E);if(x.type===T.type&&x.key===T.key){dP(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(!Wi(E)||!(E.shapeFlag&4)&&!(E.shapeFlag&128))return s=null,E;let _=fx(E);if(_.type===ks)return s=null,_;const T=_.type,D=Nj(f0(_)?_.type.__asyncResolved||{}:T),{include:P,exclude:M,max:O}=e;if(P&&(!D||!w4(P,D))||M&&D&&w4(M,D))return _.shapeFlag&=-257,s=_,E;const L=_.key==null?T:_.key,B=o.get(L);return _.el&&(_=wl(_),E.shapeFlag&128&&(E.ssContent=_)),k=L,B?(_.el=B.el,_.component=B.component,_.transition&&Uh(_,_.transition),_.shapeFlag|=512,a.delete(L),a.add(L)):(a.add(L),O&&a.size>parseInt(O,10)&&S(a.values().next().value)),_.shapeFlag|=256,s=_,I8(E.type)?E:_}}},O5e=M5e;function w4(e,t){return Yn(e)?e.some(n=>w4(n,t)):Or(e)?e.split(",").includes(t):Cde(e)?(e.lastIndex=0,e.test(t)):!1}function NU(e,t){mfe(e,"a",t)}function FU(e,t){mfe(e,"da",t)}function mfe(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(m5(t,r,n),n){let o=n.parent;for(;o&&o.parent;)U_(o.parent.vnode)&&$5e(r,t,n,o),o=o.parent}}function $5e(e,t,n,r){const o=m5(t,e,r,!0);gi(()=>{r5(r[t],o)},n)}function dP(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function fx(e){return e.shapeFlag&128?e.ssContent:e}function m5(e,t,n=Ua,r=!1){if(n){const o=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...s)=>{jh();const l=Tm(n),c=Yc(t,n,e,s);return l(),Vh(),c});return r?o.unshift(a):o.push(a),a}}const qh=e=>(t,n=Ua)=>{(!Ey||e==="sp")&&m5(e,(...r)=>t(...r),n)},gfe=qh("bm"),bn=qh("m"),jU=qh("bu"),Qa=qh("u"),Io=qh("bum"),gi=qh("um"),yfe=qh("sp"),bfe=qh("rtg"),_fe=qh("rtc");function Sfe(e,t=Ua){m5("ec",e,t)}const VU="components",B5e="directives";function Ie(e,t){return zU(VU,e,!0,t)||e}const kfe=Symbol.for("v-ndc");function Wa(e){return Or(e)?zU(VU,e,!1)||e:e||kfe}function n3(e){return zU(B5e,e)}function zU(e,t,n=!0,r=!1){const o=Ha||Ua;if(o){const a=o.type;if(e===VU){const l=Nj(a,!1);if(l&&(l===t||l===$o(t)||l===B0($o(t))))return a}const s=Yte(o[e]||a[e],t)||Yte(o.appContext[e],t);return!s&&r?a:s}}function Yte(e,t){return e&&(e[t]||e[$o(t)]||e[B0($o(t))])}function vn(e,t,n,r){let o;const a=n&&n[r],s=Yn(e);if(s||Or(e)){const l=s&&yf(e);let c=!1,d=!1;l&&(c=!lc(e),d=zh(e),e=u5(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 vt(e,t,n={},r,o){if(Ha.ce||Ha.parent&&f0(Ha.parent)&&Ha.parent.ce){const d=Object.keys(n).length>0;return t!=="default"&&(n.name=t),z(),qe(Bt,null,[$("slot",n,r&&r())],d?-2:64)}let a=e[t];a&&a._c&&(a._d=!1),z();const s=a&&UU(a(n)),l=n.key||s&&s.key,c=qe(Bt,{key:(l&&!Jl(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 UU(e){return e.some(t=>Wi(t)?!(t.type===ks||t.type===Bt&&!UU(t.children)):!0)?e:null}function N5e(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:sm(r)]=e[r];return n}const Aj=e=>e?Jfe(e)?W_(e):Aj(e.parent):null,q4=Ci(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=>HU(e),$forceUpdate:e=>e.f||(e.f=()=>{MU(e.update)}),$nextTick:e=>e.n||(e.n=Cn.bind(e.proxy)),$watch:e=>pAe.bind(e)}),fP=(e,t)=>e!==Ti&&!e.__isScriptSetup&&qi(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(fP(r,t))return s[t]=1,r[t];if(o!==Ti&&qi(o,t))return s[t]=2,o[t];if((d=e.propsOptions[0])&&qi(d,t))return s[t]=3,a[t];if(n!==Ti&&qi(n,t))return s[t]=4,n[t];Lj&&(s[t]=0)}}const h=q4[t];let p,v;if(h)return t==="$attrs"&&bl(e.attrs,"get",""),h(e);if((p=l.__cssModules)&&(p=p[t]))return p;if(n!==Ti&&qi(n,t))return s[t]=4,n[t];if(v=c.config.globalProperties,qi(v,t))return v[t]},set({_:e},t,n){const{data:r,setupState:o,ctx:a}=e;return fP(o,t)?(o[t]=n,!0):r!==Ti&&qi(r,t)?(r[t]=n,!0):qi(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!==Ti&&l[0]!=="$"&&qi(e,l)||fP(t,l)||(c=a[0])&&qi(c,l)||qi(r,l)||qi(q4,l)||qi(o.config.globalProperties,l)||(d=s.__cssModules)&&d[l])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:qi(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},F5e=Ci({},Ij,{get(e,t){if(t!==Symbol.unscopables)return Ij.get(e,t,e)},has(e,t){return t[0]!=="_"&&!xU(t)}});function j5e(){return null}function V5e(){return null}function z5e(e){}function U5e(e){}function H5e(){return null}function W5e(){}function G5e(e,t){return null}function K5e(){return xfe().slots}function q5e(){return xfe().attrs}function xfe(e){const t=_o();return t.setupContext||(t.setupContext=the(t))}function Zb(e){return Yn(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function Y5e(e,t){const n=Zb(e);for(const r in t){if(r.startsWith("__skip"))continue;let o=n[r];o?Yn(o)||Ir(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 X5e(e,t){return!e||!t?e||t:Yn(e)&&Yn(t)?e.concat(t):Ci({},Zb(e),Zb(t))}function Z5e(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function J5e(e){const t=_o();let n=e();return Oj(),i5(n)&&(n=n.catch(r=>{throw Tm(t),r})),[n,()=>Tm(t)]}let Lj=!0;function Q5e(e){const t=HU(e),n=e.proxy,r=e.ctx;Lj=!1,t.beforeCreate&&Xte(t.beforeCreate,e,"bc");const{data:o,computed:a,methods:s,watch:l,provide:c,inject:d,created:h,beforeMount:p,mounted:v,beforeUpdate:g,updated:y,activated:S,deactivated:k,beforeDestroy:C,beforeUnmount:x,destroyed:E,unmounted:_,render:T,renderTracked:D,renderTriggered:P,errorCaptured:M,serverPrefetch:O,expose:L,inheritAttrs:B,components:j,directives:W,filters:H}=t;if(d&&eAe(d,r,null),s)for(const ne in s){const X=s[ne];Ir(X)&&(r[ne]=X.bind(n))}if(o){const ne=o.call(n,n);Zi(ne)&&(e.data=Xt(ne))}if(Lj=!0,a)for(const ne in a){const X=a[ne],U=Ir(X)?X.bind(n,n):Ir(X.get)?X.get.bind(n,n):ka,q=!Ir(X)&&Ir(X.set)?X.set.bind(n):ka,ee=F({get:U,set:q});Object.defineProperty(r,ne,{enumerable:!0,configurable:!0,get:()=>ee.value,set:re=>ee.value=re})}if(l)for(const ne in l)Cfe(l[ne],r,n,ne);if(c){const ne=Ir(c)?c.call(n):c;Reflect.ownKeys(ne).forEach(X=>{ri(X,ne[X])})}h&&Xte(h,e,"c");function Y(ne,X){Yn(X)?X.forEach(U=>ne(U.bind(n))):X&&ne(X.bind(n))}if(Y(gfe,p),Y(bn,v),Y(jU,g),Y(Qa,y),Y(NU,S),Y(FU,k),Y(Sfe,M),Y(_fe,D),Y(bfe,P),Y(Io,x),Y(gi,_),Y(yfe,O),Yn(L))if(L.length){const ne=e.exposed||(e.exposed={});L.forEach(X=>{Object.defineProperty(ne,X,{get:()=>n[X],set:U=>n[X]=U,enumerable:!0})})}else e.exposed||(e.exposed={});T&&e.render===ka&&(e.render=T),B!=null&&(e.inheritAttrs=B),j&&(e.components=j),W&&(e.directives=W),O&&BU(e)}function eAe(e,t,n=ka){Yn(e)&&(e=Dj(e));for(const r in e){const o=e[r];let a;Zi(o)?"default"in o?a=On(o.from||r,o.default,!0):a=On(o.from||r):a=On(o),Bo(a)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>a.value,set:s=>a.value=s}):t[r]=a}}function Xte(e,t,n){Yc(Yn(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function Cfe(e,t,n,r){let o=r.includes(".")?Ufe(n,r):()=>n[r];if(Or(e)){const a=t[e];Ir(a)&&Rt(o,a)}else if(Ir(e))Rt(o,e.bind(n));else if(Zi(e))if(Yn(e))e.forEach(a=>Cfe(a,t,n,r));else{const a=Ir(e.handler)?e.handler.bind(n):t[e.handler];Ir(a)&&Rt(o,a,e)}}function HU(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=>T8(c,d,s,!0)),T8(c,t,s)),Zi(t)&&a.set(t,c),c}function T8(e,t,n,r=!1){const{mixins:o,extends:a}=t;a&&T8(e,a,n,!0),o&&o.forEach(s=>T8(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const l=tAe[s]||n&&n[s];e[s]=l?l(e[s],t[s]):t[s]}return e}const tAe={data:Zte,props:Jte,emits:Jte,methods:E4,computed:E4,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:E4,directives:E4,watch:rAe,provide:Zte,inject:nAe};function Zte(e,t){return t?e?function(){return Ci(Ir(e)?e.call(this,this):e,Ir(t)?t.call(this,this):t)}:t:e}function nAe(e,t){return E4(Dj(e),Dj(t))}function Dj(e){if(Yn(e)){const t={};for(let n=0;n1)return n&&Ir(t)?t.call(r&&r.proxy):t}}function Efe(){return!!(_o()||um)}const Tfe={},Afe=()=>Object.create(Tfe),Ife=e=>Object.getPrototypeOf(e)===Tfe;function sAe(e,t,n,r=!1){const o={},a=Afe();e.propsDefaults=Object.create(null),Lfe(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 aAe(e,t,n,r){const{props:o,attrs:a,vnode:{patchFlag:s}}=e,l=Bi(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[v,g]=Dfe(p,t,!0);Ci(s,v),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 Zi(e)&&r.set(e,im),im;if(Yn(a))for(let h=0;he==="_"||e==="_ctx"||e==="$stable",GU=e=>Yn(e)?e.map(gu):[gu(e)],uAe=(e,t,n)=>{if(t._n)return t;const r=de((...o)=>GU(t(...o)),n);return r._c=!1,r},Pfe=(e,t,n)=>{const r=e._ctx;for(const o in e){if(WU(o))continue;const a=e[o];if(Ir(a))t[o]=uAe(o,a,r);else if(a!=null){const s=GU(a);t[o]=()=>s}}},Rfe=(e,t)=>{const n=GU(t);e.slots.default=()=>n},Mfe=(e,t,n)=>{for(const r in t)(n||!WU(r))&&(e[r]=t[r])},cAe=(e,t,n)=>{const r=e.slots=Afe();if(e.vnode.shapeFlag&32){const o=t._;o?(Mfe(r,t,n),n&&kU(r,"_",o,!0)):Pfe(t,r)}else t&&Rfe(e,t)},dAe=(e,t,n)=>{const{vnode:r,slots:o}=e;let a=!0,s=Ti;if(r.shapeFlag&32){const l=t._;l?n&&l===1?a=!1:Mfe(o,t,n):(a=!t.$stable,Pfe(t,o)),s=t}else t&&(Rfe(e,t),s={default:1});if(a)for(const l in o)!WU(l)&&s[l]==null&&delete o[l]},la=Kfe;function Ofe(e){return Bfe(e)}function $fe(e){return Bfe(e,C5e)}function Bfe(e,t){const n=V_();n.__VUE__=!0;const{insert:r,remove:o,patchProp:a,createElement:s,createText:l,createComment:c,setText:d,setElementText:h,parentNode:p,nextSibling:v,setScopeId:g=ka,insertStaticContent:y}=e,S=(ve,be,Me,He=null,Xe=null,rt=null,ft=void 0,lt=null,Et=!!be.dynamicChildren)=>{if(ve===be)return;ve&&!Cd(ve,be)&&(He=ge(ve),re(ve,Xe,rt,!0),ve=null),be.patchFlag===-2&&(Et=!1,be.dynamicChildren=null);const{type:St,ref:Wt,shapeFlag:Tt}=be;switch(St){case h0:k(ve,be,Me,He);break;case ks:C(ve,be,Me,He);break;case cm:ve==null&&x(be,Me,He,ft);break;case Bt:j(ve,be,Me,He,Xe,rt,ft,lt,Et);break;default:Tt&1?T(ve,be,Me,He,Xe,rt,ft,lt,Et):Tt&6?W(ve,be,Me,He,Xe,rt,ft,lt,Et):(Tt&64||Tt&128)&&St.process(ve,be,Me,He,Xe,rt,ft,lt,Et,Qe)}Wt!=null&&Xe?ty(Wt,ve&&ve.ref,rt,be||ve,!be):Wt==null&&ve&&ve.ref!=null&&ty(ve.ref,null,rt,ve,!0)},k=(ve,be,Me,He)=>{if(ve==null)r(be.el=l(be.children),Me,He);else{const Xe=be.el=ve.el;be.children!==ve.children&&d(Xe,be.children)}},C=(ve,be,Me,He)=>{ve==null?r(be.el=c(be.children||""),Me,He):be.el=ve.el},x=(ve,be,Me,He)=>{[ve.el,ve.anchor]=y(ve.children,be,Me,He,ve.el,ve.anchor)},E=({el:ve,anchor:be},Me,He)=>{let Xe;for(;ve&&ve!==be;)Xe=v(ve),r(ve,Me,He),ve=Xe;r(be,Me,He)},_=({el:ve,anchor:be})=>{let Me;for(;ve&&ve!==be;)Me=v(ve),o(ve),ve=Me;o(be)},T=(ve,be,Me,He,Xe,rt,ft,lt,Et)=>{be.type==="svg"?ft="svg":be.type==="math"&&(ft="mathml"),ve==null?D(be,Me,He,Xe,rt,ft,lt,Et):O(ve,be,Xe,rt,ft,lt,Et)},D=(ve,be,Me,He,Xe,rt,ft,lt)=>{let Et,St;const{props:Wt,shapeFlag:Tt,transition:Mt,dirs:sn}=ve;if(Et=ve.el=s(ve.type,rt,Wt&&Wt.is,Wt),Tt&8?h(Et,ve.children):Tt&16&&M(ve.children,Et,null,He,Xe,hP(ve,rt),ft,lt),sn&&sf(ve,null,He,"created"),P(Et,ve,ve.scopeId,ft,He),Wt){for(const Ne in Wt)Ne!=="value"&&!Lh(Ne)&&a(Et,Ne,null,Wt[Ne],rt,He);"value"in Wt&&a(Et,"value",null,Wt.value,rt),(St=Wt.onVnodeBeforeMount)&&mu(St,He,ve)}sn&&sf(ve,null,He,"beforeMount");const ct=Nfe(Xe,Mt);ct&&Mt.beforeEnter(Et),r(Et,be,Me),((St=Wt&&Wt.onVnodeMounted)||ct||sn)&&la(()=>{St&&mu(St,He,ve),ct&&Mt.enter(Et),sn&&sf(ve,null,He,"mounted")},Xe)},P=(ve,be,Me,He,Xe)=>{if(Me&&g(ve,Me),He)for(let rt=0;rt{for(let St=Et;St{const lt=be.el=ve.el;let{patchFlag:Et,dynamicChildren:St,dirs:Wt}=be;Et|=ve.patchFlag&16;const Tt=ve.props||Ti,Mt=be.props||Ti;let sn;if(Me&&pv(Me,!1),(sn=Mt.onVnodeBeforeUpdate)&&mu(sn,Me,be,ve),Wt&&sf(be,ve,Me,"beforeUpdate"),Me&&pv(Me,!0),(Tt.innerHTML&&Mt.innerHTML==null||Tt.textContent&&Mt.textContent==null)&&h(lt,""),St?L(ve.dynamicChildren,St,lt,Me,He,hP(be,Xe),rt):ft||X(ve,be,lt,null,Me,He,hP(be,Xe),rt,!1),Et>0){if(Et&16)B(lt,Tt,Mt,Me,Xe);else if(Et&2&&Tt.class!==Mt.class&&a(lt,"class",null,Mt.class,Xe),Et&4&&a(lt,"style",Tt.style,Mt.style,Xe),Et&8){const ct=be.dynamicProps;for(let Ne=0;Ne{sn&&mu(sn,Me,be,ve),Wt&&sf(be,ve,Me,"updated")},He)},L=(ve,be,Me,He,Xe,rt,ft)=>{for(let lt=0;lt{if(be!==Me){if(be!==Ti)for(const rt in be)!Lh(rt)&&!(rt in Me)&&a(ve,rt,be[rt],null,Xe,He);for(const rt in Me){if(Lh(rt))continue;const ft=Me[rt],lt=be[rt];ft!==lt&&rt!=="value"&&a(ve,rt,lt,ft,Xe,He)}"value"in Me&&a(ve,"value",be.value,Me.value,Xe)}},j=(ve,be,Me,He,Xe,rt,ft,lt,Et)=>{const St=be.el=ve?ve.el:l(""),Wt=be.anchor=ve?ve.anchor:l("");let{patchFlag:Tt,dynamicChildren:Mt,slotScopeIds:sn}=be;sn&&(lt=lt?lt.concat(sn):sn),ve==null?(r(St,Me,He),r(Wt,Me,He),M(be.children||[],Me,Wt,Xe,rt,ft,lt,Et)):Tt>0&&Tt&64&&Mt&&ve.dynamicChildren?(L(ve.dynamicChildren,Mt,Me,Xe,rt,ft,lt),(be.key!=null||Xe&&be===Xe.subTree)&&KU(ve,be,!0)):X(ve,be,Me,Wt,Xe,rt,ft,lt,Et)},W=(ve,be,Me,He,Xe,rt,ft,lt,Et)=>{be.slotScopeIds=lt,ve==null?be.shapeFlag&512?Xe.ctx.activate(be,Me,He,ft,Et):H(be,Me,He,Xe,rt,ft,Et):K(ve,be,Et)},H=(ve,be,Me,He,Xe,rt,ft)=>{const lt=ve.component=Zfe(ve,He,Xe);if(U_(ve)&&(lt.ctx.renderer=Qe),Qfe(lt,!1,ft),lt.asyncDep){if(Xe&&Xe.registerDep(lt,Y,ft),!ve.el){const Et=lt.subTree=$(ks);C(null,Et,be,Me),ve.placeholder=Et.el}}else Y(lt,ve,be,Me,Xe,rt,ft)},K=(ve,be,Me)=>{const He=be.component=ve.component;if(SAe(ve,be,Me))if(He.asyncDep&&!He.asyncResolved){ne(He,be,Me);return}else He.next=be,He.update();else be.el=ve.el,He.vnode=be},Y=(ve,be,Me,He,Xe,rt,ft)=>{const lt=()=>{if(ve.isMounted){let{next:Tt,bu:Mt,u:sn,parent:ct,vnode:Ne}=ve;{const Dt=Ffe(ve);if(Dt){Tt&&(Tt.el=Ne.el,ne(ve,Tt,ft)),Dt.asyncDep.then(()=>{ve.isUnmounted||lt()});return}}let De=Tt,Oe;pv(ve,!1),Tt?(Tt.el=Ne.el,ne(ve,Tt,ft)):Tt=Ne,Mt&&am(Mt),(Oe=Tt.props&&Tt.props.onVnodeBeforeUpdate)&&mu(Oe,ct,Tt,Ne),pv(ve,!0);const Ye=GC(ve),dt=ve.subTree;ve.subTree=Ye,S(dt,Ye,p(dt.el),ge(dt),ve,Xe,rt),Tt.el=Ye.el,De===null&&y5(ve,Ye.el),sn&&la(sn,Xe),(Oe=Tt.props&&Tt.props.onVnodeUpdated)&&la(()=>mu(Oe,ct,Tt,Ne),Xe)}else{let Tt;const{el:Mt,props:sn}=be,{bm:ct,m:Ne,parent:De,root:Oe,type:Ye}=ve,dt=f0(be);if(pv(ve,!1),ct&&am(ct),!dt&&(Tt=sn&&sn.onVnodeBeforeMount)&&mu(Tt,De,be),pv(ve,!0),Mt&&Te){const Dt=()=>{ve.subTree=GC(ve),Te(Mt,ve.subTree,ve,Xe,null)};dt&&Ye.__asyncHydrate?Ye.__asyncHydrate(Mt,ve,Dt):Dt()}else{Oe.ce&&Oe.ce._def.shadowRoot!==!1&&Oe.ce._injectChildStyle(Ye);const Dt=ve.subTree=GC(ve);S(null,Dt,Me,He,ve,Xe,rt),be.el=Dt.el}if(Ne&&la(Ne,Xe),!dt&&(Tt=sn&&sn.onVnodeMounted)){const Dt=be;la(()=>mu(Tt,De,Dt),Xe)}(be.shapeFlag&256||De&&f0(De.vnode)&&De.vnode.shapeFlag&256)&&ve.a&&la(ve.a,Xe),ve.isMounted=!0,be=Me=He=null}};ve.scope.on();const Et=ve.effect=new Hb(lt);ve.scope.off();const St=ve.update=Et.run.bind(Et),Wt=ve.job=Et.runIfDirty.bind(Et);Wt.i=ve,Wt.id=ve.uid,Et.scheduler=()=>MU(Wt),pv(ve,!0),St()},ne=(ve,be,Me)=>{be.component=ve;const He=ve.vnode.props;ve.vnode=be,ve.next=null,aAe(ve,be.props,He,Me),dAe(ve,be.children,Me),jh(),Vte(ve),Vh()},X=(ve,be,Me,He,Xe,rt,ft,lt,Et=!1)=>{const St=ve&&ve.children,Wt=ve?ve.shapeFlag:0,Tt=be.children,{patchFlag:Mt,shapeFlag:sn}=be;if(Mt>0){if(Mt&128){q(St,Tt,Me,He,Xe,rt,ft,lt,Et);return}else if(Mt&256){U(St,Tt,Me,He,Xe,rt,ft,lt,Et);return}}sn&8?(Wt&16&&Fe(St,Xe,rt),Tt!==St&&h(Me,Tt)):Wt&16?sn&16?q(St,Tt,Me,He,Xe,rt,ft,lt,Et):Fe(St,Xe,rt,!0):(Wt&8&&h(Me,""),sn&16&&M(Tt,Me,He,Xe,rt,ft,lt,Et))},U=(ve,be,Me,He,Xe,rt,ft,lt,Et)=>{ve=ve||im,be=be||im;const St=ve.length,Wt=be.length,Tt=Math.min(St,Wt);let Mt;for(Mt=0;MtWt?Fe(ve,Xe,rt,!0,!1,Tt):M(be,Me,He,Xe,rt,ft,lt,Et,Tt)},q=(ve,be,Me,He,Xe,rt,ft,lt,Et)=>{let St=0;const Wt=be.length;let Tt=ve.length-1,Mt=Wt-1;for(;St<=Tt&&St<=Mt;){const sn=ve[St],ct=be[St]=Et?qp(be[St]):gu(be[St]);if(Cd(sn,ct))S(sn,ct,Me,null,Xe,rt,ft,lt,Et);else break;St++}for(;St<=Tt&&St<=Mt;){const sn=ve[Tt],ct=be[Mt]=Et?qp(be[Mt]):gu(be[Mt]);if(Cd(sn,ct))S(sn,ct,Me,null,Xe,rt,ft,lt,Et);else break;Tt--,Mt--}if(St>Tt){if(St<=Mt){const sn=Mt+1,ct=snMt)for(;St<=Tt;)re(ve[St],Xe,rt,!0),St++;else{const sn=St,ct=St,Ne=new Map;for(St=ct;St<=Mt;St++){const Ct=be[St]=Et?qp(be[St]):gu(be[St]);Ct.key!=null&&Ne.set(Ct.key,St)}let De,Oe=0;const Ye=Mt-ct+1;let dt=!1,Dt=0;const pt=new Array(Ye);for(St=0;St=Ye){re(Ct,Xe,rt,!0);continue}let Zt;if(Ct.key!=null)Zt=Ne.get(Ct.key);else for(De=ct;De<=Mt;De++)if(pt[De-ct]===0&&Cd(Ct,be[De])){Zt=De;break}Zt===void 0?re(Ct,Xe,rt,!0):(pt[Zt-ct]=St+1,Zt>=Dt?Dt=Zt:dt=!0,S(Ct,be[Zt],Me,null,Xe,rt,ft,lt,Et),Oe++)}const $e=dt?fAe(pt):im;for(De=$e.length-1,St=Ye-1;St>=0;St--){const Ct=ct+St,Zt=be[Ct],tn=be[Ct+1],Ft=Ct+1{const{el:rt,type:ft,transition:lt,children:Et,shapeFlag:St}=ve;if(St&6){ee(ve.component.subTree,be,Me,He);return}if(St&128){ve.suspense.move(be,Me,He);return}if(St&64){ft.move(ve,be,Me,Qe);return}if(ft===Bt){r(rt,be,Me);for(let Tt=0;Ttlt.enter(rt),Xe);else{const{leave:Tt,delayLeave:Mt,afterLeave:sn}=lt,ct=()=>{ve.ctx.isUnmounted?o(rt):r(rt,be,Me)},Ne=()=>{rt._isLeaving&&rt[yh](!0),Tt(rt,()=>{ct(),sn&&sn()})};Mt?Mt(rt,ct,Ne):Ne()}else r(rt,be,Me)},re=(ve,be,Me,He=!1,Xe=!1)=>{const{type:rt,props:ft,ref:lt,children:Et,dynamicChildren:St,shapeFlag:Wt,patchFlag:Tt,dirs:Mt,cacheIndex:sn}=ve;if(Tt===-2&&(Xe=!1),lt!=null&&(jh(),ty(lt,null,Me,ve,!0),Vh()),sn!=null&&(be.renderCache[sn]=void 0),Wt&256){be.ctx.deactivate(ve);return}const ct=Wt&1&&Mt,Ne=!f0(ve);let De;if(Ne&&(De=ft&&ft.onVnodeBeforeUnmount)&&mu(De,be,ve),Wt&6)ke(ve.component,Me,He);else{if(Wt&128){ve.suspense.unmount(Me,He);return}ct&&sf(ve,null,be,"beforeUnmount"),Wt&64?ve.type.remove(ve,be,Me,Qe,He):St&&!St.hasOnce&&(rt!==Bt||Tt>0&&Tt&64)?Fe(St,be,Me,!1,!0):(rt===Bt&&Tt&384||!Xe&&Wt&16)&&Fe(Et,be,Me),He&&ae(ve)}(Ne&&(De=ft&&ft.onVnodeUnmounted)||ct)&&la(()=>{De&&mu(De,be,ve),ct&&sf(ve,null,be,"unmounted")},Me)},ae=ve=>{const{type:be,el:Me,anchor:He,transition:Xe}=ve;if(be===Bt){ie(Me,He);return}if(be===cm){_(ve);return}const rt=()=>{o(Me),Xe&&!Xe.persisted&&Xe.afterLeave&&Xe.afterLeave()};if(ve.shapeFlag&1&&Xe&&!Xe.persisted){const{leave:ft,delayLeave:lt}=Xe,Et=()=>ft(Me,rt);lt?lt(ve.el,rt,Et):Et()}else rt()},ie=(ve,be)=>{let Me;for(;ve!==be;)Me=v(ve),o(ve),ve=Me;o(be)},ke=(ve,be,Me)=>{const{bum:He,scope:Xe,job:rt,subTree:ft,um:lt,m:Et,a:St}=ve;A8(Et),A8(St),He&&am(He),Xe.stop(),rt&&(rt.flags|=8,re(ft,ve,be,Me)),lt&&la(lt,be),la(()=>{ve.isUnmounted=!0},be)},Fe=(ve,be,Me,He=!1,Xe=!1,rt=0)=>{for(let ft=rt;ft{if(ve.shapeFlag&6)return ge(ve.component.subTree);if(ve.shapeFlag&128)return ve.suspense.next();const be=v(ve.anchor||ve.el),Me=be&&be[lfe];return Me?v(Me):be};let _e=!1;const ze=(ve,be,Me)=>{ve==null?be._vnode&&re(be._vnode,null,null,!0):S(be._vnode||null,ve,be,null,null,null,Me),be._vnode=ve,_e||(_e=!0,Vte(),w8(),_e=!1)},Qe={p:S,um:re,m:ee,r:ae,mt:H,mc:M,pc:X,pbc:L,n:ge,o:e};let Je,Te;return t&&([Je,Te]=t(Qe)),{render:ze,hydrate:Je,createApp:oAe(ze,Je)}}function hP({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 pv({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function Nfe(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function KU(e,t,n=!1){const r=e.children,o=t.children;if(Yn(r)&&Yn(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 Ffe(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:Ffe(t)}function A8(e){if(e)for(let t=0;tOn(jfe);function Os(e,t){return H_(e,null,t)}function hAe(e,t){return H_(e,null,{flush:"post"})}function zfe(e,t){return H_(e,null,{flush:"sync"})}function Rt(e,t,n){return H_(e,t,n)}function H_(e,t,n=Ti){const{immediate:r,deep:o,flush:a,once:s}=n,l=Ci({},n),c=t&&r||!t&&a!=="post";let d;if(Ey){if(a==="sync"){const g=Vfe();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)=>Yc(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 v=a5e(e,t,l);return Ey&&(d?d.push(v):c&&v()),v}function pAe(e,t,n){const r=this.proxy,o=Or(e)?e.includes(".")?Ufe(r,e):()=>r[e]:e.bind(r,r);let a;Ir(t)?a=t:(a=t.handler,n=t);const s=Tm(this),l=H_(o,a.bind(r),n);return s(),l}function Ufe(e,t){const n=t.split(".");return()=>{let r=e;for(let o=0;o{let h,p=Ti,v;return zfe(()=>{const g=e[o];yl(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(!yl(y,h)&&!(p!==Ti&&yl(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),yl(g,y)&&yl(g,p)&&!yl(y,v)&&d(),p=g,v=y}}});return l[Symbol.iterator]=()=>{let c=0;return{next(){return c<2?{value:c++?s||Ti:l,done:!1}:{done:!0}}}},l}const Hfe=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${$o(t)}Modifiers`]||e[`${_l(t)}Modifiers`];function mAe(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ti;let o=n;const a=t.startsWith("update:"),s=a&&Hfe(r,t.slice(7));s&&(s.trim&&(o=n.map(h=>Or(h)?h.trim():h)),s.number&&(o=n.map(zb)));let l,c=r[l=sm(t)]||r[l=sm($o(t))];!c&&a&&(c=r[l=sm(_l(t))]),c&&Yc(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,Yc(d,e,6,o)}}const gAe=new WeakMap;function Wfe(e,t,n=!1){const r=n?gAe:t.emitsCache,o=r.get(e);if(o!==void 0)return o;const a=e.emits;let s={},l=!1;if(!Ir(e)){const c=d=>{const h=Wfe(d,t,!0);h&&(l=!0,Ci(s,h))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!a&&!l?(Zi(e)&&r.set(e,null),null):(Yn(a)?a.forEach(c=>s[c]=null):Ci(s,a),Zi(e)&&r.set(e,s),s)}function g5(e,t){return!e||!O0(t)?!1:(t=t.slice(2).replace(/Once$/,""),qi(e,t[0].toLowerCase()+t.slice(1))||qi(e,_l(t))||qi(e,t))}function GC(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:v,setupState:g,ctx:y,inheritAttrs:S}=e,k=Xb(e);let C,x;try{if(n.shapeFlag&4){const _=o||r,T=_;C=gu(d.call(T,_,h,p,g,v,y)),x=l}else{const _=t;C=gu(_.length>1?_(p,{attrs:l,slots:s,emit:c}):_(p,null)),x=t.props?l:bAe(l)}}catch(_){Y4.length=0,Km(_,e,1),C=$(ks)}let E=C;if(x&&S!==!1){const _=Object.keys(x),{shapeFlag:T}=E;_.length&&T&7&&(a&&_.some(n5)&&(x=_Ae(x,a)),E=wl(E,x,!1,!0))}return n.dirs&&(E=wl(E,null,!1,!0),E.dirs=E.dirs?E.dirs.concat(n.dirs):n.dirs),n.transition&&Uh(E,n.transition),C=E,Xb(k),C}function yAe(e,t=!0){let n;for(let r=0;r{let t;for(const n in e)(n==="class"||n==="style"||O0(n))&&((t||(t={}))[n]=e[n]);return t},_Ae=(e,t)=>{const n={};for(const r in e)(!n5(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function SAe(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?ene(r,s,d):!!s;if(c&8){const h=t.dynamicProps;for(let p=0;pe.__isSuspense;let Rj=0;const kAe={name:"Suspense",__isSuspense:!0,process(e,t,n,r,o,a,s,l,c,d){if(e==null)CAe(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}wAe(e,t,n,r,o,s,l,c,d)}},hydrate:EAe,normalize:TAe},xAe=kAe;function Jb(e,t){const n=e.props&&e.props[t];Ir(n)&&n()}function CAe(e,t,n,r,o,a,s,l,c){const{p:d,o:{createElement:h}}=c,p=h("div"),v=e.suspense=Gfe(e,o,r,t,p,n,a,s,l,c);d(null,v.pendingBranch=e.ssContent,p,null,r,v,a,s),v.deps>0?(Jb(e,"onPending"),Jb(e,"onFallback"),d(null,e.ssFallback,t,n,r,null,a,s),ny(v,e.ssFallback)):v.resolve(!1,!0)}function wAe(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 v=t.ssContent,g=t.ssFallback,{activeBranch:y,pendingBranch:S,isInFallback:k,isHydrating:C}=p;if(S)p.pendingBranch=v,Cd(S,v)?(c(S,v,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),ny(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,v,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0?p.resolve():(c(y,g,n,r,o,null,a,s,l),ny(p,g))):y&&Cd(y,v)?(c(y,v,n,r,o,p,a,s,l),p.resolve(!0)):(c(null,v,p.hiddenContainer,null,o,p,a,s,l),p.deps<=0&&p.resolve()));else if(y&&Cd(y,v))c(y,v,n,r,o,p,a,s,l),ny(p,v);else if(Jb(t,"onPending"),p.pendingBranch=v,v.shapeFlag&512?p.pendingId=v.component.suspenseId:p.pendingId=Rj++,c(null,v,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 Gfe(e,t,n,r,o,a,s,l,c,d,h=!1){const{p,m:v,um:g,n:y,o:{parentNode:S,remove:k}}=d;let C;const x=AAe(e);x&&t&&t.pendingBranch&&(C=t.pendingId,t.deps++);const E=e.props?Ub(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:O,pendingBranch:L,pendingId:B,effects:j,parentComponent:W,container:H}=T;let K=!1;T.isHydrating?T.isHydrating=!1:D||(K=O&&L.transition&&L.transition.mode==="out-in",K&&(O.transition.afterLeave=()=>{B===T.pendingId&&(v(L,H,a===_?y(O):a,0),qb(j))}),O&&(S(O.el)===H&&(a=y(O)),g(O,W,T,!0)),K||v(L,H,a,0)),ny(T,L),T.pendingBranch=null,T.isInFallback=!1;let Y=T.parent,ne=!1;for(;Y;){if(Y.pendingBranch){Y.effects.push(...j),ne=!0;break}Y=Y.parent}!ne&&!K&&qb(j),T.effects=[],x&&t&&t.pendingBranch&&C===t.pendingId&&(t.deps--,t.deps===0&&!P&&t.resolve()),Jb(M,"onResolve")},fallback(D){if(!T.pendingBranch)return;const{vnode:P,activeBranch:M,parentComponent:O,container:L,namespace:B}=T;Jb(P,"onFallback");const j=y(M),W=()=>{T.isInFallback&&(p(null,D,L,j,O,null,B,l,c),ny(T,D))},H=D.transition&&D.transition.mode==="out-in";H&&(M.transition.afterLeave=W),T.isInFallback=!0,g(M,O,null,!0),H||W()},move(D,P,M){T.activeBranch&&v(T.activeBranch,D,P,M),T.container=D},next(){return T.activeBranch&&y(T.activeBranch)},registerDep(D,P,M){const O=!!T.pendingBranch;O&&T.deps++;const L=D.vnode.el;D.asyncDep.catch(B=>{Km(B,D,0)}).then(B=>{if(D.isUnmounted||T.isUnmounted||T.pendingId!==D.suspenseId)return;D.asyncResolved=!0;const{vnode:j}=D;$j(D,B,!1),L&&(j.el=L);const W=!L&&D.subTree.el;P(D,j,S(L||D.subTree.el),L?null:y(D.subTree),T,s,M),W&&k(W),y5(D,j.el),O&&--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 EAe(e,t,n,r,o,a,s,l,c){const d=t.suspense=Gfe(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 TAe(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=tne(r?n.default:n),e.ssFallback=r?tne(n.fallback):$(ks)}function tne(e){let t;if(Ir(e)){const n=Em&&e._c;n&&(e._d=!1,z()),e=e(),n&&(e._d=!0,t=xl,qfe())}return Yn(e)&&(e=yAe(e)),e=gu(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Kfe(e,t){t&&t.pendingBranch?Yn(e)?t.effects.push(...e):t.effects.push(e):qb(e)}function ny(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,y5(r,o))}function AAe(e){const t=e.props&&e.props.suspensible;return t!=null&&t!==!1}const Bt=Symbol.for("v-fgt"),h0=Symbol.for("v-txt"),ks=Symbol.for("v-cmt"),cm=Symbol.for("v-stc"),Y4=[];let xl=null;function z(e=!1){Y4.push(xl=e?null:[])}function qfe(){Y4.pop(),xl=Y4[Y4.length-1]||null}let Em=1;function Qb(e,t=!1){Em+=e,e<0&&xl&&t&&(xl.hasOnce=!0)}function Yfe(e){return e.dynamicChildren=Em>0?xl||im:null,qfe(),Em>0&&xl&&xl.push(e),e}function Q(e,t,n,r,o,a){return Yfe(I(e,t,n,r,o,a,!0))}function qe(e,t,n,r,o){return Yfe($(e,t,n,r,o,!0))}function Wi(e){return e?e.__v_isVNode===!0:!1}function Cd(e,t){return e.type===t.type&&e.key===t.key}function IAe(e){}const Xfe=({key:e})=>e??null,KC=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?Or(e)||Bo(e)||Ir(e)?{i:Ha,r:e,k:t,f:!!n}:e:null);function I(e,t=null,n=null,r=0,o=null,a=e===Bt?0:1,s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Xfe(t),ref:t&&KC(t),scopeId:p5,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?(qU(c,n),a&128&&e.normalize(c)):n&&(c.shapeFlag|=Or(n)?8:16),Em>0&&!s&&xl&&(c.patchFlag>0||a&6)&&c.patchFlag!==32&&xl.push(c),c}const $=LAe;function LAe(e,t=null,n=null,r=0,o=null,a=!1){if((!e||e===kfe)&&(e=ks),Wi(e)){const l=wl(e,t,!0);return n&&qU(l,n),Em>0&&!a&&xl&&(l.shapeFlag&6?xl[xl.indexOf(e)]=l:xl.push(l)),l.patchFlag=-2,l}if(BAe(e)&&(e=e.__vccOpts),t){t=Sa(t);let{class:l,style:c}=t;l&&!Or(l)&&(t.class=ue(l)),Zi(c)&&(f5(c)&&!Yn(c)&&(c=Ci({},c)),t.style=Ge(c))}const s=Or(e)?1:I8(e)?128:ufe(e)?64:Zi(e)?4:Ir(e)?2:0;return I(e,t,n,r,o,s,a,!0)}function Sa(e){return e?f5(e)||Ife(e)?Ci({},e):e:null}function wl(e,t,n=!1,r=!1){const{props:o,ref:a,patchFlag:s,children:l,transition:c}=e,d=t?Vt(o||{},t):o,h={__v_isVNode:!0,__v_skip:!0,type:e.type,props:d,key:d&&Xfe(d),ref:t&&t.ref?n&&a?Yn(a)?a.concat(KC(t)):[a,KC(t)]:KC(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!==Bt?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&&wl(e.ssContent),ssFallback:e.ssFallback&&wl(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&r&&Uh(h,c.clone(h)),h}function Ue(e=" ",t=0){return $(h0,null,e,t)}function xh(e,t){const n=$(cm,null,e);return n.staticCount=t,n}function Le(e="",t=!1){return t?(z(),qe(ks,null,e)):$(ks,null,e)}function gu(e){return e==null||typeof e=="boolean"?$(ks):Yn(e)?$(Bt,null,e.slice()):Wi(e)?qp(e):$(h0,null,String(e))}function qp(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:wl(e)}function qU(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Yn(t))n=16;else if(typeof t=="object")if(r&65){const o=t.default;o&&(o._c&&(o._d=!1),qU(e,o()),o._c&&(o._d=!0));return}else{n=32;const o=t._;!o&&!Ife(t)?t._ctx=Ha:o===3&&Ha&&(Ha.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else Ir(t)?(t={default:t,_ctx:Ha},n=32):(t=String(t),r&64?(n=16,t=[Ue(t)]):n=8);e.children=t,e.shapeFlag|=n}function Vt(...e){const t={};for(let n=0;nUa||Ha;let L8,Mj;{const e=V_(),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)}};L8=t("__VUE_INSTANCE_SETTERS__",n=>Ua=n),Mj=t("__VUE_SSR_SETTERS__",n=>Ey=n)}const Tm=e=>{const t=Ua;return L8(e),e.scope.on(),()=>{e.scope.off(),L8(t)}},Oj=()=>{Ua&&Ua.scope.off(),L8(null)};function Jfe(e){return e.vnode.shapeFlag&4}let Ey=!1;function Qfe(e,t=!1,n=!1){t&&Mj(t);const{props:r,children:o}=e.vnode,a=Jfe(e);sAe(e,r,a,t),cAe(e,o,n||t);const s=a?RAe(e,t):void 0;return t&&Mj(!1),s}function RAe(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,Ij);const{setup:r}=n;if(r){jh();const o=e.setupContext=r.length>1?the(e):null,a=Tm(e),s=t3(r,e,0,[e.props,o]),l=i5(s);if(Vh(),a(),(l||e.sp)&&!f0(e)&&BU(e),l){if(s.then(Oj,Oj),t)return s.then(c=>{$j(e,c,t)}).catch(c=>{Km(c,e,0)});e.asyncDep=s}else $j(e,s,t)}else ehe(e,t)}function $j(e,t,n){Ir(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Zi(t)&&(e.setupState=RU(t)),ehe(e,n)}let D8,Bj;function MAe(e){D8=e,Bj=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,F5e))}}const OAe=()=>!D8;function ehe(e,t,n){const r=e.type;if(!e.render){if(!t&&D8&&!r.render){const o=r.template||HU(e).template;if(o){const{isCustomElement:a,compilerOptions:s}=e.appContext.config,{delimiters:l,compilerOptions:c}=r,d=Ci(Ci({isCustomElement:a,delimiters:l},s),c);r.render=D8(o,d)}}e.render=r.render||ka,Bj&&Bj(e)}{const o=Tm(e);jh();try{Q5e(e)}finally{Vh(),o()}}}const $Ae={get(e,t){return bl(e,"get",""),e[t]}};function the(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,$Ae),slots:e.slots,emit:e.emit,expose:t}}function W_(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(RU(h5(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in q4)return q4[n](e)},has(t,n){return n in t||n in q4}})):e.proxy}function Nj(e,t=!0){return Ir(e)?e.displayName||e.name:e.name||t&&e.__name}function BAe(e){return Ir(e)&&"__vccOpts"in e}const F=(e,t)=>r5e(e,t,Ey);function da(e,t,n){try{Qb(-1);const r=arguments.length;return r===2?Zi(t)&&!Yn(t)?Wi(t)?$(e,null,[t]):$(e,t):$(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&Wi(n)&&(n=[n]),$(e,t,n))}finally{Qb(1)}}function NAe(){}function FAe(e,t,n,r){const o=n[r];if(o&&nhe(o,e))return o;const a=t();return a.memo=e.slice(),a.cacheIndex=r,n[r]=a}function nhe(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r0&&xl&&xl.push(e),!0}const rhe="3.5.22",jAe=ka,VAe=f5e,zAe=O1,UAe=afe,HAe={createComponentInstance:Zfe,setupComponent:Qfe,renderComponentRoot:GC,setCurrentRenderingInstance:Xb,isVNode:Wi,normalizeVNode:gu,getComponentPublicInstance:W_,ensureValidVNode:UU,pushWarningContext:l5e,popWarningContext:u5e},WAe=HAe,GAe=null,KAe=null,qAe=null;/** * @vue/runtime-dom v3.5.22 * (c) 2018-present Yuxi (Evan) You and Vue contributors * @license MIT **/let Fj;const nne=typeof window<"u"&&window.trustedTypes;if(nne)try{Fj=nne.createPolicy("vue",{createHTML:e=>e})}catch{}const ihe=Fj?e=>Fj.createHTML(e):e=>e,YAe="http://www.w3.org/2000/svg",XAe="http://www.w3.org/1998/Math/MathML",ph=typeof document<"u"?document:null,rne=ph&&ph.createElement("template"),ZAe={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(YAe,e):t==="mathml"?ph.createElementNS(XAe,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{rne.innerHTML=ihe(r==="svg"?`${e}`:r==="mathml"?`${e}`:e);const l=rne.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]}},Cp="transition",W2="animation",Ty=Symbol("_vtc"),ohe={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},she=Ci({},$U,ohe),JAe=e=>(e.displayName="Transition",e.props=she,e),Cs=JAe((e,{slots:t})=>da(pfe,ahe(e),t)),vv=(e,t=[])=>{Yn(e)?e.forEach(n=>n(...t)):e&&e(...t)},ine=e=>e?Yn(e)?e.some(t=>t.length>1):e.length>1:!1;function ahe(e){const t={};for(const j in e)j in ohe||(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:v=`${n}-leave-active`,leaveToClass:g=`${n}-leave-to`}=e,y=QAe(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,O=(j,W,H,K)=>{j._enterCancelled=K,jp(j,W?h:l),jp(j,W?d:s),H&&H()},L=(j,W)=>{j._isLeaving=!1,jp(j,p),jp(j,g),jp(j,v),W&&W()},B=j=>(W,H)=>{const K=j?P:x,Y=()=>O(W,j,H);vv(K,[W,Y]),one(()=>{jp(W,j?c:a),nf(W,j?h:l),ine(K)||sne(W,r,S,Y)})};return Ci(t,{onBeforeEnter(j){vv(C,[j]),nf(j,a),nf(j,s)},onBeforeAppear(j){vv(D,[j]),nf(j,c),nf(j,d)},onEnter:B(!1),onAppear:B(!0),onLeave(j,W){j._isLeaving=!0;const H=()=>L(j,W);nf(j,p),j._enterCancelled?(nf(j,v),jj(j)):(jj(j),nf(j,v)),one(()=>{j._isLeaving&&(jp(j,p),nf(j,g),ine(_)||sne(j,r,k,H))}),vv(_,[j,H])},onEnterCancelled(j){O(j,!1,void 0,!0),vv(E,[j])},onAppearCancelled(j){O(j,!0,void 0,!0),vv(M,[j])},onLeaveCancelled(j){L(j),vv(T,[j])}})}function QAe(e){if(e==null)return null;if(Zi(e))return[pP(e.enter),pP(e.leave)];{const t=pP(e);return[t,t]}}function pP(e){return Ub(e)}function nf(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Ty]||(e[Ty]=new Set)).add(t)}function jp(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const n=e[Ty];n&&(n.delete(t),n.size||(e[Ty]=void 0))}function one(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let eIe=0;function sne(e,t,n,r){const o=e._endId=++eIe,a=()=>{o===e._endId&&r()};if(n!=null)return setTimeout(a,n);const{type:s,timeout:l,propCount:c}=lhe(e,t);if(!s)return r();const d=s+"end";let h=0;const p=()=>{e.removeEventListener(d,v),a()},v=g=>{g.target===e&&++h>=c&&p()};setTimeout(()=>{h(n[y]||"").split(", "),o=r(`${Cp}Delay`),a=r(`${Cp}Duration`),s=ane(o,a),l=r(`${W2}Delay`),c=r(`${W2}Duration`),d=ane(l,c);let h=null,p=0,v=0;t===Cp?s>0&&(h=Cp,p=s,v=a.length):t===W2?d>0&&(h=W2,p=d,v=c.length):(p=Math.max(s,d),h=p>0?s>d?Cp:W2:null,v=h?h===Cp?a.length:c.length:0);const g=h===Cp&&/\b(?:transform|all)(?:,|$)/.test(r(`${Cp}Property`).toString());return{type:h,timeout:p,propCount:v,hasTransform:g}}function ane(e,t){for(;e.lengthlne(n)+lne(e[r])))}function lne(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function jj(e){return(e?e.ownerDocument:document).body.offsetHeight}function tIe(e,t,n){const r=e[Ty];r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const P8=Symbol("_vod"),uhe=Symbol("_vsh"),Qo={name:"show",beforeMount(e,{value:t},{transition:n}){e[P8]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):G2(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),G2(e,!0),r.enter(e)):r.leave(e,()=>{G2(e,!1)}):G2(e,t))},beforeUnmount(e,{value:t}){G2(e,t)}};function G2(e,t){e.style.display=t?e[P8]:"none",e[uhe]=!t}function nIe(){Qo.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const che=Symbol("");function dhe(e){const t=_o();if(!t)return;const n=t.ut=(o=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(a=>R8(a,o))},r=()=>{const o=e(t.proxy);t.ce?R8(t.ce,o):Vj(t.subTree,o),n(o)};jU(()=>{qb(r)}),bn(()=>{Rt(r,ka,{flush:"post"});const o=new MutationObserver(r);o.observe(t.subTree.el.parentNode,{childList:!0}),gi(()=>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)R8(e.el,t);else if(e.type===Bt)e.children.forEach(n=>Vj(n,t));else if(e.type===cm){let{el:n,anchor:r}=e;for(;n&&(R8(n,t),n!==r);)n=n.nextSibling}}function R8(e,t){if(e.nodeType===1){const n=e.style;let r="";for(const o in t){const a=Bde(t[o]);n.setProperty(`--${o}`,a),r+=`--${o}: ${a};`}n[che]=r}}const rIe=/(?:^|;)\s*display\s*:/;function iIe(e,t,n){const r=e.style,o=Or(n);let a=!1;if(n&&!o){if(t)if(Or(t))for(const s of t.split(";")){const l=s.slice(0,s.indexOf(":")).trim();n[l]==null&&qC(r,l,"")}else for(const s in t)n[s]==null&&qC(r,s,"");for(const s in n)s==="display"&&(a=!0),qC(r,s,n[s])}else if(o){if(t!==n){const s=r[che];s&&(n+=";"+s),r.cssText=n,a=rIe.test(n)}}else t&&e.removeAttribute("style");P8 in e&&(e[P8]=a?r.display:"",e[uhe]&&(r.display="none"))}const une=/\s*!important$/;function qC(e,t,n){if(Yn(n))n.forEach(r=>qC(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=oIe(e,t);une.test(n)?e.setProperty(_l(r),n.replace(une,""),"important"):e[r]=n}}const cne=["Webkit","Moz","ms"],vP={};function oIe(e,t){const n=vP[t];if(n)return n;let r=$o(t);if(r!=="filter"&&r in e)return vP[t]=r;r=B0(r);for(let o=0;omP||(uIe.then(()=>mP=0),mP=Date.now());function dIe(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;Yc(fIe(r,n.value),t,5,[r])};return n.value=e,n.attached=cIe(),n}function fIe(e,t){if(Yn(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 mne=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,hIe=(e,t,n,r,o,a)=>{const s=o==="svg";t==="class"?tIe(e,r,s):t==="style"?iIe(e,n,r):O0(t)?n5(t)||aIe(e,t,n,r,a):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):pIe(e,t,r,s))?(hne(e,t,r),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&fne(e,t,r,s,a,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!Or(r))?hne(e,$o(t),r,a,t):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),fne(e,t,r,s))};function pIe(e,t,n,r){if(r)return!!(t==="innerHTML"||t==="textContent"||t in e&&mne(t)&&Ir(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 mne(t)&&Or(n)?!1:t in e}const gne={};function fhe(e,t,n){let r=Se(e,t);j_(r)&&(r=Ci({},r,t));class o extends b5{constructor(s){super(r,s,n)}}return o.def=r,o}const vIe=((e,t)=>fhe(e,t,She)),mIe=typeof HTMLElement<"u"?HTMLElement:class{};class b5 extends mIe{constructor(t,n={},r=Iy){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!==Iy?this._root=this.shadowRoot:t.shadowRoot!==!1?(this.attachShadow(Ci({},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 b5){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,Cn(()=>{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&&!Yn(a))for(const c in a){const d=a[c];(d===Number||d&&d.type===Number)&&(c in this._props&&(this._props[c]=Ub(this._props[c])),(l||(l=Object.create(null)))[$o(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)qi(this,r)||Object.defineProperty(this,r,{get:()=>et(n[r])})}_resolveProps(t){const{props:n}=t,r=Yn(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($o))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):gne;const o=$o(t);n&&this._numberProps&&this._numberProps[o]&&(r=Ub(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===gne?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(_l(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(_l(t),n+""):n||this.removeAttribute(_l(t)),a&&a.observe(this,{attributes:!0})}}_update(){const t=this._createVNode();this._app&&(t.appContext=this._app._context),Xc(t,this._root)}_createVNode(){const t={};this.shadowRoot||(t.onVnodeMounted=t.onVnodeUpdated=this._renderSlots.bind(this));const n=$(this._def,Ci(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,j_(s[0])?Ci({detail:s},s[0]):{detail:s}))};r.emit=(a,...s)=>{o(a,s),_l(a)!==a&&o(_l(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 hhe(e){const t=_o(),n=t&&t.ce;return n||null}function gIe(){const e=hhe();return e&&e.shadowRoot}function yIe(e="$style"){{const t=_o();if(!t)return Ti;const n=t.type.__cssModules;if(!n)return Ti;const r=n[e];return r||Ti}}const phe=new WeakMap,vhe=new WeakMap,M8=Symbol("_moveCb"),yne=Symbol("_enterCb"),bIe=e=>(delete e.props.mode,e),_Ie=bIe({name:"TransitionGroup",props:Ci({},she,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=_o(),r=OU();let o,a;return Qa(()=>{if(!o.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!CIe(o[0].el,n.vnode.el,s)){o=[];return}o.forEach(SIe),o.forEach(kIe);const l=o.filter(xIe);jj(n.vnode.el),l.forEach(c=>{const d=c.el,h=d.style;nf(d,s),h.transform=h.webkitTransform=h.transitionDuration="";const p=d[M8]=v=>{v&&v.target!==d||(!v||v.propertyName.endsWith("transform"))&&(d.removeEventListener("transitionend",p),d[M8]=null,jp(d,s))};d.addEventListener("transitionend",p)}),o=[]}),()=>{const s=Bi(e),l=ahe(s);let c=s.tag||Bt;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}=lhe(r);return a.removeChild(r),s}const _0=e=>{const t=e.props["onUpdate:modelValue"]||!1;return Yn(t)?n=>am(t,n):t};function wIe(e){e.target.composing=!0}function bne(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const Vc=Symbol("_assign"),Ql={created(e,{modifiers:{lazy:t,trim:n,number:r}},o){e[Vc]=_0(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=zb(l)),e[Vc](l)}),n&&Sh(e,"change",()=>{e.value=e.value.trim()}),t||(Sh(e,"compositionstart",wIe),Sh(e,"compositionend",bne),Sh(e,"change",bne))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:r,trim:o,number:a}},s){if(e[Vc]=_0(s),e.composing)return;const l=(a||e.type==="number")&&!/^0\d/.test(e.value)?zb(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))}},YU={deep:!0,created(e,t,n){e[Vc]=_0(n),Sh(e,"change",()=>{const r=e._modelValue,o=Ay(e),a=e.checked,s=e[Vc];if(Yn(r)){const l=z_(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($0(r)){const l=new Set(r);a?l.add(o):l.delete(o),s(l)}else s(mhe(e,a))})},mounted:_ne,beforeUpdate(e,t,n){e[Vc]=_0(n),_ne(e,t,n)}};function _ne(e,{value:t,oldValue:n},r){e._modelValue=t;let o;if(Yn(t))o=z_(t,r.props.value)>-1;else if($0(t))o=t.has(r.props.value);else{if(t===n)return;o=Fh(t,mhe(e,!0))}e.checked!==o&&(e.checked=o)}const XU={created(e,{value:t},n){e.checked=Fh(t,n.props.value),e[Vc]=_0(n),Sh(e,"change",()=>{e[Vc](Ay(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e[Vc]=_0(r),t!==n&&(e.checked=Fh(t,r.props.value))}},ZU={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const o=$0(t);Sh(e,"change",()=>{const a=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?zb(Ay(s)):Ay(s));e[Vc](e.multiple?o?new Set(a):a:a[0]),e._assigning=!0,Cn(()=>{e._assigning=!1})}),e[Vc]=_0(r)},mounted(e,{value:t}){Sne(e,t)},beforeUpdate(e,t,n){e[Vc]=_0(n)},updated(e,{value:t}){e._assigning||Sne(e,t)}};function Sne(e,t){const n=e.multiple,r=Yn(t);if(!(n&&!r&&!$0(t))){for(let o=0,a=e.options.length;oString(d)===String(l)):s.selected=z_(t,l)>-1}else s.selected=t.has(l);else if(Fh(Ay(s),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Ay(e){return"_value"in e?e._value:e.value}function mhe(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const _5={created(e,t,n){hx(e,t,n,null,"created")},mounted(e,t,n){hx(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){hx(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){hx(e,t,n,r,"updated")}};function ghe(e,t){switch(e){case"SELECT":return ZU;case"TEXTAREA":return Ql;default:switch(t){case"checkbox":return YU;case"radio":return XU;default:return Ql}}}function hx(e,t,n,r,o){const s=ghe(e.tagName,n.props&&n.props.type)[o];s&&s(e,t,n,r)}function EIe(){Ql.getSSRProps=({value:e})=>({value:e}),XU.getSSRProps=({value:e},t)=>{if(t.props&&Fh(t.props.value,e))return{checked:!0}},YU.getSSRProps=({value:e},t)=>{if(Yn(e)){if(t.props&&z_(e,t.props.value)>-1)return{checked:!0}}else if($0(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},_5.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=ghe(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const TIe=["ctrl","shift","alt","meta"],AIe={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)=>TIe.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=_l(o.key);if(t.some(s=>s===a||IIe[s]===a))return e(o)}))},yhe=Ci({patchProp:hIe},ZAe);let X4,kne=!1;function bhe(){return X4||(X4=Ofe(yhe))}function _he(){return X4=kne?X4:$fe(yhe),kne=!0,X4}const Xc=((...e)=>{bhe().render(...e)}),LIe=((...e)=>{_he().hydrate(...e)}),Iy=((...e)=>{const t=bhe().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xhe(r);if(!o)return;const a=t._component;!Ir(a)&&!a.render&&!a.template&&(a.template=o.innerHTML),o.nodeType===1&&(o.textContent="");const s=n(o,!1,khe(o));return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),s},t}),She=((...e)=>{const t=_he().createApp(...e),{mount:n}=t;return t.mount=r=>{const o=xhe(r);if(o)return n(o,!0,khe(o))},t});function khe(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function xhe(e){return Or(e)?document.querySelector(e):e}let xne=!1;const DIe=()=>{xne||(xne=!0,EIe(),nIe())},PIe=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:pfe,BaseTransitionPropsValidators:$U,Comment:ks,DeprecationTypes:qAe,EffectScope:EU,ErrorCodes:d5e,ErrorTypeStrings:VAe,Fragment:Bt,KeepAlive:O5e,ReactiveEffect:Hb,Static:cm,Suspense:xAe,Teleport:qm,Text:h0,TrackOpTypes:i5e,Transition:Cs,TransitionGroup:r3,TriggerOpTypes:o5e,VueElement:b5,assertNumber:c5e,callWithAsyncErrorHandling:Yc,callWithErrorHandling:t3,camelize:$o,capitalize:B0,cloneVNode:wl,compatUtils:KAe,computed:F,createApp:Iy,createBlock:qe,createCommentVNode:Le,createElementBlock:Q,createElementVNode:I,createHydrationRenderer:$fe,createPropsRestProxy:Z5e,createRenderer:Ofe,createSSRApp:She,createSlots:yo,createStaticVNode:xh,createTextVNode:Ue,createVNode:$,customRef:efe,defineAsyncComponent:Ym,defineComponent:Se,defineCustomElement:fhe,defineEmits:V5e,defineExpose:z5e,defineModel:W5e,defineOptions:U5e,defineProps:j5e,defineSSRCustomElement:vIe,defineSlots:H5e,devtools:zAe,effect:ATe,effectScope:TU,getCurrentInstance:_o,getCurrentScope:a5,getCurrentWatcher:s5e,getTransitionRawChildren:v5,guardReactiveProps:Sa,h:da,handleError:Km,hasInjectionContext:Efe,hydrate:LIe,hydrateOnIdle:A5e,hydrateOnInteraction:P5e,hydrateOnMediaQuery:D5e,hydrateOnVisible:L5e,initCustomFormatter:NAe,initDirectivesForSSR:DIe,inject:On,isMemoSame:nhe,isProxy:f5,isReactive:yf,isReadonly:zh,isRef:Bo,isRuntimeOnly:OAe,isShallow:lc,isVNode:Wi,markRaw:h5,mergeDefaults:Y5e,mergeModels:X5e,mergeProps:Vt,nextTick:Cn,normalizeClass:ue,normalizeProps:Yi,normalizeStyle:Ge,onActivated:NU,onBeforeMount:gfe,onBeforeUnmount:Io,onBeforeUpdate:jU,onDeactivated:FU,onErrorCaptured:Sfe,onMounted:bn,onRenderTracked:_fe,onRenderTriggered:bfe,onScopeDispose:AU,onServerPrefetch:yfe,onUnmounted:gi,onUpdated:Qa,onWatcherCleanup:nfe,openBlock:z,popScopeId:m5e,provide:ri,proxyRefs:RU,pushScopeId:v5e,queuePostFlushCb:qb,reactive:Xt,readonly:Kb,ref:fe,registerRuntimeCompiler:MAe,render:Xc,renderList:vn,renderSlot:vt,resolveComponent:Ie,resolveDirective:n3,resolveDynamicComponent:Wa,resolveFilter:GAe,resolveTransitionHooks:wy,setBlockTracking:Qb,setDevtoolsHook:UAe,setTransitionHooks:Uh,shallowReactive:PU,shallowReadonly:qTe,shallowRef:d0,ssrContextKey:jfe,ssrUtils:WAe,stop:ITe,toDisplayString:je,toHandlerKey:sm,toHandlers:N5e,toRaw:Bi,toRef:Lu,toRefs:nn,toValue:ZTe,transformVNodeArgs:IAe,triggerRef:XTe,unref:et,useAttrs:q5e,useCssModule:yIe,useCssVars:dhe,useHost:hhe,useId:_5e,useModel:vAe,useSSRContext:Vfe,useShadowRoot:gIe,useSlots:K5e,useTemplateRef:S5e,useTransitionState:OU,vModelCheckbox:YU,vModelDynamic:_5,vModelRadio:XU,vModelSelect:ZU,vModelText:Ql,vShow:Qo,version:rhe,warn:jAe,watch:Rt,watchEffect:Os,watchPostEffect:hAe,watchSyncEffect:zfe,withAsyncContext:J5e,withCtx:de,withDefaults:G5e,withDirectives:Ai,withKeys:Ch,withMemo:FAe,withModifiers:us,withScopeId:g5e},Symbol.toStringTag,{value:"Module"}));/*! * vue-router v4.5.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */const $1=typeof document<"u";function Che(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function RIe(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&Che(e.default)}const so=Object.assign;function gP(e,t){const n={};for(const r in t){const o=t[r];n[r]=Ld(o)?o.map(e):e(o)}return n}const Z4=()=>{},Ld=Array.isArray,whe=/#/g,MIe=/&/g,OIe=/\//g,$Ie=/=/g,BIe=/\?/g,Ehe=/\+/g,NIe=/%5B/g,FIe=/%5D/g,The=/%5E/g,jIe=/%60/g,Ahe=/%7B/g,VIe=/%7C/g,Ihe=/%7D/g,zIe=/%20/g;function JU(e){return encodeURI(""+e).replace(VIe,"|").replace(NIe,"[").replace(FIe,"]")}function UIe(e){return JU(e).replace(Ahe,"{").replace(Ihe,"}").replace(The,"^")}function zj(e){return JU(e).replace(Ehe,"%2B").replace(zIe,"+").replace(whe,"%23").replace(MIe,"%26").replace(jIe,"`").replace(Ahe,"{").replace(Ihe,"}").replace(The,"^")}function HIe(e){return zj(e).replace($Ie,"%3D")}function WIe(e){return JU(e).replace(whe,"%23").replace(BIe,"%3F")}function GIe(e){return e==null?"":WIe(e).replace(OIe,"%2F")}function e_(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const KIe=/\/$/,qIe=e=>e.replace(KIe,"");function yP(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=JIe(r??t,n),{fullPath:r+(a&&"?")+a+s,path:r,query:o,hash:e_(s)}}function YIe(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function Cne(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function XIe(e,t,n){const r=t.matched.length-1,o=n.matched.length-1;return r>-1&&r===o&&Ly(t.matched[r],n.matched[o])&&Lhe(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Ly(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Lhe(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!ZIe(e[n],t[n]))return!1;return!0}function ZIe(e,t){return Ld(e)?wne(e,t):Ld(t)?wne(t,e):e===t}function wne(e,t){return Ld(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function JIe(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 wp={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var t_;(function(e){e.pop="pop",e.push="push"})(t_||(t_={}));var J4;(function(e){e.back="back",e.forward="forward",e.unknown=""})(J4||(J4={}));function QIe(e){if(!e)if($1){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),qIe(e)}const eLe=/^[^#]+#/;function tLe(e,t){return e.replace(eLe,"#")+t}function nLe(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 S5=()=>({left:window.scrollX,top:window.scrollY});function rLe(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=nLe(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 Ene(e,t){return(history.state?history.state.position-t:-1)+e}const Uj=new Map;function iLe(e,t){Uj.set(e,t)}function oLe(e){const t=Uj.get(e);return Uj.delete(e),t}let sLe=()=>location.protocol+"//"+location.host;function Dhe(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),Cne(c,"")}return Cne(n,e)+r+o}function aLe(e,t,n,r){let o=[],a=[],s=null;const l=({state:v})=>{const g=Dhe(e,location),y=n.value,S=t.value;let k=0;if(v){if(n.value=g,t.value=v,s&&s===y){s=null;return}k=S?v.position-S.position:0}else r(g);o.forEach(C=>{C(n.value,y,{delta:k,type:t_.pop,direction:k?k>0?J4.forward:J4.back:J4.unknown})})};function c(){s=n.value}function d(v){o.push(v);const g=()=>{const y=o.indexOf(v);y>-1&&o.splice(y,1)};return a.push(g),g}function h(){const{history:v}=window;v.state&&v.replaceState(so({},v.state,{scroll:S5()}),"")}function p(){for(const v of a)v();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 Tne(e,t,n,r=!1,o=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:o?S5():null}}function lLe(e){const{history:t,location:n}=window,r={value:Dhe(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("#"),v=p>-1?(n.host&&document.querySelector("base")?e:e.slice(p))+c:sLe()+e+c;try{t[h?"replaceState":"pushState"](d,"",v),o.value=d}catch(g){console.error(g),n[h?"replace":"assign"](v)}}function s(c,d){const h=so({},t.state,Tne(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=so({},o.value,t.state,{forward:c,scroll:S5()});a(h.current,h,!0);const p=so({},Tne(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 uLe(e){e=QIe(e);const t=lLe(e),n=aLe(e,t.state,t.location,t.replace);function r(a,s=!0){s||n.pauseListeners(),history.go(a)}const o=so({location:"",base:e,go:r,createHref:tLe.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 cLe(e){return typeof e=="string"||e&&typeof e=="object"}function Phe(e){return typeof e=="string"||typeof e=="symbol"}const Rhe=Symbol("");var Ane;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Ane||(Ane={}));function Dy(e,t){return so(new Error,{type:e,[Rhe]:!0},t)}function ah(e,t){return e instanceof Error&&Rhe in e&&(t==null||!!(e.type&t))}const Ine="[^/]+?",dLe={sensitive:!1,strict:!1,start:!0,end:!0},fLe=/[.+*?^${}()[\]/\\]/g;function hLe(e,t){const n=so({},dLe,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 Mhe(e,t){let n=0;const r=e.score,o=t.score;for(;n0&&t[t.length-1]<0}const vLe={type:0,value:""},mLe=/[a-zA-Z0-9_]/;function gLe(e){if(!e)return[[]];if(e==="/")return[[vLe]];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 v(){d+=c}for(;l{s(E)}:Z4}function s(p){if(Phe(p)){const v=r.get(p);v&&(r.delete(p),n.splice(n.indexOf(v),1),v.children.forEach(s),v.alias.forEach(s))}else{const v=n.indexOf(p);v>-1&&(n.splice(v,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 v=kLe(p,n);n.splice(v,0,p),p.record.name&&!Rne(p)&&r.set(p.record.name,p)}function d(p,v){let g,y={},S,k;if("name"in p&&p.name){if(g=r.get(p.name),!g)throw Dy(1,{location:p});k=g.record.name,y=so(Dne(v.params,g.keys.filter(E=>!E.optional).concat(g.parent?g.parent.keys.filter(E=>E.optional):[]).map(E=>E.name)),p.params&&Dne(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=v.name?r.get(v.name):n.find(E=>E.re.test(v.path)),!g)throw Dy(1,{location:p,currentLocation:v});k=g.record.name,y=so({},v.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:SLe(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 Dne(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Pne(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:_Le(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 _Le(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 Rne(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function SLe(e){return e.reduce((t,n)=>so(t,n.meta),{})}function Mne(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function kLe(e,t){let n=0,r=t.length;for(;n!==r;){const a=n+r>>1;Mhe(e,t[a])<0?r=a:n=a+1}const o=xLe(e);return o&&(r=t.lastIndexOf(o,r-1)),r}function xLe(e){let t=e;for(;t=t.parent;)if(Ohe(t)&&Mhe(e,t)===0)return t}function Ohe({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function CLe(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 wLe(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Ld(r)?r.map(o=>o==null?null:""+o):r==null?r:""+r)}return t}const ELe=Symbol(""),$ne=Symbol(""),k5=Symbol(""),QU=Symbol(""),Hj=Symbol("");function K2(){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 Yp(e,t,n,r,o,a=s=>s()){const s=r&&(r.enterCallbacks[o]=r.enterCallbacks[o]||[]);return()=>new Promise((l,c)=>{const d=v=>{v===!1?c(Dy(4,{from:n,to:t})):v instanceof Error?c(v):cLe(v)?c(Dy(2,{from:t,to:v})):(s&&r.enterCallbacks[o]===s&&typeof v=="function"&&s.push(v),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(v=>c(v))})}function bP(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(Che(c)){const h=(c.__vccOpts||c)[t];h&&a.push(Yp(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=RIe(h)?h.default:h;s.mods[l]=h,s.components[l]=p;const g=(p.__vccOpts||p)[t];return g&&Yp(g,n,r,s,l,o)()}))}}return a}function Bne(e){const t=On(k5),n=On(QU),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 v=p.findIndex(Ly.bind(null,h));if(v>-1)return v;const g=Nne(c[d-2]);return d>1&&Nne(h)===g&&p[p.length-1].path!==g?p.findIndex(Ly.bind(null,c[d-2])):v}),a=F(()=>o.value>-1&&DLe(n.params,r.value.params)),s=F(()=>o.value>-1&&o.value===n.matched.length-1&&Lhe(n.params,r.value.params));function l(c={}){if(LLe(c)){const d=t[et(e.replace)?"replace":"push"](et(e.to)).catch(Z4);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 TLe(e){return e.length===1?e[0]:e}const ALe=Se({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:Bne,setup(e,{slots:t}){const n=Xt(Bne(e)),{options:r}=On(k5),o=F(()=>({[Fne(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Fne(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const a=t.default&&TLe(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)}}}),ILe=ALe;function LLe(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 DLe(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(!Ld(o)||o.length!==r.length||r.some((a,s)=>a!==o[s]))return!1}return!0}function Nne(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Fne=(e,t,n)=>e??t??n,PLe=Se({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=On(Hj),o=F(()=>e.route||r.value),a=On($ne,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]);ri($ne,F(()=>s.value+1)),ri(ELe,l),ri(Hj,o);const c=fe();return Rt(()=>[c.value,l.value,e.name],([d,h,p],[v,g,y])=>{h&&(h.instances[p]=d,g&&g!==h&&d&&d===v&&(h.leaveGuards.size||(h.leaveGuards=g.leaveGuards),h.updateGuards.size||(h.updateGuards=g.updateGuards))),d&&h&&(!g||!Ly(h,g)||!v)&&(h.enterCallbacks[p]||[]).forEach(S=>S(d))},{flush:"post"}),()=>{const d=o.value,h=e.name,p=l.value,v=p&&p.components[h];if(!v)return jne(n.default,{Component:v,route:d});const g=p.props[h],y=g?g===!0?d.params:typeof g=="function"?g(d):g:null,k=da(v,so({},y,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(p.instances[h]=null)},ref:c}));return jne(n.default,{Component:k,route:d})||k}}});function jne(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const RLe=PLe;function MLe(e){const t=bLe(e.routes,e),n=e.parseQuery||CLe,r=e.stringifyQuery||One,o=e.history,a=K2(),s=K2(),l=K2(),c=d0(wp);let d=wp;$1&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const h=gP.bind(null,ge=>""+ge),p=gP.bind(null,GIe),v=gP.bind(null,e_);function g(ge,_e){let ze,Qe;return Phe(ge)?(ze=t.getRecordMatcher(ge),Qe=_e):Qe=ge,t.addRoute(Qe,ze)}function y(ge){const _e=t.getRecordMatcher(ge);_e&&t.removeRoute(_e)}function S(){return t.getRoutes().map(ge=>ge.record)}function k(ge){return!!t.getRecordMatcher(ge)}function C(ge,_e){if(_e=so({},_e||c.value),typeof ge=="string"){const be=yP(n,ge,_e.path),Me=t.resolve({path:be.path},_e),He=o.createHref(be.fullPath);return so(be,Me,{params:v(Me.params),hash:e_(be.hash),redirectedFrom:void 0,href:He})}let ze;if(ge.path!=null)ze=so({},ge,{path:yP(n,ge.path,_e.path).path});else{const be=so({},ge.params);for(const Me in be)be[Me]==null&&delete be[Me];ze=so({},ge,{params:p(be)}),_e.params=p(_e.params)}const Qe=t.resolve(ze,_e),Je=ge.hash||"";Qe.params=h(v(Qe.params));const Te=YIe(r,so({},ge,{hash:UIe(Je),path:Qe.path})),ve=o.createHref(Te);return so({fullPath:Te,hash:Je,query:r===One?wLe(ge.query):ge.query||{}},Qe,{redirectedFrom:void 0,href:ve})}function x(ge){return typeof ge=="string"?yP(n,ge,c.value.path):so({},ge)}function E(ge,_e){if(d!==ge)return Dy(8,{from:_e,to:ge})}function _(ge){return P(ge)}function T(ge){return _(so(x(ge),{replace:!0}))}function D(ge){const _e=ge.matched[ge.matched.length-1];if(_e&&_e.redirect){const{redirect:ze}=_e;let Qe=typeof ze=="function"?ze(ge):ze;return typeof Qe=="string"&&(Qe=Qe.includes("?")||Qe.includes("#")?Qe=x(Qe):{path:Qe},Qe.params={}),so({query:ge.query,hash:ge.hash,params:Qe.path!=null?{}:ge.params},Qe)}}function P(ge,_e){const ze=d=C(ge),Qe=c.value,Je=ge.state,Te=ge.force,ve=ge.replace===!0,be=D(ze);if(be)return P(so(x(be),{state:typeof be=="object"?so({},Je,be.state):Je,force:Te,replace:ve}),_e||ze);const Me=ze;Me.redirectedFrom=_e;let He;return!Te&&XIe(r,Qe,ze)&&(He=Dy(16,{to:Me,from:Qe}),ee(Qe,Qe,!0,!1)),(He?Promise.resolve(He):L(Me,Qe)).catch(Xe=>ah(Xe)?ah(Xe,2)?Xe:q(Xe):X(Xe,Me,Qe)).then(Xe=>{if(Xe){if(ah(Xe,2))return P(so({replace:ve},x(Xe.to),{state:typeof Xe.to=="object"?so({},Je,Xe.to.state):Je,force:Te}),_e||Me)}else Xe=j(Me,Qe,!0,ve,Je);return B(Me,Qe,Xe),Xe})}function M(ge,_e){const ze=E(ge,_e);return ze?Promise.reject(ze):Promise.resolve()}function O(ge){const _e=ie.values().next().value;return _e&&typeof _e.runWithContext=="function"?_e.runWithContext(ge):ge()}function L(ge,_e){let ze;const[Qe,Je,Te]=OLe(ge,_e);ze=bP(Qe.reverse(),"beforeRouteLeave",ge,_e);for(const be of Qe)be.leaveGuards.forEach(Me=>{ze.push(Yp(Me,ge,_e))});const ve=M.bind(null,ge,_e);return ze.push(ve),Fe(ze).then(()=>{ze=[];for(const be of a.list())ze.push(Yp(be,ge,_e));return ze.push(ve),Fe(ze)}).then(()=>{ze=bP(Je,"beforeRouteUpdate",ge,_e);for(const be of Je)be.updateGuards.forEach(Me=>{ze.push(Yp(Me,ge,_e))});return ze.push(ve),Fe(ze)}).then(()=>{ze=[];for(const be of Te)if(be.beforeEnter)if(Ld(be.beforeEnter))for(const Me of be.beforeEnter)ze.push(Yp(Me,ge,_e));else ze.push(Yp(be.beforeEnter,ge,_e));return ze.push(ve),Fe(ze)}).then(()=>(ge.matched.forEach(be=>be.enterCallbacks={}),ze=bP(Te,"beforeRouteEnter",ge,_e,O),ze.push(ve),Fe(ze))).then(()=>{ze=[];for(const be of s.list())ze.push(Yp(be,ge,_e));return ze.push(ve),Fe(ze)}).catch(be=>ah(be,8)?be:Promise.reject(be))}function B(ge,_e,ze){l.list().forEach(Qe=>O(()=>Qe(ge,_e,ze)))}function j(ge,_e,ze,Qe,Je){const Te=E(ge,_e);if(Te)return Te;const ve=_e===wp,be=$1?history.state:{};ze&&(Qe||ve?o.replace(ge.fullPath,so({scroll:ve&&be&&be.scroll},Je)):o.push(ge.fullPath,Je)),c.value=ge,ee(ge,_e,ze,ve),q()}let W;function H(){W||(W=o.listen((ge,_e,ze)=>{if(!ke.listening)return;const Qe=C(ge),Je=D(Qe);if(Je){P(so(Je,{replace:!0,force:!0}),Qe).catch(Z4);return}d=Qe;const Te=c.value;$1&&iLe(Ene(Te.fullPath,ze.delta),S5()),L(Qe,Te).catch(ve=>ah(ve,12)?ve:ah(ve,2)?(P(so(x(ve.to),{force:!0}),Qe).then(be=>{ah(be,20)&&!ze.delta&&ze.type===t_.pop&&o.go(-1,!1)}).catch(Z4),Promise.reject()):(ze.delta&&o.go(-ze.delta,!1),X(ve,Qe,Te))).then(ve=>{ve=ve||j(Qe,Te,!1),ve&&(ze.delta&&!ah(ve,8)?o.go(-ze.delta,!1):ze.type===t_.pop&&ah(ve,20)&&o.go(-1,!1)),B(Qe,Te,ve)}).catch(Z4)}))}let K=K2(),Y=K2(),ne;function X(ge,_e,ze){q(ge);const Qe=Y.list();return Qe.length?Qe.forEach(Je=>Je(ge,_e,ze)):console.error(ge),Promise.reject(ge)}function U(){return ne&&c.value!==wp?Promise.resolve():new Promise((ge,_e)=>{K.add([ge,_e])})}function q(ge){return ne||(ne=!ge,H(),K.list().forEach(([_e,ze])=>ge?ze(ge):_e()),K.reset()),ge}function ee(ge,_e,ze,Qe){const{scrollBehavior:Je}=e;if(!$1||!Je)return Promise.resolve();const Te=!ze&&oLe(Ene(ge.fullPath,0))||(Qe||!ze)&&history.state&&history.state.scroll||null;return Cn().then(()=>Je(ge,_e,Te)).then(ve=>ve&&rLe(ve)).catch(ve=>X(ve,ge,_e))}const re=ge=>o.go(ge);let ae;const ie=new Set,ke={currentRoute:c,listening:!0,addRoute:g,removeRoute:y,clearRoutes:t.clearRoutes,hasRoute:k,getRoutes:S,resolve:C,options:e,push:_,replace:T,go:re,back:()=>re(-1),forward:()=>re(1),beforeEach:a.add,beforeResolve:s.add,afterEach:l.add,onError:Y.add,isReady:U,install(ge){const _e=this;ge.component("RouterLink",ILe),ge.component("RouterView",RLe),ge.config.globalProperties.$router=_e,Object.defineProperty(ge.config.globalProperties,"$route",{enumerable:!0,get:()=>et(c)}),$1&&!ae&&c.value===wp&&(ae=!0,_(o.location).catch(Je=>{}));const ze={};for(const Je in wp)Object.defineProperty(ze,Je,{get:()=>c.value[Je],enumerable:!0});ge.provide(k5,_e),ge.provide(QU,PU(ze)),ge.provide(Hj,c);const Qe=ge.unmount;ie.add(ge),ge.unmount=function(){ie.delete(ge),ie.size<1&&(d=wp,W&&W(),W=null,c.value=wp,ae=!1,ne=!1),Qe()}}};function Fe(ge){return ge.reduce((_e,ze)=>_e.then(()=>O(ze)),Promise.resolve())}return ke}function OLe(e,t){const n=[],r=[],o=[],a=Math.max(t.matched.length,e.matched.length);for(let s=0;sLy(d,l))?r.push(l):n.push(l));const c=e.matched[s];c&&(t.matched.find(d=>Ly(d,c))||o.push(c))}return[n,r,o]}function el(){return On(k5)}function x5(e){return On(QU)}const Xm=Object.prototype.toString;function sr(e){return Xm.call(e)==="[object Array]"}function Tl(e){return Xm.call(e)==="[object Null]"}function El(e){return Xm.call(e)==="[object Boolean]"}function br(e){return Xm.call(e)==="[object Object]"}const Am=e=>Xm.call(e)==="[object Promise]";function cs(e){return Xm.call(e)==="[object String]"}function Ze(e){return Xm.call(e)==="[object Number]"&&e===e}function An(e){return e===void 0}function En(e){return typeof e=="function"}function $Le(e){return br(e)&&Object.keys(e).length===0}function Vne(e){return e||e===0}function YC(e){return e===window}const $he=e=>e?.$!==void 0,BLe=e=>/\[Q]Q/.test(e);function zc(e){return br(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"),px={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:"日"}}},NLe={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:px,datePicker:{view:px.view,month:px.month,week:px.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:"暂无"}},eH=fe("zh-CN"),O8=Xt({"zh-CN":NLe}),FLe=(e,t)=>{for(const n of Object.keys(e))(!O8[n]||t?.overwrite)&&(O8[n]=e[n])},jLe=e=>{if(!O8[e]){console.warn(`use ${e} failed! Please add ${e} first`);return}eH.value=e},VLe=()=>eH.value,No=()=>{const e=On(Ya,void 0),t=F(()=>{var o;return(o=e?.locale)!=null?o:O8[eH.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}}},zLe="A",ULe="arco",Wj="$arco",Xn=e=>{var t;return(t=e?.componentPrefix)!=null?t:zLe},Zn=(e,t)=>{var n;t&&t.classPrefix&&(e.config.globalProperties[Wj]={...(n=e.config.globalProperties[Wj])!=null?n:{},classPrefix:t.classPrefix})},Ae=e=>{var t,n,r;const o=_o(),a=On(Ya,void 0),s=(r=(n=a?.prefixCls)!=null?n:(t=o?.appContext.config.globalProperties[Wj])==null?void 0:t.classPrefix)!=null?r:ULe;return e?`${s}-${e}`:s};var Bhe=(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),YLe?(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=qLe.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})(),Nhe=(function(e,t){for(var n=0,r=Object.keys(t);n"u"||!(Element instanceof Object))){if(!(t instanceof Py(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new i7e(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 Py(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 o7e(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})(),jhe=typeof WeakMap<"u"?new WeakMap:new Bhe,Vhe=(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=XLe.getInstance(),r=new s7e(t,n,this);jhe.set(this,r)}return e})();["observe","unobserve","disconnect"].forEach(function(e){Vhe.prototype[e]=function(){var t;return(t=jhe.get(this))[e].apply(t,arguments)}});var w5=(function(){return typeof $8.ResizeObserver<"u"?$8.ResizeObserver:Vhe})();const E5=e=>!!(e&&e.shapeFlag&1),G_=(e,t)=>!!(e&&e.shapeFlag&6),a7e=(e,t)=>!!(e&&e.shapeFlag&8),T5=(e,t)=>!!(e&&e.shapeFlag&16),A5=(e,t)=>!!(e&&e.shapeFlag&32),ry=e=>{var t,n;if(e)for(const r of e){if(E5(r)||G_(r))return r;if(T5(r,r.children)){const o=ry(r.children);if(o)return o}else if(A5(r,r.children)){const o=(n=(t=r.children).default)==null?void 0:n.call(t);if(o){const a=ry(o);if(a)return a}}else if(sr(r)){const o=ry(r);if(o)return o}}},l7e=e=>{if(!e)return!0;for(const t of e)if(t.children)return!1;return!0},zhe=(e,t)=>{if(e&&e.length>0)for(let n=0;n0&&zhe(o,t))return!0}return!1},tH=e=>{if(T5(e,e.children))return e.children;if(sr(e))return e},Uhe=e=>{var t,n;if(E5(e))return e.el;if(G_(e)){if(((t=e.el)==null?void 0:t.nodeType)===1)return e.el;if((n=e.component)!=null&&n.subTree){const r=Uhe(e.component.subTree);if(r)return r}}else{const r=tH(e);return Hhe(r)}},Hhe=e=>{if(e&&e.length>0)for(const t of e){const n=Uhe(t);if(n)return n}},bf=(e,t=!1)=>{var n,r;const o=[];for(const a of e??[])E5(a)||G_(a)||t&&a7e(a,a.children)?o.push(a):T5(a,a.children)?o.push(...bf(a.children,t)):A5(a,a.children)?o.push(...bf((r=(n=a.children).default)==null?void 0:r.call(n),t)):sr(a)&&o.push(...bf(a,t));return o};function u7e(e){function t(n){const r=[];return n.forEach(o=>{var a,s;Wi(o)&&o.type===Bt?A5(o,o.children)?r.push(...t(((s=(a=o.children).default)==null?void 0:s.call(a))||[])):T5(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 En(e)?e:()=>e},Whe=(e,t)=>{var n;const r=[];if(G_(e,e.type))e.type.name===t?e.component&&r.push(e.component.uid):(n=e.component)!=null&&n.subTree&&r.push(...Whe(e.component.subTree,t));else{const o=tH(e);o&&r.push(...Ghe(o,t))}return r},Ghe=(e,t)=>{const n=[];if(e&&e.length>0)for(const r of e)n.push(...Whe(r,t));return n};var Dd=Se({name:"ResizeObserver",emits:["resize"],setup(e,{emit:t,slots:n}){let r;const o=fe(),a=F(()=>$he(o.value)?o.value.$el:o.value),s=c=>{c&&(r=new w5(d=>{const h=d[0];t("resize",h)}),r.observe(c))},l=()=>{r&&(r.disconnect(),r=null)};return Rt(a,c=>{r&&l(),c&&s(c)}),bn(()=>{a.value&&s(a.value)}),gi(()=>{l()}),()=>{var c,d;const h=ry((d=(c=n.default)==null?void 0:c.call(n))!=null?d:[]);return h?wl(h,{ref:o},!0):null}}});const Khe=typeof window>"u"?global:window,qhe=Khe.requestAnimationFrame,N8=Khe.cancelAnimationFrame;function Im(e){let t=0;const n=(...r)=>{t&&N8(t),t=qhe(()=>{e(...r),t=0})};return n.cancel=()=>{N8(t),t=0},n}const iy=()=>{},Yhe=()=>{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)}},K_=(()=>{try{return!(typeof window<"u"&&document!==void 0)}catch{return!0}})(),Mi=K_?iy:(e,t,n,r=!1)=>{e.addEventListener(t,n,r)},ro=K_?iy:(e,t,n,r=!1)=>{e.removeEventListener(t,n,r)},c7e=(e,t)=>{if(!e||!t)return!1;let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1},I5=e=>{const t=document.createElement("div");return t.setAttribute("class",`arco-overlay arco-overlay-${e}`),t},Xhe=(e,t)=>{var n;return K_?iy():(n=(t??document).querySelector(e))!=null?n:void 0},lf=(e,t)=>{if(cs(e)){const n=e[0]==="#"?`[id='${e.slice(1)}']`:e;return Xhe(n,t)}return e},d7e=(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}},f7e=e=>e.tagName==="BODY"?document.documentElement.scrollHeight>window.innerHeight:e.scrollHeight>e.offsetHeight,h7e=e=>e.tagName==="BODY"?window.innerWidth-Yhe().width:e.offsetWidth-e.clientWidth;var Ve=(e,t)=>{for(const[n,r]of t)e[n]=r;return e};function p7e(e){return YC(e)?{top:0,bottom:window.innerHeight}:e.getBoundingClientRect()}const v7e=Se({name:"Affix",components:{ResizeObserver:Dd},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=Ae("affix"),{target:r,targetContainer:o}=nn(e),a=fe(),s=fe(),l=fe(!1),c=fe({}),d=fe({}),h=F(()=>({[n]:l.value})),p=Im(()=>{if(!a.value||!s.value)return;const{offsetTop:v,offsetBottom:g}=e,y=An(g)?"top":"bottom",S=a.value.getBoundingClientRect(),k=p7e(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<(v||0),x=C?{position:"fixed",top:`${k.top+(v||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 bn(()=>{Os(v=>{const g=r&&r.value!==window&&lf(r.value)||window;s.value=g,g&&(Mi(g,"scroll",p),Mi(g,"resize",p),v(()=>{ro(g,"scroll",p),ro(g,"resize",p)}))}),Os(v=>{if(!s.value)return;const g=o&&o.value!==window&&lf(o.value)||window;g&&(Mi(g,"scroll",p),Mi(g,"resize",p),v(()=>{ro(g,"scroll",p),ro(g,"resize",p)}))})}),{wrapperRef:a,isFixed:l,classNames:h,placeholderStyles:c,fixedStyles:d,updatePositionThrottle:p}},methods:{updatePosition(){this.updatePositionThrottle()}}}),m7e={ref:"wrapperRef"};function g7e(e,t,n,r,o,a){const s=Ie("ResizeObserver");return z(),qe(s,{onResize:e.updatePositionThrottle},{default:de(()=>[I("div",m7e,[e.isFixed?(z(),Q("div",{key:0,style:Ge(e.placeholderStyles)},null,4)):Le("v-if",!0),I("div",{class:ue(e.classNames),style:Ge(e.fixedStyles)},[$(s,{onResize:e.updatePositionThrottle},{default:de(()=>[vt(e.$slots,"default")]),_:3},8,["onResize"])],6)],512)]),_:3},8,["onResize"])}var _P=Ve(v7e,[["render",g7e]]);const y7e=Object.assign(_P,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+_P.name,_P)}}),b7e=Se({name:"IconHover",props:{prefix:{type:String},size:{type:String,default:"medium"},disabled:{type:Boolean,default:!1}},setup(){return{prefixCls:Ae("icon-hover")}}});function _7e(e,t,n,r,o,a){return z(),Q("span",{class:ue([e.prefixCls,{[`${e.prefix}-icon-hover`]:e.prefix,[`${e.prefixCls}-size-${e.size}`]:e.size!=="medium",[`${e.prefixCls}-disabled`]:e.disabled}])},[vt(e.$slots,"default")],2)}var Lo=Ve(b7e,[["render",_7e]]);const S7e=Se({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=Ae("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)}}}}),k7e=["stroke-width","stroke-linecap","stroke-linejoin"];function x7e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,k7e)}var SP=Ve(S7e,[["render",x7e]]);const ds=Object.assign(SP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SP.name,SP)}}),C7e=Se({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=Ae("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)}}}}),w7e=["stroke-width","stroke-linecap","stroke-linejoin"];function E7e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,w7e)}var kP=Ve(C7e,[["render",E7e]]);const i3=Object.assign(kP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kP.name,kP)}}),T7e=Se({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=Ae("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)}}}}),A7e=["stroke-width","stroke-linecap","stroke-linejoin"];function I7e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,A7e)}var xP=Ve(T7e,[["render",I7e]]);const Yh=Object.assign(xP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xP.name,xP)}}),L7e=Se({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=Ae("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)}}}}),D7e=["stroke-width","stroke-linecap","stroke-linejoin"];function P7e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,D7e)}var CP=Ve(L7e,[["render",P7e]]);const Lf=Object.assign(CP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CP.name,CP)}}),R7e=Se({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=Ae("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)}}}}),M7e=["stroke-width","stroke-linecap","stroke-linejoin"];function O7e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,M7e)}var wP=Ve(R7e,[["render",O7e]]);const Zm=Object.assign(wP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wP.name,wP)}}),$7e=Se({name:"Alert",components:{IconHover:Lo,IconClose:ds,IconInfoCircleFill:i3,IconCheckCircleFill:Yh,IconExclamationCircleFill:Lf,IconCloseCircleFill:Zm},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=Ae("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 B7e(e,t,n,r,o,a){const s=Ie("icon-info-circle-fill"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill"),h=Ie("icon-close"),p=Ie("icon-hover");return z(),qe(Cs,{name:"zoom-in-top",onAfterLeave:e.handleAfterLeave},{default:de(()=>[e.visible?(z(),Q("div",{key:0,role:"alert",class:ue(e.cls)},[e.showIcon&&!(e.type==="normal"&&!e.$slots.icon)?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),qe(s,{key:0})):e.type==="success"?(z(),qe(l,{key:1})):e.type==="warning"?(z(),qe(c,{key:2})):e.type==="error"?(z(),qe(d,{key:3})):Le("v-if",!0)])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-body`)},[e.title||e.$slots.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2)],2),e.$slots.action?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-action`)},[vt(e.$slots,"action")],2)):Le("v-if",!0),e.closable?(z(),Q("div",{key:2,tabindex:"-1",role:"button","aria-label":"Close",class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...v)=>e.handleClose&&e.handleClose(...v))},[vt(e.$slots,"close-element",{},()=>[$(p,null,{default:de(()=>[$(h)]),_:1})])],2)):Le("v-if",!0)],2)):Le("v-if",!0)]),_:3},8,["onAfterLeave"])}var EP=Ve($7e,[["render",B7e]]);const Zhe=Object.assign(EP,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+EP.name,EP)}});function Une(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Hne(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function TP(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(be){return be!==s};if(!Une(e))throw new TypeError("Invalid target");for(var d,h,p=document.scrollingElement||document.documentElement,v=[],g=e;Une(g)&&c(g);){if((g=(h=(d=g).parentElement)==null?d.getRootNode().host||null:h)===p){v.push(g);break}g!=null&&g===document.body&&TP(g)&&!TP(document.documentElement)||g!=null&&TP(g,l)&&v.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=o==="start"||o==="nearest"?T:o==="end"?P:T+E/2,L=a==="center"?M+_/2:a==="end"?D:M,B=[],j=0;j=0&&M>=0&&P<=S&&D<=y&&T>=ne&&P<=U&&M>=q&&D<=X)return B;var ee=getComputedStyle(W),re=parseInt(ee.borderLeftWidth,10),ae=parseInt(ee.borderTopWidth,10),ie=parseInt(ee.borderRightWidth,10),ke=parseInt(ee.borderBottomWidth,10),Fe=0,ge=0,_e="offsetWidth"in W?W.offsetWidth-W.clientWidth-re-ie:0,ze="offsetHeight"in W?W.offsetHeight-W.clientHeight-ae-ke:0,Qe="offsetWidth"in W?W.offsetWidth===0?0:Y/W.offsetWidth:0,Je="offsetHeight"in W?W.offsetHeight===0?0:K/W.offsetHeight:0;if(p===W)Fe=o==="start"?O:o==="end"?O-S:o==="nearest"?vx(C,C+S,S,ae,ke,C+O,C+O+E,E):O-S/2,ge=a==="start"?L:a==="center"?L-y/2:a==="end"?L-y:vx(k,k+y,y,re,ie,k+L,k+L+_,_),Fe=Math.max(0,Fe+C),ge=Math.max(0,ge+k);else{Fe=o==="start"?O-ne-ae:o==="end"?O-U+ke+ze:o==="nearest"?vx(ne,U,K,ae,ke+ze,O,O+E,E):O-(ne+K/2)+ze/2,ge=a==="start"?L-q-re:a==="center"?L-(q+Y/2)+_e/2:a==="end"?L-X+ie+_e:vx(q,X,Y,re,ie+_e,L,L+_,_);var Te=W.scrollLeft,ve=W.scrollTop;O+=ve-(Fe=Math.max(0,Math.min(ve+Fe/Je,W.scrollHeight-K/Je+ze))),L+=Te-(ge=Math.max(0,Math.min(Te+ge/Qe,W.scrollWidth-Y/Qe+_e)))}B.push({el:W,top:Fe,left:ge})}return B},q_=function(e){return function(t){return Math.pow(t,e)}},Y_=function(e){return function(t){return 1-Math.abs(Math.pow(t-1,e))}},L5=function(e){return function(t){return t<.5?q_(e)(t*2)/2:Y_(e)(t*2-1)/2+.5}},N7e=function(e){return e},F7e=q_(2),j7e=Y_(2),V7e=L5(2),z7e=q_(3),U7e=Y_(3),H7e=L5(3),W7e=q_(4),G7e=Y_(4),K7e=L5(4),q7e=q_(5),Y7e=Y_(5),X7e=L5(5),Z7e=function(e){return 1+Math.sin(Math.PI/2*e-Math.PI/2)},J7e=function(e){return Math.sin(Math.PI/2*e)},Q7e=function(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2},nH=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)},Jhe=function(e){return 1-nH(1-e)},eDe=function(e){return e<.5?Jhe(e*2)*.5:nH(e*2-1)*.5+.5},tDe=Object.freeze({linear:N7e,quadIn:F7e,quadOut:j7e,quadInOut:V7e,cubicIn:z7e,cubicOut:U7e,cubicInOut:H7e,quartIn:W7e,quartOut:G7e,quartInOut:K7e,quintIn:q7e,quintOut:Y7e,quintInOut:X7e,sineIn:Z7e,sineOut:J7e,sineInOut:Q7e,bounceOut:nH,bounceIn:Jhe,bounceInOut:eDe}),Jm=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={}};Jm.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])*tDe[this.easing](this.elapsed/this.duration);this.started||(this.onStart&&this.onStart(this.keys),this.started=!0),this.onUpdate(this.keys)}};Jm.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()};Jm.prototype.stop=function(){cancelAnimationFrame(this.timer),this.timer=null};function nDe(e,t,n){new Jm({from:{scrollTop:e.scrollTop},to:{scrollTop:t},easing:"quartOut",duration:300,onUpdate:o=>{e.scrollTop=o.scrollTop},onFinish:()=>{En(n)&&n()}}).start()}const Qhe=Symbol("ArcoAnchor"),rDe=["start","end","center","nearest"],iDe=Se({name:"Anchor",props:{boundary:{type:[Number,String],default:"start",validator:e=>Ze(e)||rDe.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=Ae("anchor"),r=fe(),o=fe(),a=Xt({}),s=fe(""),l=fe(!1),c=fe(),d=fe(),h=(T,D)=>{T&&(a[T]=D)},p=T=>{delete a[T]},v=(T,D)=>{e.changeHash||T.preventDefault(),D&&(g(D),S(D)),t("select",D,s.value)},g=T=>{try{const D=lf(T);if(!D)return;let P,M=0;Ze(e.boundary)?(P="start",M=e.boundary):P=e.boundary;const O=Kj(D,{block:P});if(!O.length)return;const{el:L,top:B}=O[0],j=B-M;nDe(L,j,()=>{l.value=!1}),l.value=!0}catch(D){console.error(D)}},y=Im(()=>{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=lf(`a[data-href='${T}']`,r.value);if(!D)return;a[T]=D}T!==s.value&&(s.value=T,Cn(()=>{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=lf(P);if(M){const{top:O}=M.getBoundingClientRect(),L=YC(c.value)?O-T:O-D.top-T;if(L>=0&&L<=D.height/2)return M}}};Rt(s,()=>{const T=a[s.value];!e.lineLess&&T&&o.value&&(o.value.style.top=`${T.offsetTop}px`)});const C=()=>{c.value&&Mi(c.value,"scroll",y)},x=()=>{c.value&&ro(c.value,"scroll",y)},E=()=>{e.scrollContainer?(c.value=YC(e.scrollContainer)?window:lf(e.scrollContainer),d.value=YC(e.scrollContainer)?document.documentElement:lf(e.scrollContainer)):(c.value=window,d.value=document.documentElement)};bn(()=>{E();const T=decodeURIComponent(window.location.hash);T?(g(T),S(T)):y(),C()}),Io(()=>{x()}),ri(Qhe,Xt({currentLink:s,addLink:h,removeLink:p,handleClick:v}));const _=F(()=>[n,{[`${n}-line-less`]:e.lineLess}]);return{prefixCls:n,cls:_,anchorRef:r,lineSliderRef:o}}});function oDe(e,t,n,r,o,a){return z(),Q("div",{ref:"anchorRef",class:ue(e.cls)},[e.lineLess?Le("v-if",!0):(z(),Q("div",{key:0,ref:"lineSliderRef",class:ue(`${e.prefixCls}-line-slider`)},null,2)),I("ul",{class:ue(`${e.prefixCls}-list`)},[vt(e.$slots,"default")],2)],2)}var AP=Ve(iDe,[["render",oDe]]);const sDe=Se({name:"AnchorLink",props:{title:String,href:String},setup(e){const t=Ae("anchor"),n=`${t}-link`,r=fe(),o=On(Qhe,void 0);bn(()=>{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)}}}),aDe=["href"];function lDe(e,t,n,r,o,a){return z(),Q("li",{ref:"linkRef",class:ue(e.cls)},[I("a",{class:ue(e.linkCls),href:e.href,onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[vt(e.$slots,"default",{},()=>[Ue(je(e.title),1)])],10,aDe),e.$slots.sublist?(z(),Q("ul",{key:0,class:ue(`${e.prefixCls}-sublist`)},[vt(e.$slots,"sublist")],2)):Le("v-if",!0)],2)}var XC=Ve(sDe,[["render",lDe]]);const uDe=Object.assign(AP,{Link:XC,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+AP.name,AP),e.component(n+XC.name,XC)}}),D5=["info","success","warning","error"],S0=["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"],cDe=Se({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=Ae("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)}}}}),dDe=["stroke-width","stroke-linecap","stroke-linejoin"];function fDe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 24c0 9.941-8.059 18-18 18S6 33.941 6 24 14.059 6 24 6"},null,-1)]),14,dDe)}var IP=Ve(cDe,[["render",fDe]]);const Xa=Object.assign(IP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IP.name,IP)}}),hDe=Se({name:"FeedbackIcon",components:{IconLoading:Xa,IconCheckCircleFill:Yh,IconExclamationCircleFill:Lf,IconCloseCircleFill:Zm},props:{type:{type:String}},setup(e){const t=Ae("feedback-icon");return{cls:F(()=>[t,`${t}-status-${e.type}`])}}});function pDe(e,t,n,r,o,a){const s=Ie("icon-loading"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill");return z(),Q("span",{class:ue(e.cls)},[e.type==="validating"?(z(),qe(s,{key:0})):e.type==="success"?(z(),qe(l,{key:1})):e.type==="warning"?(z(),qe(c,{key:2})):e.type==="error"?(z(),qe(d,{key:3})):Le("v-if",!0)],2)}var X_=Ve(hDe,[["render",pDe]]);const rH={key:"Enter"},epe={key:"Backspace",code:"Backspace"},vDe={code:"ArrowLeft"},mDe={code:"ArrowRight"},xa=(e,t)=>{const n={...e};for(const r of t)r in n&&delete n[r];return n};function xf(e,t){const n={};return t.forEach(r=>{const o=r;r in e&&(n[o]=e[o])}),n}const qj=Symbol("ArcoFormItemContext"),iH=Symbol("ArcoFormContext"),Do=({size:e,disabled:t,error:n,uninject:r}={})=>{const o=r?{}:On(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=Lu(o,"feedback"),d=Lu(o,"eventHandlers");return{formItemCtx:o,mergedSize:a,mergedDisabled:s,mergedError:l,feedback:c,eventHandlers:d}},wa=(e,{defaultValue:t="medium"}={})=>{const n=On(Ya,void 0);return{mergedSize:F(()=>{var o,a;return(a=(o=e?.value)!=null?o:n?.size)!=null?a:t})}};function tpe(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 Q4=Se({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=Ae("input"),d=fe(),{mergedSize:h,mergedDisabled:p,mergedError:v,feedback:g,eventHandlers:y}=Do({size:o,disabled:a,error:s}),{mergedSize:S}=wa(h),[k,C]=tpe(d),x=fe(e.defaultValue),E=F(()=>{var ve;return(ve=e.modelValue)!=null?ve:x.value});let _=E.value;Rt(l,ve=>{(An(ve)||Tl(ve))&&(x.value="")}),Rt(E,(ve,be)=>{_=be});const T=fe(!1),D=F(()=>e.allowClear&&!e.readonly&&!p.value&&!!E.value),P=fe(!1),M=fe(""),O=ve=>{var be;return En(e.wordLength)?e.wordLength(ve):(be=ve.length)!=null?be:0},L=F(()=>O(E.value)),B=F(()=>v.value||!!(br(e.maxLength)&&e.maxLength.errorOnly&&L.value>W.value)),j=F(()=>br(e.maxLength)&&!!e.maxLength.errorOnly),W=F(()=>br(e.maxLength)?e.maxLength.length:e.maxLength),H=F(()=>{const ve=O("a");return Math.floor(W.value/ve)}),K=ve=>{var be,Me;W.value&&!j.value&&O(ve)>W.value&&(ve=(Me=(be=e.wordSlice)==null?void 0:be.call(e,ve,W.value))!=null?Me:ve.slice(0,H.value)),x.value=ve,t("update:modelValue",ve)},Y=ve=>{d.value&&ve.target!==d.value&&(ve.preventDefault(),d.value.focus())},ne=(ve,be)=>{var Me,He;ve!==_&&(_=ve,t("change",ve,be),(He=(Me=y.value)==null?void 0:Me.onChange)==null||He.call(Me,be))},X=ve=>{var be,Me;T.value=!0,t("focus",ve),(Me=(be=y.value)==null?void 0:be.onFocus)==null||Me.call(be,ve)},U=ve=>{var be,Me;T.value=!1,ne(E.value,ve),t("blur",ve),(Me=(be=y.value)==null?void 0:be.onBlur)==null||Me.call(be,ve)},q=ve=>{var be,Me,He;const{value:Xe,selectionStart:rt,selectionEnd:ft}=ve.target;if(ve.type==="compositionend"){if(P.value=!1,M.value="",W.value&&!j.value&&L.value>=W.value&&O(Xe)>W.value&&rt===ft){ee();return}K(Xe),t("input",Xe,ve),(Me=(be=y.value)==null?void 0:be.onInput)==null||Me.call(be,ve),ee()}else P.value=!0,M.value=E.value+((He=ve.data)!=null?He:"")},ee=()=>{k(),Cn(()=>{d.value&&E.value!==d.value.value&&(d.value.value=E.value,C())})},re=ve=>{var be,Me;const{value:He}=ve.target;if(!P.value){if(W.value&&!j.value&&L.value>=W.value&&O(He)>W.value&&ve.inputType==="insertText"){ee();return}K(He),t("input",He,ve),(Me=(be=y.value)==null?void 0:be.onInput)==null||Me.call(be,ve),ee()}},ae=ve=>{K(""),ne("",ve),t("clear",ve)},ie=ve=>{const be=ve.key||ve.code;!P.value&&be===rH.key&&(ne(E.value,ve),t("pressEnter",ve))},ke=F(()=>[`${c}-outer`,`${c}-outer-size-${S.value}`,{[`${c}-outer-has-suffix`]:!!n.suffix,[`${c}-outer-disabled`]:p.value}]),Fe=F(()=>[`${c}-wrapper`,{[`${c}-error`]:B.value,[`${c}-disabled`]:p.value,[`${c}-focus`]:T.value}]),ge=F(()=>[c,`${c}-size-${S.value}`]),_e=F(()=>xa(r,S0)),ze=F(()=>xf(r,S0)),Qe=F(()=>{const ve={...ze.value,...e.inputAttrs};return B.value&&(ve["aria-invalid"]=!0),ve}),Je=ve=>{var be;return $("span",Vt({class:Fe.value,onMousedown:Y},ve?void 0:_e.value),[n.prefix&&$("span",{class:`${c}-prefix`},[n.prefix()]),$("input",Vt({ref:d,class:ge.value,value:E.value,type:e.type,placeholder:e.placeholder,readonly:e.readonly,disabled:p.value,onInput:re,onKeydown:ie,onFocus:X,onBlur:U,onCompositionstart:q,onCompositionupdate:q,onCompositionend:q},Qe.value),null),D.value&&$(Lo,{prefix:c,class:`${c}-clear-btn`,onClick:ae},{default:()=>[$(ds,null,null)]}),(n.suffix||!!e.maxLength&&e.showWordLimit||!!g.value)&&$("span",{class:[`${c}-suffix`,{[`${c}-suffix-has-feedback`]:g.value}]},[!!e.maxLength&&e.showWordLimit&&$("span",{class:`${c}-word-limit`},[L.value,Ue("/"),W.value]),(be=n.suffix)==null?void 0:be.call(n),!!g.value&&$(X_,{type:g.value},null)])])};return{inputRef:d,render:()=>n.prepend||n.append||e.prepend||e.append?$("span",Vt({class:ke.value},_e.value),[(n.prepend||e.prepend)&&$("span",{class:`${c}-prepend`},[n.prepend?n.prepend():e.prepend]),Je(!0),(n.append||e.append)&&$("span",{class:`${c}-append`},[n.append?n.append():e.append])]):Je()}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const gDe=Se({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=Ae("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)}}}}),yDe=["stroke-width","stroke-linecap","stroke-linejoin"];function bDe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,yDe)}var LP=Ve(gDe,[["render",bDe]]);const Lm=Object.assign(LP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LP.name,LP)}}),npe=Symbol("ArcoButtonGroup"),_De=Se({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=Ae("btn"),a=On(npe,void 0),s=F(()=>{var g;return(g=n.value)!=null?g:a?.size}),l=F(()=>!!(r.value||a?.disabled)),{mergedSize:c,mergedDisabled:d}=Do({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)}}}}),SDe=["href"],kDe=["type","disabled","autofocus"];function xDe(e,t,n,r,o,a){const s=Ie("icon-loading");return e.href?(z(),Q("a",{key:0,class:ue([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?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[e.loading?(z(),qe(s,{key:0,spin:"true"})):vt(e.$slots,"icon",{key:1})],2)):Le("v-if",!0),vt(e.$slots,"default")],10,SDe)):(z(),Q("button",{key:1,class:ue([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?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[e.loading?(z(),qe(s,{key:0,spin:!0})):vt(e.$slots,"icon",{key:1})],2)):Le("v-if",!0),vt(e.$slots,"default")],10,kDe))}var DP=Ve(_De,[["render",xDe]]);const CDe=Se({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=Ae("btn-group");return ri(npe,Xt({type:t,size:n,shape:a,status:r,disabled:o})),{prefixCls:s}}});function wDe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[vt(e.$slots,"default")],2)}var eb=Ve(CDe,[["render",wDe]]);const Xo=Object.assign(DP,{Group:eb,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+DP.name,DP),e.component(n+eb.name,eb)}});var ZC=Se({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=Ae("input-search"),{mergedSize:a}=wa(r),s=fe(),l=p=>{s.value.inputRef&&t("search",s.value.inputRef.value,p)},c=()=>{var p;return $(Bt,null,[e.loading?$(Xa,null,null):$(Lo,{onClick:l},{default:()=>[$(Lm,null,null)]}),(p=n.suffix)==null?void 0:p.call(n)])},d=()=>{var p;let v={};return e.buttonText||n["button-default"]||n["button-icon"]?v={default:(p=n["button-default"])!=null?p:e.buttonText?()=>e.buttonText:void 0,icon:n["button-icon"]}:v={icon:()=>$(Lm,null,null)},$(Xo,Vt({type:"primary",class:`${o}-btn`,disabled:e.disabled,size:a.value,loading:e.loading},e.buttonProps,{onClick:l}),v)};return{inputRef:s,render:()=>$(Q4,{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 EDe=Se({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=Ae("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)}}}}),TDe=["stroke-width","stroke-linecap","stroke-linejoin"];function ADe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M29 24a5 5 0 1 1-10 0 5 5 0 0 1 10 0Z"},null,-1)]),14,TDe)}var PP=Ve(EDe,[["render",ADe]]);const k0=Object.assign(PP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PP.name,PP)}}),IDe=Se({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=Ae("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)}}}}),LDe=["stroke-width","stroke-linecap","stroke-linejoin"];function DDe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,LDe)}var RP=Ve(IDe,[["render",DDe]]);const rpe=Object.assign(RP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RP.name,RP)}});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(An(n.value)?e:n.value);return Rt(n,s=>{An(s)&&o(void 0)}),[F(()=>An(n.value)?r.value:n.value),o,r]}const PDe=Se({name:"InputPassword",components:{IconEye:k0,IconEyeInvisible:rpe,AIconHover:Lo,AInput:Q4},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,Xt({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 RDe(e,t,n,r,o,a){const s=Ie("icon-eye"),l=Ie("icon-eye-invisible"),c=Ie("a-icon-hover"),d=Ie("a-input");return z(),qe(d,{ref:"inputRef",type:e.mergedVisible?"password":"text"},yo({_:2},[e.$slots.prepend?{name:"prepend",fn:de(()=>[vt(e.$slots,"prepend")]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(e.$slots,"prefix")]),key:"1"}:void 0,e.invisibleButton||e.$slots.suffix?{name:"suffix",fn:de(()=>[e.invisibleButton?(z(),qe(c,{key:0,onClick:e.handleInvisible,onMousedown:t[0]||(t[0]=us(()=>{},["prevent"])),onMouseup:t[1]||(t[1]=us(()=>{},["prevent"]))},{default:de(()=>[e.mergedVisible?(z(),qe(l,{key:1})):(z(),qe(s,{key:0}))]),_:1},8,["onClick"])):Le("v-if",!0),vt(e.$slots,"suffix")]),key:"2"}:void 0,e.$slots.append?{name:"append",fn:de(()=>[vt(e.$slots,"append")]),key:"3"}:void 0]),1032,["type"])}var JC=Ve(PDe,[["render",RDe]]);const MDe=Se({name:"InputGroup",setup(){return{prefixCls:Ae("input-group")}}});function ODe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[vt(e.$slots,"default")],2)}var oy=Ve(MDe,[["render",ODe]]);const N0=Object.assign(Q4,{Search:ZC,Password:JC,Group:oy,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+Q4.name,Q4),e.component(n+oy.name,oy),e.component(n+ZC.name,ZC),e.component(n+JC.name,JC)}}),$De=()=>{const{height:e,width:t}=Yhe();return{width:Math.min(t,window.innerWidth),height:Math.min(e,window.innerHeight)}},Wne=(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}},BDe=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"}},mx=(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}},NDe=(e,t,{containerRect:n,triggerRect:r,popupRect:o,offset:a,translate:s})=>{const l=BDe(e),c=$De(),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=T4("bottom",r,o,{offset:a,translate:s});c.height-(n.top+p.top+o.height)>0&&(h=mx(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=T4("top",r,o,{offset:a,translate:s});n.top+p.top>0&&(h=mx(e,"top"),t.top=p.top)}if(l==="left"&&d.left<0)if(r.left>o.width)t.left=-n.left;else{const p=T4("right",r,o,{offset:a,translate:s});c.width-(n.left+p.left+o.width)>0&&(h=mx(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=T4("left",r,o,{offset:a,translate:s});n.left+p.left>0&&(h=mx(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}},T4=(e,t,n,{offset:r=0,translate:o=[0,0]}={})=>{var a;const s=(a=sr(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}}},FDe=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}`},jDe=(e,t,n,r,{offset:o=0,translate:a=[0,0],customStyle:s={},autoFitPosition:l=!1}={})=>{let c=e,d=T4(e,n,r,{offset:o,translate:a});if(l){const p=NDe(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}},VDe=(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}},zDe=e=>e.scrollHeight>e.offsetHeight||e.scrollWidth>e.offsetWidth,Gne=e=>{var t;const n=[];let r=e;for(;r&&r!==document.documentElement;)zDe(r)&&n.push(r),r=(t=r.parentElement)!=null?t:void 0;return n},ipe=()=>{const e={},t=fe(),n=()=>{const r=Hhe(e.value);r!==t.value&&(t.value=r)};return bn(()=>n()),Qa(()=>n()),{children:e,firstElement:t}};var x0=Se({name:"ResizeObserver",props:{watchOnUpdated:Boolean},emits:["resize"],setup(e,{emit:t,slots:n}){const{children:r,firstElement:o}=ipe();let a;const s=c=>{c&&(a=new w5(d=>{const h=d[0];t("resize",h)}),a.observe(c))},l=()=>{a&&(a.disconnect(),a=null)};return Rt(o,c=>{a&&l(),c&&s(c)}),Io(()=>{a&&l()}),()=>{var c;return r.value=(c=n.default)==null?void 0:c.call(n),r.value}}});function xd(e,t){const n=fe(e[t]);return Qa(()=>{const r=e[t];n.value!==r&&(n.value=r)}),n}const Kne=Symbol("ArcoTrigger"),UDe=1e3,HDe=5e3,WDe=1;class GDe{constructor(){this.popupStack={popup:new Set,dialog:new Set,message:new Set},this.getNextZIndex=t=>(t==="message"?Array.from(this.popupStack.message).pop()||HDe:Array.from(this.popupStack.popup).pop()||UDe)+WDe,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 MP=new GDe;function o3(e,{visible:t,runOnMounted:n}={}){const r=fe(0),o=()=>{r.value=MP.add(e)},a=()=>{MP.delete(r.value,e)},s=()=>e==="dialog"?MP.isLastDialog(r.value):!1;return Rt(()=>t?.value,l=>{l?o():a()},{immediate:!0}),n&&(bn(()=>{o()}),Io(()=>{a()})),{zIndex:Kb(r),open:o,close:a,isLastDialog:s}}const KDe=({elementRef:e,onResize:t})=>{let n;return{createResizeObserver:()=>{e.value&&(n=new w5(a=>{const s=a[0];En(t)&&t(s)}),n.observe(e.value))},destroyResizeObserver:()=>{n&&(n.disconnect(),n=null)}}};var oH=Se({name:"ClientOnly",setup(e,{slots:t}){const n=fe(!1);return bn(()=>n.value=!0),()=>{var r;return n.value?(r=t.default)==null?void 0:r.call(t):null}}});const sH=({popupContainer:e,visible:t,defaultContainer:n="body",documentContainer:r})=>{const o=fe(e.value),a=fe(),s=()=>{const l=lf(e.value),c=l?e.value:n,d=l??(r?document.documentElement:lf(n));c!==o.value&&(o.value=c),d!==a.value&&(a.value=d)};return bn(()=>s()),Rt(t,l=>{o.value!==e.value&&l&&s()}),{teleportContainer:o,containerRef:a}},qDe=["onClick","onMouseenter","onMouseleave","onFocusin","onFocusout","onContextmenu"];var OP=Se({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=Ae("trigger"),s=F(()=>xa(r,qDe)),l=On(Ya,void 0),c=F(()=>[].concat(e.trigger)),d=new Set,h=On(Kne,void 0),{children:p,firstElement:v}=ipe(),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 Ne;return(Ne=e.popupVisible)!=null?Ne:y.value}),{teleportContainer:M,containerRef:O}=sH({popupContainer:o,visible:P,documentContainer:!0}),{zIndex:L}=o3("popup",{visible:P});let B=0,j=!1,W=!1;const H=()=>{B&&(window.clearTimeout(B),B=0)},K=Ne=>{if(e.alignPoint){const{pageX:De,pageY:Oe}=Ne;_.value={top:Oe,left:De}}},Y=()=>{if(!v.value||!g.value||!O.value)return;const Ne=O.value.getBoundingClientRect(),De=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}:Wne(v.value,Ne),Oe=()=>Wne(g.value,Ne),Ye=Oe(),{style:dt,position:Dt}=jDe(e.position,Ne,De,Ye,{offset:e.popupOffset,translate:e.popupTranslate,customStyle:e.popupStyle,autoFitPosition:e.autoFitPosition});e.autoFitTransformOrigin&&(C.value={transformOrigin:FDe(Dt)}),e.autoFitPopupMinWidth?dt.minWidth=`${De.width}px`:e.autoFitPopupWidth&&(dt.width=`${De.width}px`),S.value!==Dt&&(S.value=Dt),k.value=dt,e.showArrow&&Cn(()=>{x.value=VDe(Dt,De,Oe(),{customStyle:e.arrowStyle})})},ne=(Ne,De)=>{if(Ne===P.value&&B===0)return;const Oe=()=>{y.value=Ne,t("update:popupVisible",Ne),t("popupVisibleChange",Ne),Ne&&Cn(()=>{Y()})};Ne||(T=null,D=null),De?(H(),Ne!==P.value&&(B=window.setTimeout(Oe,De))):Oe()},X=Ne=>{var De;(De=r.onClick)==null||De.call(r,Ne),!(e.disabled||P.value&&!e.clickToClose)&&(c.value.includes("click")?(K(Ne),ne(!P.value)):c.value.includes("contextMenu")&&P.value&&ne(!1))},U=Ne=>{var De;(De=r.onMouseenter)==null||De.call(r,Ne),!(e.disabled||!c.value.includes("hover"))&&(K(Ne),ne(!0,e.mouseEnterDelay))},q=Ne=>{h?.onMouseenter(Ne),U(Ne)},ee=Ne=>{var De;(De=r.onMouseleave)==null||De.call(r,Ne),!(e.disabled||!c.value.includes("hover"))&&ne(!1,e.mouseLeaveDelay)},re=Ne=>{h?.onMouseleave(Ne),ee(Ne)},ae=Ne=>{var De;(De=r.onFocusin)==null||De.call(r,Ne),!(e.disabled||!c.value.includes("focus"))&&ne(!0,e.focusDelay)},ie=Ne=>{var De;(De=r.onFocusout)==null||De.call(r,Ne),!(e.disabled||!c.value.includes("focus"))&&e.blurToClose&&ne(!1)},ke=Ne=>{var De;(De=r.onContextmenu)==null||De.call(r,Ne),!(e.disabled||!c.value.includes("contextMenu")||P.value&&!e.clickToClose)&&(K(Ne),ne(!P.value),Ne.preventDefault())};ri(Kne,Xt({onMouseenter:q,onMouseleave:re,addChildRef:Ne=>{d.add(Ne),h?.addChildRef(Ne)},removeChildRef:Ne=>{d.delete(Ne),h?.removeChildRef(Ne)}}));const _e=()=>{ro(document.documentElement,"mousedown",Je),j=!1},ze=xd(n,"content"),Qe=F(()=>{var Ne;return e.hideEmpty&&l7e((Ne=ze.value)==null?void 0:Ne.call(ze))}),Je=Ne=>{var De,Oe,Ye;if(!((De=v.value)!=null&&De.contains(Ne.target)||(Oe=g.value)!=null&&Oe.contains(Ne.target))){for(const dt of d)if((Ye=dt.value)!=null&&Ye.contains(Ne.target))return;_e(),ne(!1)}},Te=(Ne,De)=>{const[Oe,Ye]=Ne,{scrollTop:dt,scrollLeft:Dt}=De;return Math.abs(dt-Oe)>=e.scrollToCloseDistance||Math.abs(Dt-Ye)>=e.scrollToCloseDistance},ve=Im(Ne=>{if(P.value)if(e.scrollToClose||l?.scrollToClose){const De=Ne.target;T||(T=[De.scrollTop,De.scrollLeft]),Te(T,De)?ne(!1):Y()}else Y()}),be=()=>{ro(window,"scroll",Me),W=!1},Me=Im(Ne=>{const De=Ne.target.documentElement;D||(D=[De.scrollTop,De.scrollLeft]),Te(D,De)&&(ne(!1),be())}),He=()=>{P.value&&Y()},Xe=()=>{He(),t("resize")},rt=Ne=>{e.preventFocus&&Ne.preventDefault()};h?.addChildRef(g);const ft=F(()=>P.value?e.openedClass:void 0);let lt;Rt(P,Ne=>{if(e.clickOutsideToClose&&(!Ne&&j?_e():Ne&&!j&&(Mi(document.documentElement,"mousedown",Je),j=!0)),(e.scrollToClose||l?.scrollToClose)&&(Mi(window,"scroll",Me),W=!0),e.updateAtScroll||l?.updateAtScroll){if(Ne){lt=Gne(v.value);for(const De of lt)De.addEventListener("scroll",ve)}else if(lt){for(const De of lt)De.removeEventListener("scroll",ve);lt=void 0}}Ne&&(Wt.value=!0)}),Rt(()=>[e.autoFitPopupWidth,e.autoFitPopupMinWidth],()=>{P.value&&Y()});const{createResizeObserver:Et,destroyResizeObserver:St}=KDe({elementRef:O,onResize:He});bn(()=>{if(Et(),P.value&&(Y(),e.clickOutsideToClose&&!j&&(Mi(document.documentElement,"mousedown",Je),j=!0),e.updateAtScroll||l?.updateAtScroll)){lt=Gne(v.value);for(const Ne of lt)Ne.addEventListener("scroll",ve)}}),Qa(()=>{P.value&&Y()}),FU(()=>{ne(!1)}),Io(()=>{if(h?.removeChildRef(g),St(),j&&_e(),W&&be(),lt){for(const Ne of lt)Ne.removeEventListener("scroll",ve);lt=void 0}});const Wt=fe(P.value),Tt=fe(!1),Mt=()=>{Tt.value=!0},sn=()=>{Tt.value=!1,P.value&&t("show")},ct=()=>{Tt.value=!1,P.value||(Wt.value=!1,t("hide"))};return()=>{var Ne,De;return p.value=(De=(Ne=n.default)==null?void 0:Ne.call(n))!=null?De:[],zhe(p.value,{class:ft.value,onClick:X,onMouseenter:U,onMouseleave:ee,onFocusin:ae,onFocusout:ie,onContextmenu:ke}),$(Bt,null,[e.autoFixPosition?$(x0,{onResize:Xe},{default:()=>[p.value]}):p.value,$(oH,null,{default:()=>[$(qm,{to:M.value,disabled:!e.renderToBody},{default:()=>[(!e.unmountOnClose||P.value||Wt.value)&&!Qe.value&&$(x0,{onResize:He},{default:()=>[$("div",Vt({ref:g,class:[`${a}-popup`,`${a}-position-${S.value}`],style:{...k.value,zIndex:L.value,pointerEvents:Tt.value?"none":"auto"},"trigger-placement":S.value,onMouseenter:q,onMouseleave:re,onMousedown:rt},s.value),[$(Cs,{name:e.animationName,duration:e.duration,appear:!0,onBeforeEnter:Mt,onAfterEnter:sn,onBeforeLeave:Mt,onAfterLeave:ct},{default:()=>{var Oe;return[Ai($("div",{class:`${a}-popup-wrapper`,style:C.value},[$("div",{class:[`${a}-content`,e.contentClass],style:e.contentStyle},[(Oe=n.content)==null?void 0:Oe.call(n)]),e.showArrow&&$("div",{ref:E,class:[`${a}-arrow`,e.arrowClass],style:x.value},null)]),[[Qo,P.value]])]}})])]})]})]})])}}});const ha=Object.assign(OP,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+OP.name,OP)}}),YDe=Se({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=Ae("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)}}}}),XDe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZDe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,XDe)}var $P=Ve(YDe,[["render",ZDe]]);const aH=Object.assign($P,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$P.name,$P)}});var QC=Se({name:"Empty",inheritAttrs:!1,props:{description:String,imgSrc:String,inConfigProvider:{type:Boolean,default:!1}},setup(e,{slots:t,attrs:n}){const r=Ae("empty"),{t:o}=No(),a=On(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"}):$("div",Vt({class:r},n),[$("div",{class:`${r}-image`},[(l=(s=t.image)==null?void 0:s.call(t))!=null?l:e.imgSrc?$("img",{src:e.imgSrc,alt:e.description||"empty"},null):$(aH,null,null)]),$("div",{class:`${r}-description`},[(d=(c=t.default)==null?void 0:c.call(t))!=null?d:e.description||o("empty.description")])])}}});const Xh=Object.assign(QC,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+QC.name,QC)}}),JDe=5;var QDe=Se({name:"DotLoading",props:{size:{type:Number}},setup(e){const t=Ae("dot-loading");return()=>{const n=e.size?{width:`${e.size}px`,height:`${e.size}px`}:{};return $("div",{class:t,style:{width:e.size?`${e.size*7}px`:void 0,height:e.size?`${e.size}px`:void 0}},[Array(JDe).fill(1).map((r,o)=>$("div",{class:`${t}-item`,key:o,style:n},null))])}}}),BP=Se({name:"Spin",props:{size:{type:Number},loading:Boolean,dot:Boolean,tip:String,hideIcon:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=Ae("spin"),r=On(Ya,void 0),o=F(()=>[n,{[`${n}-loading`]:e.loading,[`${n}-with-tip`]:e.tip&&!t.default}]),a=()=>{if(t.icon){const l=ry(t.icon());if(l)return wl(l,{spin:!0})}return t.element?t.element():e.dot?$(QDe,{size:e.size},null):r?.slots.loading?r.slots.loading():$(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 $(Bt,null,[!e.hideIcon&&$("div",{class:`${n}-icon`,style:h},[a()]),p&&$("div",{class:`${n}-tip`},[(d=(c=t.tip)==null?void 0:c.call(t))!=null?d:e.tip])])};return()=>$("div",{class:o.value},[t.default?$(Bt,null,[t.default(),e.loading&&$("div",{class:`${n}-mask`},[$("div",{class:`${n}-mask-icon`},[s()])])]):s()])}});const Pd=Object.assign(BP,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+BP.name,BP)}}),ePe=Se({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=Ae("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,Mi(window,"mousemove",y),Mi(window,"mouseup",S),Mi(window,"contextmenu",S))},v=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,ro(window,"mousemove",y),ro(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:v,setOffset:k}}});function tPe(e,t,n,r,o,a){return z(),qe(Cs,null,{default:de(()=>[I("div",{ref:"trackRef",class:ue([`${e.prefixCls}-track`,`${e.prefixCls}-track-direction-${e.direction}`]),onMousedown:t[1]||(t[1]=us((...s)=>e.handleTrackClick&&e.handleTrackClick(...s),["self"]))},[I("div",{ref:"thumbRef",class:ue(e.thumbCls),style:Ge(e.thumbStyle),onMousedown:t[0]||(t[0]=(...s)=>e.handleThumbMouseDown&&e.handleThumbMouseDown(...s))},[I("div",{class:ue(`${e.prefixCls}-thumb-bar`)},null,2)],38)],34)]),_:1})}var nPe=Ve(ePe,[["render",tPe]]);const qne=20,gx=15,rPe=Se({name:"Scrollbar",components:{ResizeObserver:x0,Thumb:nPe},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=Ae("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),v=fe(!1),g=()=>{var _,T,D,P,M,O;if(r.value){const{clientWidth:L,clientHeight:B,offsetWidth:j,offsetHeight:W,scrollWidth:H,scrollHeight:K,scrollTop:Y,scrollLeft:ne}=r.value;c.value=H>L,d.value=K>B,v.value=h.value&&p.value;const X=e.type==="embed"&&v.value?j-gx:j,U=e.type==="embed"&&v.value?W-gx:W,q=Math.round(X/Math.min(H/L,X/qne)),ee=X-q,re=(H-L)/ee,ae=Math.round(U/Math.min(K/B,U/qne)),ie=U-ae,ke=(K-B)/ie;if(o.value={ratio:re,thumbSize:q,max:ee},a.value={ratio:ke,thumbSize:ae,max:ie},Y>0){const Fe=Math.round(Y/((T=(_=a.value)==null?void 0:_.ratio)!=null?T:1));(D=l.value)==null||D.setOffset(Fe)}if(ne>0){const Fe=Math.round(ne/((M=(P=a.value)==null?void 0:P.ratio)!=null?M:1));(O=s.value)==null||O.setOffset(Fe)}}};bn(()=>{g()});const y=()=>{g()},S=_=>{var T,D,P,M,O,L;if(r.value){if(h.value&&!e.disableHorizontal){const B=Math.round(r.value.scrollLeft/((D=(T=o.value)==null?void 0:T.ratio)!=null?D:1));(P=s.value)==null||P.setOffset(B)}if(p.value&&!e.disableVertical){const B=Math.round(r.value.scrollTop/((O=(M=a.value)==null?void 0:M.ratio)!=null?O:1));(L=l.value)==null||L.setOffset(B)}}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=`${gx}px`),p.value&&(_.paddingRight=`${gx}px`)),[_,e.outerStyle]}),E=F(()=>[`${n}`,`${n}-type-${e.type}`,{[`${n}-both`]:v.value},e.outerClass]);return{prefixCls:n,cls:E,style:x,containerRef:r,horizontalThumbRef:s,verticalThumbRef:l,horizontalData:o,verticalData:a,isBoth:v,hasHorizontalScrollbar:h,hasVerticalScrollbar:p,handleResize:y,handleScroll:S,handleHorizontalScroll:k,handleVerticalScroll:C}},methods:{scrollTo(e,t){var n,r;br(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 iPe(e,t,n,r,o,a){const s=Ie("ResizeObserver"),l=Ie("thumb");return z(),Q("div",{class:ue(e.cls),style:Ge(e.style)},[$(s,{onResize:e.handleResize},{default:de(()=>[I("div",Vt({ref:"containerRef",class:`${e.prefixCls}-container`},e.$attrs,{onScroll:t[0]||(t[0]=(...c)=>e.handleScroll&&e.handleScroll(...c))}),[$(s,{onResize:e.handleResize},{default:de(()=>[vt(e.$slots,"default")]),_:3},8,["onResize"])],16)]),_:3},8,["onResize"]),!e.hide&&e.hasHorizontalScrollbar?(z(),qe(l,{key:0,ref:"horizontalThumbRef",data:e.horizontalData,direction:"horizontal",both:e.isBoth,onScroll:e.handleHorizontalScroll},null,8,["data","both","onScroll"])):Le("v-if",!0),!e.hide&&e.hasVerticalScrollbar?(z(),qe(l,{key:1,ref:"verticalThumbRef",data:e.verticalData,direction:"vertical",both:e.isBoth,onScroll:e.handleVerticalScroll},null,8,["data","both","onScroll"])):Le("v-if",!0)],6)}var NP=Ve(rPe,[["render",iPe]]);const Rd=Object.assign(NP,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+NP.name,NP)}}),U1=e=>{const t=fe(),n=()=>$he(t.value)?t.value.$refs[e]:t.value,r=fe();return bn(()=>{r.value=n()}),Rt([t],()=>{r.value=n()}),{componentRef:t,elementRef:r}},P5=e=>{const t=F(()=>!!e.value),n=F(()=>{if(e.value)return{type:"embed",...El(e.value)?void 0:e.value}});return{displayScrollbar:t,scrollbarProps:n}},oPe=Se({name:"SelectDropdown",components:{ScrollbarComponent:Rd,Empty:Xh,Spin:Pd},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=Ae("select-dropdown"),c=On(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}=U1("containerRef"),{displayScrollbar:v,scrollbarProps:g}=P5(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:v,scrollbarProps:g}}});function sPe(e,t,n,r,o,a){const s=Ie("spin");return z(),Q("div",{class:ue(e.cls)},[e.$slots.header&&(!e.empty||e.showHeaderOnEmpty)?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-header`)},[vt(e.$slots,"header")],2)):Le("v-if",!0),e.loading?(z(),qe(s,{key:1,class:ue(`${e.prefixCls}-loading`)},null,8,["class"])):e.empty?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-empty`)},[vt(e.$slots,"empty",{},()=>[(z(),qe(Wa(e.SelectEmpty?e.SelectEmpty:"Empty")))])],2)):Le("v-if",!0),e.virtualList&&!e.loading&&!e.empty?vt(e.$slots,"virtual-list",{key:3}):Le("v-if",!0),e.virtualList?Le("v-if",!0):Ai((z(),qe(Wa(e.displayScrollbar?"ScrollbarComponent":"div"),Vt({key:4,ref:"wrapperComRef",class:`${e.prefixCls}-list-wrapper`},e.scrollbarProps,{onScroll:e.handleScroll}),{default:de(()=>[I("ul",{class:ue(`${e.prefixCls}-list`)},[vt(e.$slots,"default")],2)]),_:3},16,["class","onScroll"])),[[Qo,!e.loading&&!e.empty]]),e.$slots.footer&&(!e.empty||e.showFooterOnEmpty)?(z(),Q("div",{key:5,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer")],2)):Le("v-if",!0)],2)}var lH=Ve(oPe,[["render",sPe]]),Yne=Se({name:"IconCheck",render(){return $("svg",{"aria-hidden":"true",focusable:"false",viewBox:"0 0 1024 1024",width:"200",height:"200",fill:"currentColor"},[$("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 ope=Symbol("ArcoCheckboxGroup");var ew=Se({name:"Checkbox",components:{IconCheck:Yne,IconHover:Lo},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=Ae("checkbox"),s=fe(),l=e.uninjectGroupContext?void 0:On(ope,void 0),c=l?.name==="ArcoCheckboxGroup",{mergedDisabled:d,eventHandlers:h}=Do({disabled:r}),p=fe(e.defaultChecked),v=F(()=>{var _;return c?l?.computedValue:(_=e.modelValue)!=null?_:p.value}),g=F(()=>{var _;return sr(v.value)?v.value.includes((_=e.value)!=null?_:!0):v.value}),y=F(()=>l?.disabled||d?.value||!g.value&&l?.isMaxed),S=_=>{_.stopPropagation()},k=_=>{var T,D,P,M;const{checked:O}=_.target;let L=O;if(sr(v.value)){const B=new Set(v.value);O?B.add((T=e.value)!=null?T:!0):B.delete((D=e.value)!=null?D:!0),L=Array.from(B)}p.value=O,c&&sr(L)?l?.handleChange(L,_):(t("update:modelValue",L),t("change",L,_),(M=(P=h.value)==null?void 0:P.onChange)==null||M.call(P,_)),Cn(()=>{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 Rt(o,_=>{(An(_)||Tl(_))&&(p.value=!1)}),Rt(v,_=>{var T;let D;sr(_)?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 $("label",{"aria-disabled":y.value,class:C.value},[$("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:$(Lo,{class:`${a}-icon-hover`,disabled:y.value||g.value},{default:()=>[$("div",{class:`${a}-icon`},[g.value&&$(Yne,{class:`${a}-icon-check`},null)])]}),n.default&&$("span",{class:`${a}-label`},[n.default()])])}}}),tb=Se({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=Ae("checkbox-group"),{mergedDisabled:a,eventHandlers:s}=Do({disabled:r}),l=fe(e.defaultValue),c=F(()=>sr(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)});ri(ope,Xt({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 v=F(()=>[o,`${o}-direction-${e.direction}`]);Rt(()=>e.modelValue,y=>{sr(y)?l.value=[...y]:l.value=[]});const g=()=>h.value.map(y=>{const S=c.value.includes(y.value);return $(ew,{key:y.value,value:y.value,disabled:y.disabled||!S&&d.value,indeterminate:y.indeterminate,modelValue:S},{default:()=>[n.label?n.label({data:y}):En(y.label)?y.label():y.label]})});return()=>{var y;return $("span",{class:v.value},[h.value.length>0?g():(y=n.default)==null?void 0:y.call(n)])}}});const Uc=Object.assign(ew,{Group:tb,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+ew.name,ew),e.component(n+tb.name,tb)}}),spe=Symbol("ArcoSelectContext"),aPe=e=>br(e)&&"isGroup"in e,ape=e=>br(e)&&"isGroup"in e,lPe=(e,t="value")=>String(br(e)?e[t]:e),Dm=(e,t="value")=>br(e)?`__arco__option__object__${e[t]}`:e||Ze(e)||cs(e)||El(e)?`__arco__option__${typeof e}-${e}`:"",uPe=e=>e.has("__arco__option__string-"),cPe=(e,{valueKey:t,fieldNames:n,origin:r,index:o=-1})=>{var a;if(br(e)){const l=e[n.value];return{raw:e,index:o,key:Dm(l,t),origin:r,value:l,label:(a=e[n.label])!=null?a:lPe(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:Dm(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(aPe(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=cPe(l,{valueKey:t,fieldNames:n,origin:r});s.push(c),o.get(c.key)||o.set(c.key,c)}return s},Xne=(e,{inputValue:t,filterOption:n})=>{const r=o=>{var a;const s=[];for(const l of o)if(ape(l)){const c=r((a=l.options)!=null?a:[]);c.length>0&&s.push({...l,options:c})}else R5(l,{inputValue:t,filterOption:n})&&s.push(l);return s};return r(e)},R5=(e,{inputValue:t,filterOption:n})=>En(n)?!t||n(t,e.raw):n?e.label.toLowerCase().includes((t??"").toLowerCase()):!0,dPe=(e,t)=>{if(!e||!t||e.length!==t.length)return!1;for(const n of Object.keys(e))if(!s3(e[n],t[n]))return!1;return!0},fPe=(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]"?dPe(e,t):n==="[object Array]"?fPe(e,t):n==="[object Function]"?e===t?!0:e.toString()===t.toString():e===t},hPe=Se({name:"Option",components:{Checkbox:Uc},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=Ae("select-option"),a=On(spe,void 0),s=_o(),l=fe(),c=fe(n.value);Rt(n,(D,P)=>{s3(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}),v=F(()=>Dm(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)}};bn(()=>y()),Qa(()=>y());const S=F(()=>{var D;return(D=a?.valueKeys.includes(v.value))!=null?D:!1}),k=F(()=>a?.activeKey===v.value);let C=fe(!0);if(!e.internal){const D=Xt({raw:{value:h,label:p,disabled:t,tagProps:c},ref:l,index:r,key:v,origin:"slot",value:h,label:p,disabled:t,tagProps:c});C=F(()=>R5(D,{inputValue:a?.inputValue,filterOption:a?.filterOption})),s&&a?.addSlotOptionInfo(s.uid,D),Io(()=>{s&&a?.removeSlotOptionInfo(s.uid)})}const x=D=>{e.disabled||a?.onSelect(v.value,D)},E=()=>{e.disabled||a?.setActiveKey(v.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 pPe(e,t,n,r,o,a){const s=Ie("checkbox");return Ai((z(),qe(Wa(e.component),{ref:"itemRef",class:ue([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:e.handleClick,onMouseenter:e.handleMouseEnter,onMouseleave:e.handleMouseLeave},{default:de(()=>[e.$slots.icon?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon")],2)):Le("v-if",!0),e.selectCtx&&e.selectCtx.multiple?(z(),qe(s,{key:1,class:ue(`${e.prefixCls}-checkbox`),"model-value":e.isSelected,disabled:e.disabled,"uninject-group-context":""},{default:de(()=>[vt(e.$slots,"default",{},()=>[Ue(je(e.label),1)])]),_:3},8,["class","model-value","disabled"])):(z(),Q("span",{key:2,class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default",{},()=>[Ue(je(e.label),1)])],2)),e.$slots.suffix?(z(),Q("span",{key:3,class:ue(`${e.prefixCls}-suffix`)},[vt(e.$slots,"suffix")],2)):Le("v-if",!0)]),_:3},40,["class","onClick","onMouseenter","onMouseleave"])),[[Qo,e.isValid]])}var dm=Ve(hPe,[["render",pPe]]);const vPe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"},mPe=({options:e,extraOptions:t,inputValue:n,filterOption:r,showExtraOptions:o,valueKey:a,fieldNames:s})=>{const l=F(()=>({...vPe,...s?.value})),c=Xt(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}}),v=Xt(new Map);Rt([d,e??fe([]),t??fe([]),a??fe("value")],()=>{v.clear(),d.value.forEach((E,_)=>{v.set(E.key,{...E,index:_})}),h.value.optionInfoMap.forEach(E=>{v.has(E.key)||(E.index=v.size,v.set(E.key,E))}),p.value.optionInfoMap.forEach(E=>{v.has(E.key)||(E.index=v.size,v.set(E.key,E))})},{immediate:!0,deep:!0});const g=F(()=>{var E;const _=Xne(h.value.optionInfos,{inputValue:n?.value,filterOption:r?.value});return((E=o?.value)==null||E)&&_.push(...Xne(p.value.optionInfos,{inputValue:n?.value,filterOption:r?.value})),_}),y=F(()=>Array.from(v.values()).filter(E=>E.origin==="extraOptions"&&o?.value===!1?!1:R5(E,{inputValue:n?.value,filterOption:r?.value}))),S=F(()=>y.value.filter(E=>!E.disabled).map(E=>E.key));return{validOptions:g,optionInfoMap:v,validOptionInfos:y,enabledOptionKeys:S,getNextSlotOptionIndex:()=>c.size,addSlotOptionInfo:(E,_)=>{c.set(E,_)},removeSlotOptionInfo:E=>{c.delete(E)}}},Ho={ENTER:"Enter",ESC:"Escape",SPACE:" ",ARROW_UP:"ArrowUp",ARROW_DOWN:"ArrowDown",ARROW_LEFT:"ArrowLeft",ARROW_RIGHT:"ArrowRight"},Zne=e=>JSON.stringify({key:e.key,ctrl:!!e.ctrl,shift:!!e.shift,alt:!!e.alt,meta:!!e.meta}),M5=e=>{const t={};return e.forEach((n,r)=>{const o=cs(r)?{key:r}:r;t[Zne(o)]=n}),n=>{const r=Zne({key:n.key,ctrl:n.ctrlKey,shift:n.shiftKey,alt:n.altKey,meta:n.metaKey}),o=t[r];o&&(n.stopPropagation(),o(n))}},uH=({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:v,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:O}=mPe({options:t,extraOptions:n,inputValue:r,filterOption:o,showExtraOptions:a,valueKey:l,fieldNames:c}),L=fe();Rt(D,K=>{(!L.value||!K.includes(L.value))&&(L.value=K[0])});const B=K=>{L.value=K},j=K=>{const Y=D.value.length;if(Y===0)return;if(!L.value)return K==="down"?D.value[0]:D.value[Y-1];const ne=D.value.indexOf(L.value),X=(Y+ne+(K==="up"?-1:1))%Y;return D.value[X]},W=K=>{var Y,ne;y?.value&&y.value.scrollTo({key:K});const X=_.get(K),U=(Y=v?.value)==null?void 0:Y.wrapperRef,q=(ne=g?.value[K])!=null?ne:X?.ref;if(!U||!q||U.scrollHeight===U.offsetHeight)return;const ee=d7e(q,U),re=U.scrollTop;ee.top<0?U.scrollTo(0,re+ee.top):ee.bottom<0&&U.scrollTo(0,re-ee.bottom)};Rt(h,K=>{var Y;if(K){const ne=p.value[p.value.length-1];let X=(Y=x?.value)==null||Y?D.value[0]:void 0;D.value.includes(ne)&&(X=ne),X!==L.value&&(L.value=X),Cn(()=>{L.value&&W(L.value)})}});const H=M5(new Map([[Ho.ENTER,K=>{!d?.value&&!K.isComposing&&(h.value?L.value&&(S(L.value,K),K.preventDefault()):C&&(k(!0),K.preventDefault()))}],[Ho.ESC,K=>{h.value&&(k(!1),K.preventDefault())}],[Ho.ARROW_DOWN,K=>{if(h.value){const Y=j("down");Y&&(L.value=Y,W(Y)),K.preventDefault()}}],[Ho.ARROW_UP,K=>{if(h.value){const Y=j("up");Y&&(L.value=Y,W(Y)),K.preventDefault()}}]]));return ri(spe,Xt({multiple:e,valueKey:l,inputValue:r,filterOption:o,component:s,valueKeys:p,activeKey:L,setActiveKey:B,onSelect:S,getNextSlotOptionIndex:P,addSlotOptionInfo:M,removeSlotOptionInfo:O})),{validOptions:E,optionInfoMap:_,validOptionInfos:T,enabledOptionKeys:D,activeKey:L,setActiveKey:B,addSlotOptionInfo:M,removeSlotOptionInfo:O,getNextActiveKey:j,scrollIntoView:W,handleKeyDown:H}},gPe=({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},v=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(v.value)return g.value;const O=e.value[P];return(M=s.get(O))!=null?M:g.value},k=P=>s.has(P);bn(()=>{const P=Array.from(s.values()).reduce((M,O)=>M+O,0);P>0&&(a.value=P/s.size)});const C=P=>v.value?g.value*P:x(0,P),x=(P,M)=>{let O=0;for(let L=P;Lv.value?g.value*c.value:x(0,c.value)),_=P=>{const M=P>=E.value;let O=Math.abs(P-E.value);const L=M?c.value:c.value-1;let B=0;for(;O>0;)O-=S(L+B),M?B++:B--;return B},T=P=>{const M=_(P),O=c.value+M-o.value;return O<0?0:O>h.value?h.value:O},D=F(()=>v.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 yPe=Se({name:"VirtualListItem",props:{hasItemSize:{type:Function,required:!0},setItemSize:{type:Function,required:!0}},setup(e,{slots:t}){var n;const r=(n=_o())==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 bn(()=>a()),Io(()=>a()),()=>{var s;const l=ry((s=t.default)==null?void 0:s.call(t));return l?wl(l,{ref:o},!0):null}}});const bPe=Se({name:"VirtualList",components:{VirtualListItem:yPe},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=Ae("virtual-list"),d=F(()=>br(e.component)?{container:"div",list:"div",content:"div",...e.component}:{container:e.component,list:"div",content:"div"}),h=fe(),p=fe(),v=F(()=>({height:Ze(l.value)?`${l.value}px`:l.value,overflow:"auto"})),g=F(()=>n.value.map((L,B)=>{var j;return(j=L[r.value])!=null?j:B})),{frontPadding:y,behindPadding:S,start:k,end:C,getStartByScroll:x,setItemSize:E,hasItemSize:_,setStart:T,getScrollOffset:D}=gPe({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=L=>{const{scrollTop:B,scrollHeight:j,offsetHeight:W}=L.target,H=x(B);H!==k.value&&(T(H),Cn(()=>{O(B)})),t("scroll",L),Math.floor(j-(B+W))<=0&&t("reachBottom",L)},O=L=>{var B,j;if(h.value)if(Ze(L))h.value.scrollTop=L;else{const W=(j=L.index)!=null?j:g.value.indexOf((B=L.key)!=null?B:"");T(W-s.value),h.value.scrollTop=D(W),Cn(()=>{if(h.value){const H=D(W);H!==h.value.scrollTop&&(h.value.scrollTop=H)}})}};return{prefixCls:c,containerRef:h,contentRef:p,frontPadding:y,currentList:P,behindPadding:S,onScroll:M,setItemSize:E,hasItemSize:_,start:k,scrollTo:O,style:v,mergedComponent:d}}});function _Pe(e,t,n,r,o,a){const s=Ie("VirtualListItem");return z(),qe(Wa(e.mergedComponent.container),{ref:"containerRef",class:ue(e.prefixCls),style:Ge(e.style),onScroll:e.onScroll},{default:de(()=>[(z(),qe(Wa(e.mergedComponent.list),Vt(e.listAttrs,{style:e.paddingPosition==="list"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(z(),qe(Wa(e.mergedComponent.content),Vt({ref:"contentRef"},e.contentAttrs,{style:e.paddingPosition==="content"?{paddingTop:`${e.frontPadding}px`,paddingBottom:`${e.behindPadding}px`}:{}}),{default:de(()=>[(z(!0),Q(Bt,null,vn(e.currentList,(l,c)=>{var d;return z(),qe(s,{key:(d=l[e.itemKey])!=null?d:e.start+c,"has-item-size":e.hasItemSize,"set-item-size":e.setItemSize},{default:de(()=>[vt(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 a3=Ve(bPe,[["render",_Pe]]),FP=Se({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=Ae("auto-complete"),{mergedDisabled:s,eventHandlers:l}=Do({disabled:Lu(e,"disabled")}),c=fe(e.defaultValue),d=fe(),h=F(()=>{var q;return(q=e.modelValue)!=null?q:c.value});Rt(o,q=>{(An(q)||Tl(q))&&(c.value="")});const p=F(()=>h.value?[Dm(h.value)]:[]),{data:v}=nn(e),g=fe(),y=fe({}),S=fe(!1),k=F(()=>S.value&&H.value.length>0),C=fe(),x=F(()=>e.virtualListProps?"div":"li"),E=q=>{S.value=q},_=(q,ee)=>{var re;return!!((re=ee.label)!=null&&re.includes(q))},T=F(()=>En(e.filterOption)?e.filterOption:e.filterOption&&e.strict?_:e.filterOption),D=q=>{var ee,re;c.value=q,t("update:modelValue",q),t("change",q),(re=(ee=l.value)==null?void 0:ee.onChange)==null||re.call(ee)},P=q=>{var ee,re;c.value="",t("update:modelValue",""),t("change",""),(re=(ee=l.value)==null?void 0:ee.onChange)==null||re.call(ee),t("clear",q)},M=(q,ee)=>{var re,ae;const ie=(re=W.get(q))==null?void 0:re.value;t("select",ie),D(ie),(ae=d.value)==null||ae.blur()},O=q=>{t("search",q),D(q)},L=q=>{t("dropdownScroll",q)},B=q=>{t("dropdownReachBottom",q)},{validOptions:j,optionInfoMap:W,validOptionInfos:H,handleKeyDown:K}=uH({options:v,inputValue:h,filterOption:T,popupVisible:k,valueKeys:p,component:x,dropdownRef:g,optionRefs:y,onSelect:M,onPopupVisibleChange:E}),Y=q=>{if(En(r.option)&&q.value){const ee=W.get(q.key),re=r.option;return()=>re({data:ee})}return()=>q.label},ne=q=>$(dm,{ref:ee=>{ee?.$el&&(y.value[q.key]=ee.$el)},key:q.key,value:q.value,disabled:q.disabled,internal:!0},{default:Y(q)}),X=()=>$(lH,{ref:g,class:`${a}-dropdown`,virtualList:!!e.virtualListProps,onScroll:L,onReachBottom:B},{default:()=>[...j.value.map(q=>ne(q))],"virtual-list":()=>$(a3,Vt(e.virtualListProps,{ref:C,data:j.value}),{item:({item:q})=>ne(q)}),footer:r.footer});return{inputRef:d,render:()=>$(ha,Vt({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:()=>[$(N0,Vt({ref:d},n,{allowClear:e.allowClear,modelValue:h.value,disabled:s.value,onInput:O,onClear:P,onKeydown:K}),r)],content:X})}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const SPe=Object.assign(FP,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+FP.name,FP)}}),cH=({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 v=(h=(d=e.value)==null?void 0:d.parentElement)!=null?h:void 0;if(r)for(;v&&!v.className.includes(r);)v=(p=v.parentElement)!=null?p:void 0;return v},c=()=>{if(An(n?.value)&&s.value&&e.value){const d=Array.from(s.value.querySelectorAll(t)).indexOf(e.value);d!==o.value&&(o.value=d)}};return Rt(e,()=>{e.value&&!s.value&&(s.value=l())}),bn(()=>{e.value&&(s.value=l()),c()}),Qa(()=>c()),{computedIndex:a}},lpe=Symbol("ArcoAvatarGroup"),kPe=Se({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=Ae("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)}}}}),xPe=["stroke-width","stroke-linecap","stroke-linejoin"];function CPe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.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,xPe)}var jP=Ve(kPe,[["render",CPe]]);const O5=Object.assign(jP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jP.name,jP)}}),wPe=Se({name:"Avatar",components:{ResizeObserver:x0,IconImageClose:O5,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=Ae("avatar"),h=On(lpe,void 0),p=fe(),v=fe(),g=F(()=>{var H;return(H=h?.shape)!=null?H:o.value}),y=F(()=>{var H;return(H=h?.size)!=null?H:a.value}),S=F(()=>{var H;return(H=h?.autoFixFontSize)!=null?H:s.value}),k=fe(!1),C=fe(!1),x=fe(!0),E=fe(!1),_=h?cH({itemRef:p,selector:`.${d}`}).computedIndex:fe(-1),T=F(()=>{var H;const K=Ze(y.value)?{width:`${y.value}px`,height:`${y.value}px`,fontSize:`${y.value/2}px`}:{};return h&&(K.zIndex=h.zIndexAscend?_.value+1:h.total-_.value,K.marginLeft=_.value!==0?`-${((H=y.value)!=null?H:40)/4}px`:"0"),K}),D=EPe({triggerIconStyle:c?.value,inlineStyle:r.style,triggerType:l.value}),P=()=>{!k.value&&!e.imageUrl&&Cn(()=>{var H;if(!v.value||!p.value)return;const K=v.value.clientWidth,Y=(H=y.value)!=null?H:p.value.offsetWidth,ne=Y/(K+8);Y&&ne<1&&(v.value.style.transform=`scale(${ne}) translateX(-50%)`),x.value=!0})};bn(()=>{var H;(H=v.value)!=null&&H.firstElementChild&&["IMG","PICTURE"].includes(v.value.firstElementChild.tagName)&&(k.value=!0),S.value&&P()}),Rt(a,()=>{S.value&&P()});const M=F(()=>[d,`${d}-${g.value}`]),O=F(()=>k.value||e.imageUrl?`${d}-image`:`${d}-text`);return{prefixCls:d,itemRef:p,cls:M,outerStyle:T,wrapperRef:v,wrapperCls:O,computedTriggerIconStyle:D,isImage:k,shouldLoad:x,isLoaded:E,hasError:C,onClick:H=>{n("click",H)},handleResize:()=>{S.value&&P()},handleImgLoad:()=>{E.value=!0,n("load")},handleImgError:()=>{C.value=!0,n("error")}}}}),EPe=({triggerType:e,inlineStyle:t={},triggerIconStyle:n={}})=>{let r={};return e==="button"&&(!n||n&&!n.color)&&t&&t.backgroundColor&&(r={color:t.backgroundColor}),{...n,...r}},TPe=["src"];function APe(e,t,n,r,o,a){const s=Ie("IconImageClose"),l=Ie("IconLoading"),c=Ie("resize-observer");return z(),Q("div",{ref:"itemRef",style:Ge(e.outerStyle),class:ue([e.cls,{[`${e.prefixCls}-with-trigger-icon`]:!!e.$slots["trigger-icon"]}]),onClick:t[2]||(t[2]=(...d)=>e.onClick&&e.onClick(...d))},[$(c,{onResize:e.handleResize},{default:de(()=>[I("span",{ref:"wrapperRef",class:ue(e.wrapperCls)},[e.imageUrl?(z(),Q(Bt,{key:0},[e.hasError?vt(e.$slots,"error",{key:0},()=>[I("div",{class:ue(`${e.prefixCls}-image-icon`)},[$(s)],2)]):Le("v-if",!0),!(e.hasError||!e.shouldLoad)&&!e.isLoaded?vt(e.$slots,"default",{key:1},()=>[I("div",{class:ue(`${e.prefixCls}-image-icon`)},[$(l)],2)]):Le("v-if",!0),e.hasError||!e.shouldLoad?Le("v-if",!0):(z(),Q("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,TPe))],64)):vt(e.$slots,"default",{key:1})],2)]),_:3},8,["onResize"]),e.$slots["trigger-icon"]?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-trigger-icon-${e.triggerType}`),style:Ge(e.computedTriggerIconStyle)},[vt(e.$slots,"trigger-icon")],6)):Le("v-if",!0)],6)}var tw=Ve(wPe,[["render",APe]]);const IPe=Se({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=Ae("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 LPe(e,t,n,r,o,a){const s=Ie("trigger");return z(),qe(s,{class:ue(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(()=>[I("div",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2),I("div",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"content",{},()=>[Ue(je(e.content),1)])],2)]),default:de(()=>[vt(e.$slots,"default")]),_:3},8,["class","trigger","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var VP=Ve(IPe,[["render",LPe]]);const dH=Object.assign(VP,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+VP.name,VP)}}),nw=Se({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=Ae("avatar-group"),l=fe(0);return ri(lpe,Xt({shape:n,size:r,autoFixFontSize:o,zIndexAscend:a,total:l})),()=>{var c,d;const h=bf((d=(c=t.default)==null?void 0:c.call(t))!=null?d:[]),p=e.maxCount>0?h.slice(0,e.maxCount):h,v=e.maxCount>0?h.slice(e.maxCount):[];return l.value!==h.length&&(l.value=h.length),$("div",{class:s},[p,v.length>0&&$(dH,e.maxPopoverTriggerProps,{default:()=>[$(tw,{class:`${s}-max-count-avatar`,style:e.maxStyle},{default:()=>[Ue("+"),v.length]})],content:()=>$("div",null,[v])})])}}}),DPe=Object.assign(tw,{Group:nw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+tw.name,tw),e.component(n+nw.name,nw)}}),PPe=Se({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=Ae("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)}}}}),RPe=["stroke-width","stroke-linecap","stroke-linejoin"];function MPe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 7H5M24 20v23M24 13.96 30.453 21H17.546L24 13.96Zm.736-.804Z"},null,-1),I("path",{d:"m24 14-6 7h12l-6-7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,RPe)}var zP=Ve(PPe,[["render",MPe]]);const upe=Object.assign(zP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zP.name,zP)}}),OPe=Se({name:"BackTop",components:{IconToTop:upe},props:{visibleHeight:{type:Number,default:200},targetContainer:{type:[String,Object]},easing:{type:String,default:"quartOut"},duration:{type:Number,default:200}},setup(e){const t=Ae("back-top"),n=fe(!1),r=fe(),o=!e.targetContainer,a=Im(()=>{if(r.value){const{visibleHeight:c}=e,{scrollTop:d}=r.value;n.value=d>=c}}),s=c=>cs(c)?document.querySelector(c):c;return bn(()=>{r.value=o?document?.documentElement:s(e.targetContainer),r.value&&(Mi(o?window:r.value,"scroll",a),a())}),gi(()=>{a.cancel(),r.value&&ro(o?window:r.value,"scroll",a)}),{prefixCls:t,visible:n,scrollToTop:()=>{if(r.value){const{scrollTop:c}=r.value;new Jm({from:{scrollTop:c},to:{scrollTop:0},easing:e.easing,duration:e.duration,onUpdate:h=>{r.value&&(r.value.scrollTop=h.scrollTop)}}).start()}}}}});function $Pe(e,t,n,r,o,a){const s=Ie("icon-to-top");return z(),qe(Cs,{name:"fade-in"},{default:de(()=>[e.visible?(z(),Q("div",{key:0,class:ue(e.prefixCls),onClick:t[0]||(t[0]=(...l)=>e.scrollToTop&&e.scrollToTop(...l))},[vt(e.$slots,"default",{},()=>[I("button",{class:ue(`${e.prefixCls}-btn`)},[$(s)],2)])],2)):Le("v-if",!0)]),_:3})}var UP=Ve(OPe,[["render",$Pe]]);const BPe=Object.assign(UP,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+UP.name,UP)}}),NPe=["red","orangered","orange","gold","lime","green","cyan","arcoblue","purple","pinkpurple","magenta","gray"],FPe=["normal","processing","success","warning","danger"];var HP=Se({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=>FPe.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=Ae("badge"),p=jPe(h,n?.value,t?.default),v=F(()=>{const y={...o?.value||{}},[S,k]=a?.value||[];S&&(y.marginRight=`${-S}px`),k&&(y.marginTop=`${k}px`);const C=!r?.value||NPe.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}=v.value;return t.content?$("span",{class:`${h}-custom-dot`,style:_},[t.content()]):y&&!S&&!k?$("span",{class:`${h}-text`,style:_},[y]):k||S&&!E?$("span",{class:`${h}-status-wrapper`},[$("span",{class:[`${h}-status-dot`,{[`${h}-status-${k}`]:k,[`${h}-color-${S}`]:S}],style:T},null),y&&$("span",{class:`${h}-status-text`},[y])]):(C||S)&&x>0?$("span",{class:[`${h}-dot`,{[`${h}-color-${S}`]:S}],style:T},null):x===0?null:$("span",{class:`${h}-number`,style:T},[$("span",null,[c.value&&x>c.value?`${c.value}+`:x])])};return()=>$("span",{class:p.value},[t.default&&t.default(),g()])}});const jPe=(e,t,n)=>F(()=>[e,{[`${e}-status`]:t,[`${e}-no-children`]:!n}]),VPe=Object.assign(HP,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+HP.name,HP)}}),cpe=Symbol("ArcoBreadcrumb"),zPe=Se({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=Ae("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)}}}}),UPe=["stroke-width","stroke-linecap","stroke-linejoin"];function HPe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M38 25v-2h2v2h-2ZM23 25v-2h2v2h-2ZM8 25v-2h2v2H8Z"},null,-1)]),14,UPe)}var WP=Ve(zPe,[["render",HPe]]);const F0=Object.assign(WP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WP.name,WP)}}),WPe=Se({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=Ae("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)}}}}),GPe=["stroke-width","stroke-linecap","stroke-linejoin"];function KPe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.6 17.443 24.043 33 8.487 17.443"},null,-1)]),14,GPe)}var GP=Ve(WPe,[["render",KPe]]);const Zh=Object.assign(GP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GP.name,GP)}}),qPe=Se({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=Ae("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)}}}}),YPe=["stroke-width","stroke-linecap","stroke-linejoin"];function XPe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M29.506 6.502 18.493 41.498"},null,-1)]),14,YPe)}var KP=Ve(qPe,[["render",XPe]]);const dpe=Object.assign(KP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KP.name,KP)}}),fH=Symbol("ArcoDropdown"),ZPe=Se({name:"DropdownPanel",components:{Scrollbar:Rd,Empty:Xh},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=Ae("dropdown"),o=On(fH,{}),a=fe(),s=d=>{const{scrollTop:h,scrollHeight:p,offsetHeight:v}=d.target;p-(h+v)<=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 JPe(e,t,n,r,o,a){const s=Ie("empty"),l=Ie("Scrollbar");return z(),Q("div",{class:ue(e.cls)},[e.isEmpty?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-empty`)},[vt(e.$slots,"empty",{},()=>[$(s)])],2)):Le("v-if",!0),$(l,{ref:"wrapperRef",class:ue(`${e.prefixCls}-list-wrapper`),style:Ge(e.style),onScroll:e.handleScroll},{default:de(()=>[I("ul",{class:ue(`${e.prefixCls}-list`)},[vt(e.$slots,"default")],2)]),_:3},8,["class","style","onScroll"]),e.$slots.footer&&!e.isEmpty?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer")],2)):Le("v-if",!0)],2)}var fpe=Ve(ZPe,[["render",JPe]]);const $5=({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 Rt(a,l=>{o.value!==l&&(o.value=l)}),{computedPopupVisible:a,handlePopupVisibleChange:s}},QPe=Se({name:"Dropdown",components:{Trigger:ha,DropdownPanel:fpe},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=Ae("dropdown"),{computedPopupVisible:s,handlePopupVisibleChange:l}=$5({defaultPopupVisible:n,popupVisible:r,emit:t});return ri(fH,Xt({popupMaxHeight:o,onOptionClick:(d,h)=>{t("select",d,h),e.hideOnSelect&&l(!1)}})),{prefixCls:a,computedPopupVisible:s,handlePopupVisibleChange:l}}});function eRe(e,t,n,r,o,a){const s=Ie("DropdownPanel"),l=Ie("Trigger");return z(),qe(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(()=>[$(s,null,yo({default:de(()=>[vt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[vt(e.$slots,"footer")]),key:"0"}:void 0]),1024)]),default:de(()=>[vt(e.$slots,"default")]),_:3},8,["popup-visible","trigger","position","popup-container","opened-class","onPopupVisibleChange"])}var rw=Ve(QPe,[["render",eRe]]);const tRe=Se({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=Ae("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:On(fH,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 nRe(e,t,n,r,o,a){return z(),Q("li",{ref:"liRef",class:ue([e.cls,{[`${e.prefixCls}-has-suffix`]:!!e.$slots.suffix}]),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.$slots.icon?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon")],2)):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2),e.$slots.suffix?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-suffix`)},[vt(e.$slots,"suffix")],2)):Le("v-if",!0)],2)}var sy=Ve(tRe,[["render",nRe]]);const rRe=Se({name:"Dgroup",props:{title:String},setup(){return{prefixCls:Ae("dropdown-group")}}});function iRe(e,t,n,r,o,a){return z(),Q(Bt,null,[I("li",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2),vt(e.$slots,"default")],64)}var iw=Ve(rRe,[["render",iRe]]);const oRe=Se({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=Ae("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)}}}}),sRe=["stroke-width","stroke-linecap","stroke-linejoin"];function aRe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m16 39.513 15.556-15.557L16 8.4"},null,-1)]),14,sRe)}var qP=Ve(oRe,[["render",aRe]]);const Hi=Object.assign(qP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qP.name,qP)}}),lRe=Se({name:"Dsubmenu",components:{Trigger:ha,DropdownPanel:fpe,DropdownOption:sy,IconRight:Hi},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=Ae("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=$5({defaultPopupVisible:n,popupVisible:r,emit:t});return{prefixCls:o,computedPopupVisible:a,handlePopupVisibleChange:s}}});function uRe(e,t,n,r,o,a){const s=Ie("IconRight"),l=Ie("dropdown-option"),c=Ie("dropdown-panel"),d=Ie("Trigger");return z(),qe(d,{"popup-visible":e.computedPopupVisible,trigger:e.trigger,position:e.position,disabled:e.disabled,"popup-offset":4,onPopupVisibleChange:e.handlePopupVisibleChange},{content:de(()=>[$(c,{class:ue(`${e.prefixCls}-submenu`)},yo({default:de(()=>[vt(e.$slots,"content")]),_:2},[e.$slots.footer?{name:"footer",fn:de(()=>[vt(e.$slots,"footer")]),key:"0"}:void 0]),1032,["class"])]),default:de(()=>[$(l,Vt(e.optionProps,{active:e.computedPopupVisible,"uninject-context":""}),yo({suffix:de(()=>[vt(e.$slots,"suffix",{},()=>[$(s)])]),default:de(()=>[vt(e.$slots,"default")]),_:2},[e.$slots.icon?{name:"icon",fn:de(()=>[vt(e.$slots,"icon")]),key:"0"}:void 0]),1040,["active"])]),_:3},8,["popup-visible","trigger","position","disabled","onPopupVisibleChange"])}var ow=Ve(lRe,[["render",uRe]]);const cRe=Se({name:"DropdownButton",components:{IconMore:F0,Button:Xo,ButtonGroup:eb,Dropdown:rw},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=Ae("dropdown"),{computedPopupVisible:a,handlePopupVisibleChange:s}=$5({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 dRe(e,t,n,r,o,a){const s=Ie("Button"),l=Ie("IconMore"),c=Ie("Dropdown"),d=Ie("ButtonGroup");return z(),qe(d,null,{default:de(()=>[$(s,Vt({size:e.size,type:e.type,disabled:e.disabled},e.buttonProps,{onClick:e.handleClick}),{default:de(()=>[vt(e.$slots,"default")]),_:3},16,["size","type","disabled","onClick"]),$(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(()=>[vt(e.$slots,"content")]),default:de(()=>[$(s,{size:e.size,type:e.type,disabled:e.disabled},{icon:de(()=>[vt(e.$slots,"icon",{popupVisible:e.computedPopupVisible},()=>[$(l)])]),_:3},8,["size","type","disabled"])]),_:3},8,["popup-visible","trigger","position","popup-container","hide-on-select","onSelect","onPopupVisibleChange"])]),_:3})}var sw=Ve(cRe,[["render",dRe]]);const hpe=Object.assign(rw,{Option:sy,Group:iw,Submenu:ow,Button:sw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+rw.name,rw),e.component(n+sy.name,sy),e.component(n+iw.name,iw),e.component(n+ow.name,ow),e.component(n+sw.name,sw)}});var nb=Se({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=Ae("breadcrumb-item"),o=On(cpe,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?_:$(dpe,null,null);return $("div",{"aria-hidden":"true",class:`${r}-separator`},[T])},p=()=>{var y,S,k,C;return $("div",Vt({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:$(F0,null,null):(C=t.default)==null?void 0:C.call(t),(e.droplist||t.droplist)&&$("span",{"aria-hidden":!0,class:[`${r}-dropdown-icon`,{[`${r}-dropdown-icon-active`]:a.value}]},[$(Zh,null,null)])])},v=()=>{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=>$(sy,{value:C.path},{default:()=>[C.label]}))},g=()=>$(hpe,Vt({popupVisible:a.value,onPopupVisibleChange:d},e.dropdownProps),{default:()=>[p()],content:v});return()=>s.value?$(Bt,null,[t.droplist||e.droplist?g():p(),h()]):null}}),YP=Se({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=Ae("breadcrumb"),s=fe(0),l=F(()=>n.value>0&&s.value>n.value+1);ri(cpe,Xt({total:s,maxCount:n,separator:r,needHide:l,slots:t}));const c=(p,v,g)=>{var y,S;if(v.indexOf(p)===v.length-1)return $("span",null,[p.label]);const k=(S=(y=e.customUrl)==null?void 0:y.call(e,g))!=null?S:`#/${g.join("/").replace(/^\//,"")}`;return $("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 v=[];return o.value.map((g,y,S)=>{v.push((g.path||"").replace(/^\//,""));const k=[...v];return $(nb,{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,v;const g=bf((v=(p=t.default)==null?void 0:p.call(t))!=null?v:[]);return s.value!==g.length&&(s.value=g.length),g.map((y,S)=>{var k;return y.props=Vt((k=y.props)!=null?k:{},{index:S}),y})};return()=>$("div",{role:"list",class:a},[t.default?h():d()])}});const fRe=Object.assign(YP,{Item:nb,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+YP.name,YP),e.component(n+nb.name,nb)}});var aw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function td(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Z_(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 lw={exports:{}},hRe=lw.exports,Jne;function ppe(){return Jne||(Jne=1,(function(e,t){(function(n,r){e.exports=r()})(hRe,(function(){var n=1e3,r=6e4,o=36e5,a="millisecond",s="second",l="minute",c="hour",d="day",h="week",p="month",v="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(H){var K=["th","st","nd","rd"],Y=H%100;return"["+H+(K[(Y-20)%10]||K[Y]||K[0])+"]"}},E=function(H,K,Y){var ne=String(H);return!ne||ne.length>=K?H:""+Array(K+1-ne.length).join(Y)+H},_={s:E,z:function(H){var K=-H.utcOffset(),Y=Math.abs(K),ne=Math.floor(Y/60),X=Y%60;return(K<=0?"+":"-")+E(ne,2,"0")+":"+E(X,2,"0")},m:function H(K,Y){if(K.date()1)return H(q[0])}else{var ee=K.name;D[ee]=K,X=ee}return!ne&&X&&(T=X),X||!ne&&T},L=function(H,K){if(M(H))return H.clone();var Y=typeof K=="object"?K:{};return Y.date=H,Y.args=arguments,new j(Y)},B=_;B.l=O,B.i=M,B.w=function(H,K){return L(H,{locale:K.$L,utc:K.$u,x:K.$x,$offset:K.$offset})};var j=(function(){function H(Y){this.$L=O(Y.locale,null,!0),this.parse(Y),this.$x=this.$x||Y.x||{},this[P]=!0}var K=H.prototype;return K.parse=function(Y){this.$d=(function(ne){var X=ne.date,U=ne.utc;if(X===null)return new Date(NaN);if(B.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var q=X.match(k);if(q){var ee=q[2]-1||0,re=(q[7]||"0").substring(0,3);return U?new Date(Date.UTC(q[1],ee,q[3]||1,q[4]||0,q[5]||0,q[6]||0,re)):new Date(q[1],ee,q[3]||1,q[4]||0,q[5]||0,q[6]||0,re)}}return new Date(X)})(Y),this.init()},K.init=function(){var Y=this.$d;this.$y=Y.getFullYear(),this.$M=Y.getMonth(),this.$D=Y.getDate(),this.$W=Y.getDay(),this.$H=Y.getHours(),this.$m=Y.getMinutes(),this.$s=Y.getSeconds(),this.$ms=Y.getMilliseconds()},K.$utils=function(){return B},K.isValid=function(){return this.$d.toString()!==S},K.isSame=function(Y,ne){var X=L(Y);return this.startOf(ne)<=X&&X<=this.endOf(ne)},K.isAfter=function(Y,ne){return L(Y)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)}],v=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=v("months"),x=(v("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=v("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(L,B,j){var W=j&&j.toUpperCase();return B||x[j]||n[j]||x[W].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(H,K,Y){return K||Y.slice(1)}))}))).match(r),_=E.length,T=0;T<_;T+=1){var D=E[T],P=y[D],M=P&&P[0],O=P&&P[1];E[T]=O?{regex:M,parser:O}:D.replace(/^\[|\]$/g,"")}return function(L){for(var B={},j=0,W=0;j<_;j+=1){var H=E[j];if(typeof H=="string")W+=H.length;else{var K=H.regex,Y=H.parser,ne=L.slice(W),X=K.exec(ne)[0];Y.call(B,X),L=L.replace(X,"")}}return(function(U){var q=U.afternoon;if(q!==void 0){var ee=U.hours;q?ee<12&&(U.hours+=12):ee===12&&(U.hours=0),delete U.afternoon}})(B),B}}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 O=M[1];if(typeof O=="string"){var L=M[2]===!0,B=M[3]===!0,j=L||B,W=M[2];B&&(W=M[2]),c=this.$locale(),!L&&W&&(c=x.Ls[W]),this.$d=(function(ne,X,U,q){try{if(["x","X"].indexOf(X)>-1)return new Date((X==="X"?1e3:1)*ne);var ee=S(X)(ne),re=ee.year,ae=ee.month,ie=ee.day,ke=ee.hours,Fe=ee.minutes,ge=ee.seconds,_e=ee.milliseconds,ze=ee.zone,Qe=ee.week,Je=new Date,Te=ie||(re||ae?1:Je.getDate()),ve=re||Je.getFullYear(),be=0;re&&!ae||(be=ae>0?ae-1:Je.getMonth());var Me,He=ke||0,Xe=Fe||0,rt=ge||0,ft=_e||0;return ze?new Date(Date.UTC(ve,be,Te,He,Xe,rt,ft+60*ze.offset*1e3)):U?new Date(Date.UTC(ve,be,Te,He,Xe,rt,ft)):(Me=new Date(ve,be,Te,He,Xe,rt,ft),Qe&&(Me=q(Me).week(Qe).toDate()),Me)}catch{return new Date("")}})(D,O,P,x),this.init(),W&&W!==!0&&(this.$L=this.locale(W).$L),j&&D!=this.format(O)&&(this.$d=new Date("")),c={}}else if(O instanceof Array)for(var H=O.length,K=1;K<=H;K+=1){M[1]=O[K-1];var Y=x.apply(this,M);if(Y.isValid()){this.$d=Y.$d,this.$L=Y.$L,this.init();break}K===H&&(this.$d=new Date(""))}else _.call(this,T)}}}))})(uw)),uw.exports}var gRe=mRe();const yRe=td(gRe);var cw={exports:{}},bRe=cw.exports,ere;function _Re(){return ere||(ere=1,(function(e,t){(function(n,r){e.exports=r()})(bRe,(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]==="(",v=c[1]===")";return(p?this.isAfter(d,l):!this.isBefore(d,l))&&(v?this.isBefore(h,l):!this.isAfter(h,l))||(p?this.isBefore(d,l):!this.isAfter(d,l))&&(v?this.isAfter(h,l):!this.isBefore(h,l))}}}))})(cw)),cw.exports}var SRe=_Re();const kRe=td(SRe);var dw={exports:{}},xRe=dw.exports,tre;function CRe(){return tre||(tre=1,(function(e,t){(function(n,r){e.exports=r()})(xRe,(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 v=s(this).startOf(r).date(d).startOf(n).subtract(1,"millisecond"),g=this.diff(v,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)}}}))})(dw)),dw.exports}var wRe=CRe();const ERe=td(wRe);var fw={exports:{}},TRe=fw.exports,nre;function ARe(){return nre||(nre=1,(function(e,t){(function(n,r){e.exports=r()})(TRe,(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)}}}))})(fw)),fw.exports}var IRe=ARe();const LRe=td(IRe);var hw={exports:{}},DRe=hw.exports,rre;function PRe(){return rre||(rre=1,(function(e,t){(function(n,r){e.exports=r()})(DRe,(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}}}))})(hw)),hw.exports}var RRe=PRe();const MRe=td(RRe);var pw={exports:{}},ORe=pw.exports,ire;function $Re(){return ire||(ire=1,(function(e,t){(function(n,r){e.exports=r()})(ORe,(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(),v=!!p.u(h)||h;if(p.p(d)===r){var g=this.quarter()-1;return v?this.month(3*g).startOf(n).startOf("day"):this.month(3*g+2).endOf(n).endOf("day")}return c.bind(this)(d,h)}}}))})(pw)),pw.exports}var BRe=$Re();const NRe=td(BRe);var vw={exports:{}},FRe=vw.exports,ore;function jRe(){return ore||(ore=1,(function(e,t){(function(n,r){e.exports=r(ppe())})(FRe,(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}))})(vw)),vw.exports}jRe();const VRe=(e,t,n)=>{n=function(a,s){if(zc(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=zc,a},n.isDayjs=zc};ml.extend(VRe);ml.extend(yRe);ml.extend(kRe);ml.extend(ERe);ml.extend(LRe);ml.extend(MRe);ml.extend(NRe);const Rs=ml,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 hH(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:sr(t)&&sr(e)?n(t[0],e[0])||n(t[1],e[1]):!sr(t)&&!sr(e)?n(t,e):!0}function dc(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(BLe(t))return Rs(n(o),t.replace(/\[Q]Q/,"MM"));if(Rs(o,t).isValid())return Rs(o,t)}return Rs(o)}};return sr(e)?e.map(r):r(e)}function xu(e){const t=n=>n?n.toDate():void 0;return sr(e)?e.map(t):t(e)}function vpe(e,t){Rs.locale({...Rs.Ls[e.toLocaleLowerCase()],weekStart:t})}function zRe(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 fm(e,t,n=" "){const r=String(e),o=r.length$("div",{class:a},[l.map(c=>$("div",{class:`${a}-item`,key:c},[s(`calendar.week.${r.value||o.value==="year"?"short":"long"}.${c}`)]))])}});function yx(e,t){if(e&&sr(e))return e[t]}function mpe({prefixCls:e,mergedValue:t,rangeValues:n,hoverRangeValues:r,panel:o,isSameTime:a,innerMode:s}){return function(c,d){const h=yx(n,0),p=yx(n,1),v=yx(r,0),g=yx(r,1),y=!c.isPrev&&!c.isNext,S=y&&o,k=S,C=S;v&&h&&v.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 sre=42,F8=e=>({year:e.year(),month:e.month()+1,date:e.date(),day:e.day(),time:e}),HRe=e=>({start:F8(Ys.startOf(e,"month")),end:F8(Ys.endOf(e,"month")),days:e.daysInMonth()});function gpe(e,{dayStartOfWeek:t=0,isWeek:n}){const r=HRe(e),o=Array(sre).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 ype=Se({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=Ae("calendar"),o=e.pageShowDate.year(),a=F(()=>mpe({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 v=()=>e.selectHandler(d.time,!1),g=e.isWeek?{onClick:v}:{},y=e.isWeek?{}:{onClick:v};return $("div",Vt({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}):$("div",Vt({class:`${r}-date`},y),[$("div",{class:`${r}-date-value`},[e.panel?d.date:$("div",{class:`${r}-date-circle`},[d.date])])])])}if("weekOfYear"in d){const v=e.value.year(),g=e.value.month()+1,y=e.value.week(),S=e.value&&d.weekRows.find(k=>k.year===v&&k.month===g)&&y===d.weekOfYear;return $("div",{key:h,class:[`${r}-cell`,`${r}-cell-week`,{[`${r}-cell-selected-week`]:S,[`${r}-cell-in-range`]:S}]},[$("div",{class:`${r}-date`},[$("div",{class:`${r}-date-value`},[d.weekOfYear])])])}return null})}let l=n.value;return typeof e.current=="number"&&(l=gpe(Rs(`${o}-${fm(e.current+1,2,"0")}-01`),{dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek})),()=>$("div",{class:e.cell?`${r}-month-cell`:`${r}-month`},[$(URe,{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),$("div",{class:`${r}-month-cell-body`},[l?.map((c,d)=>$("div",{key:d,class:[`${r}-month-row`,{[`${r}-row-week`]:e.isWeek}]},[s(c)]))])])}});const bpe=["January","February","March","April","May","June","July","August","September","October","November","December"].map((e,t)=>({name:e,value:t})),_pe=Array(3);for(let e=0;e<3;e++)_pe[e]=bpe.slice(e*4,4*(e+1));const Spe=Array(4);for(let e=0;e<4;e++)Spe[e]=bpe.slice(e*3,3*(e+1));var WRe=Se({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=Ae("calendar"),n=F(()=>mpe({prefixCls:t,mergedValue:e.value,panel:!1,innerMode:e.mode,rangeValues:[],hoverRangeValues:[],isSameTime:(s,l)=>s.isSame(l,"month")})),{t:r}=No(),o=F(()=>e.pageShowData.year()),a=e.panel?Spe:_pe;return()=>$("div",{class:`${t}-year`},[a.map((s,l)=>$("div",{class:`${t}-year-row`,key:l},[s.map(c=>{const d=Rs(`${o.value}-${fm(c.value+1,2,"0")}-01`),h=e.panel?{onClick:()=>e.selectHandler(d,!1)}:{};return $("div",{key:c.value,class:n.value({...c,time:d},!1)},[e.panel?$("div",Vt({class:`${t}-date`},h),[$("div",{class:`${t}-date-value`},[r(`calendar.month.short.${c.name}`)])]):$("div",{class:`${t}-month-with-days`},[$("div",{class:`${t}-month-title`},[r(`calendar.month.long.${c.name}`)]),$(ype,{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 GRe=({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 v;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),Cn(()=>{l.value&&g.value!==l.value.value&&(l.value.value=g.value)}))},k=D=>{r==="input"&&g.value!==v&&(v=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),Cn(()=>{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,v=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===rH.key&&(n("pressEnter",D),k(D))},T=D=>{l.value&&D.target!==l.value&&(D.preventDefault(),l.value.focus())};return Rt(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 KRe=Se({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:Ae("input-label"),{mergedSize:p,mergedDisabled:v,mergedError:g,eventHandlers:y}=Do({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}=GRe({modelValue:c,emit:n,eventName:"inputValueChange",updateEventName:"update:inputValue",eventHandlers:y}),M=F(()=>{var ne;return(ne=e.focused)!=null?ne:C.value}),O=F(()=>e.enabledInput&&C.value||!e.modelValue),L=()=>{var ne,X;return e.modelValue?(X=(ne=e.formatLabel)==null?void 0:ne.call(e,e.modelValue))!=null?X:e.modelValue.label:""},B=F(()=>e.enabledInput&&e.modelValue?L():e.placeholder),j=()=>{var ne,X;return e.modelValue?(X=(ne=r.default)==null?void 0:ne.call(r,{data:e.modelValue}))!=null?X:L():null},W=F(()=>[h,`${h}-size-${S.value}`,{[`${h}-search`]:e.enabledInput,[`${h}-focus`]:M.value,[`${h}-disabled`]:v.value,[`${h}-error`]:g.value}]),H=F(()=>xa(t,S0)),K=F(()=>xf(t,S0));return{inputRef:k,render:()=>$("span",Vt(H.value,{class:W.value,title:L(),onMousedown:P}),[r.prefix&&$("span",{class:`${h}-prefix`},[r.prefix()]),$("input",Vt(K.value,{ref:k,class:[`${h}-input`,{[`${h}-input-hidden`]:!O.value}],value:x.value,readonly:!e.enabledInput,placeholder:B.value,disabled:v.value,onInput:E,onFocus:T,onBlur:D,onCompositionstart:_,onCompositionupdate:_,onCompositionend:_}),null),$("span",{class:[`${h}-value`,{[`${h}-value-hidden`]:O.value}]},[j()]),r.suffix&&$("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 qRe=(e,t)=>{const n=[];for(const r of e)if(br(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},are=["red","orangered","orange","gold","lime","green","cyan","blue","arcoblue","purple","pinkpurple","magenta","gray"],YRe=Se({name:"Tag",components:{IconHover:Lo,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=Ae("tag"),o=F(()=>e.color&&are.includes(e.color)),a=F(()=>e.color&&!are.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),v=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:v}}});function XRe(e,t,n,r,o,a){const s=Ie("icon-close"),l=Ie("icon-hover"),c=Ie("icon-loading");return e.computedVisible?(z(),Q("span",{key:0,class:ue(e.cls),style:Ge(e.style),onClick:t[0]||(t[0]=(...d)=>e.handleClick&&e.handleClick(...d))},[e.$slots.icon?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon")],2)):Le("v-if",!0),e.nowrap?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-text`)},[vt(e.$slots,"default")],2)):vt(e.$slots,"default",{key:2}),e.closable?(z(),qe(l,{key:3,role:"button","aria-label":"Close",prefix:e.prefixCls,class:ue(`${e.prefixCls}-close-btn`),onClick:us(e.handleClose,["stop"])},{default:de(()=>[vt(e.$slots,"close-icon",{},()=>[$(s)])]),_:3},8,["prefix","class","onClick"])):Le("v-if",!0),e.loading?(z(),Q("span",{key:4,class:ue(`${e.prefixCls}-loading-icon`)},[$(c)],2)):Le("v-if",!0)],6)):Le("v-if",!0)}var XP=Ve(YRe,[["render",XRe]]);const pH=Object.assign(XP,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+XP.name,XP)}}),ZRe={value:"value",label:"label",closable:"closable",tagProps:"tagProps"};var ZP=Se({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||Ae("input-tag"),h=fe(),p=fe(),{mergedSize:v,mergedDisabled:g,mergedError:y,feedback:S,eventHandlers:k}=Do({size:o,disabled:a,error:s,uninject:l?.value}),{mergedSize:C}=wa(v),x=F(()=>({...ZRe,...e.fieldNames})),E=fe(!1),_=fe(e.defaultValue),T=fe(e.defaultInputValue),D=fe(!1),P=fe(""),M=F(()=>br(e.retainInputValue)?{create:!1,blur:!1,...e.retainInputValue}:{create:e.retainInputValue,blur:e.retainInputValue}),O=Xt({width:"12px"}),L=F(()=>e.focused||E.value),B=(be,Me)=>{T.value=be,t("update:inputValue",be),t("inputValueChange",be,Me)},j=be=>{var Me;const{value:He}=be.target;be.type==="compositionend"?(D.value=!1,P.value="",B(He,be),Cn(()=>{h.value&&H.value!==h.value.value&&(h.value.value=H.value)})):(D.value=!0,P.value=H.value+((Me=be.data)!=null?Me:""))},W=F(()=>{var be;return(be=e.modelValue)!=null?be:_.value}),H=F(()=>{var be;return(be=e.inputValue)!=null?be:T.value});Rt(c,be=>{(An(be)||Tl(be))&&(_.value=[])});const K=be=>{h.value&&be.target!==h.value&&(be.preventDefault(),h.value.focus())},Y=be=>{const{value:Me}=be.target;D.value||(B(Me,be),Cn(()=>{h.value&&H.value!==h.value.value&&(h.value.value=H.value)}))},ne=F(()=>qRe(W.value,x.value)),X=F(()=>{if(e.maxTagCount>0){const be=ne.value.length-e.maxTagCount;if(be>0){const Me=ne.value.slice(0,e.maxTagCount),He={value:"__arco__more",label:`+${be}...`,closable:!1};return Me.push({raw:He,...He}),Me}}return ne.value}),U=(be,Me)=>{var He,Xe;_.value=be,t("update:modelValue",be),t("change",be,Me),(Xe=(He=k.value)==null?void 0:He.onChange)==null||Xe.call(He,Me)},q=(be,Me,He)=>{var Xe;const rt=(Xe=W.value)==null?void 0:Xe.filter((ft,lt)=>lt!==Me);U(rt,He),t("remove",be,He)},ee=be=>{U([],be),t("clear",be)},re=F(()=>!g.value&&!e.readonly&&e.allowClear&&!!W.value.length),ae=be=>{var Me;if(H.value){if(be.preventDefault(),e.uniqueValue&&((Me=W.value)!=null&&Me.includes(H.value))){t("pressEnter",H.value,be);return}const He=W.value.concat(H.value);U(He,be),t("pressEnter",H.value,be),M.value.create||B("",be)}},ie=be=>{var Me,He;E.value=!0,t("focus",be),(He=(Me=k.value)==null?void 0:Me.onFocus)==null||He.call(Me,be)},ke=be=>{var Me,He;E.value=!1,!M.value.blur&&H.value&&B("",be),t("blur",be),(He=(Me=k.value)==null?void 0:Me.onBlur)==null||He.call(Me,be)},Fe=()=>{for(let be=ne.value.length-1;be>=0;be--)if(ne.value[be].closable)return be;return-1},ge=be=>{if(g.value||e.readonly)return;const Me=be.key||be.code;if(!D.value&&H.value&&Me===rH.key&&ae(be),!D.value&&X.value.length>0&&!H.value&&Me===epe.key){const He=Fe();He>=0&&q(ne.value[He].value,He,be)}},_e=be=>{be>12?O.width=`${be}px`:O.width="12px"};bn(()=>{p.value&&_e(p.value.offsetWidth)});const ze=()=>{p.value&&_e(p.value.offsetWidth)};Rt(H,be=>{h.value&&!D.value&&be!==h.value.value&&(h.value.value=be)});const Qe=F(()=>[d,`${d}-size-${C.value}`,{[`${d}-disabled`]:g.value,[`${d}-disabled-input`]:e.disabledInput,[`${d}-error`]:y.value,[`${d}-focus`]:L.value,[`${d}-readonly`]:e.readonly,[`${d}-has-tag`]:X.value.length>0,[`${d}-has-prefix`]:!!n.prefix,[`${d}-has-suffix`]:!!n.suffix||re.value||S.value,[`${d}-has-placeholder`]:!W.value.length}]),Je=F(()=>xa(r,S0)),Te=F(()=>xf(r,S0));return{inputRef:h,render:()=>{var be;return $("span",Vt({class:Qe.value,onMousedown:K},Je.value),[$(Dd,{onResize:ze},{default:()=>[$("span",{ref:p,class:`${d}-mirror`},[X.value.length>0?P.value||H.value:P.value||H.value||e.placeholder])]}),n.prefix&&$("span",{class:`${d}-prefix`},[n.prefix()]),$(r3,{tag:"span",name:"input-tag-zoom",class:[`${d}-inner`,{[`${d}-nowrap`]:e.tagNowrap}]},{default:()=>[X.value.map((Me,He)=>$(pH,Vt({key:`tag-${Me.value}`,class:`${d}-tag`,closable:!g.value&&!e.readonly&&Me.closable,visible:!0,nowrap:e.tagNowrap},Me.tagProps,{onClose:Xe=>q(Me.value,He,Xe)}),{default:()=>{var Xe,rt,ft,lt;return[(lt=(ft=(Xe=n.tag)==null?void 0:Xe.call(n,{data:Me.raw}))!=null?ft:(rt=e.formatTag)==null?void 0:rt.call(e,Me.raw))!=null?lt:Me.label]}})),$("input",Vt(Te.value,{ref:h,key:"input-tag-input",class:`${d}-input`,style:O,placeholder:X.value.length===0?e.placeholder:void 0,disabled:g.value,readonly:e.readonly||e.disabledInput,onInput:Y,onKeydown:ge,onFocus:ie,onBlur:ke,onCompositionstart:j,onCompositionupdate:j,onCompositionend:j}),null)]}),re.value&&$(Lo,{class:`${d}-clear-btn`,onClick:ee,onMousedown:Me=>Me.stopPropagation()},{default:()=>[$(ds,null,null)]}),(n.suffix||!!S.value)&&$("span",{class:`${d}-suffix`},[(be=n.suffix)==null?void 0:be.call(n),!!S.value&&$(X_,{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 kpe=Object.assign(ZP,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+ZP.name,ZP)}});var j8=Se({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=>sr(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=Ae("select-view"),{feedback:l,eventHandlers:c,mergedDisabled:d,mergedSize:h,mergedError:p}=Do({size:r,disabled:o,error:a}),{mergedSize:v}=wa(h),{opened:g}=nn(e),y=fe(),S=F(()=>{var B;return(B=y.value)==null?void 0:B.inputRef}),k=F(()=>e.modelValue.length===0),C=F(()=>e.allowSearch||e.allowCreate),x=F(()=>e.allowClear&&!e.disabled&&!k.value),E=B=>{var j,W;t("focus",B),(W=(j=c.value)==null?void 0:j.onFocus)==null||W.call(j,B)},_=B=>{var j,W;t("blur",B),(W=(j=c.value)==null?void 0:j.onBlur)==null||W.call(j,B)},T=B=>{t("remove",B)},D=B=>{t("clear",B)},P=()=>{var B,j,W,H;return e.loading?(j=(B=n["loading-icon"])==null?void 0:B.call(n))!=null?j:$(Xa,null,null):e.allowSearch&&e.opened?(H=(W=n["search-icon"])==null?void 0:W.call(n))!=null?H:$(Lm,null,null):n["arrow-icon"]?n["arrow-icon"]():$(Zh,{class:`${s}-arrow-icon`},null)},M=()=>$(Bt,null,[x.value&&$(Lo,{class:`${s}-clear-btn`,onClick:D,onMousedown:B=>B.stopPropagation()},{default:()=>[$(ds,null,null)]}),$("span",{class:`${s}-icon`},[P()]),!!l.value&&$(X_,{type:l.value},null)]);Rt(g,B=>{!B&&S.value&&S.value.isSameNode(document.activeElement)&&S.value.blur()});const O=F(()=>[`${s}-${e.multiple?"multiple":"single"}`,{[`${s}-opened`]:e.opened,[`${s}-borderless`]:!e.bordered}]);return{inputRef:S,handleFocus:E,handleBlur:_,render:()=>e.multiple?$(kpe,{ref:y,baseCls:s,class:O.value,modelValue:e.modelValue,inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:v.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}):$(KRe,{ref:y,baseCls:s,class:O.value,modelValue:e.modelValue[0],inputValue:e.inputValue,focused:e.opened,placeholder:e.placeholder,disabled:d.value,size:v.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 JRe=Se({name:"Optgroup",props:{label:{type:String}},setup(){return{prefixCls:Ae("select-group")}}});function QRe(e,t,n,r,o,a){return z(),Q(Bt,null,[I("li",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"label",{},()=>[Ue(je(e.label),1)])],2),vt(e.$slots,"default")],64)}var rb=Ve(JRe,[["render",QRe]]);const lre=typeof window>"u"?global:window;function r_(e,t){let n=0;return(...r)=>{n&&lre.clearTimeout(n),n=lre.setTimeout(()=>{n=0,e(...r)},t)}}function eMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const tMe={value:"value",label:"label",disabled:"disabled",tagProps:"tagProps",render:"render"};var JP=Se({name:"Select",components:{Trigger:ha,SelectView:j8},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=>An(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:v,showExtraOptions:g,modelValue:y,fieldNames:S,loading:k,defaultActiveFirstOption:C}=nn(e),x=Ae("select"),{mergedSize:E,mergedDisabled:_,mergedError:T,eventHandlers:D}=Do({size:o,disabled:a,error:s}),P=F(()=>e.virtualListProps?"div":"li"),M=F(()=>br(e.allowSearch)&&!!e.allowSearch.retainInputValue);F(()=>{if(En(e.formatLabel))return ct=>{const Ne=rt.get(ct.value);return e.formatLabel(Ne)}});const O=fe(),L=fe({}),B=fe(),{computedPopupVisible:j,handlePopupVisibleChange:W}=$5({popupVisible:p,defaultPopupVisible:v,emit:n}),H=fe(e.defaultValue),K=F(()=>{var ct;const Ne=(ct=e.modelValue)!=null?ct:H.value;return(sr(Ne)?Ne:Ne||Ze(Ne)||cs(Ne)||El(Ne)?[Ne]:[]).map(Oe=>({value:Oe,key:Dm(Oe,e.valueKey)}))});Rt(y,ct=>{(An(ct)||Tl(ct))&&(H.value=h.value?[]:ct)});const Y=F(()=>K.value.map(ct=>ct.key)),ne=F(()=>({...tMe,...S?.value})),X=fe(),U=ct=>{const Ne={};return ct.forEach(De=>{Ne[De]=rt.get(De)}),Ne},q=ct=>{X.value=U(ct)},ee=ct=>En(e.fallbackOption)?e.fallbackOption(ct):{[ne.value.value]:ct,[ne.value.label]:String(br(ct)?ct[d?.value]:ct)},re=()=>{const ct=[],Ne=[];if(e.allowCreate||e.fallbackOption){for(const De of K.value)if(!Ne.includes(De.key)&&De.value!==""){const Oe=rt.get(De.key);(!Oe||Oe.origin==="extraOptions")&&(ct.push(De),Ne.push(De.key))}}if(e.allowCreate&&Fe.value){const De=Dm(Fe.value);if(!Ne.includes(De)){const Oe=rt.get(De);(!Oe||Oe.origin==="extraOptions")&&ct.push({value:Fe.value,key:De})}}return ct},ae=fe([]),ie=F(()=>ae.value.map(ct=>{var Ne;let De=ee(ct.value);const Oe=(Ne=X.value)==null?void 0:Ne[ct.key];return!An(Oe)&&!$Le(Oe)&&(De={...De,...Oe}),De}));Cn(()=>{Os(()=>{var ct;const Ne=re();if(Ne.length!==ae.value.length)ae.value=Ne;else if(Ne.length>0){for(let De=0;De{var ct;return(ct=e.inputValue)!=null?ct:ke.value});Rt(j,ct=>{!ct&&!M.value&&Fe.value&&ze("")});const ge=ct=>{var Ne,De;return e.multiple?ct.map(Oe=>{var Ye,dt;return(dt=(Ye=rt.get(Oe))==null?void 0:Ye.value)!=null?dt:""}):(De=(Ne=rt.get(ct[0]))==null?void 0:Ne.value)!=null?De:uPe(rt)?void 0:""},_e=ct=>{var Ne,De;const Oe=ge(ct);H.value=Oe,n("update:modelValue",Oe),n("change",Oe),(De=(Ne=D.value)==null?void 0:Ne.onChange)==null||De.call(Ne),q(ct)},ze=ct=>{ke.value=ct,n("update:inputValue",ct),n("inputValueChange",ct)},Qe=(ct,Ne)=>{if(e.multiple){if(Y.value.includes(ct)){const De=Y.value.filter(Oe=>Oe!==ct);_e(De)}else if(lt.value.includes(ct))if(e.limit>0&&Y.value.length>=e.limit){const De=rt.get(ct);n("exceedLimit",De?.value,Ne)}else{const De=Y.value.concat(ct);_e(De)}M.value||ze("")}else{if(ct!==Y.value[0]&&_e([ct]),M.value){const De=rt.get(ct);De&&ze(De.label)}W(!1)}},Je=r_(ct=>{n("search",ct)},e.searchDelay),Te=ct=>{ct!==Fe.value&&(j.value||W(!0),ze(ct),e.allowSearch&&Je(ct))},ve=ct=>{const Ne=rt.get(ct),De=Y.value.filter(Oe=>Oe!==ct);_e(De),n("remove",Ne?.value)},be=ct=>{ct?.stopPropagation();const Ne=Y.value.filter(De=>{var Oe;return(Oe=rt.get(De))==null?void 0:Oe.disabled});_e(Ne),ze(""),n("clear",ct)},Me=ct=>{n("dropdownScroll",ct)},He=ct=>{n("dropdownReachBottom",ct)},{validOptions:Xe,optionInfoMap:rt,validOptionInfos:ft,enabledOptionKeys:lt,handleKeyDown:Et}=uH({multiple:h,options:l,extraOptions:ie,inputValue:Fe,filterOption:c,showExtraOptions:g,component:P,valueKey:d,fieldNames:S,loading:k,popupVisible:j,valueKeys:Y,dropdownRef:O,optionRefs:L,virtualListRef:B,defaultActiveFirstOption:C,onSelect:Qe,onPopupVisibleChange:W}),St=F(()=>{var ct;const Ne=[];for(const De of K.value){const Oe=rt.get(De.key);Oe&&Ne.push({...Oe,value:De.key,label:(ct=Oe?.label)!=null?ct:String(br(De.value)?De.value[d?.value]:De.value),closable:!Oe?.disabled,tagProps:Oe?.tagProps})}return Ne}),Wt=ct=>{if(En(t.option)){const Ne=t.option;return()=>Ne({data:ct.raw})}return En(ct.render)?ct.render:()=>ct.label},Tt=ct=>{if(ape(ct)){let Ne;return $(rb,{key:ct.key,label:ct.label},eMe(Ne=ct.options.map(De=>Tt(De)))?Ne:{default:()=>[Ne]})}return R5(ct,{inputValue:Fe.value,filterOption:c?.value})?$(dm,{ref:Ne=>{Ne?.$el&&(L.value[ct.key]=Ne.$el)},key:ct.key,value:ct.value,label:ct.label,disabled:ct.disabled,internal:!0},{default:Wt(ct)}):null},Mt=()=>$(lH,{ref:O,loading:e.loading,empty:ft.value.length===0,virtualList:!!e.virtualListProps,scrollbar:e.scrollbar,showHeaderOnEmpty:e.showHeaderOnEmpty,showFooterOnEmpty:e.showFooterOnEmpty,onScroll:Me,onReachBottom:He},{default:()=>{var ct,Ne;return[...(Ne=(ct=t.default)==null?void 0:ct.call(t))!=null?Ne:[],...Xe.value.map(Tt)]},"virtual-list":()=>$(a3,Vt(e.virtualListProps,{ref:B,data:Xe.value}),{item:({item:ct})=>Tt(ct)}),empty:t.empty,header:t.header,footer:t.footer}),sn=({data:ct})=>{var Ne,De,Oe,Ye;if((t.label||En(e.formatLabel))&&ct){const dt=rt.get(ct.value);if(dt?.raw)return(Oe=(Ne=t.label)==null?void 0:Ne.call(t,{data:dt.raw}))!=null?Oe:(De=e.formatLabel)==null?void 0:De.call(e,dt.raw)}return(Ye=ct?.label)!=null?Ye:""};return()=>$(ha,Vt({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:W},e.triggerProps),{default:()=>{var ct,Ne;return[(Ne=(ct=t.trigger)==null?void 0:ct.call(t))!=null?Ne:$(j8,Vt({class:x,modelValue:St.value,inputValue:Fe.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:Te,onRemove:ve,onClear:be,onKeydown:Et},r),{label:sn,prefix:t.prefix,"arrow-icon":t["arrow-icon"],"loading-icon":t["loading-icon"],"search-icon":t["search-icon"]})]},content:Mt})}});const i_=Object.assign(JP,{Option:dm,OptGroup:rb,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+JP.name,JP),e.component(n+dm.name,dm),e.component(n+rb.name,rb)}}),xpe=Symbol("RadioGroup");var mw=Se({name:"Radio",components:{IconHover:Lo},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=Ae("radio"),{modelValue:o}=nn(e),a=e.uninjectGroupContext?void 0:On(xpe,void 0),{mergedDisabled:s,eventHandlers:l}=Do({disabled:Lu(e,"disabled")}),c=fe(null),d=fe(e.defaultChecked),h=F(()=>a?.name==="ArcoRadioGroup"),p=F(()=>{var _;return(_=a?.type)!=null?_:e.type}),v=F(()=>a?.disabled||s.value),g=F(()=>{var _,T;return h.value?a?.value===((_=e.value)!=null?_:!0):An(e.modelValue)?d.value:e.modelValue===((T=e.value)!=null?T:!0)});Rt(o,_=>{(An(_)||Tl(_))&&(d.value=!1)}),Rt(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,O;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,_),(O=(M=l.value)==null?void 0:M.onChange)==null||O.call(M,_)),Cn(()=>{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`]:v.value}]),E=()=>$(Bt,null,[$(Ie("icon-hover"),{class:`${r}-icon-hover`,disabled:v.value||g.value},{default:()=>[$("span",{class:`${r}-icon`},null)]}),n.default&&$("span",{class:`${r}-label`},[n.default()])]);return()=>{var _,T,D,P;return $("label",{class:x.value},[$("input",{ref:c,type:"radio",checked:g.value,value:e.value,class:`${r}-target`,disabled:v.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:v.value}))!=null?P:E():$("span",{class:`${r}-button-content`},[n.default&&n.default()])])}}}),ib=Se({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=Ae("radio-group"),{size:o,type:a,disabled:s,modelValue:l}=nn(e),{mergedDisabled:c,mergedSize:d,eventHandlers:h}=Do({size:o,disabled:s}),{mergedSize:p}=wa(d),v=fe(e.defaultValue),g=F(()=>{var x;return(x=e.modelValue)!=null?x:v.value}),y=F(()=>{var x;return((x=e.options)!=null?x:[]).map(E=>cs(E)||Ze(E)?{label:E,value:E}:E)});ri(xpe,Xt({name:"ArcoRadioGroup",value:g,size:p,type:a,disabled:c,slots:n,handleChange:(x,E)=>{var _,T;v.value=x,t("update:modelValue",x),t("change",x,E),(T=(_=h.value)==null?void 0:_.onChange)==null||T.call(_,E)}})),Rt(g,x=>{v.value!==x&&(v.value=x)}),Rt(l,x=>{(An(x)||Tl(x))&&(v.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=>$(mw,{key:x.value,value:x.value,disabled:x.disabled,modelValue:g.value===x.value},{default:()=>[n.label?n.label({data:x}):En(x.label)?x.label():x.label]}));return()=>{var x;return $("span",{class:k.value},[y.value.length>0?C():(x=n.default)==null?void 0:x.call(n)])}}});const Pm=Object.assign(mw,{Group:ib,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+mw.name,mw),e.component(n+ib.name,ib)}}),nMe=Se({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=Ae("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)}}}}),rMe=["stroke-width","stroke-linecap","stroke-linejoin"];function iMe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M32 8.4 16.444 23.956 32 39.513"},null,-1)]),14,rMe)}var QP=Ve(nMe,[["render",iMe]]);const Al=Object.assign(QP,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QP.name,QP)}});function oMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}function ure(e){return e.parentElement}var sMe=Se({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=Ae("calendar"),{t:r}=No(),o=sr(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 $("div",{class:`${n}-header`},[$("div",{class:`${n}-header-left`},[a?$(Bt,null,[$(i_,{size:"small",class:`${n}-header-value-year`,value:s,options:c.value,onChange:e.onYearChange,getPopupContainer:ure},null),e.mode==="month"&&$(i_,{size:"small",class:`${n}-header-value-month`,value:l,options:d,onChange:e.onMonthChange,getPopupContainer:ure},null)]):$(Bt,null,[$("div",{class:`${n}-header-icon`,role:"button",tabIndex:0,onClick:()=>e.changePageShowDate("prev",e.mode)},[$(Al,null,null)]),$("div",{class:`${n}-header-value`},[t.default?t.default({year:s,month:l}):e.pageShowData.format(e.headerValueFormat)]),$("div",{role:"button",tabIndex:0,class:`${n}-header-icon`,onClick:()=>e.changePageShowDate("next",e.mode)},[$(Hi,null,null)])]),$(Xo,{size:"small",onClick:()=>e.move(Ka())},oMe(h=r("datePicker.today"))?h:{default:()=>[h]})]),$("div",{class:`${n}-header-right`},[$(Pm.Group,{size:"small",type:"button",options:o,onChange:e.onModeChange,modelValue:e.mode},null)])])}}});function aMe(e,t){return e==="month"||e==="year"&&!t?"YYYY-MM-DD":"YYYY-MM"}var eR=Se({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=Ae("calendar"),s=fe(e.defaultMode),{t:l}=No(),c=F(()=>e.mode?e.mode:s.value),d=aMe(c.value,e.panel),h=fe(dc(e.defaultValue||Date.now(),d)),p=F(()=>e.modelValue?dc(e.modelValue,d):h.value),v=fe(p.value||Ka()),g=F(()=>gpe(v.value,{dayStartOfWeek:r.value,isWeek:o.value}));function y(M){v.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,O=!1){O||S(M)}let C="";c.value==="month"?C=l("calendar.formatMonth"):c.value==="year"&&(C=l("calendar.formatYear"));function x(M,O){M==="prev"&&(v.value=Ys.subtract(v.value,1,O)),M==="next"&&(v.value=Ys.add(v.value,1,O)),t("panelChange",v.value.toDate())}function E(M){const O=Ys.set(v.value,"year",M);v.value=O,t("panelChange",O.toDate())}function _(M){const O=Ys.set(v.value,"month",M-1);v.value=O,t("panelChange",O.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()=>$("div",Vt({class:D.value,style:P},zRe(e)),[$(sMe,{move:S,headerValueFormat:C,modes:e.modes,mode:c.value,pageShowData:v.value,dayStartOfWeek:e.dayStartOfWeek,isWeek:e.isWeek,onModeChange:T,onYearChange:E,onMonthChange:_,changePageShowDate:x},{default:n.header}),c.value==="month"&&$("div",{class:`${a}-body`},[$(ype,{key:v.value.month(),pageData:g.value,value:p.value,mode:c.value,selectHandler:k,isWeek:e.isWeek,dayStartOfWeek:e.dayStartOfWeek,pageShowDate:v.value},{default:n.default})]),c.value==="year"&&$("div",{class:`${a}-body`},[$(WRe,{key:v.value.year(),pageData:g.value,pageShowData:v.value,mode:c.value,isWeek:e.isWeek,value:p.value,dayStartOfWeek:e.dayStartOfWeek,selectHandler:k},null)]),e.panel&&e.panelTodayBtn&&$("div",{class:`${a}-footer-btn-wrapper`},[l("today")])])}});const Cpe=Object.assign(eR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+eR.name,eR)}}),vH=Symbol("ArcoCard");var tR=Se({name:"Card",components:{Spin:Pd},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=Ae("card"),{size:r}=nn(e),{mergedSize:o}=wa(r),a=F(()=>o.value==="small"||o.value==="mini"?"small":"medium"),s=d=>{const h=bf(d);return $("div",{class:`${n}-actions`},[$("div",{class:`${n}-actions-right`},[h.map((p,v)=>$("span",{key:`action-${v}`,class:`${n}-actions-item`},[p]))])])},l=Xt({hasMeta:!1,hasGrid:!1,slots:t,renderActions:s});ri(vH,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,v,g,y,S;const k=!!((d=t.title)!=null?d:e.title),C=!!((h=t.extra)!=null?h:e.extra);return $("div",{class:c.value},[(k||C)&&$("div",{class:[`${n}-header`,{[`${n}-header-no-title`]:!k}],style:e.headerStyle},[k&&$("div",{class:`${n}-header-title`},[(v=(p=t.title)==null?void 0:p.call(t))!=null?v:e.title]),C&&$("div",{class:`${n}-header-extra`},[(y=(g=t.extra)==null?void 0:g.call(t))!=null?y:e.extra])]),t.cover&&$("div",{class:`${n}-cover`},[t.cover()]),$("div",{class:`${n}-body`,style:e.bodyStyle},[e.loading?$(Pd,null,null):(S=t.default)==null?void 0:S.call(t),t.actions&&!l.hasMeta&&s(t.actions())])])}}}),gw=Se({name:"CardMeta",props:{title:{type:String},description:{type:String}},setup(e,{slots:t}){const n=Ae("card-meta"),r=On(vH);return bn(()=>{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 $("div",{class:n},[(h||p)&&$("div",{class:`${n}-content`},[h&&$("div",{class:`${n}-title`},[(l=(s=t.title)==null?void 0:s.call(t))!=null?l:e.title]),p&&$("div",{class:`${n}-description`},[(d=(c=t.description)==null?void 0:c.call(t))!=null?d:e.description])]),(t.avatar||r?.slots.actions)&&$("div",{class:[`${n}-footer `,{[`${n}-footer-only-actions`]:!t.avatar}]},[t.avatar&&$("div",{class:`${n}-avatar`},[t.avatar()]),r&&r.slots.actions&&r.renderActions(r.slots.actions())])])}}});const lMe=Se({name:"CardGrid",props:{hoverable:{type:Boolean,default:!1}},setup(e){const t=Ae("card-grid"),n=On(vH);return bn(()=>{n&&(n.hasGrid=!0)}),{cls:F(()=>[t,{[`${t}-hoverable`]:e.hoverable}])}}});function uMe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls)},[vt(e.$slots,"default")],2)}var yw=Ve(lMe,[["render",uMe]]);const cMe=Object.assign(tR,{Meta:gw,Grid:yw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+tR.name,tR),e.component(n+gw.name,gw),e.component(n+yw.name,yw)}}),dMe=Se({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=Ae("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}}}),fMe=["data-index"];function hMe(e,t,n,r,o,a){return z(),Q("div",Vt({class:e.cls},e.eventHandlers),[e.type==="slider"?(z(),Q("span",{key:0,style:Ge(e.sliderStyle),class:ue([`${e.prefixCls}-item`,`${e.prefixCls}-item-active`])},null,6)):(z(!0),Q(Bt,{key:1},vn(Array(e.count),(s,l)=>(z(),Q("span",{key:l,"data-index":l,class:ue([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l===e.activeIndex}])},null,10,fMe))),128))],16)}var pMe=Ve(dMe,[["render",hMe]]);const vMe=Se({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=Ae("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)}}}}),mMe=["stroke-width","stroke-linecap","stroke-linejoin"];function gMe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M39.6 30.557 24.043 15 8.487 30.557"},null,-1)]),14,mMe)}var nR=Ve(vMe,[["render",gMe]]);const J_=Object.assign(nR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nR.name,nR)}}),yMe=Se({name:"Arrow",components:{IconUp:J_,IconDown:Zh,IconLeft:Al,IconRight:Hi},props:{direction:{type:String,default:"horizontal"},showArrow:{type:String,default:"always"}},emits:["previousClick","nextClick"],setup(e,{emit:t}){const n=Ae("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 bMe(e,t,n,r,o,a){const s=Ie("IconLeft"),l=Ie("IconUp"),c=Ie("IconRight"),d=Ie("IconDown");return z(),Q("div",{class:ue(e.cls)},[I("div",{class:ue(`${e.prefixCls}-arrow-${e.direction==="vertical"?"top":"left"}`),onClick:t[0]||(t[0]=(...h)=>e.onPreviousClick&&e.onPreviousClick(...h))},[e.direction==="horizontal"?(z(),qe(s,{key:0})):(z(),qe(l,{key:1}))],2),I("div",{class:ue(`${e.prefixCls}-arrow-${e.direction==="vertical"?"bottom":"right"}`),onClick:t[1]||(t[1]=(...h)=>e.onNextClick&&e.onNextClick(...h))},[e.direction==="horizontal"?(z(),qe(c,{key:0})):(z(),qe(d,{key:1}))],2)],2)}var _Me=Ve(yMe,[["render",bMe]]);const wpe=Symbol("ArcoCarousel"),Q_=e=>{const t={},n=fe([]),r=()=>{if(t.value){const o=Ghe(t.value,e);(o.length!==n.value.length||o.toString()!==n.value.toString())&&(n.value=o)}};return bn(()=>r()),Qa(()=>r()),{children:t,components:n}},cre={interval:3e3,hoverToPause:!0};function rR(e,t){const n=+e;return typeof n=="number"&&!Number.isNaN(n)?(n+t)%t:e}var iR=Se({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=Ae("carousel"),c=fe(!1),d=fe(),h=fe(),p=F(()=>br(e.autoPlay)?{...cre,...e.autoPlay}:e.autoPlay?cre:{});let v=0,g=0;const{children:y,components:S}=Q_("CarouselItem"),k=fe(e.defaultCurrent-1),C=F(()=>{const H=S.value.length,K=Ze(r.value)?rR(r.value-1,H):k.value,Y=rR(K-1,H),ne=rR(K+1,H);return{mergedIndex:K,mergedPrevIndex:Y,mergedNextIndex:ne}}),x=Xt({items:S,slideTo:_,mergedIndexes:C,previousIndex:d,animationName:o,slideDirection:h,transitionTimingFunction:s,moveSpeed:a});ri(wpe,x);const E=()=>{v&&window.clearInterval(v)};Os(()=>{var H;const{interval:K}=p.value||{},{mergedNextIndex:Y}=C.value,ne=((H=S.value)==null?void 0:H.length)>1&&!c.value&&!!K;E(),ne&&(v=window.setInterval(()=>{_({targetIndex:Y})},K))}),Io(()=>{E()});function _({targetIndex:H,isNegative:K=!1,isManual:Y=!1}){!g&&H!==C.value.mergedIndex&&(d.value=k.value,k.value=H,h.value=K?"negative":"positive",g=window.setTimeout(()=>{g=0},a.value),t("update:current",k.value+1),t("change",k.value+1,d.value+1,Y))}const T=()=>_({targetIndex:C.value.mergedPrevIndex,isNegative:!0,isManual:!0}),D=()=>_({targetIndex:C.value.mergedNextIndex,isManual:!0}),P=H=>_({targetIndex:H,isNegative:Hp.value.hoverToPause?{onMouseenter:()=>{c.value=!0},onMouseleave:()=>{c.value=!1}}:{}),O=F(()=>e.indicatorType!=="never"&&S.value.length>1),L=F(()=>e.showArrow!=="never"&&S.value.length>1),B=F(()=>[l,`${l}-indicator-position-${e.indicatorPosition}`]),j=F(()=>[`${l}-${e.animationName}`,`${l}-${e.direction}`,{[`${l}-negative`]:h.value==="negative"}]),W=F(()=>[`${l}-indicator-wrapper`,`${l}-indicator-wrapper-${e.indicatorPosition}`]);return()=>{var H;return y.value=(H=n.default)==null?void 0:H.call(n),$("div",Vt({class:B.value},M.value),[$("div",{class:j.value},[y.value]),O.value&&$("div",{class:W.value},[$(pMe,{class:e.indicatorClass,type:e.indicatorType,count:S.value.length,activeIndex:C.value.mergedIndex,position:e.indicatorPosition,trigger:e.trigger,onSelect:P},null)]),L.value&&$(_Me,{class:e.arrowClass,direction:e.direction,showArrow:e.showArrow,onPreviousClick:T,onNextClick:D},null)])}}});const SMe=Se({name:"CarouselItem",setup(){const e=Ae("carousel-item"),t=_o(),n=On(wpe,{}),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}}}),kMe=["aria-hidden"];function xMe(e,t,n,r,o,a){return z(),Q("div",{"aria-hidden":!e.isCurrent,class:ue(e.cls),style:Ge(e.animationStyle)},[vt(e.$slots,"default")],14,kMe)}var bw=Ve(SMe,[["render",xMe]]);const CMe=Object.assign(iR,{Item:bw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+iR.name,iR),e.component(n+bw.name,bw)}}),Epe=(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 v=(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(br(D)?D[d.value]:D),parent:S,path:[],pathValue:[]},M=x.concat(P),O=[],L=M.map(B=>(O.push(B.value),B.valueKey)).join("-");return P.path=M,P.pathValue=O,P.key=L,E[h.children]?(P.isLeaf=!1,P.children=v(E[h.children],P,(k??1)+1)):l&&!P.isLeaf?(P.isLeaf=!1,c[L]&&(P.children=v(c[L],P,(k??1)+1))):P.isLeaf=!0,P.children&&!P.disabled&&(P.totalLeafOptions=P.children.reduce((B,j)=>Ze(j.totalLeafOptions)?B+j.totalLeafOptions:j.disabled||j.selectionDisabled?B:B+(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=v(e);return a.value=p,g},mH=(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}},gH=e=>{const t=[];if(e.isLeaf)t.push(e.key);else if(e.children)for(const n of e.children)t.push(...gH(n));return t},yH=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(...yH(n));return t},Tpe=(e,{valueKey:t,leafOptionValueMap:n})=>{var r;if(sr(e))return e.map(a=>br(a)?a[t]:a).join("-");const o=br(e)?e[t]:e;return(r=n.get(String(o)))!=null?r:String(o)},Ape=(e,{multiple:t,pathMode:n})=>sr(e)?n&&!t&&e.length>0&&!sr(e[0])?[e]:e:An(e)||Tl(e)||e===""?[]:[e],Ipe=e=>e.path.map(t=>t.label).join(" / "),bH=Symbol("ArcoCascader");var Xj=Se({name:"CascaderOption",props:{option:{type:Object,required:!0},active:Boolean,multiple:Boolean,checkStrictly:Boolean,searchOption:Boolean,pathLabel:Boolean},setup(e){const t=Ae("cascader-option"),n=On(bH,{}),r=fe(!1),o={},a=h=>{var p;if(En(n.loadMore)&&!e.option.isLeaf){const{isLeaf:v,children:g,key:y}=e.option;!v&&!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}:mH(e.option,n.valueMap)}),c=()=>{var h,p,v;return e.pathLabel?(p=(h=n?.formatLabel)==null?void 0:h.call(n,e.option.path.map(g=>g.raw)))!=null?p:Ipe(e.option):(v=n.slots)!=null&&v.option?n.slots.option({data:e.option}):En(e.option.render)?e.option.render():e.option.label},d=()=>r.value?$(Xa,null,null):!e.searchOption&&!e.option.isLeaf?$(Hi,null,null):null;return()=>{var h;return $("li",Vt({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&&$(Uc,{modelValue:l.value.checked,indeterminate:l.value.indeterminate,disabled:e.option.disabled||e.option.selectionDisabled,uninjectGroupContext:!0,onChange:(p,v)=>{var g;v.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!l.value.checked)},onClick:p=>p.stopPropagation()},null),e.checkStrictly&&!e.multiple&&$(Pm,{modelValue:(h=n.valueMap)==null?void 0:h.has(e.option.key),disabled:e.option.disabled,uninjectGroupContext:!0,onChange:(p,v)=>{var g;v.stopPropagation(),a(),(g=n.onClickOption)==null||g.call(n,e.option,!0)},onClick:p=>p.stopPropagation()},null),$("div",{class:`${t}-label`},[c(),d()])])}}}),wMe=Se({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=Ae("cascader"),r=On(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:$(Xh,null,null)};return()=>{var l;return $("div",{class:`${n}-panel-column`,style:{zIndex:e.totalLevel-e.level}},[e.column.length===0?$(Rd,{class:`${n}-column-content`},{default:()=>[$("div",{class:`${n}-list-empty`},[s()])]}):a.value?$(a3,Vt({key:(l=e.column)==null?void 0:l.length},e.virtualListProps,{ref:o,data:e.column}),{item:({item:c})=>$(Xj,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null)}):$(Rd,{class:`${n}-column-content`},{default:()=>[$("ul",{role:"menu",class:[`${n}-list`,{[`${n}-list-multiple`]:!!e?.multiple,[`${n}-list-strictly`]:!!e?.checkStrictly}]},[e.column.map(c=>$(Xj,{key:c.key,option:c,active:e.selectedPath.includes(c.key)||c.key===e.activeKey,multiple:e.multiple,checkStrictly:e.checkStrictly},null))])]})])}}});function EMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var Lpe=Se({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=Ae("cascader"),r=On(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:$(Xh,null,null)},a=()=>e.loading?$("div",{key:"panel-column-loading",class:[`${n}-panel-column`,`${n}-panel-column-loading`]},[$(Pd,null,null)]):e.displayColumns.length===0?$("div",{key:"panel-column-empty",class:`${n}-panel-column`},[$("div",{class:`${n}-list-empty`},[o()])]):e.displayColumns.map((s,l)=>$(wMe,{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 $(r3,{tag:"div",name:"cascader-slide",class:[`${n}-panel`,{[`${n}-dropdown-panel`]:e.dropdown}]},EMe(s=a())?s:{default:()=>[s]})}}});function TMe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var AMe=Se({name:"CascaderSearchPanel",props:{options:{type:Array,required:!0},loading:Boolean,activeKey:String,multiple:Boolean,checkStrictly:Boolean,pathLabel:Boolean},setup(e,{slots:t}){const n=Ae("cascader"),r=On(Ya,void 0),o=()=>{var a,s,l,c,d;return e.loading?$(Pd,null,null):e.options.length===0?$("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:$(Xh,null,null)]):$("ul",{role:"menu",class:[`${n}-list`,`${n}-search-list`,{[`${n}-list-multiple`]:e.multiple}]},[e.options.map(h=>$(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 $(Rd,{class:[`${n}-panel`,`${n}-search-panel`]},TMe(a=o())?a:{default:()=>[a]})}}});const Dpe=(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=v(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)}),v=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]}}},IMe=Se({name:"Cascader",components:{Trigger:ha,SelectView:j8,BaseCascaderPanel:Lpe,CascaderSearchPanel:AMe},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:v,multiple:g}=nn(e),y=fe(e.defaultValue),S=fe(e.defaultInputValue),k=fe(e.defaultPopupVisible),{mergedDisabled:C,eventHandlers:x}=Do({disabled:c});Rt(l,ft=>{(An(ft)||Tl(ft))&&(y.value=e.multiple?[]:void 0)});const E=fe([]),_=fe(1),T=Xt(new Map),D=Xt(new Map),P=Xt(new Map),M=Xt(new Set),O=Xt({}),L=(ft,lt)=>{O[lt]=ft},B={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},j=F(()=>({...B,...e.fieldNames}));Rt([r,O,j],([ft,lt,Et])=>{T.clear(),D.clear(),P.clear(),M.clear(),E.value=Epe(ft??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:O,optionMap:T,leafOptionSet:M,leafOptionMap:D,leafOptionValueMap:P,totalLevel:_,checkStrictly:o,valueKey:d,fieldNames:Et})},{immediate:!0,deep:!0});const W=F(()=>{var ft;const lt=Ape((ft=e.modelValue)!=null?ft:y.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(lt.map(Et=>[Tpe(Et,{valueKey:e.valueKey,leafOptionValueMap:P}),Et]))}),H=F(()=>{var ft;return(ft=e.inputValue)!=null?ft:S.value}),K=F(()=>{var ft;return(ft=e.popupVisible)!=null?ft:k.value}),Y=ft=>{var lt;return ft?.toLocaleLowerCase().includes((lt=H.value)==null?void 0:lt.toLocaleLowerCase())},ne=F(()=>(e.checkStrictly?Array.from(T.values()):Array.from(M)).filter(lt=>{var Et;return En(e.filterOption)?e.filterOption(H.value,lt.raw):e.checkStrictly?Y(lt.label):(Et=lt.path)==null?void 0:Et.find(St=>Y(St.label))})),X=ft=>{var lt,Et,St;const Wt=e.multiple?ft:(lt=ft[0])!=null?lt:"";ft.length===0&&(Me(),be()),y.value=Wt,t("update:modelValue",Wt),t("change",Wt),(St=(Et=x.value)==null?void 0:Et.onChange)==null||St.call(Et)};Rt([g,v],()=>{const ft=[];W.value.forEach((lt,Et)=>{const St=D.get(Et);St&&ft.push(v.value?St.pathValue:St.value)}),X(ft)});const U=ft=>{K.value!==ft&&(k.value=ft,t("popupVisibleChange",ft))},q=ft=>{if(e.multiple){const lt=D.get(ft);if(lt)re(lt,!1);else{const Et=[];W.value.forEach((St,Wt)=>{Wt!==ft&&Et.push(St)}),X(Et)}}},ee=ft=>{X([e.pathMode?ft.pathValue:ft.value]),U(!1)},re=(ft,lt)=>{if(lt){const Et=e.checkStrictly?[ft]:yH(ft);X([...W.value.values(),...Et.filter(St=>!W.value.has(St.key)).map(St=>e.pathMode?St.pathValue:St.value)])}else{const Et=e.checkStrictly?[ft.key]:gH(ft),St=[];W.value.forEach((Wt,Tt)=>{Et.includes(Tt)||St.push(Wt)}),X(St)}ke("","optionChecked")},ae=(ft,lt)=>{e.multiple?re(ft,lt??!0):ee(ft)},ie=r_(ft=>{t("search",ft)},e.searchDelay),ke=(ft,lt)=>{ft!==H.value&&(lt==="manual"&&!K.value&&(k.value=!0,t("popupVisibleChange",!0)),S.value=ft,t("inputValueChange",ft),e.allowSearch&&ie(ft))};Rt(K,ft=>{if(ft){if(W.value.size>0){const lt=Array.from(W.value.keys()),Et=lt[lt.length-1],St=D.get(Et);St&&St.key!==Qe.value&&(Me(St.key),be(St.key))}}else W.value.size===0&&(Me(),be()),ke("","optionListHide")});const Fe=ft=>{if(ft.stopPropagation(),e.multiple){const lt=[];W.value.forEach((Et,St)=>{const Wt=D.get(St);Wt?.disabled&<.push(e.pathMode?Wt.pathValue:Wt.value)}),X(lt)}else X([]);ke("","manual"),t("clear")},ge=F(()=>e.allowSearch&&H.value.length>0),_e=ft=>{t("focus",ft)},ze=ft=>{t("blur",ft)},{activeKey:Qe,activeOption:Je,selectedPath:Te,displayColumns:ve,setActiveKey:be,setSelectedPath:Me,getNextActiveNode:He}=Dpe(E,{optionMap:T,filteredLeafOptions:ne,showSearchPanel:ge,expandChild:p});ri(bH,Xt({onClickOption:ae,setActiveKey:be,setSelectedPath:Me,loadMore:a,expandTrigger:h,addLazyLoadOptions:L,formatLabel:s,slots:n,valueMap:W}));const Xe=M5(new Map([[Ho.ENTER,ft=>{if(K.value){if(Je.value){let lt;e.checkStrictly||Je.value.isLeaf?lt=!W.value.has(Je.value.key):lt=!mH(Je.value,W.value).checked,Me(Je.value.key),ae(Je.value,lt)}}else U(!0)}],[Ho.ESC,ft=>{U(!1)}],[Ho.ARROW_DOWN,ft=>{ft.preventDefault();const lt=He("next");be(lt?.key)}],[Ho.ARROW_UP,ft=>{ft.preventDefault();const lt=He("preview");be(lt?.key)}],[Ho.ARROW_RIGHT,ft=>{var lt,Et;ge.value||(ft.preventDefault(),(lt=Je.value)!=null&<.children&&(Me(Je.value.key),be((Et=Je.value.children[0])==null?void 0:Et.key)))}],[Ho.ARROW_LEFT,ft=>{var lt;ge.value||(ft.preventDefault(),(lt=Je.value)!=null&<.parent&&(Me(Je.value.parent.key),be(Je.value.parent.key)))}]])),rt=F(()=>{const ft=[];return W.value.forEach((lt,Et)=>{var St,Wt;const Tt=D.get(Et);if(Tt)ft.push({value:Et,label:(Wt=(St=e.formatLabel)==null?void 0:St.call(e,Tt.path.map(Mt=>Mt.raw)))!=null?Wt:Ipe(Tt),closable:!Tt.disabled,tagProps:Tt.tagProps});else if(e.fallback){const Mt=En(e.fallback)?e.fallback(lt):sr(lt)?lt.join(" / "):String(lt);ft.push({value:Et,label:Mt,closable:!0})}}),ft});return{optionInfos:E,filteredLeafOptions:ne,selectedPath:Te,activeKey:Qe,displayColumns:ve,computedInputValue:H,computedPopupVisible:K,handleClear:Fe,selectViewValue:rt,handleInputValueChange:ke,showSearchPanel:ge,handlePopupVisibleChange:U,handleFocus:_e,handleBlur:ze,handleRemove:q,mergedDisabled:C,handleKeyDown:Xe,totalLevel:_}}});function LMe(e,t,n,r,o,a){const s=Ie("select-view"),l=Ie("cascader-search-panel"),c=Ie("base-cascader-panel"),d=Ie("trigger");return z(),qe(d,Vt(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?(z(),qe(l,{key:0,options:e.filteredLeafOptions,"active-key":e.activeKey,multiple:e.multiple,"check-strictly":e.checkStrictly,loading:e.loading,"path-label":!e.searchOptionOnlyLabel},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[vt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["options","active-key","multiple","check-strictly","loading","path-label"])):(z(),qe(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:""},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[vt(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(()=>[$(s,Vt({"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}),yo({_:2},[e.$slots.label?{name:"label",fn:de(h=>[vt(e.$slots,"label",Yi(Sa(h)))]),key:"0"}:void 0,e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(e.$slots,"prefix")]),key:"1"}:void 0,e.$slots["arrow-icon"]?{name:"arrow-icon",fn:de(()=>[vt(e.$slots,"arrow-icon")]),key:"2"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[vt(e.$slots,"loading-icon")]),key:"3"}:void 0,e.$slots["search-icon"]?{name:"search-icon",fn:de(()=>[vt(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 oR=Ve(IMe,[["render",LMe]]);const DMe=Se({name:"CascaderPanel",components:{BaseCascaderPanel:Lpe},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);Rt(s,U=>{(An(U)||Tl(U))&&(h.value=e.multiple?[]:void 0)});const p=fe([]),v=fe(1),g=Xt(new Map),y=Xt(new Map),S=Xt(new Map),k=Xt(new Set),C=Xt({}),x=(U,q)=>{C[q]=U},E={value:"value",label:"label",disabled:"disabled",children:"children",tagProps:"tagProps",render:"render",isLeaf:"isLeaf"},_=F(()=>({...E,...e.fieldNames}));Rt([r,C,_],([U,q,ee])=>{g.clear(),y.clear(),S.clear(),k.clear(),p.value=Epe(U??[],{enabledLazyLoad:!!e.loadMore,lazyLoadOptions:q,optionMap:g,leafOptionSet:k,leafOptionMap:y,leafOptionValueMap:S,totalLevel:v,checkStrictly:o,fieldNames:ee,valueKey:l})},{immediate:!0});const T=F(()=>{var U;const q=Ape((U=e.modelValue)!=null?U:h.value,{multiple:e.multiple,pathMode:e.pathMode});return new Map(q.map(ee=>[Tpe(ee,{valueKey:e.valueKey,leafOptionValueMap:S}),ee]))}),D=F(()=>e.checkStrictly?Array.from(g.values()):Array.from(k)),P=U=>{var q;const ee=e.multiple?U:(q=U[0])!=null?q:"";U.length===0&&(Y(),K()),h.value=ee,t("update:modelValue",ee),t("change",ee)},M=U=>{P([e.pathMode?U.pathValue:U.value])},O=(U,q)=>{if(q){const ee=e.checkStrictly?[U]:yH(U);P([...T.value.values(),...ee.filter(re=>!T.value.has(re.key)).map(re=>e.pathMode?re.pathValue:re.value)])}else{const ee=e.checkStrictly?[U.key]:gH(U),re=[];T.value.forEach((ae,ie)=>{ee.includes(ie)||re.push(ae)}),P(re)}},L=(U,q)=>{e.multiple?O(U,q??!0):M(U)},{activeKey:B,activeOption:j,selectedPath:W,displayColumns:H,setActiveKey:K,setSelectedPath:Y,getNextActiveNode:ne}=Dpe(p,{optionMap:g,filteredLeafOptions:D,expandChild:c});ri(bH,Xt({onClickOption:L,setActiveKey:K,setSelectedPath:Y,loadMore:a,addLazyLoadOptions:x,slots:n,valueMap:T,expandTrigger:d}));const X=M5(new Map([[Ho.ENTER,U=>{if(j.value){let q;e.checkStrictly||j.value.isLeaf?q=!T.value.has(j.value.key):q=!mH(j.value,T.value).checked,Y(j.value.key),L(j.value,q)}}],[Ho.ARROW_DOWN,U=>{U.preventDefault();const q=ne("next");K(q?.key)}],[Ho.ARROW_UP,U=>{U.preventDefault();const q=ne("preview");K(q?.key)}],[Ho.ARROW_RIGHT,U=>{var q,ee;U.preventDefault(),(q=j.value)!=null&&q.children&&(Y(j.value.key),K((ee=j.value.children[0])==null?void 0:ee.key))}],[Ho.ARROW_LEFT,U=>{var q;U.preventDefault(),(q=j.value)!=null&&q.parent&&(Y(j.value.parent.key),K(j.value.parent.key))}]]));return{optionInfos:p,filteredLeafOptions:D,selectedPath:W,activeKey:B,displayColumns:H,handleKeyDown:X,totalLevel:v}}});function PMe(e,t,n,r,o,a){const s=Ie("base-cascader-panel");return z(),qe(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},yo({_:2},[e.$slots.empty?{name:"empty",fn:de(()=>[vt(e.$slots,"empty")]),key:"0"}:void 0]),1032,["display-columns","selected-path","active-key","multiple","total-level","check-strictly","onKeydown"])}var _w=Ve(DMe,[["render",PMe]]);const RMe=Object.assign(oR,{CascaderPanel:_w,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+oR.name,oR),e.component(n+_w.name,_w)}}),Ppe=Symbol("collapseCtx"),MMe=Se({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=Ae("collapse"),l=fe(e.defaultActiveKey),c=F(()=>{var p;const v=(p=e.activeKey)!=null?p:l.value;return sr(v)?v:[v]});ri(Ppe,Xt({activeKeys:c,slots:n,showExpandIcon:a,expandIconPosition:r,destroyOnHide:o,handleClick:(p,v)=>{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,v)}}));const h=F(()=>[s,{[`${s}-borderless`]:!e.bordered}]);return{prefixCls:s,cls:h}}});function OMe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls)},[vt(e.$slots,"default")],2)}var sR=Ve(MMe,[["render",OMe]]);const $Me=Se({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=Ae("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)}}}}),BMe=["stroke-width","stroke-linecap","stroke-linejoin"];function NMe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,BMe)}var aR=Ve($Me,[["render",NMe]]);const _H=Object.assign(aR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aR.name,aR)}}),FMe=Se({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=Ae("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)}}}}),jMe=["stroke-width","stroke-linecap","stroke-linejoin"];function VMe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,jMe)}var lR=Ve(FMe,[["render",VMe]]);const SH=Object.assign(lR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lR.name,lR)}});var Sw=Se({name:"CollapseItem",components:{IconHover:Lo,IconCaretRight:_H,IconCaretLeft:SH},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=_o(),o=Ae("collapse-item"),a=On(Ppe,{}),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"}),v=_=>{var T;e.disabled||(T=a.handleClick)==null||T.call(a,s,_)};Rt(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"?$(Ie("icon-caret-left"),{class:`${o}-expand-icon`},null):$(Ie("icon-caret-right"),{class:`${o}-expand-icon`},null),E=()=>d.value&&$(Ie("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 $("div",{class:y.value},[$("div",{role:"button","aria-disabled":e.disabled,"aria-expanded":l.value,tabindex:"0",class:S.value,onClick:v},[E(),$("div",{class:`${o}-header-title`},[(T=(_=t.header)==null?void 0:_.call(t))!=null?T:e.header]),t.extra&&$("div",{class:`${o}-header-extra`},[(D=t.extra)==null?void 0:D.call(t)])]),$(Cs,Vt({name:"collapse-slider"},g),{default:()=>{var P;return[Ai($("div",{role:"region",class:C.value},[h.value&&$("div",{ref:"contentBoxRef",class:`${o}-content-box`},[(P=t.default)==null?void 0:P.call(t)])]),[[Qo,l.value]])]}})])}}});const zMe=Object.assign(sR,{Item:Sw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+sR.name,sR),e.component(n+Sw.name,Sw)}}),UMe=["#00B42A","#3C7EFF","#FF7D00","#F76965","#F7BA1E","#F5319D","#D91AD9","#9FDB1D","#FADC19","#722ED1","#3491FA","#7BE188","#93BEFF","#FFCF8B","#FBB0A7","#FCE996","#FB9DC7","#F08EE6","#DCF190","#FDFA94","#C396ED","#9FD4FD"],Rpe=(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)}},B5=(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),dre=e=>sa(e)/255,qMe=e=>{let t=Xp.rgb.exec(e);return t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10)}:(t=Xp.rgba.exec(e),t?{r:parseInt(t[1],10),g:parseInt(t[2],10),b:parseInt(t[3],10),a:parseFloat(t[4])}:(t=Xp.hex8.exec(e),t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3]),a:dre(t[4])}:(t=Xp.hex6.exec(e),t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3])}:(t=Xp.hex4.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3]),a:dre(t[4]+t[4])}:(t=Xp.hex3.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3])}:!1)))))},YMe=e=>{var t;const n=qMe(e);return n?{...B5(n.r,n.g,n.b),a:(t=n.a)!=null?t:1}:{h:0,s:1,v:1,a:1}},Mpe=e=>{if(e=e.trim().toLowerCase(),e.length===0)return!1;let t=Xp.hex6.exec(e);return t?{r:sa(t[1]),g:sa(t[2]),b:sa(t[3])}:(t=Xp.hex3.exec(e),t?{r:sa(t[1]+t[1]),g:sa(t[2]+t[2]),b:sa(t[3]+t[3])}:!1)},fre=(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(),XMe=(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(),Ope=({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:v}=h,g=r.value.getBoundingClientRect(),y=[a(p-g.x,g.width),a(v-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 hre=Se({name:"ControlBar",props:{x:{type:Number,required:!0},color:{type:Object,required:!0},colorString:String,type:String,onChange:Function},setup(e){const t=Ae("color-picker"),n=F(()=>e.color.rgb),{blockRef:r,handlerRef:o,onMouseDown:a}=Ope({value:[e.x,0],onChange:l=>{var c;return(c=e.onChange)==null?void 0:c.call(e,l[0])}}),s=()=>$("div",{ref:o,class:`${t}-handler`,style:{left:`${e.x*100}%`,color:e.colorString}},null);return()=>e.type==="alpha"?$("div",{class:`${t}-control-bar-bg`},[$("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()])]):$("div",{ref:r,class:[`${t}-control-bar`,`${t}-control-bar-hue`],onMousedown:a},[s()])}}),ZMe=Se({name:"Palette",props:{color:{type:Object,required:!0},onChange:Function},setup(e){const t=Ae("color-picker"),n=F(()=>e.color.hsv),{blockRef:r,handlerRef:o,onMouseDown:a}=Ope({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=Rpe(n.value.h,1,1);return`rgb(${l.r}, ${l.g}, ${l.b})`});return()=>$("div",{ref:r,class:`${t}-palette`,style:{backgroundColor:s.value},onMousedown:a},[$("div",{ref:o,class:`${t}-handler`,style:{top:`${(1-n.value.v)*100}%`,left:`${n.value.s*100}%`}},null)])}});function kH(e,t){return t===void 0&&(t=15),+parseFloat(Number(e).toPrecision(t))}function Cf(e){var t=e.toString().split(/[eE]/),n=(t[0].split(".")[1]||"").length-+(t[1]||0);return n>0?n:0}function o_(e){if(e.toString().indexOf("e")===-1)return Number(e.toString().replace(".",""));var t=Cf(e);return t>0?kH(Number(e)*Math.pow(10,t)):Number(e)}function Zj(e){Bpe&&(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=Ae("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)}}}}),r9e=["stroke-width","stroke-linecap","stroke-linejoin"];function i9e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 24h38M24 5v38"},null,-1)]),14,r9e)}var uR=Ve(n9e,[["render",i9e]]);const wf=Object.assign(uR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uR.name,uR)}}),o9e=Se({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=Ae("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)}}}}),s9e=["stroke-width","stroke-linecap","stroke-linejoin"];function a9e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 24h38"},null,-1)]),14,s9e)}var cR=Ve(o9e,[["render",a9e]]);const Rm=Object.assign(cR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cR.name,cR)}}),l9e=800,u9e=150;Xl.enableBoundaryChecking(!1);var dR=Se({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=Ae("input-number"),l=fe(),{mergedSize:c,mergedDisabled:d,eventHandlers:h}=Do({size:o,disabled:a}),{mergedSize:p}=wa(c),v=F(()=>{if(Ze(e.precision)){const ee=`${e.step}`.split(".")[1],re=ee&&ee.length||0;return Math.max(re,e.precision)}}),g=ee=>{var re,ae;if(!Ze(ee))return"";const ie=v.value?ee.toFixed(v.value):String(ee);return(ae=(re=e.formatter)==null?void 0:re.call(e,ie))!=null?ae:ie},y=fe(g((r=e.modelValue)!=null?r:e.defaultValue)),S=F(()=>{var ee,re;if(!y.value)return;const ae=Number((re=(ee=e.parser)==null?void 0:ee.call(e,y.value))!=null?re: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)},_=ee=>{if(!An(ee))return Ze(e.min)&&eee.max&&(ee=e.max),Ze(v.value)?Xl.round(ee,v.value):ee},T=ee=>{let re=!1,ae=!1;Ze(ee)&&(ee<=e.min&&(re=!0),ee>=e.max&&(ae=!0)),C.value!==ae&&(C.value=ae),k.value!==re&&(k.value=re)},D=()=>{const ee=_(S.value),re=g(ee);(ee!==S.value||y.value!==re)&&(y.value=re),t("update:modelValue",ee)};Rt(()=>[e.max,e.min],()=>{D(),T(S.value)});const P=(ee,re)=>{if(d.value||ee==="plus"&&C.value||ee==="minus"&&k.value)return;let ae;Ze(S.value)?ae=_(Xl[ee](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,re)},M=(ee,re,ae=!1)=>{var ie;ee.preventDefault(),!e.readOnly&&((ie=l.value)==null||ie.focus(),P(re,ee),ae&&(x=window.setTimeout(()=>ee.target.dispatchEvent(ee),x?u9e:l9e)))},O=(ee,re)=>{var ae,ie,ke,Fe;ee=ee.trim().replace(/。/g,"."),ee=(ie=(ae=e.parser)==null?void 0:ae.call(e,ee))!=null?ie:ee,(Ze(Number(ee))||/^(\.|-)$/.test(ee))&&(y.value=(Fe=(ke=e.formatter)==null?void 0:ke.call(e,ee))!=null?Fe:ee,T(S.value),t("input",S.value,y.value,re),e.modelEvent==="input"&&(t("update:modelValue",S.value),t("change",S.value,re)))},L=ee=>{t("focus",ee)},B=(ee,re)=>{re instanceof MouseEvent&&!ee||(D(),t("change",S.value,re))},j=ee=>{t("blur",ee)},W=ee=>{var re,ae;y.value="",t("update:modelValue",void 0),t("change",void 0,ee),(ae=(re=h.value)==null?void 0:re.onChange)==null||ae.call(re,ee),t("clear",ee)},H=M5(new Map([[Ho.ARROW_UP,ee=>{ee.preventDefault(),!e.readOnly&&P("plus",ee)}],[Ho.ARROW_DOWN,ee=>{ee.preventDefault(),!e.readOnly&&P("minus",ee)}]])),K=ee=>{t("keydown",ee),ee.defaultPrevented||H(ee)};Rt(()=>e.modelValue,ee=>{ee!==S.value&&(y.value=g(ee),T(ee))});const Y=()=>{var ee,re,ae;return e.readOnly?null:$(Bt,null,[n.suffix&&$("div",{class:`${s}-suffix`},[(ee=n.suffix)==null?void 0:ee.call(n)]),$("div",{class:`${s}-step`},[$("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||C.value}],type:"button",tabindex:"-1",disabled:d.value||C.value,onMousedown:ie=>M(ie,"plus",!0),onMouseup:E,onMouseleave:E},[n.plus?(re=n.plus)==null?void 0:re.call(n):$(J_,null,null)]),$("button",{class:[`${s}-step-button`,{[`${s}-step-button-disabled`]:d.value||k.value}],type:"button",tabindex:"-1",disabled:d.value||k.value,onMousedown:ie=>M(ie,"minus",!0),onMouseup:E,onMouseleave:E},[n.minus?(ae=n.minus)==null?void 0:ae.call(n):$(Zh,null,null)])])])},ne=F(()=>[s,`${s}-mode-${e.mode}`,`${s}-size-${p.value}`,{[`${s}-readonly`]:e.readOnly}]),X=()=>$(Xo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||k.value,onMousedown:ee=>M(ee,"minus",!0),onMouseup:E,onMouseleave:E},{icon:()=>$(Rm,null,null)}),U=()=>$(Xo,{size:p.value,tabindex:"-1",class:`${s}-step-button`,disabled:d.value||C.value,onMousedown:ee=>M(ee,"plus",!0),onMouseup:E,onMouseleave:E},{icon:()=>$(wf,null,null)});return{inputRef:l,render:()=>{const ee=e.mode==="embed"?{prepend:n.prepend,prefix:n.prefix,suffix:e.hideButton?n.suffix:Y,append:n.append}:{prepend:e.hideButton?n.prepend:X,prefix:n.prefix,suffix:n.suffix,append:e.hideButton?n.append:U};return $(N0,{key:`__arco__${e.mode}`,ref:l,class:ne.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:O,onFocus:L,onBlur:j,onClear:W,onChange:B,onKeydown:K},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 eS=Object.assign(dR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+dR.name,dR)}});var Npe=Se({name:"InputAlpha",props:{value:{type:Number,required:!0},disabled:Boolean,onChange:Function},setup(e){const t=Ae("color-picker");return()=>$(eS,{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:()=>"%"})}}),c9e=Se({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=Ae("color-picker"),{color:n}=nn(e),r=o=>{var a;const s={...n.value.rgb,...o},l=B5(s.r,s.g,s.b);(a=e.onHsvChange)==null||a.call(e,l)};return()=>$(oy,{class:`${t}-input-group`},{default:()=>[["r","g","b"].map(o=>$(eS,{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&&$(Npe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),d9e=Se({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=Ae("color-picker"),{color:n}=nn(e),[r,o]=Ga(n.value.hex),a=c=>{var d;const h=Mpe(c)||{r:255,g:0,b:0},p=B5(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 Rt(n,()=>{n.value.hex!==r.value&&o(n.value.hex)}),()=>$(oy,{class:`${t}-input-group`},{default:()=>[$(N0,{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&&$(Npe,{disabled:e.disabled,value:e.alpha,onChange:e.onAlphaChange},null)]})}}),f9e=Se({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}=No(),n=Ae("color-picker"),r=F(()=>e.color.hsv),[o,a]=Ga(e.format||"hex"),s=v=>{a(v)};fe(!1);const l=v=>{var g;const y=Mpe(v)||{r:255,g:0,b:0},S=B5(y.r,y.g,y.b);(g=e.onHsvChange)==null||g.call(e,S)},c=()=>{const v={color:e.color,alpha:e.alpha,disabled:e.disabled,disabledAlpha:e.disabledAlpha,onHsvChange:e.onHsvChange,onAlphaChange:e.onAlphaChange};return o.value==="rgb"?$(c9e,v,null):$(d9e,v,null)},d=v=>$("div",{key:v,class:`${n}-color-block`,style:{backgroundColor:v},onClick:()=>l(v)},[$("div",{class:`${n}-block`,style:{backgroundColor:v}},null)]),h=(v,g)=>$("div",{class:`${n}-colors-section`},[$("div",{class:`${n}-colors-text`},[v]),$("div",{class:`${n}-colors-wrapper`},[g?.length?$("div",{class:`${n}-colors-list`},[g.map(d)]):$("span",{class:`${n}-colors-empty`},[t("colorPicker.empty")])])]),p=()=>e.showHistory||e.showPreset?$("div",{class:`${n}-panel-colors`},[e.showHistory&&h(t("colorPicker.history"),e.historyColors),e.showPreset&&h(t("colorPicker.preset"),e.presetColors)]):null;return()=>$("div",{class:{[`${n}-panel`]:!0,[`${n}-panel-disabled`]:e.disabled}},[$(ZMe,{color:e.color,onChange:(v,g)=>{var y;return(y=e.onHsvChange)==null?void 0:y.call(e,{h:r.value.h,s:v,v:g})}},null),$("div",{class:`${n}-panel-control`},[$("div",{class:`${n}-control-wrapper`},[$("div",null,[$(hre,{type:"hue",x:r.value.h,color:e.color,colorString:e.colorString,onChange:v=>{var g;return(g=e.onHsvChange)==null?void 0:g.call(e,{h:v,s:r.value.s,v:r.value.v})}},null),!e.disabledAlpha&&$(hre,{type:"alpha",x:e.alpha,color:e.color,colorString:e.colorString,onChange:e.onAlphaChange},null)]),$("div",{class:`${n}-preview`,style:{backgroundColor:e.colorString}},null)]),$("div",{class:`${n}-input-wrapper`},[$(i_,{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),$("div",{class:`${n}-group-wrapper`},[c()])])]),p()])}}),fR=Se({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:()=>UMe}},emits:{"update:modelValue":e=>!0,change:e=>!0,"popup-visible-change":(e,t)=>!0},setup(e,{emit:t,slots:n}){const r=Ae("color-picker"),o=F(()=>{var x;return(x=e.modelValue)!=null?x:e.defaultValue}),a=F(()=>YMe(o.value||"")),[s,l]=Ga(a.value.a),[c,d]=Ga({h:a.value.h,s:a.value.s,v:a.value.v});Rt(()=>a.value,x=>{o.value!==v.value&&(l(x.a),d({h:x.h,s:x.s,v:x.v}))});const h=F(()=>{const x=Rpe(c.value.h,c.value.s,c.value.v),E=fre(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)})`}),v=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?`#${XMe(x,E,_,s.value)}`:`#${fre(x,E,_)}`});Rt(v,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,v.value)},k=()=>$("div",{class:{[r]:!0,[`${r}-size-${e.size}`]:e.size,[`${r}-disabled`]:e.disabled}},[$("div",{class:`${r}-preview`,style:{backgroundColor:v.value}},null),e.showText&&$("div",{class:`${r}-value`},[v.value]),$("input",{class:`${r}-input`,value:v.value,disabled:e.disabled},null)]),C=()=>$(f9e,{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():$(ha,Vt({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 h9e=Object.assign(fR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+fR.name,fR)}});function Fpe(e,t,n){return F(()=>!!(e[n]||t[n]))}const p9e=Se({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=Ae("comment"),[r,o,a,s]=["author","avatar","content","datetime"].map(c=>Fpe(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}}}),v9e=["src"],m9e={key:0},g9e={key:0},y9e={key:0};function b9e(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[e.hasAvatar?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-avatar`)},[e.avatar?(z(),Q("img",{key:0,src:e.avatar,alt:"comment-avatar"},null,8,v9e)):vt(e.$slots,"avatar",{key:1})],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-inner`)},[I("div",{class:ue(`${e.prefixCls}-inner-content`)},[e.hasAuthor||e.hasDatetime?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title ${e.prefixCls}-title-align-${e.computedAlign.datetime}`)},[e.hasAuthor?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-author`)},[e.author?(z(),Q("span",m9e,je(e.author),1)):vt(e.$slots,"author",{key:1})],2)):Le("v-if",!0),e.hasDatetime?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-datetime`)},[e.datetime?(z(),Q("span",g9e,je(e.datetime),1)):vt(e.$slots,"datetime",{key:1})],2)):Le("v-if",!0)],2)):Le("v-if",!0),e.hasContent?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-content`)},[e.content?(z(),Q("span",y9e,je(e.content),1)):vt(e.$slots,"content",{key:1})],2)):Le("v-if",!0),e.$slots.actions?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-actions ${e.prefixCls}-actions-align-${e.computedAlign.actions}`)},[vt(e.$slots,"actions")],2)):Le("v-if",!0)],2),e.$slots.default?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-inner-comment`)},[vt(e.$slots,"default")],2)):Le("v-if",!0)],2)],2)}var hR=Ve(p9e,[["render",b9e]]);const _9e=Object.assign(hR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+hR.name,hR)}}),S9e=Se({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=Xt({slots:t,prefixCls:n,locale:r,size:o,updateAtScroll:a,scrollToClose:s,exchangeTime:l});if(e.global){const d=_o();d&&d.appContext.app.provide(Ya,c)}else ri(Ya,c)}});function k9e(e,t,n,r,o,a){return vt(e.$slots,"default")}var pR=Ve(S9e,[["render",k9e]]);const x9e=Object.assign(pR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+pR.name,pR)}});function C9e(e){const{modelValue:t,defaultValue:n,format:r}=nn(e),o=F(()=>dc(t.value,r.value)),a=F(()=>dc(n.value,r.value)),[s,l]=Ga(An(o.value)?An(a.value)?void 0:a.value:o.value);return Rt(o,()=>{An(o.value)&&l(void 0)}),{value:F(()=>o.value||s.value),setValue:l}}const w9e=Se({name:"DateInput",components:{IconHover:Lo,IconClose:ds,FeedbackIcon:X_},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:v,feedback:g}=Do({size:s,disabled:a,error:r}),{mergedSize:y}=wa(h),S=Ae("picker"),k=F(()=>[S,`${S}-size-${y.value}`,{[`${S}-focused`]:o.value,[`${S}-disabled`]:p.value,[`${S}-error`]:v.value,[`${S}-has-prefix`]:n.prefix}]),C=F(()=>{if(d?.value)return d?.value;if(l?.value&&zc(l.value))return En(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()}}}),E9e=["disabled","placeholder","value"];function T9e(e,t,n,r,o,a){const s=Ie("IconClose"),l=Ie("IconHover"),c=Ie("FeedbackIcon");return z(),Q("div",{class:ue(e.classNames)},[e.$slots.prefix?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-prefix`)},[vt(e.$slots,"prefix")],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-input`)},[I("input",Vt({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,E9e)],2),I("div",{class:ue(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.displayValue?(z(),qe(l,{key:0,prefix:e.prefixCls,class:ue(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[$(s)]),_:1},8,["prefix","class","onClick"])):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-suffix-icon`)},[vt(e.$slots,"suffix-icon")],2),e.feedback?(z(),qe(c,{key:1,type:e.feedback},null,8,["type"])):Le("v-if",!0)],2)],2)}var jpe=Ve(w9e,[["render",T9e]]);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 pre=new Map;function A9e(e,t,n){const r=pre.get(e);An(r)||cancelAnimationFrame(r),n<=0&&(e.scrollTop=t),pre.set(e,requestAnimationFrame(()=>{new Jm({from:{scrollTop:e.scrollTop},to:{scrollTop:t},duration:n,onUpdate:a=>{e.scrollTop=a.scrollTop}}).start()}))}function ff(e,t){const n=r=>{if(sr(r))return r.map(o=>n(o));if(!An(r))return r.format(t)};return n(e)}function A4(e){return An(e)?!0:sr(e)?e.length===0||e.length===2&&zc(e[0])&&zc(e[1]):!1}function V8(e,t){return e?typeof e=="string"&&Rs(e,t).format(t)===e:!1}function I9e(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,v)=>!An(p)&&v.includes(p);return h(o,l)||h(a,c)||h(s,d)}var Jh=Se({name:"RenderFunction",props:{renderFunc:{type:Function,required:!0}},render(){return this.renderFunc(this.$attrs)}});const Vpe=Symbol("PickerInjectionKey");function tS(){const{datePickerT:e}=On(Vpe)||{};return e||((t,...n)=>t)}const L9e=Se({name:"PanelShortcuts",components:{Button:Xo,RenderFunction:Jh},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:tS(),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:En}}});function D9e(e,t,n,r,o,a){const s=Ie("Button"),l=Ie("RenderFunction");return z(),Q("div",{class:ue(`${e.prefixCls}-shortcuts`)},[e.showNowBtn?(z(),qe(s,{key:0,size:"mini",onClick:t[0]||(t[0]=()=>e.onNowClick())},{default:de(()=>[Ue(je(e.datePickerT("datePicker.now")),1)]),_:1})):Le("v-if",!0),(z(!0),Q(Bt,null,vn(e.shortcuts,(c,d)=>(z(),qe(s,{key:d,size:"mini",onClick:()=>e.onItemClick(c),onMouseenter:()=>e.onItemMouseEnter(c),onMouseleave:()=>e.onItemMouseLeave(c)},{default:de(()=>[e.isFunction(c.label)?(z(),qe(l,{key:0,"render-func":c.label},null,8,["render-func"])):(z(),Q(Bt,{key:1},[Ue(je(c.label),1)],64))]),_:2},1032,["onClick","onMouseenter","onMouseleave"]))),128))],2)}var zpe=Ve(L9e,[["render",D9e]]);function Ry(e){return[...Array(e)]}function Qj(e){if(!An(e))return sr(e)?e:[e,void 0]}function Vp(e){return!!e&&zc(e[0])&&zc(e[1])}function P9e(e){return An(e)||e.length===0||Vp(e)}function Upe(e,t,n){const r=t||e;return(n||e).set("year",r.year()).set("month",r.month()).set("date",r.date())}const R9e=Se({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=Ae("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)}}}}),M9e=["stroke-width","stroke-linecap","stroke-linejoin"];function O9e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,M9e)}var vR=Ve(R9e,[["render",O9e]]);const Hpe=Object.assign(vR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vR.name,vR)}}),$9e=Se({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=Ae("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)}}}}),B9e=["stroke-width","stroke-linecap","stroke-linejoin"];function N9e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,B9e)}var mR=Ve($9e,[["render",N9e]]);const Wpe=Object.assign(mR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mR.name,mR)}}),F9e=Se({name:"PanelHeader",components:{IconLeft:Al,IconRight:Hi,IconDoubleLeft:Hpe,IconDoubleRight:Wpe,RenderFunction:Jh},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(()=>En(e.onPrev)),showSuperPrev:F(()=>En(e.onSuperPrev)),showNext:F(()=>En(e.onNext)),showSuperNext:F(()=>En(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}]}}}),j9e={key:1};function V9e(e,t,n,r,o,a){const s=Ie("RenderFunction"),l=Ie("IconDoubleLeft"),c=Ie("IconLeft"),d=Ie("IconRight"),h=Ie("IconDoubleRight");return z(),Q("div",{class:ue(`${e.prefixCls}-header`)},[I("div",{class:ue(e.getIconClassName(e.showSuperPrev)),onClick:t[0]||(t[0]=(...p)=>e.onSuperPrev&&e.onSuperPrev(...p))},[e.showSuperPrev?(z(),Q(Bt,{key:0},[e.icons&&e.icons.prevDouble?(z(),qe(s,{key:0,"render-func":e.icons&&e.icons.prevDouble},null,8,["render-func"])):(z(),qe(l,{key:1}))],64)):Le("v-if",!0)],2),I("div",{class:ue(e.getIconClassName(e.showPrev)),onClick:t[1]||(t[1]=(...p)=>e.onPrev&&e.onPrev(...p))},[e.showPrev?(z(),Q(Bt,{key:0},[e.icons&&e.icons.prev?(z(),qe(s,{key:0,"render-func":e.icons&&e.icons.prev},null,8,["render-func"])):(z(),qe(c,{key:1}))],64)):Le("v-if",!0)],2),I("div",{class:ue(`${e.prefixCls}-header-title`)},[e.onLabelClick&&(e.year||e.month)?(z(),Q(Bt,{key:0},[e.year?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-header-label`),onClick:t[2]||(t[2]=()=>e.onLabelClick&&e.onLabelClick("year"))},je(e.year),3)):Le("v-if",!0),e.year&&e.month?(z(),Q("span",j9e,"-")):Le("v-if",!0),e.month?(z(),Q("span",{key:2,class:ue(`${e.prefixCls}-header-label`),onClick:t[3]||(t[3]=()=>e.onLabelClick&&e.onLabelClick("month"))},je(e.month),3)):Le("v-if",!0)],64)):(z(),Q(Bt,{key:1},[Ue(je(e.title),1)],64))],2),I("div",{class:ue(e.getIconClassName(e.showNext)),onClick:t[4]||(t[4]=(...p)=>e.onNext&&e.onNext(...p))},[e.showNext?(z(),Q(Bt,{key:0},[e.icons&&e.icons.next?(z(),qe(s,{key:0,"render-func":e.icons&&e.icons.next},null,8,["render-func"])):(z(),qe(d,{key:1}))],64)):Le("v-if",!0)],2),I("div",{class:ue(e.getIconClassName(e.showSuperNext)),onClick:t[5]||(t[5]=(...p)=>e.onSuperNext&&e.onSuperNext(...p))},[e.showSuperNext?(z(),Q(Bt,{key:0},[e.icons&&e.icons.nextDouble?(z(),qe(s,{key:0,"render-func":e.icons&&e.icons.nextDouble},null,8,["render-func"])):(z(),qe(h,{key:1}))],64)):Le("v-if",!0)],2)],2)}var F5=Ve(F9e,[["render",V9e]]);function z9e(e){const{rangeValues:t}=nn(e),n=F(()=>t?.value&&t.value.every(zc)?n_(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,v=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`]:v,[`${h}-cell-range-start`]:y,[`${h}-cell-range-end`]:S,[`${h}-cell-in-range`]:k,[`${h}-cell-disabled`]:s},a.classNames]}}}const U9e=Se({name:"PanelBody",components:{RenderFunction:Jh},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}=z9e(Xt({prefixCls:n,value:r,isSameTime:a,mode:s,rangeValues:l})),d=h=>!!(En(o?.value)&&o?.value(xu(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:xu}}}),H9e=["onMouseenter","onMouseleave","onClick"];function W9e(e,t,n,r,o,a){const s=Ie("RenderFunction");return z(),Q("div",{class:ue(`${e.prefixCls}-body`)},[(z(!0),Q(Bt,null,vn(e.rows,(l,c)=>(z(),Q("div",{key:c,class:ue([`${e.prefixCls}-row`,{[`${e.prefixCls}-row-week`]:e.isWeek}])},[(z(!0),Q(Bt,null,vn(l,(d,h)=>(z(),Q(Bt,null,[Le(" 一年中的第几周,只在 week 模式下显示 "),e.isWeek&&h===0?(z(),Q("div",{key:h,class:ue([`${e.prefixCls}-cell`,`${e.prefixCls}-cell-week`])},[I("div",{class:ue(`${e.prefixCls}-date`)},[I("div",{class:ue(`${e.prefixCls}-date-value`)},je(d.label),3)],2)],2)):(z(),Q("div",{key:h,class:ue(e.getCellClassName(d)),onMouseenter:()=>{e.onCellMouseEnter(d)},onMouseleave:()=>{e.onCellMouseLeave(d)},onClick:()=>{e.onCellClick(d)}},[e.dateRender?(z(),qe(s,{key:0,"render-func":e.dateRender,date:e.getDateValue(d.value)},null,8,["render-func","date"])):(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-date`)},[I("div",{class:ue(`${e.prefixCls}-date-value`)},je(d.label),3)],2))],42,H9e))],64))),256))],2))),128))],2)}var j5=Ve(U9e,[["render",W9e]]);const G9e=Se({name:"PanelWeekList",props:{prefixCls:{type:String,required:!0},weekList:{type:Array,required:!0}},setup(){const e=tS();return{labelList:F(()=>["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].map(n=>e(`datePicker.week.short.${n}`)))}}});function K9e(e,t,n,r,o,a){return z(),Q("div",{class:ue(`${e.prefixCls}-week-list`)},[(z(!0),Q(Bt,null,vn(e.weekList,s=>(z(),Q("div",{key:s,class:ue(`${e.prefixCls}-week-list-item`)},je(e.labelList[s]||""),3))),128))],2)}var q9e=Ve(G9e,[["render",K9e]]);const Y9e=Se({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||An(r?.value)||!n?.value)return;const c=o.value.get(r.value);c&&A9e(a.value,c.offsetTop,l?100:0)}return Rt([r,n],(l,[,c])=>{n.value!==c?Cn(()=>{s()}):s(!0)}),bn(()=>{s()}),{refWrapper:a,refMap:o,onItemRef(l,c){o.value.set(c.value,l)},onItemClick(l){l.disabled||t("select",l.value)}}}}),X9e=["onClick"];function Z9e(e,t,n,r,o,a){return z(),Q("div",{ref:"refWrapper",class:ue(`${e.prefixCls}-column`)},[I("ul",null,[(z(!0),Q(Bt,null,vn(e.list,s=>(z(),Q("li",{key:s.value,ref_for:!0,ref:l=>{e.onItemRef(l,s)},class:ue([`${e.prefixCls}-cell`,{[`${e.prefixCls}-cell-disabled`]:s.disabled,[`${e.prefixCls}-cell-selected`]:s.selected}]),onClick:()=>{e.onItemClick(s)}},[I("div",{class:ue(`${e.prefixCls}-cell-inner`)},je(s.label),3)],10,X9e))),128))])],2)}var J9e=Ve(Y9e,[["render",Z9e]]);function Q9e(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:v}=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:fm(D,2,"0"),value:D,selected:c.value===D,disabled:v?.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:fm(D,2,"0"),value:D,selected:d.value===D,disabled:v?.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:fm(D,2,"0"),value:D,selected:h.value===D,disabled:v?.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:v?.value}))});return{hours:g,minutes:y,seconds:S,ampmList:C}}function xH(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 Gpe(e){const t=n=>I9e(n,{disabledHours:e.disabledHours,disabledMinutes:e.disabledMinutes,disabledSeconds:e.disabledSeconds});return n=>sr(n)?n.some(r=>t(r)):t(n)}const eOe=Se({name:"TimePickerPanel",components:{TimeColumn:J9e,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=>zc(e),confirm:e=>zc(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),v=Ae("timepicker"),{t:g}=No(),{columns:y,use12Hours:S,format:k}=xH(Xt({format:o,use12Hours:s})),C=fe(n?.value),x=Y=>{C.value=Y};Rt([r,n],()=>{r.value&&x(n?.value)});const E=F(()=>{var Y;const ne=(Y=C.value)==null?void 0:Y.hour();return An(ne)||!S.value?ne:ne>12?ne-12:ne===0?12:ne}),_=F(()=>{var Y;return(Y=C.value)==null?void 0:Y.minute()}),T=F(()=>{var Y;return(Y=C.value)==null?void 0:Y.second()}),D=F(()=>{var Y;const ne=(Y=C.value)==null?void 0:Y.hour();return!An(ne)&&ne>=12?"pm":"am"}),{hours:P,minutes:M,seconds:O,ampmList:L}=Q9e(Xt({format:k,step:a,use12Hours:S,hideDisabledOptions:l,disabledHours:c,disabledMinutes:d,disabledSeconds:h,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,disabled:p})),B=Gpe(Xt({disabledHours:c,disabledMinutes:d,disabledSeconds:h})),j=F(()=>B(C.value));function W(Y){An(Y)||t("confirm",Y)}function H(Y){x(Y),t("select",Y)}function K(Y,ne="hour"){let X;const U=E.value||"00",q=_.value||"00",ee=T.value||"00",re=D.value||"am";switch(ne){case"hour":X=`${Y}:${q}:${ee}`;break;case"minute":X=`${U}:${Y}:${ee}`;break;case"second":X=`${U}:${q}:${Y}`;break;case"ampm":X=`${U}:${q}:${ee} ${Y}`;break;default:X="00:00:00"}let ae="HH:mm:ss";S.value&&(ae="HH:mm:ss a",ne!=="ampm"&&(X=`${X} ${re}`)),X=Rs(X,ae),H(X)}return{prefixCls:v,t:g,hours:P,minutes:M,seconds:O,ampmList:L,selectedValue:C,selectedHour:E,selectedMinute:_,selectedSecond:T,selectedAmpm:D,computedUse12Hours:S,confirmBtnDisabled:j,columns:y,onSelect:K,onSelectNow(){const Y=Rs(new Date);H(Y)},onConfirm(){W(C.value)}}}});function tOe(e,t,n,r,o,a){const s=Ie("TimeColumn"),l=Ie("Button");return z(),Q(Bt,null,[I("div",{class:ue(e.prefixCls)},[e.columns.includes("H")||e.columns.includes("h")?(z(),qe(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"])):Le("v-if",!0),e.columns.includes("m")?(z(),qe(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"])):Le("v-if",!0),e.columns.includes("s")?(z(),qe(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"])):Le("v-if",!0),e.computedUse12Hours?(z(),qe(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"])):Le("v-if",!0)],2),e.$slots["extra-footer"]?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-footer-extra-wrapper`)},[vt(e.$slots,"extra-footer")],2)):Le("v-if",!0),e.hideFooter?Le("v-if",!0):(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-footer-btn-wrapper`)},[e.isRange?Le("v-if",!0):(z(),qe(l,{key:0,size:"mini",onClick:e.onSelectNow},{default:de(()=>[Ue(je(e.t("datePicker.now")),1)]),_:1},8,["onClick"])),$(l,{type:"primary",size:"mini",disabled:e.confirmBtnDisabled||!e.selectedValue,onClick:e.onConfirm},{default:de(()=>[Ue(je(e.t("datePicker.ok")),1)]),_:1},8,["disabled","onClick"])],2))],64)}var z8=Ve(eOe,[["render",tOe]]);const nOe=Se({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=Ae("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)}}}}),rOe=["stroke-width","stroke-linecap","stroke-linejoin"];function iOe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,rOe)}var gR=Ve(nOe,[["render",iOe]]);const nS=Object.assign(gR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gR.name,gR)}}),oOe=Se({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=Ae("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)}}}}),sOe=["stroke-width","stroke-linecap","stroke-linejoin"];function aOe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,sOe)}var yR=Ve(oOe,[["render",aOe]]);const s_=Object.assign(yR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yR.name,yR)}}),Kpe=6,eV=7,lOe=Kpe*eV;function uOe(e){return{label:e.date(),value:e}}const cOe=Se({name:"DatePanel",components:{PanelHeader:F5,PanelBody:j5,PanelWeekList:q9e,TimePanel:z8,IconCalendar:nS,IconClockCircle:s_},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=tS(),v=F(()=>l?.value==="week"),g=F(()=>Ae(v.value?"panel-week":"panel-date")),y=Ae("picker"),[S,k]=fa("date",Xt({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 W;return c.value&&((W=h?.value)==null?void 0:W.call(h,xu(o?.value||Ka())))||{}}),P=F(()=>{const W=[0,1,2,3,4,5,6],H=Math.max(a.value%7,0);return[...W.slice(H),...W.slice(0,H)]}),M=F(()=>{const W=Ys.startOf(r.value,"month"),H=W.day(),K=W.daysInMonth(),Y=P.value.indexOf(H),ne=Ry(lOe);for(let U=0;UY+K-1};return Ry(Kpe).map((U,q)=>{const ee=ne.slice(q*eV,(q+1)*eV);if(v.value){const re=ee[0].value;ee.unshift({label:re.week(),value:re})}return ee})}),O=F(()=>s?.value||((W,H)=>W.isSame(H,"day")));function L(W){t("select",W.value)}function B(W){t("time-picker-select",W)}function j(W){t("cell-mouse-enter",W.value)}return{prefixCls:g,classNames:_,pickerPrefixCls:y,headerTitle:T,rows:M,weekList:F(()=>v.value?[-1,...P.value]:P.value),mergedIsSameTime:O,disabledTimeProps:D,onCellClick:L,onCellMouseEnter:j,onTimePanelSelect:B,showViewTabs:C,showDateView:x,showTimeView:E,changeViewTo:W=>{t("current-view-change",W),t("update:currentView",W),k(W)},datePickerT:p}}});function dOe(e,t,n,r,o,a){const s=Ie("PanelHeader"),l=Ie("PanelWeekList"),c=Ie("PanelBody"),d=Ie("TimePanel"),h=Ie("IconCalendar"),p=Ie("IconClockCircle");return z(),Q("div",{class:ue(e.classNames)},[e.showDateView?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-inner`)},[$(s,Vt({...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"]),$(l,{"prefix-cls":e.pickerPrefixCls,"week-list":e.weekList},null,8,["prefix-cls","week-list"]),$(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)):Le("v-if",!0),e.showTimeView?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-timepicker`)},[I("header",{class:ue(`${e.prefixCls}-timepicker-title`)},je(e.datePickerT("datePicker.selectTime")),3),$(d,Vt({...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)):Le("v-if",!0),e.showViewTabs?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-footer`)},[I("div",{class:ue(`${e.prefixCls}-view-tabs`)},[I("div",{class:ue([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showDateView}]),onClick:t[0]||(t[0]=()=>e.changeViewTo("date"))},[$(h),I("span",{class:ue(`${e.prefixCls}-view-tab-pane-text`)},je(e.footerValue&&e.footerValue.format("YYYY-MM-DD")),3)],2),I("div",{class:ue([`${e.prefixCls}-view-tab-pane`,{[`${e.prefixCls}-view-tab-pane-active`]:e.showTimeView}]),onClick:t[1]||(t[1]=()=>e.changeViewTo("time"))},[$(p),I("span",{class:ue(`${e.prefixCls}-view-tab-pane-text`)},je(e.timePickerValue&&e.timePickerValue.format("HH:mm:ss")),3)],2)],2)],2)):Le("v-if",!0)],2)}var CH=Ve(cOe,[["render",dOe]]);const fOe=Se({name:"WeekPanel",components:{DatePanel:CH},props:{dayStartOfWeek:{type:Number,default:0}},emits:["select","cell-mouse-enter"],setup(e,{emit:t}){return No(),{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 hOe(e,t,n,r,o,a){const s=Ie("DatePanel");return z(),qe(s,Vt(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 qpe=Ve(fOe,[["render",hOe]]);const pOe=["January","February","March","April","May","June","July","August","September","October","November","December"],vOe=12,mOe=4,vre=3,gOe=Se({name:"MonthPanel",components:{PanelHeader:F5,PanelBody:j5},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=tS(),{headerValue:r}=nn(e),o=F(()=>Ae("panel-month")),a=Ae("picker"),s=F(()=>r.value.format("YYYY")),l=F(()=>{const p=r.value.year(),v=e.abbreviation?"short":"long",g=Ry(vOe).map((S,k)=>({label:n(`datePicker.month.${v}.${pOe[k]}`),value:Rs(`${p}-${k+1}`,"YYYY-M")}));return Ry(mOe).map((S,k)=>g.slice(k*vre,(k+1)*vre))}),c=(p,v)=>p.isSame(v,"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 yOe(e,t,n,r,o,a){const s=Ie("PanelHeader"),l=Ie("PanelBody");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue(`${e.prefixCls}-inner`)},[$(s,Vt({...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"]),$(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 Ype=Ve(gOe,[["render",yOe]]);const tV=4,kw=3,bOe=tV*kw,bR=10,_Oe=Se({name:"YearPanel",components:{PanelHeader:F5,PanelBody:j5},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(()=>Ae("panel-year")),o=Ae("picker"),a=F(()=>{const h=Math.floor(n.value.year()/bR)*bR-1,p=Ry(bOe).map((g,y)=>({label:h+y,value:Rs(`${h+y}`,"YYYY"),isPrev:y<1,isNext:y>bR}));return Ry(tV).map((g,y)=>p.slice(y*kw,(y+1)*kw))}),s=F(()=>`${a.value[0][1].label}-${a.value[tV-1][kw-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 SOe(e,t,n,r,o,a){const s=Ie("PanelHeader"),l=Ie("PanelBody");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue(`${e.prefixCls}-inner`)},[$(s,Vt({...e.headerOperations,icons:e.headerIcons},{"prefix-cls":e.pickerPrefixCls,title:e.headerTitle}),null,16,["prefix-cls","title"]),$(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 Xpe=Ve(_Oe,[["render",SOe]]);const kOe=Se({name:"QuarterPanel",components:{PanelHeader:F5,PanelBody:j5},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(()=>Ae("panel-quarter")),o=Ae("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}-${fm((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 xOe(e,t,n,r,o,a){const s=Ie("PanelHeader"),l=Ie("PanelBody");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue(`${e.prefixCls}-inner`)},[$(s,Vt({...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"]),$(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 Zpe=Ve(kOe,[["render",xOe]]);const COe=Se({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=Ae("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)}}}}),wOe=["stroke-width","stroke-linecap","stroke-linejoin"];function EOe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,wOe)}var _R=Ve(COe,[["render",EOe]]);const Mc=Object.assign(_R,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_R.name,_R)}}),TOe=Se({name:"Link",components:{IconLink:Mc,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=Ae("link"),o=Fpe(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}}}),AOe=["href"];function IOe(e,t,n,r,o,a){const s=Ie("icon-loading"),l=Ie("icon-link");return z(),Q("a",{href:e.disabled?void 0:e.href,class:ue(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.loading||e.showIcon?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[e.loading?(z(),qe(s,{key:0})):vt(e.$slots,"icon",{key:1},()=>[$(l)])],2)):Le("v-if",!0),vt(e.$slots,"default")],10,AOe)}var SR=Ve(TOe,[["render",IOe]]);const Jpe=Object.assign(SR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+SR.name,SR)}}),LOe=Se({name:"PanelFooter",components:{Link:Jpe,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:tS(),onTodayClick:()=>{t("today-btn-click")},onConfirmBtnClick:()=>{t("confirm-btn-click")}}}});function DOe(e,t,n,r,o,a){const s=Ie("Link"),l=Ie("Button");return z(),Q("div",{class:ue(`${e.prefixCls}-footer`)},[e.$slots.extra?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-footer-extra-wrapper`)},[vt(e.$slots,"extra")],2)):Le("v-if",!0),e.showTodayBtn?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-footer-now-wrapper`)},[$(s,{onClick:e.onTodayClick},{default:de(()=>[Ue(je(e.datePickerT("datePicker.today")),1)]),_:1},8,["onClick"])],2)):Le("v-if",!0),e.$slots.btn||e.showConfirmBtn?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-footer-btn-wrapper`)},[vt(e.$slots,"btn"),e.showConfirmBtn?(z(),qe(l,{key:0,class:ue(`${e.prefixCls}-btn-confirm`),type:"primary",size:"mini",disabled:e.confirmBtnDisabled,onClick:e.onConfirmBtnClick},{default:de(()=>[Ue(je(e.datePickerT("datePicker.ok")),1)]),_:1},8,["class","disabled","onClick"])):Le("v-if",!0)],2)):Le("v-if",!0)],2)}var Qpe=Ve(LOe,[["render",DOe]]);function e0e(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 U8(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}=e0e(Xt({mode:l})),h=(T,D)=>{const P=l.value==="date"||l.value==="week"?"M":"y";return T.isSame(D,P)},p=F(()=>dc(n?.value,a.value)),v=F(()=>dc(r?.value,a.value)),g=fe(v.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),Rt(()=>o?.value,T=>{k(T)});function C(){return o?.value||v.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 POe=Se({name:"DatePikerPanel",components:{DatePanel:CH,PanelShortcuts:zpe,PanelFooter:Qpe,WeekPanel:qpe,MonthPanel:Ype,YearPanel:Xpe,QuarterPanel:Zpe,RenderFunction:Jh},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:v,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:O,headerOperations:L}=U8(Xt({mode:S,format:a}));Rt(v,ie=>{O(ie)});function B(ie){const{value:ke}=ie;return dc(En(ke)?ke():ke,ie.format||a.value)}function j(ie){t("shortcut-click",B(ie),ie)}function W(ie){t("shortcut-mouse-enter",B(ie))}function H(ie){t("shortcut-mouse-leave",B(ie))}function K(ie){t("cell-click",ie)}function Y(ie){t("time-picker-select",ie)}function ne(){t("today-btn-click",Ka())}function X(){t("confirm")}function U(ie){t("header-label-click",ie)}function q(ie){t("header-select",ie)}function ee(){t("month-header-click")}const re=Xt({prefixCls:n,shortcuts:r,showNowBtn:C,onItemClick:j,onItemMouseEnter:W,onItemMouseLeave:H,onNowClick:ne}),ae=Xt({value:s,headerValue:v,headerIcons:g,headerOperations:y,disabledDate:l,dateRender:h,onSelect:K,onHeaderLabelClick:U});return{classNames:D,showShortcutsInLeft:E,showShortcutsInRight:_,showShortcutsInBottom:T,shortcutsProps:re,commonPanelProps:ae,footerValue:P,onTodayBtnClick:ne,onConfirmBtnClick:X,onTimePickerSelect:Y,onHeaderPanelSelect:q,headerPanelHeaderValue:M,headerPanelHeaderOperations:L,onMonthHeaderLabelClick:ee}}});function ROe(e,t,n,r,o,a){const s=Ie("PanelShortcuts"),l=Ie("YearPanel"),c=Ie("MonthPanel"),d=Ie("WeekPanel"),h=Ie("QuarterPanel"),p=Ie("DatePanel"),v=Ie("RenderFunction"),g=Ie("PanelFooter");return z(),Q("div",{class:ue(e.classNames)},[e.showShortcutsInLeft?(z(),qe(s,Yi(Vt({key:0},e.shortcutsProps)),null,16)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-panel-wrapper`)},[e.headerMode?(z(),Q(Bt,{key:0},[e.headerMode==="year"?(z(),qe(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"?(z(),qe(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"])):Le("v-if",!0)],64)):(z(),Q(Bt,{key:1},[e.mode==="week"?(z(),qe(d,Vt({key:0},e.commonPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])):e.mode==="month"?(z(),qe(c,Vt({key:1,abbreviation:e.abbreviation},e.commonPanelProps),null,16,["abbreviation"])):e.mode==="year"?(z(),qe(l,Yi(Vt({key:2},e.commonPanelProps)),null,16)):e.mode==="quarter"?(z(),qe(h,Yi(Vt({key:3},e.commonPanelProps)),null,16)):(z(),qe(p,Vt({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"])),$(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},yo({_:2},[e.extra?{name:"extra",fn:de(()=>[e.extra?(z(),qe(v,{key:0,"render-func":e.extra},null,8,["render-func"])):Le("v-if",!0)]),key:"0"}:void 0,e.showShortcutsInBottom?{name:"btn",fn:de(()=>[$(s,Yi(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?(z(),qe(s,Yi(Vt({key:1},e.shortcutsProps)),null,16)):Le("v-if",!0)],2)}var MOe=Ve(POe,[["render",ROe]]);function OOe(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 $Oe(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 t0e(e){const{format:t,mode:n,showTime:r,valueFormat:o}=nn(e),a=F(()=>!En(t?.value)&&t?.value||OOe(n?.value,r?.value)),s=F(()=>o?.value||$Oe(n?.value,r?.value)),l=F(()=>["timestamp","Date"].includes(s.value)?a.value:s.value);return{format:a,valueFormat:s,parseValueFormat:l}}function n0e(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 v=xu(h);return a?.value?r.value(v,p):r.value(v)}),c=(h,p)=>(p?.()||[]).includes(h),d=F(()=>(h,p)=>{if(!s.value||!o?.value)return!1;const v=xu(h),g=a?.value?o.value(v,p):o.value(v);return c(h.hour(),g.disabledHours)||c(h.minute(),g.disabledMinutes)||c(h.second(),g.disabledSeconds)});return function(p,v){return p&&(l.value(p,v||"start")||d.value(p,v||"start"))}}const hm=(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 hm(t?.value||{},l)||r(a,...s)};return ri(Vpe,{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}=xH(Xt({format:r,use12Hours:o})),s=F(()=>{var p;return dc((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 Rt(n,p=>{d(p)}),[c,d,h]}function i0e(e,t){return t==="timestamp"?e.toDate().getTime():t==="Date"?e.toDate():e.format(t)}function BOe(e){const{format:t}=nn(e);return n=>i0e(n,t.value)}function kR(e,t){return e.map(n=>n?i0e(n,t):void 0)}const NOe=Se({name:"Picker",components:{DateInput:jpe,Trigger:ha,PickerPanel:MOe,IconCalendar:nS},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:v,timePickerProps:g,disabledDate:y,disabledTime:S,readonly:k,locale:C,pickerValue:x,defaultPickerValue:E,dayStartOfWeek:_,previewShortcut:T,showConfirmBtn:D}=nn(e),{locale:P}=No();Os(()=>{vpe(P.value,_.value)});const{mergedDisabled:M,eventHandlers:O}=Do({disabled:p}),L=r0e(Xt({locale:C})),B=Ae("picker"),j=fe(),W=F(()=>c?.value||{date:L("datePicker.placeholder.date"),month:L("datePicker.placeholder.month"),year:L("datePicker.placeholder.year"),week:L("datePicker.placeholder.week"),quarter:L("datePicker.placeholder.quarter")}[r.value]||L("datePicker.placeholder.date")),{format:H,valueFormat:K,parseValueFormat:Y}=t0e(Xt({format:s,mode:r,showTime:v,valueFormat:l})),ne=F(()=>s&&En(s.value)?on=>{var pn;return(pn=s.value)==null?void 0:pn.call(s,xu(on))}:H.value),X=BOe(Xt({format:K})),U=n0e(Xt({mode:r,disabledDate:y,disabledTime:S,showTime:v})),q=F(()=>v.value||D.value),ee=F(()=>q.value&&(!ze.value||U(ze.value))),re=F(()=>r.value==="date"&&v.value),{value:ae,setValue:ie}=C9e(Xt({modelValue:o,defaultValue:a,format:Y})),[ke,Fe]=Ga(),[ge,_e]=Ga(),ze=F(()=>{var on;return(on=ke.value)!=null?on:ae.value}),Qe=F(()=>{var on,pn;return(pn=(on=ge.value)!=null?on:ke.value)!=null?pn:ae.value}),[Je,Te]=Ga(),[ve,be]=fa(h.value,Xt({value:d})),Me=on=>{ve.value!==on&&(be(on),t("popup-visible-change",on),t("update:popupVisible",on))},{headerValue:He,setHeaderValue:Xe,headerOperations:rt,resetHeaderValue:ft}=U8(Xt({mode:r,value:x,defaultValue:E,selectedValue:Qe,format:Y,onChange:on=>{const pn=X(on),er=ff(on,Y.value),Kr=xu(on);t("picker-value-change",pn,Kr,er),t("update:pickerValue",pn)}})),[lt,,Et]=nV(Xt({timePickerProps:g,selectedValue:Qe})),St=F(()=>!k.value&&!En(ne.value)),Wt=fe();Rt(ve,on=>{Fe(void 0),_e(void 0),Wt.value=void 0,on&&(ft(),Et()),on||Te(void 0)});function Tt(on,pn){var er,Kr;const wt=on?X(on):void 0,Gt=ff(on,Y.value),hn=xu(on);hH(on,ae.value)&&(t("update:modelValue",wt),t("change",wt,hn,Gt),(Kr=(er=O.value)==null?void 0:er.onChange)==null||Kr.call(er)),pn&&t("ok",wt,hn,Gt)}function Mt(on,pn,er){U(on)||(Tt(on,er),ie(on),Fe(void 0),_e(void 0),Te(void 0),Wt.value=void 0,El(pn)&&Me(pn))}function sn(on,pn){if(Fe(on),_e(void 0),Te(void 0),Wt.value=void 0,pn){const er=on?X(on):void 0,Kr=ff(on,Y.value),wt=xu(on);t("select",er,wt,Kr)}}function ct(on){j.value&&j.value.focus&&j.value.focus(on)}function Ne(on,pn){return!re.value&&!g.value?on:Upe(Ka(),on,pn)}function De(on){M.value||Me(on)}function Oe(on){on.stopPropagation(),Mt(void 0),t("clear")}function Ye(){var on,pn;(pn=(on=O.value)==null?void 0:on.onBlur)==null||pn.call(on)}function dt(on){Me(!0);const pn=on.target.value;if(Te(pn),!V8(pn,H.value))return;const er=Rs(pn,H.value);U(er)||(q.value?sn(er):Mt(er,!0))}function Dt(){Mt(Qe.value,!1)}function pt(on){q.value?sn(on,!0):Mt(on,!1)}function $e(on){const pn=Ne(on,lt.value);pt(pn)}function Ct(on){const pn=Ne(Qe.value||Ka(),on);pt(pn)}function Zt(){Mt(Qe.value,!1,!0)}function tn(){e.disabledInput&&ct()}let Ft;gi(()=>{clearTimeout(Ft)});function rn(on){clearTimeout(Ft),_e(on),Te(void 0)}function Qn(){clearTimeout(Ft),Ft=setTimeout(()=>{_e(void 0)},100)}function mr(on,pn){t("select-shortcut",pn),Mt(on,!1)}function yi(on){Wt.value=on}function Kt(){Wt.value="year"}function st(on){let pn=He.value;if(pn=pn.set("year",on.year()),Wt.value==="month"&&(pn=pn.set("month",on.month())),Xe(pn),r.value==="quarter"||r.value==="month"){Wt.value=void 0;return}Wt.value=Wt.value==="year"?"month":void 0}const zt=F(()=>({format:H.value,...xa(g?.value||{},["defaultValue"]),visible:ve.value})),fn=F(()=>({...xf(e,["mode","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","showTime","hideTrigger","abbreviation"]),showNowBtn:e.showNowBtn&&r.value==="date",prefixCls:B,format:Y.value,value:Qe.value,visible:ve.value,showConfirmBtn:q.value,confirmBtnDisabled:ee.value,timePickerProps:zt.value,extra:n.extra,dateRender:n.cell,headerValue:He.value,headerIcons:{prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]},headerOperations:rt.value,timePickerValue:lt.value,headerMode:Wt.value,onCellClick:$e,onTimePickerSelect:Ct,onConfirm:Zt,onShortcutClick:mr,onShortcutMouseEnter:T.value?rn:void 0,onShortcutMouseLeave:T.value?Qn:void 0,onTodayBtnClick:pt,onHeaderLabelClick:yi,onHeaderSelect:st,onMonthHeaderClick:Kt}));return{prefixCls:B,refInput:j,panelProps:fn,panelValue:Qe,inputValue:Je,selectedValue:ae,inputFormat:ne,computedPlaceholder:W,panelVisible:ve,inputEditable:St,needConfirm:q,mergedDisabled:M,onPanelVisibleChange:De,onInputClear:Oe,onInputChange:dt,onInputPressEnter:Dt,onInputBlur:Ye,onPanelClick:tn}}});function FOe(e,t,n,r,o,a){const s=Ie("IconCalendar"),l=Ie("DateInput"),c=Ie("PickerPanel"),d=Ie("Trigger");return e.hideTrigger?(z(),qe(c,Yi(Vt({key:1},{...e.$attrs,...e.panelProps})),null,16)):(z(),qe(d,Vt({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(()=>[$(c,Vt(e.panelProps,{onClick:e.onPanelClick}),null,16,["onClick"])]),default:de(()=>[vt(e.$slots,"default",{},()=>[$(l,Vt(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}),yo({"suffix-icon":de(()=>[vt(e.$slots,"suffix-icon",{},()=>[$(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(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 rS=Ve(NOe,[["render",FOe]]),xR=Se({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()=>$(rS,Vt(e,t,{mode:"date"}),n)}}),xw=Se({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()=>$(rS,Vt(e,t,{mode:"week"}),n)}}),Cw=Se({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()=>$(rS,Vt(e,t,{mode:"month"}),n)}}),ww=Se({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()=>$(rS,Vt(e,t,{mode:"year"}),n)}}),Ew=Se({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()=>$(rS,Vt(e,t,{mode:"quarter"}),n)}});function jOe(e){const{modelValue:t,defaultValue:n,format:r}=nn(e),o=F(()=>dc(Qj(t.value),r.value)),a=F(()=>dc(Qj(n.value),r.value)),[s,l]=Ga(An(o.value)?An(a.value)?[]:a.value:o.value);return Rt(o,()=>{An(o.value)&&l([])}),{value:F(()=>o.value||s.value),setValue:l}}function VOe(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=(ke,Fe)=>ke.isSame(Fe,h.value),{span:v,superSpan:g}=e0e(Xt({mode:r})),y=F(()=>t?.value||r.value),S=F(()=>n?.value||r.value),k=F(()=>{var ke;return(ke=o.value)==null?void 0:ke[0]}),C=F(()=>{var ke;return(ke=o.value)==null?void 0:ke[1]}),x=F(()=>{var ke;return(ke=a.value)==null?void 0:ke[0]}),E=F(()=>{var ke;return(ke=a.value)==null?void 0:ke[1]}),_=ke=>{c?.value&&c.value(ke)},{headerValue:T,setHeaderValue:D,headerOperations:P,getDefaultLocalValue:M}=U8(Xt({mode:y,value:k,defaultValue:x,selectedValue:void 0,format:l,onChange:ke=>{_([ke,O.value])}})),{headerValue:O,setHeaderValue:L,headerOperations:B,getDefaultLocalValue:j}=U8(Xt({mode:S,value:C,defaultValue:E,selectedValue:void 0,format:l,onChange:ke=>{_([T.value,ke])}})),W=ke=>{const Fe=p(T.value,ke[0]),ge=p(O.value,ke[1]);D(ke[0],!1),L(ke[1],!1),(!Fe||!ge)&&c?.value&&c?.value(ke)};function H(ke){let[Fe,ge]=n_(ke);const _e=Ys.add(Fe,v.value,"M");return ge.isBefore(_e,h.value)&&(ge=_e),[Fe,ge]}function K(){var ke,Fe;let ge=(ke=s.value)==null?void 0:ke[0],_e=(Fe=s.value)==null?void 0:Fe[1];return ge&&_e&&([ge,_e]=n_([ge,_e])),[ge,_e]}const[Y,ne]=K(),[X,U]=H([Y||T.value,ne||O.value]);D(X,!1),L(U,!1);const q=()=>{const ke=M(),Fe=j();Cn(()=>{const[ge,_e]=K(),[ze,Qe]=H([ge||ke,_e||Fe]);W([ze,Qe])})},ee=F(()=>Ys.add(T.value,v.value,"M").isBefore(O.value,h.value)),re=F(()=>Ys.add(T.value,g.value,"M").isBefore(O.value,h.value)),ae=F(()=>{const ke=["onSuperPrev"];return d.value&&ke.push("onPrev"),ee.value&&d&&ke.push("onNext"),re.value&&ke.push("onSuperNext"),xf(P.value,ke)}),ie=F(()=>{const ke=["onSuperNext"];return d.value&&ke.push("onNext"),ee.value&&d.value&&ke.push("onPrev"),re.value&&ke.push("onSuperPrev"),xf(B.value,ke)});return{startHeaderValue:T,endHeaderValue:O,startHeaderOperations:ae,endHeaderOperations:ie,setHeaderValue:W,resetHeaderValue:q}}const zOe=Se({name:"DateInputRange",components:{IconHover:Lo,IconClose:ds,FeedbackIcon:X_},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:v,mergedError:g,feedback:y}=Do({size:s,error:r}),{mergedSize:S}=wa(p),k=fe(),C=fe(),x=Y=>v.value?v.value:sr(a.value)?a.value[Y]:a.value,E=F(()=>x(0)),_=F(()=>x(1)),T=Ae("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(Y){return[`${T}-input`,{[`${T}-input-active`]:Y===d?.value}]}function M(Y){var ne,X;if(h?.value)return(ne=h?.value)==null?void 0:ne[Y];const U=(X=l?.value)==null?void 0:X[Y];if(U&&zc(U))return En(c.value)?c.value(U):U.format(c.value)}const O=F(()=>M(0)),L=F(()=>M(1));function B(Y){t("focused-index-change",Y),t("update:focusedIndex",Y)}function j(Y){Y.stopPropagation(),t("change",Y)}function W(){t("press-enter")}function H(Y){Y.preventDefault()}function K(Y){t("clear",Y)}return{prefixCls:T,classNames:D,refInput0:k,refInput1:C,disabled0:E,disabled1:_,mergedDisabled:v,getDisabled:x,getInputWrapClassName:P,displayValue0:O,displayValue1:L,changeFocusedInput:B,onChange:j,onPressEnter:W,onPressTab:H,onClear:K,feedback:y}},methods:{focus(e){const t=Ze(e)?e:this.focusedIndex,n=t===0?this.refInput0:this.refInput1;!An(t)&&!this.getDisabled(t)&&n&&n.focus&&n.focus()},blur(){const e=this.focusedIndex===0?this.refInput0:this.refInput1;e&&e.blur&&e.blur()}}}),UOe=["disabled","placeholder","value"],HOe=["disabled","placeholder","value"];function WOe(e,t,n,r,o,a){const s=Ie("IconClose"),l=Ie("IconHover"),c=Ie("FeedbackIcon");return z(),Q("div",{class:ue(e.classNames)},[e.$slots.prefix?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-prefix`)},[vt(e.$slots,"prefix")],2)):Le("v-if",!0),I("div",{class:ue(e.getInputWrapClassName(0))},[I("input",Vt({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,UOe)],2),I("span",{class:ue(`${e.prefixCls}-separator`)},[vt(e.$slots,"separator",{},()=>[t[8]||(t[8]=Ue(" - "))])],2),I("div",{class:ue(e.getInputWrapClassName(1))},[I("input",Vt({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,HOe)],2),I("div",{class:ue(`${e.prefixCls}-suffix`)},[e.allowClear&&!e.mergedDisabled&&e.value.length===2?(z(),qe(l,{key:0,prefix:e.prefixCls,class:ue(`${e.prefixCls}-clear-icon`),onClick:e.onClear},{default:de(()=>[$(s)]),_:1},8,["prefix","class","onClick"])):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-suffix-icon`)},[vt(e.$slots,"suffix-icon")],2),e.feedback?(z(),qe(c,{key:1,type:e.feedback},null,8,["type"])):Le("v-if",!0)],2)],2)}var o0e=Ve(zOe,[["render",WOe]]);const GOe=Se({name:"DateRangePikerPanel",components:{PanelShortcuts:zpe,PanelFooter:Qpe,RenderFunction:Jh,DatePanel:CH,WeekPanel:qpe,MonthPanel:Ype,YearPanel:Xpe,QuarterPanel:Zpe},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:v,visible:g,startHeaderMode:y,endHeaderMode:S}=nn(e),k=F(()=>sr(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");Rt(g,(re,ae)=>{re&&!ae&&(x.value="date")});function E(re){return dc(Qj(En(re.value)?re.value():re.value),re.format||a.value)}function _(re){t("shortcut-click",E(re),re)}function T(re){t("shortcut-mouse-enter",E(re))}function D(re){t("shortcut-mouse-leave",E(re))}function P(re){t("cell-click",re)}function M(re){t("cell-mouse-enter",re)}function O(){t("confirm")}function L(re){t("time-picker-select",re,"start")}function B(re){t("time-picker-select",re,"end")}function j(re){t("start-header-label-click",re)}function W(re){t("end-header-label-click",re)}function H(re){t("start-header-select",re)}function K(re){t("end-header-select",re)}function Y(re){return En(c?.value)?ae=>{var ie;return((ie=c?.value)==null?void 0:ie.call(c,ae,re===0?"start":"end"))||!1}:void 0}function ne(re){return En(d?.value)?ae=>{var ie;return((ie=d?.value)==null?void 0:ie.call(d,ae,re===0?"start":"end"))||!1}:void 0}function X(re){return En(v?.value)?ae=>{var ie;const ke={...ae,type:re===0?"start":"end"};return(ie=v?.value)==null?void 0:ie.call(v,ke)}:void 0}const U=Xt({prefixCls:n,shortcuts:r,onItemClick:_,onItemMouseEnter:T,onItemMouseLeave:D}),q=F(()=>({...h.value,rangeValues:l.value,disabledDate:Y(0),dateRender:X(0),onSelect:y.value?H:P,onCellMouseEnter:M,onHeaderLabelClick:j})),ee=F(()=>({...p.value,rangeValues:l.value,disabledDate:Y(1),dateRender:X(1),onSelect:S.value?K:P,onCellMouseEnter:M,onHeaderLabelClick:W}));return{pick:xf,classNames:C,showShortcuts:k,shortcutsProps:U,startPanelProps:q,endPanelProps:ee,getDisabledTimeFunc:ne,onConfirmBtnClick:O,currentDateView:x,onStartTimePickerSelect:L,onEndTimePickerSelect:B,onStartHeaderPanelSelect:H,onEndHeaderPanelSelect:K}}});function KOe(e,t,n,r,o,a){const s=Ie("PanelShortcuts"),l=Ie("YearPanel"),c=Ie("MonthPanel"),d=Ie("WeekPanel"),h=Ie("QuarterPanel"),p=Ie("DatePanel"),v=Ie("RenderFunction"),g=Ie("PanelFooter");return z(),Q("div",{class:ue(e.classNames)},[e.showShortcuts&&e.shortcutsPosition==="left"?(z(),qe(s,Yi(Vt({key:0},e.shortcutsProps)),null,16)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-range-panel-wrapper`)},[Le(" panel "),I("div",{class:ue(`${e.prefixCls}-range`)},[I("div",{class:ue(`${e.prefixCls}-range-wrapper`)},[e.startHeaderMode||e.endHeaderMode?(z(),Q(Bt,{key:0},[e.startHeaderMode==="year"?(z(),qe(l,Yi(Vt({key:0},e.startPanelProps)),null,16)):Le("v-if",!0),e.endHeaderMode==="year"?(z(),qe(l,Yi(Vt({key:1},e.endPanelProps)),null,16)):e.startHeaderMode==="month"?(z(),qe(c,Vt({key:2},e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):e.endHeaderMode==="month"?(z(),qe(c,Vt({key:3},e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])):Le("v-if",!0)],64)):(z(),Q(Bt,{key:1},[Le(" week "),e.mode==="week"?(z(),Q(Bt,{key:0},[$(d,Vt(e.startPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"]),$(d,Vt(e.endPanelProps,{"day-start-of-week":e.dayStartOfWeek}),null,16,["day-start-of-week"])],64)):e.mode==="month"?(z(),Q(Bt,{key:1},[Le(" month "),$(c,Vt(e.startPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"]),$(c,Vt(e.endPanelProps,{abbreviation:e.abbreviation}),null,16,["abbreviation"])],64)):e.mode==="year"?(z(),Q(Bt,{key:2},[Le(" year "),$(l,Yi(Sa(e.startPanelProps)),null,16),$(l,Yi(Sa(e.endPanelProps)),null,16)],64)):e.mode==="quarter"?(z(),Q(Bt,{key:3},[Le(" quarter "),$(h,Yi(Sa(e.startPanelProps)),null,16),$(h,Yi(Sa(e.endPanelProps)),null,16)],64)):(z(),Q(Bt,{key:4},[Le(" date "),$(p,Vt({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"]),$(p,Vt({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),Le(" footer "),$(g,{"prefix-cls":e.prefixCls,"show-today-btn":!1,"show-confirm-btn":e.showConfirmBtn,"confirm-btn-disabled":e.confirmBtnDisabled,onConfirmBtnClick:e.onConfirmBtnClick},yo({_:2},[e.extra||e.$slots.extra?{name:"extra",fn:de(()=>[e.$slots.extra?vt(e.$slots,"extra",{key:0}):(z(),qe(v,{key:1,"render-func":e.extra},null,8,["render-func"]))]),key:"0"}:void 0,e.showShortcuts&&e.shortcutsPosition==="bottom"?{name:"btn",fn:de(()=>[$(s,Yi(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"?(z(),qe(s,Yi(Vt({key:1},e.shortcutsProps)),null,16)):Le("v-if",!0)],2)}var qOe=Ve(GOe,[["render",KOe]]);function YOe(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(()=>sr(a.value)?{...t?.value,defaultValue:a.value[0]}:t?.value),l=F(()=>sr(a.value)?{...t?.value,defaultValue:a.value[1]}:t?.value),[c,d,h]=nV(Xt({timePickerProps:s,selectedValue:r})),[p,v,g]=nV(Xt({timePickerProps:l,selectedValue:o})),y=F(()=>[c.value,p.value]);function S(C){C&&(d(C[0]),v(C[1]))}function k(){h(),g()}return[y,S,k]}const XOe=Se({name:"RangePicker",components:{RangePickerPanel:qOe,DateRangeInput:o0e,Trigger:ha,IconCalendar:nS},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:v,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}=No(),L=On(Ya,void 0);Os(()=>{vpe(O.value,T.value)});const B=F(()=>{var nt;return!(!D.value||!((nt=L?.exchangeTime)==null||nt))}),{mergedSize:j,mergedDisabled:W,mergedError:H,eventHandlers:K}=Do({size:E,error:_}),Y=r0e(Xt({locale:S})),ne=Ae("picker"),X=F(()=>h?.value||{date:Y("datePicker.rangePlaceholder.date"),month:Y("datePicker.rangePlaceholder.month"),year:Y("datePicker.rangePlaceholder.year"),week:Y("datePicker.rangePlaceholder.week"),quarter:Y("datePicker.rangePlaceholder.quarter")}[r.value]||Y("datePicker.rangePlaceholder.date")),{format:U,valueFormat:q,parseValueFormat:ee}=t0e(Xt({mode:r,format:a,showTime:o,valueFormat:x})),re=F(()=>{const nt=v.value===!0||W.value||sr(v.value)&&v.value[0]===!0,at=v.value===!0||W.value||sr(v.value)&&v.value[1]===!0;return[nt,at]}),ae=F(()=>re.value[0]&&re.value[1]);function ie(nt=0){return re.value[nt]?nt^1:nt}const ke=fe(),Fe=fe(ie()),ge=F(()=>{const nt=Fe.value,at=nt^1;return re.value[at]?nt:at}),_e=F(()=>re.value[Fe.value^1]),{value:ze,setValue:Qe}=jOe(Xt({modelValue:s,defaultValue:l,format:ee})),[Je,Te]=Ga(),[ve,be]=Ga(),Me=F(()=>{var nt;return(nt=Je.value)!=null?nt:ze.value}),He=F(()=>{var nt,at;return(at=(nt=ve.value)!=null?nt:Je.value)!=null?at:ze.value}),[Xe,rt]=Ga(),ft=fe(),lt=fe(),[Et,St]=fa(d.value,Xt({value:c})),Wt=nt=>{Et.value!==nt&&(St(nt),t("popup-visible-change",nt),t("update:popupVisible",nt))},{startHeaderValue:Tt,endHeaderValue:Mt,startHeaderOperations:sn,endHeaderOperations:ct,resetHeaderValue:Ne,setHeaderValue:De}=VOe(Xt({mode:r,startHeaderMode:ft,endHeaderMode:lt,value:k,defaultValue:C,selectedValue:He,format:ee,onChange:nt=>{const at=kR(nt,q.value),Ot=ff(nt,ee.value),Qt=xu(nt);t("picker-value-change",at,Qt,Ot),t("update:pickerValue",at)}}));function Oe(nt){ft.value=nt}function Ye(nt){lt.value=nt}function dt(nt){let at=Tt.value;at=at.set("year",nt.year()),ft.value==="month"&&(at=at.set("month",nt.month())),De([at,Mt.value]),ft.value=void 0}function Dt(nt){let at=Mt.value;at=at.set("year",nt.year()),lt.value==="month"&&(at=at.set("month",nt.month())),De([Tt.value,at]),lt.value=void 0}const pt=fe([He.value[0]||Ka(),He.value[1]||Ka()]);Rt(He,()=>{const[nt,at]=He.value;pt.value[0]=nt||pt.value[0],pt.value[1]=at||pt.value[1]});const[$e,Ct,Zt]=YOe(Xt({timePickerProps:p,selectedValue:He})),tn=F(()=>r.value==="date"&&o.value),Ft=F(()=>tn.value||p.value),rn=n0e(Xt({mode:r,isRange:!0,showTime:o,disabledDate:g,disabledTime:y})),Qn=F(()=>tn.value||M.value),mr=F(()=>Qn.value&&(!Vp(Me.value)||rn(Me.value[0],"start")||rn(Me.value[1],"end")));Rt(Et,nt=>{ft.value=void 0,lt.value=void 0,Te(void 0),be(void 0),nt&&(Ne(),Zt(),Fe.value=ie(Fe.value),Cn(()=>pn(Fe.value))),nt||rt(void 0)}),Rt(Fe,()=>{e.disabledInput&&(pn(Fe.value),rt(void 0))});function yi(nt,at){var Ot,Qt;const qt=nt?kR(nt,q.value):void 0,yn=ff(nt,ee.value),Sn=xu(nt);hH(nt,ze.value)&&(t("update:modelValue",qt),t("change",qt,Sn,yn),(Qt=(Ot=K.value)==null?void 0:Ot.onChange)==null||Qt.call(Ot)),at&&t("ok",qt,Sn,yn)}function Kt(nt){let at=n_(nt);return Ft.value&&!B.value&&(at=[er(at[0],nt[0]),er(at[1],nt[1])]),at}function st(nt,at,Ot){if(rn(nt?.[0],"start")||rn(nt?.[1],"end"))return;let Qt=nt?[...nt]:void 0;Vp(Qt)&&(Qt=Kt(Qt)),yi(Qt,Ot),Qe(Qt||[]),Te(void 0),be(void 0),rt(void 0),ft.value=void 0,lt.value=void 0,El(at)&&Wt(at)}function zt(nt){const at=kR(nt,q.value),Ot=ff(nt,ee.value),Qt=xu(nt);t("select",at,Qt,Ot)}function fn(nt,at){const{emitSelect:Ot=!1,updateHeader:Qt=!1}=at||{};let qt=[...nt];Vp(qt)&&(qt=Kt(qt)),Te(qt),be(void 0),rt(void 0),ft.value=void 0,lt.value=void 0,Ot&&zt(qt),Qt&&Ne()}function on(nt,at){const{updateHeader:Ot=!1}=at||{};be(nt),rt(void 0),Ot&&Ne()}function pn(nt){ke.value&&ke.value.focus&&ke.value.focus(nt)}function er(nt,at){return Ft.value?Upe(Ka(),nt,at):nt}function Kr(nt){Wt(nt)}function wt(nt){if(Je.value&&He.value[ge.value]&&(!Qn.value||!Vp(Je.value))){const at=[...He.value],Ot=er(nt,$e.value[Fe.value]);at[Fe.value]=Ot,on(at)}}function Gt(nt=!1){return _e.value?[...ze.value]:Je.value?nt||!Vp(Je.value)?[...Je.value]:[]:nt?[...ze.value]:[]}function hn(nt){const at=Gt(),Ot=er(nt,$e.value[Fe.value]);at[Fe.value]=Ot,zt(at),!Qn.value&&Vp(at)?st(at,!1):(fn(at),Vp(at)?Fe.value=0:Fe.value=ge.value)}function gn(nt,at){const Ot=at==="start"?0:1,Qt=er($e.value[Ot],nt),qt=[...$e.value];qt[Ot]=Qt,Ct(qt);const yn=Gt(!0);yn[Ot]&&(yn[Ot]=Qt,fn(yn,{emitSelect:!0}))}let ln;gi(()=>{clearTimeout(ln)});function le(nt){clearTimeout(ln),on(nt,{updateHeader:!0})}function oe(){clearTimeout(ln),ln=setTimeout(()=>{be(void 0),rt(void 0),Ne()},100)}function te(nt,at){t("select-shortcut",at),st(nt,!1)}function J(){st(He.value,!1,!0)}function he(nt){nt.stopPropagation(),st(void 0),t("clear")}function xe(nt){Wt(!0);const at=nt.target.value;if(!at){rt(void 0);return}const Ot=ff(He.value,U.value),Qt=sr(Xe.value)?[...Xe.value]:Ot||[];if(Qt[Fe.value]=at,rt(Qt),!V8(at,U.value))return;const qt=Rs(at,U.value);if(rn(qt,Fe.value===0?"start":"end"))return;const yn=sr(He.value)?[...He.value]:[];yn[Fe.value]=qt,fn(yn,{updateHeader:!0})}function Ce(){P9e(He.value)?st(He.value,!1):Fe.value=ge.value}const Re=F(()=>({format:U.value,...xa(p?.value||{},["defaultValue"]),visible:Et.value})),ut=F(()=>({prev:n["icon-prev"],prevDouble:n["icon-prev-double"],next:n["icon-next"],nextDouble:n["icon-next-double"]})),it=Xt({headerValue:Tt,headerOperations:sn,headerIcons:ut}),gt=Xt({headerValue:Mt,headerOperations:ct,headerIcons:ut}),we=F(()=>({...xf(e,["mode","showTime","shortcuts","shortcutsPosition","dayStartOfWeek","disabledDate","disabledTime","hideTrigger","abbreviation"]),prefixCls:ne,format:ee.value,value:He.value,showConfirmBtn:Qn.value,confirmBtnDisabled:mr.value,timePickerValue:$e.value,timePickerProps:Re.value,extra:n.extra,dateRender:n.cell,startHeaderProps:it,endHeaderProps:gt,footerValue:pt.value,disabled:re.value,visible:Et.value,onCellClick:hn,onCellMouseEnter:wt,onShortcutClick:te,onShortcutMouseEnter:P.value?le:void 0,onShortcutMouseLeave:P.value?oe:void 0,onConfirm:J,onTimePickerSelect:gn,startHeaderMode:ft.value,endHeaderMode:lt.value,onStartHeaderLabelClick:Oe,onEndHeaderLabelClick:Ye,onStartHeaderSelect:dt,onEndHeaderSelect:Dt}));return{prefixCls:ne,refInput:ke,computedFormat:U,computedPlaceholder:X,panelVisible:Et,panelValue:He,inputValue:Xe,focusedIndex:Fe,triggerDisabled:ae,mergedSize:j,mergedError:H,onPanelVisibleChange:Kr,onInputClear:he,onInputChange:xe,onInputPressEnter:Ce,rangePanelProps:we}}});function ZOe(e,t,n,r,o,a){const s=Ie("IconCalendar"),l=Ie("DateRangeInput"),c=Ie("RangePickerPanel"),d=Ie("Trigger");return e.hideTrigger?(z(),qe(c,Yi(Vt({key:1},{...e.$attrs,...e.rangePanelProps})),null,16)):(z(),qe(d,Vt({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(()=>[$(c,Yi(Sa(e.rangePanelProps)),null,16)]),default:de(()=>[vt(e.$slots,"default",{},()=>[$(l,Vt({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}),yo({"suffix-icon":de(()=>[vt(e.$slots,"suffix-icon",{},()=>[$(s)])]),separator:de(()=>[vt(e.$slots,"separator",{},()=>[Ue(je(e.separator||"-"),1)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(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 Tw=Ve(XOe,[["render",ZOe]]);const s0e=Object.assign(xR,{WeekPicker:xw,MonthPicker:Cw,YearPicker:ww,QuarterPicker:Ew,RangePicker:Tw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+xR.name,xR),e.component(n+ww.name,ww),e.component(n+Ew.name,Ew),e.component(n+Cw.name,Cw),e.component(n+xw.name,xw),e.component(n+Tw.name,Tw)}}),W8=["xxl","xl","lg","md","sm","xs"],bx={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 mv=[],JOe=-1,_x={};const G8={matchHandlers:{},dispatch(e,t){return _x=e,mv.length<1?!1:(mv.forEach(n=>{n.func(_x,t)}),!0)},subscribe(e){mv.length===0&&this.register();const t=(++JOe).toString();return mv.push({token:t,func:e}),e(_x,null),t},unsubscribe(e){mv=mv.filter(t=>t.token!==e),mv.length===0&&this.unregister()},unregister(){Object.keys(bx).forEach(e=>{const t=bx[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(bx).forEach(e=>{const t=bx[e];if(!t)return;const n=({matches:o})=>{this.dispatch({..._x,[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 mre(e){return br(e)}function Dh(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(mre(e.value))for(let l=0;l{a=G8.subscribe(s=>{mre(e.value)&&(r.value=s)})}),gi(()=>{a&&G8.unsubscribe(a)}),o}var CR=Se({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=Ae("descriptions"),{mergedSize:a}=wa(r),s=Dh(n,3,!0),l=F(()=>{var T;return(T=br(e.align)?e.align.label:e.align)!=null?T:"left"}),c=F(()=>{var T;return(T=br(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 O=()=>{if(P.length){const L=s.value-M;P[P.length-1].span+=L,D.push(P)}};return T.forEach(L=>{var B,j;const W=Math.min((j=Wi(L)?(B=L.props)==null?void 0:B.span:L.span)!=null?j:1,s.value);M+W>s.value&&(O(),P=[],M=0),P.push({data:L,span:W}),M+=W}),O(),D},v=F(()=>{var T;return p((T=e.data)!=null?T:[])}),g=(T,D)=>{var P,M,O,L,B;return Wi(T)?A5(T,T.children)&&((M=(P=T.children).label)==null?void 0:M.call(P))||((O=T.props)==null?void 0:O.label):(B=(L=t.label)==null?void 0:L.call(t,{label:T.label,index:D,data:T}))!=null?B:En(T.label)?T.label():T.label},y=(T,D)=>{var P,M;return Wi(T)?T:(M=(P=t.value)==null?void 0:P.call(t,{value:T.value,index:D,data:T}))!=null?M:En(T.value)?T.value():T.value},S=T=>$(Bt,null,[$("tr",{class:`${o}-row`},[T.map((D,P)=>$("td",{key:`label-${P}`,class:[`${o}-item-label`,`${o}-item-label-block`],style:d.value,colspan:D.span},[g(D.data,P)]))]),$("tr",{class:`${o}-row`},[T.map((D,P)=>$("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)=>$("tr",{class:`${o}-row`,key:`tr-${D}`},[T.map(P=>$(Bt,null,[$("td",{class:[`${o}-item-label`,`${o}-item-label-block`],style:d.value},[g(P.data,D)]),$("td",{class:[`${o}-item-value`,`${o}-item-value-block`],style:h.value,colspan:P.span*2-1},[y(P.data,D)])]))]),C=(T,D)=>$("tr",{class:`${o}-row`,key:`inline-${D}`},[T.map((P,M)=>$("td",{key:`item-${M}`,class:`${o}-item`,colspan:P.span},[$("div",{class:[`${o}-item-label`,`${o}-item-label-inline`],style:d.value},[g(P.data,M)]),$("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?$("div",{class:`${o}-title`},[P]):null};return()=>{const T=t.default?p(bf(t.default())):v.value;return $("div",{class:E.value},[_(),$("div",{class:`${o}-body`},[$("table",{class:`${o}-table`},[$("tbody",null,[T.map((D,P)=>x(D,P))])])])])}}});const QOe=Se({name:"DescriptionsItem",props:{span:{type:Number,default:1},label:String},setup(){return{prefixCls:Ae("descriptions")}}});function e$e(e,t,n,r,o,a){return vt(e.$slots,"default")}var Aw=Ve(QOe,[["render",e$e]]);const t$e=Object.assign(CR,{DescriptionsItem:Aw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+CR.name,CR),e.component(n+Aw.name,Aw)}});var wR=Se({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=Ae("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),!An(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 $("div",{role:"separator",class:l,style:o.value},[s&&e.direction==="horizontal"&&$("span",{class:[`${n}-text`,`${n}-text-${e.orientation}`]},[s])])}}});const n$e=Object.assign(wR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+wR.name,wR)}}),a0e=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=h7e(a);(s>0||f7e(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}}}},r$e=["top","right","bottom","left"],i$e=Se({name:"Drawer",components:{ClientOnly:oH,ArcoButton:Xo,IconHover:Lo,IconClose:ds},inheritAttrs:!1,props:{visible:{type:Boolean,default:!1},defaultVisible:{type:Boolean,default:!1},placement:{type:String,default:"right",validator:e=>r$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=Ae("drawer"),{t:o}=No(),a=fe(e.defaultVisible),s=F(()=>{var W;return(W=e.visible)!=null?W:a.value}),l=fe(!1),c=F(()=>e.okLoading||l.value),{teleportContainer:d,containerRef:h}=sH({popupContainer:n,visible:s}),p=fe(s.value);let v=!1;const g=W=>{e.escToClose&&W.key===Ho.ESC&&C()&&D(W)},y=()=>{e.escToClose&&!v&&(v=!0,Mi(document.documentElement,"keydown",g))},S=()=>{v&&(v=!1,ro(document.documentElement,"keydown",g))},{zIndex:k,isLastDialog:C}=o3("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 W=>{const H=E,K=await new Promise(async Y=>{var ne;if(En(e.onBeforeOk)){let X=e.onBeforeOk((U=!0)=>Y(U));if((Am(X)||!El(X))&&(l.value=!0),Am(X))try{X=(ne=await X)!=null?ne:!0}catch(U){throw X=!1,U}El(X)&&Y(X)}else Y(!0)});H===E&&(K?(t("ok",W),_()):l.value&&(l.value=!1))},D=W=>{var H;let K=!0;En(e.onBeforeCancel)&&(K=(H=e.onBeforeCancel())!=null?H:!1),K&&(t("cancel",W),_())},P=W=>{e.maskClosable&&D(W)},M=()=>{s.value&&t("open")},O=()=>{s.value||(p.value=!1,B(),t("close"))},{setOverflowHidden:L,resetOverflow:B}=a0e(h);bn(()=>{s.value&&(p.value=!0,L(),y())}),Io(()=>{B(),S()}),Rt(s,W=>{a.value!==W&&(a.value=W),W?(t("beforeOpen"),p.value=!0,L(),y()):(t("beforeClose"),S())});const j=F(()=>{var W;const H={[e.placement]:0,...(W=e.drawerStyle)!=null?W:{}};return["right","left"].includes(e.placement)?H.width=Ze(e.width)?`${e.width}px`:e.width:H.height=Ze(e.height)?`${e.height}px`:e.height,H});return{prefixCls:r,style:j,t:o,mounted:p,computedVisible:s,mergedOkLoading:c,zIndex:k,handleOk:T,handleCancel:D,handleOpen:M,handleClose:O,handleMask:P,isFixed:x,teleportContainer:d}}});function o$e(e,t,n,r,o,a){const s=Ie("icon-close"),l=Ie("icon-hover"),c=Ie("arco-button"),d=Ie("client-only");return z(),qe(d,null,{default:de(()=>[(z(),qe(qm,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ai((z(),Q("div",Vt({key:0,class:`${e.prefixCls}-container`,style:e.isFixed?{zIndex:e.zIndex}:{zIndex:"inherit",position:"absolute"}},e.$attrs),[$(Cs,{name:"fade-drawer",appear:""},{default:de(()=>[e.mask?Ai((z(),Q("div",{key:0,class:ue(`${e.prefixCls}-mask`),onClick:t[0]||(t[0]=(...h)=>e.handleMask&&e.handleMask(...h))},null,2)),[[Qo,e.computedVisible]]):Le("v-if",!0)]),_:1}),$(Cs,{name:`slide-${e.placement}-drawer`,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[Ai(I("div",{class:ue(e.prefixCls),style:Ge(e.style)},[e.header?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-header`)},[vt(e.$slots,"header",{},()=>[e.$slots.title||e.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2)):Le("v-if",!0),e.closable?(z(),Q("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:ue(`${e.prefixCls}-close-btn`),onClick:t[1]||(t[1]=(...h)=>e.handleCancel&&e.handleCancel(...h))},[$(l,null,{default:de(()=>[$(s)]),_:1})],2)):Le("v-if",!0)])],2)):Le("v-if",!0),I("div",{class:ue([`${e.prefixCls}-body`,e.bodyClass]),style:Ge(e.bodyStyle)},[vt(e.$slots,"default")],6),e.footer?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer",{},()=>[e.hideCancel?Le("v-if",!0):(z(),qe(c,Vt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[Ue(je(e.cancelText||e.t("drawer.cancelText")),1)]),_:1},16,["onClick"])),$(c,Vt({type:"primary",loading:e.mergedOkLoading},e.okButtonProps,{onClick:e.handleOk}),{default:de(()=>[Ue(je(e.okText||e.t("drawer.okText")),1)]),_:1},16,["loading","onClick"])])],2)):Le("v-if",!0)],6),[[Qo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],16)),[[Qo,e.computedVisible||e.mounted]]):Le("v-if",!0)],8,["to","disabled"]))]),_:3})}var Iw=Ve(i$e,[["render",o$e]]);const gre=(e,t)=>{let n=I5("drawer");const r=()=>{d.component&&(d.component.props.visible=!1),En(e.onOk)&&e.onOk()},o=()=>{d.component&&(d.component.props.visible=!1),En(e.onCancel)&&e.onCancel()},a=async()=>{await Cn(),n&&(Xc(null,n),document.body.removeChild(n)),n=null,En(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,v])=>{d.component.props[p]=v})},d=$(Iw,{...{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),Xc(d,n),document.body.appendChild(n),{close:s,update:l}},rV=Object.assign(Iw,{open:gre,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+Iw.name,Iw);const r={open:(o,a=e._context)=>gre(o,a)};e.config.globalProperties.$drawer=r},_context:null});function l0e(e){return e===Object(e)&&Object.keys(e).length!==0}function s$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 a$e(e){return e===!1?{block:"end",inline:"nearest"}:l0e(e)?e:{block:"start",inline:"nearest"}}function u0e(e,t){var n=e.isConnected||e.ownerDocument.documentElement.contains(e);if(l0e(t)&&typeof t.behavior=="function")return t.behavior(n?Kj(e,t):[]);if(n){var r=a$e(t);return s$e(Kj(e,r),r.behavior)}}const yre=["success","warning","error","validating"],l$e=e=>{let t="";for(const n of Object.keys(e)){const r=e[n];r&&(!t||yre.indexOf(r)>yre.indexOf(t))&&(t=e[n])}return t},u$e=e=>{const t=[];for(const n of Object.keys(e)){const r=e[n];r&&t.push(r)}return t},c0e=(e,t)=>{const n=t.replace(/[[.]/g,"_").replace(/\]/g,"");return e?`${e}-${n}`:`${n}`},c$e=Se({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=Ae("form"),r=fe(),{id:o,model:a,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:v,size:g,rules:y}=nn(e),{mergedSize:S}=wa(g),k=F(()=>e.layout==="horizontal"&&e.autoLabelWidth),C=[],x=[],E=Xt({}),_=F(()=>Math.max(...Object.values(E))),T=X=>{X&&X.field&&C.push(X)},D=X=>{X&&X.field&&C.splice(C.indexOf(X),1)},P=X=>{C.forEach(U=>{X[U.field]&&U.setField(X[U.field])})},M=(X,U)=>{U&&E[U]!==X&&(E[U]=X)},O=X=>{X&&delete E[X]},L=X=>{const U=X?[].concat(X):[];C.forEach(q=>{(U.length===0||U.includes(q.field))&&q.resetField()})},B=X=>{const U=X?[].concat(X):[];C.forEach(q=>{(U.length===0||U.includes(q.field))&&q.clearValidate()})},j=(X,U)=>{const ee=(r.value||document.body).querySelector(`#${c0e(e.id,X)}`);ee&&u0e(ee,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",...U})},W=X=>{const U=El(e.scrollToFirstError)?void 0:e.scrollToFirstError;j(X,U)},H=X=>{const U=[];return C.forEach(q=>{U.push(q.validate())}),Promise.all(U).then(q=>{const ee={};let re=!1;return q.forEach(ae=>{ae&&(re=!0,ee[ae.field]=ae)}),re&&e.scrollToFirstError&&W(Object.keys(ee)[0]),En(X)&&X(re?ee:void 0),re?ee:void 0})},K=(X,U)=>{const q=[];for(const ee of C)(sr(X)&&X.includes(ee.field)||X===ee.field)&&q.push(ee.validate());return Promise.all(q).then(ee=>{const re={};let ae=!1;return ee.forEach(ie=>{ie&&(ae=!0,re[ie.field]=ie)}),ae&&e.scrollToFirstError&&W(Object.keys(re)[0]),En(U)&&U(ae?re:void 0),ae?re:void 0})},Y=X=>{const U=[];C.forEach(q=>{U.push(q.validate())}),Promise.all(U).then(q=>{const ee={};let re=!1;q.forEach(ae=>{ae&&(re=!0,ee[ae.field]=ae)}),re?(e.scrollToFirstError&&W(Object.keys(ee)[0]),t("submitFailed",{values:a.value,errors:ee},X)):t("submitSuccess",a.value,X),t("submit",{values:a.value,errors:re?ee:void 0},X)})};return ri(iH,Xt({id:o,layout:s,disabled:l,labelAlign:c,labelColProps:d,wrapperColProps:h,labelColStyle:p,wrapperColStyle:v,model:a,size:S,rules:y,fields:C,touchedFields:x,addField:T,removeField:D,validateField:K,setLabelWidth:M,removeLabelWidth:O,maxLabelWidth:_,autoLabelWidth:k})),{cls:F(()=>[n,`${n}-layout-${e.layout}`,`${n}-size-${S.value}`,{[`${n}-auto-label-width`]:e.autoLabelWidth}]),formRef:r,handleSubmit:Y,innerValidate:H,innerValidateField:K,innerResetFields:L,innerClearValidate:B,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)}}}),d$e=["id"];function f$e(e,t,n,r,o,a){return z(),Q("form",{id:e.id,ref:"formRef",class:ue(e.cls),onSubmit:t[0]||(t[0]=us((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[vt(e.$slots,"default")],42,d$e)}var ER=Ve(c$e,[["render",f$e]]),l3=Object.prototype.toString;function V5(e){return l3.call(e)==="[object Array]"}function Ph(e){return l3.call(e)==="[object Object]"}function iV(e){return l3.call(e)==="[object String]"}function h$e(e){return l3.call(e)==="[object Number]"&&e===e}function p$e(e){return l3.call(e)==="[object Boolean]"}function oV(e){return l3.call(e)==="[object Function]"}function v$e(e){return Ph(e)&&Object.keys(e).length===0}function Uv(e){return e==null||e===""}function d0e(e){return V5(e)&&!e.length}var wH=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=wH(e[n],t[n]);if(!r)return!1}return!0},EH=function(e,t){var n=Object.assign({},e);return Object.keys(t||{}).forEach(function(r){var o=n[r],a=t?.[r];n[r]=Ph(o)?Object.assign(Object.assign({},o),a):a||o}),n},m$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})($d),b$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"number"})),this.validate(o&&o.strict?h$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 Uv(this.obj)?this:this.validate(this.obj>=o,this.getValidateMsg("number.min",{min:o}))},t.prototype.max=function(o){return Uv(this.obj)?this:this.validate(this.obj<=o,this.getValidateMsg("number.max",{max:o}))},t.prototype.equal=function(o){return Uv(this.obj)?this:this.validate(this.obj===o,this.getValidateMsg("number.equal",{equal:o}))},t.prototype.range=function(o,a){return Uv(this.obj)?this:this.validate(this.obj>=o&&this.obj<=a,this.getValidateMsg("number.range",{min:o,max:a}))},n.positive.get=function(){return Uv(this.obj)?this:this.validate(this.obj>0,this.getValidateMsg("number.positive"))},n.negative.get=function(){return Uv(this.obj)?this:this.validate(this.obj<0,this.getValidateMsg("number.negative"))},Object.defineProperties(t.prototype,n),t})($d),_$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"array"})),this.validate(o&&o.strict?V5(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(wH(this.obj,o),this.getValidateMsg("array.deepEqual",{value:this.obj,deepEqual:o})):this},n.empty.get=function(){return this.validate(d0e(this.obj),this.getValidateMsg("array.empty",{value:this.obj}))},Object.defineProperties(t.prototype,n),t})($d),S$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"object"})),this.validate(o&&o.strict?Ph(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(wH(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(v$e(this.obj),this.getValidateMsg("object.empty"))},Object.defineProperties(t.prototype,n),t})($d),k$e=(function(e){function t(r,o){e.call(this,r,Object.assign(Object.assign({},o),{type:"boolean"})),this.validate(o&&o.strict?p$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})($d),x$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,}))$/,C$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"),w$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}$/,E$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||x$e.test(this.obj),this.getValidateMsg("type.email"))},n.url.get=function(){return this.type="url",this.validate(this.obj===void 0||C$e.test(this.obj),this.getValidateMsg("type.url"))},n.ip.get=function(){return this.type="ip",this.validate(this.obj===void 0||w$e.test(this.obj),this.getValidateMsg("type.ip"))},Object.defineProperties(t.prototype,n),t})($d),T$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})($d),K8=function(e,t){return new f0e(e,Object.assign({field:"value"},t))};K8.globalConfig={};K8.setGlobalConfig=function(e){K8.globalConfig=e||{}};var f0e=function(t,n){var r=K8.globalConfig,o=Object.assign(Object.assign(Object.assign({},r),n),{validateMessages:EH(r.validateMessages,n.validateMessages)});this.string=new y$e(t,o),this.number=new b$e(t,o),this.array=new _$e(t,o),this.object=new S$e(t,o),this.boolean=new k$e(t,o),this.type=new E$e(t,o),this.custom=new T$e(t,o)},TH=function(t,n){n===void 0&&(n={}),this.schema=t,this.options=n};TH.prototype.messages=function(t){this.options=Object.assign(Object.assign({},this.options),{validateMessages:EH(this.options.validateMessages,t)})};TH.prototype.validate=function(t,n){var r=this;if(!Ph(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(V5(r.schema[l]))for(var c=function(p){var v=r.schema[l][p],g=v.type,y=v.message;if(!g&&!v.validator)throw"You must specify a type to field "+l+"!";var S=Object.assign(Object.assign({},r.options),{message:y,field:l});"ignoreEmptyString"in v&&(S.ignoreEmptyString=v.ignoreEmptyString),"strict"in v&&(S.strict=v.strict);var k=new f0e(t[l],S),C=k.type[g]||null;if(!C)if(v.validator){C=k.custom.validate(v.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(v).forEach(function(x){v.required&&(C=C.isRequired),x!=="message"&&C[x]&&v[x]&&typeof C[x]=="object"&&(C=C[x]),C[x]&&v[x]!==void 0&&typeof C[x]=="function"&&(C=C[x](v[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 h0e=Symbol("RowContextInjectionKey"),p0e=Symbol("GridContextInjectionKey"),v0e=Symbol("GridDataCollectorInjectionKey"),A$e=Se({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=Ae("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=Dh(c,0),p=Dh(d,0),v=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 ri(h0e,Xt({gutter:g,div:o})),{classNames:l,styles:v}}});function I$e(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.classNames),style:Ge(e.styles)},[vt(e.$slots,"default")],6)}var ob=Ve(A$e,[["render",I$e]]);function L$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 W8.forEach(p=>{const v=e.value[p];Ze(v)?h[p]=v:br(v)&&Ze(v[r])&&(h[p]=v[r])}),h})}function D$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 P$e=Se({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=Ae("col"),n=On(h0e,{}),r=F(()=>D$e(e.flex)),o=F(()=>{const{div:p}=n,{span:v,offset:g,order:y,xs:S,sm:k,md:C,lg:x,xl:E,xxl:_}=e,T={[`${t}`]:!p,[`${t}-order-${y}`]:y,[`${t}-${v}`]:!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&&br(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:v}=n,g={};if(Array.isArray(p)&&!v){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(()=>xf(e,W8)),d=L$e(F(()=>({val:e.span,key:"span",...c.value}))),h=Dh(d,24,!0);return{visible:F(()=>!!h.value),classNames:a,styles:F(()=>({...s.value,...l.value}))}}});function R$e(e,t,n,r,o,a){return e.visible?(z(),Q("div",{key:0,class:ue(e.classNames),style:Ge(e.styles)},[vt(e.$slots,"default")],6)):Le("v-if",!0)}var sb=Ve(P$e,[["render",R$e]]);function M$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 O$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 $$e=Se({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=Dh(t,24),l=Dh(r,0),c=Dh(n,0),d=Ae("grid"),h=F(()=>[d]),p=F(()=>[{gap:`${c.value}px ${l.value}px`,"grid-template-columns":`repeat(${s.value}, minmax(0px, 1fr))`}]),v=Xt(new Map),g=F(()=>{const S=[];for(const[k,C]of v.entries())S[k]=C;return S}),y=Xt({overflow:!1,displayIndexList:[],cols:s.value,colGap:l.value});return Os(()=>{y.cols=s.value,y.colGap=l.value}),Os(()=>{const S=O$e({cols:s.value,collapsed:a.value,collapsedRows:o.value,itemDataList:g.value});y.overflow=S.overflow,y.displayIndexList=S.displayIndexList}),ri(p0e,y),ri(v0e,{collectItemData(S,k){v.set(S,k)},removeItemData(S){v.delete(S)}}),{classNames:h,style:p}}});function B$e(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.classNames),style:Ge(e.style)},[vt(e.$slots,"default")],6)}var TR=Ve($$e,[["render",B$e]]);const N$e=Se({name:"GridItem",props:{span:{type:[Number,Object],default:1},offset:{type:[Number,Object],default:0},suffix:{type:Boolean,default:!1}},setup(e){const t=Ae("grid-item"),n=fe(),{computedIndex:r}=cH({itemRef:n,selector:`.${t}`}),o=On(p0e,{overflow:!1,displayIndexList:[],cols:24,colGap:0}),a=On(v0e),s=F(()=>{var k;return(k=o?.displayIndexList)==null?void 0:k.includes(r.value)}),{span:l,offset:c}=nn(e),d=Dh(l,1),h=Dh(c,0),p=F(()=>M$e(o.cols,{...e,span:d.value,offset:h.value})),v=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)}),gi(()=>{r.value!==-1&&a?.removeItemData(r.value)}),{classNames:v,style:S,domRef:n,overflow:F(()=>o.overflow)}}});function F$e(e,t,n,r,o,a){return z(),Q("div",{ref:"domRef",class:ue(e.classNames),style:Ge(e.style)},[vt(e.$slots,"default",{overflow:e.overflow})],6)}var Lw=Ve(N$e,[["render",F$e]]);const I4=Object.assign(TR,{Row:ob,Col:sb,Item:Lw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+ob.name,ob),e.component(n+sb.name,sb),e.component(n+TR.name,TR),e.component(n+Lw.name,Lw)}}),j$e=Se({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=Ae("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 V$e(e,t,n,r,o,a){const s=Ie("Trigger");return z(),qe(s,{class:ue(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(()=>[vt(e.$slots,"content",{},()=>[Ue(je(e.content),1)])]),default:de(()=>[vt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","content-class","content-style","arrow-class","arrow-style","popup-container","onPopupVisibleChange"])}var AR=Ve(j$e,[["render",V$e]]);const Zc=Object.assign(AR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+AR.name,AR)}}),z$e=Se({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=Ae("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)}}}}),U$e=["stroke-width","stroke-linecap","stroke-linejoin"];function H$e(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,U$e)}var IR=Ve(z$e,[["render",H$e]]);const AH=Object.assign(IR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IR.name,IR)}}),W$e=Se({name:"FormItemLabel",components:{ResizeObserver:x0,Tooltip:Zc,IconQuestionCircle:AH},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=Ae("form-item-label"),t=On(iH,void 0),n=_o(),r=fe(),o=()=>{r.value&&Ze(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)};return bn(()=>{r.value&&Ze(r.value.offsetWidth)&&t?.setLabelWidth(r.value.offsetWidth,n?.uid)}),Io(()=>{t?.removeLabelWidth(n?.uid)}),{prefixCls:e,labelRef:r,handleResize:o}}});function G$e(e,t,n,r,o,a){const s=Ie("icon-question-circle"),l=Ie("Tooltip"),c=Ie("ResizeObserver");return z(),qe(c,{onResize:e.handleResize},{default:de(()=>[(z(),qe(Wa(e.component),Vt({ref:"labelRef",class:e.prefixCls},e.attrs),{default:de(()=>[e.required&&e.asteriskPosition==="start"?(z(),Q("strong",{key:0,class:ue(`${e.prefixCls}-required-symbol`)},t[0]||(t[0]=[I("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[I("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)):Le("v-if",!0),vt(e.$slots,"default"),e.tooltip?(z(),qe(l,{key:1,content:e.tooltip},{default:de(()=>[$(s,{class:ue(`${e.prefixCls}-tooltip`)},null,8,["class"])]),_:1},8,["content"])):Le("v-if",!0),e.required&&e.asteriskPosition==="end"?(z(),Q("strong",{key:2,class:ue(`${e.prefixCls}-required-symbol`)},t[1]||(t[1]=[I("svg",{fill:"currentColor",viewBox:"0 0 1024 1024",width:"1em",height:"1em"},[I("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)):Le("v-if",!0),Ue(" "+je(e.showColon?":":""),1)]),_:3},16,["class"]))]),_:3},8,["onResize"])}var K$e=Ve(W$e,[["render",G$e]]);const q$e=Se({name:"FormItemMessage",props:{error:{type:Array,default:()=>[]},help:String},setup(){return{prefixCls:Ae("form-item-message")}}});function Y$e(e,t,n,r,o,a){return e.error.length>0?(z(!0),Q(Bt,{key:0},vn(e.error,s=>(z(),qe(Cs,{key:s,name:"form-blink",appear:""},{default:de(()=>[I("div",{role:"alert",class:ue([e.prefixCls])},je(s),3)]),_:2},1024))),128)):e.help||e.$slots.help?(z(),qe(Cs,{key:1,name:"form-blink",appear:""},{default:de(()=>[I("div",{class:ue([e.prefixCls,`${e.prefixCls}-help`])},[vt(e.$slots,"help",{},()=>[Ue(je(e.help),1)])],2)]),_:3})):Le("v-if",!0)}var X$e=Ve(q$e,[["render",Y$e]]);const Z$e=Se({name:"FormItem",components:{ArcoRow:ob,ArcoCol:sb,FormItemLabel:K$e,FormItemMessage:X$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=Ae("form-item"),{field:n}=nn(e),r=On(iH,{}),{autoLabelWidth:o,layout:a}=nn(r),{i18nMessage:s}=No(),l=F(()=>{var q;const ee={...(q=e.labelColProps)!=null?q:r.labelColProps};return e.labelColFlex?ee.flex=e.labelColFlex:r.autoLabelWidth&&(ee.flex=`${r.maxLabelWidth}px`),ee}),c=F(()=>{var q;const ee={...(q=e.wrapperColProps)!=null?q:r.wrapperColProps};return n.value&&(ee.id=c0e(r.id,n.value)),(e.labelColFlex||r.autoLabelWidth)&&(ee.flex="auto"),ee}),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=hm(r.model,e.field),v=Xt({}),g=Xt({}),y=F(()=>l$e(v)),S=F(()=>u$e(g)),k=fe(!1),C=F(()=>hm(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,ee,re;const ae=[].concat((re=(ee=e.rules)!=null?ee:(q=r?.rules)==null?void 0:q[e.field])!=null?re:[]),ie=ae.some(ke=>ke.required);return e.required&&!ie?[{required:!0}].concat(ae):ae}),D=F(()=>T.value.some(q=>q.required)),P=e.noStyle?On(qj,void 0):void 0,M=(q,{status:ee,message:re})=>{v[q]=ee,g[q]=re,e.noStyle&&P?.updateValidateState(q,{status:ee,message:re})},O=F(()=>e.feedback&&E.value?E.value:void 0),L=()=>{var q;if(k.value)return Promise.resolve();const ee=T.value;if(!n.value||ee.length===0)return y.value&&W(),Promise.resolve();const re=n.value,ae=C.value;M(re,{status:"",message:""});const ie=new TH({[re]:ee.map(({...ke})=>(!ke.type&&!ke.validator&&(ke.type="string"),ke))},{ignoreEmptyString:!0,validateMessages:(q=s.value.form)==null?void 0:q.validateMessages});return new Promise(ke=>{ie.validate({[re]:ae},Fe=>{var ge;const _e=!!Fe?.[re];M(re,{status:_e?"error":"",message:(ge=Fe?.[re].message)!=null?ge:""});const ze=_e?{label:e.label,field:n.value,value:Fe[re].value,type:Fe[re].type,isRequiredError:!!Fe[re].requiredError,message:Fe[re].message}:void 0;ke(ze)})})},B=F(()=>[].concat(e.validateTrigger)),j=F(()=>B.value.reduce((q,ee)=>{switch(ee){case"change":return q.onChange=()=>{L()},q;case"input":return q.onInput=()=>{Cn(()=>{L()})},q;case"focus":return q.onFocus=()=>{L()},q;case"blur":return q.onBlur=()=>{L()},q;default:return q}},{}));ri(qj,Xt({eventHandlers:j,size:r&&Lu(r,"size"),disabled:x,error:_,feedback:O,updateValidateState:M}));const W=()=>{n.value&&M(n.value,{status:"",message:""})},Y=Xt({field:n,disabled:x,error:_,validate:L,clearValidate:W,resetField:()=>{W(),k.value=!0,r?.model&&n.value&&H8(r.model,n.value,p),Cn(()=>{k.value=!1})},setField:q=>{var ee,re;n.value&&(k.value=!0,"value"in q&&r?.model&&n.value&&H8(r.model,n.value,q.value),(q.status||q.message)&&M(n.value,{status:(ee=q.status)!=null?ee:"",message:(re=q.message)!=null?re:""}),Cn(()=>{k.value=!1}))}});bn(()=>{var q;Y.field&&((q=r.addField)==null||q.call(r,Y))}),Io(()=>{var q;Y.field&&((q=r.removeField)==null||q.call(r,Y))});const ne=F(()=>[t,`${t}-layout-${r.layout}`,{[`${t}-error`]:_.value,[`${t}-status-${E.value}`]:!!E.value},e.rowClass]),X=F(()=>[`${t}-label-col`,{[`${t}-label-col-left`]:r.labelAlign==="left",[`${t}-label-col-flex`]:r.autoLabelWidth||e.labelColFlex}]),U=F(()=>[`${t}-wrapper-col`,{[`${t}-wrapper-col-flex`]:!c.value}]);return{prefixCls:t,cls:ne,isRequired:D,isError:_,finalMessage:S,mergedLabelCol:l,mergedWrapperCol:c,labelColCls:X,autoLabelWidth:o,layout:a,mergedLabelStyle:d,wrapperColCls:U,mergedWrapperStyle:h}}});function J$e(e,t,n,r,o,a){var s;const l=Ie("FormItemLabel"),c=Ie("ArcoCol"),d=Ie("FormItemMessage"),h=Ie("ArcoRow");return e.noStyle?vt(e.$slots,"default",{key:0}):(z(),qe(h,Vt({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?Le("v-if",!0):(z(),qe(c,Vt({key:0,class:e.labelColCls,style:e.mergedLabelStyle},e.mergedLabelCol),{default:de(()=>[$(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?vt(e.$slots,"label",{key:0},()=>[Ue(je(e.label),1)]):Le("v-if",!0)]),_:3},8,["required","show-colon","asterisk-position","component","attrs","tooltip"])]),_:3},16,["class","style"])),$(c,Vt({class:e.wrapperColCls,style:e.mergedWrapperStyle},e.mergedWrapperCol),{default:de(()=>[I("div",{class:ue(`${e.prefixCls}-content-wrapper`)},[I("div",{class:ue([`${e.prefixCls}-content`,{[`${e.prefixCls}-content-flex`]:e.contentFlex},e.contentClass])},[vt(e.$slots,"default")],2)],2),e.isError||e.$slots.help||e.help?(z(),qe(d,{key:0,error:e.finalMessage,help:e.help},yo({_:2},[e.$slots.help?{name:"help",fn:de(()=>[vt(e.$slots,"help")]),key:"0"}:void 0]),1032,["error","help"])):Le("v-if",!0),e.$slots.extra||e.extra?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-extra`)},[vt(e.$slots,"extra",{},()=>[Ue(je(e.extra),1)])],2)):Le("v-if",!0)]),_:3},16,["class","style"])]),_:3},16,["class","wrap","div"]))}var Dw=Ve(Z$e,[["render",J$e]]);const Q$e=Object.assign(ER,{Item:Dw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+ER.name,ER),e.component(n+Dw.name,Dw)}}),eBe=Se({name:"Icon",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(e){const t=Ae("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 tBe(e,t,n,r,o,a){return z(),Q("svg",{class:ue(e.cls),style:Ge(e.innerStyle),fill:"currentColor"},[vt(e.$slots,"default")],6)}var Pw=Ve(eBe,[["render",tBe]]);function nBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const bre=[],rBe=e=>{const{src:t,extraProps:n={}}=e;if(!K_&&t?.length&&!bre.includes(t)){const r=document.createElement("script");r.setAttribute("src",t),r.setAttribute("data-namespace",t),bre.push(t),document.body.appendChild(r)}return Se({name:"IconFont",props:{type:String,size:[Number,String],rotate:Number,spin:Boolean},setup(r,{slots:o}){return()=>{var a;const s=r.type?$("use",{"xlink:href":`#${r.type}`},null):(a=o.default)==null?void 0:a.call(o);return $(Pw,Vt(r,n),nBe(s)?s:{default:()=>[s]})}}})},iBe=Object.assign(Pw,{addFromIconFontCn:rBe,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+Pw.name,Pw)}}),oBe=Se({name:"ImageFooter",props:{title:{type:String},description:{type:String}},setup(){return{prefixCls:Ae("image-footer")}}}),sBe=["title"],aBe=["title"];function lBe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[e.title||e.description?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-caption`)},[e.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-caption-title`),title:e.title},je(e.title),11,sBe)):Le("v-if",!0),e.description?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-caption-description`),title:e.description},je(e.description),11,aBe)):Le("v-if",!0)],2)):Le("v-if",!0),e.$slots.extra?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-extra`)},[vt(e.$slots,"extra")],2)):Le("v-if",!0)],2)}var uBe=Ve(oBe,[["render",lBe]]);const cBe=Se({name:"ImagePreviewArrow",components:{IconLeft:Al,IconRight:Hi},props:{onPrev:{type:Function},onNext:{type:Function}},setup(){return{prefixCls:Ae("image-preview-arrow")}}});function dBe(e,t,n,r,o,a){const s=Ie("icon-left"),l=Ie("icon-right");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue([`${e.prefixCls}-left`,{[`${e.prefixCls}-disabled`]:!e.onPrev}]),onClick:t[0]||(t[0]=c=>{c.preventDefault(),e.onPrev&&e.onPrev()})},[$(s)],2),I("div",{class:ue([`${e.prefixCls}-right`,{[`${e.prefixCls}-disabled`]:!e.onNext}]),onClick:t[1]||(t[1]=c=>{c.preventDefault(),e.onNext&&e.onNext()})},[$(l)],2)],2)}var fBe=Ve(cBe,[["render",dBe]]);function hBe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var q8=Se({name:"ImagePreviewAction",components:{Tooltip:Zc},inheritAttrs:!1,props:{name:{type:String},disabled:{type:Boolean}},setup(e,{slots:t,attrs:n}){const r=Ae("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=$("div",Vt({class:[`${r}`,{[`${r}-disabled`]:s}],onMousedown:d=>{d.preventDefault()}},n),[$("span",{class:`${r}-content`},[l])]);return a?$(Zc,{class:`${r}-tooltip`,content:a},hBe(c)?c:{default:()=>[c]}):c}}}),pBe=Se({name:"ImagePreviewToolbar",components:{RenderFunction:Jh,PreviewAction:q8},props:{actions:{type:Array,default:()=>[]},actionsLayout:{type:Array,default:()=>[]}},setup(e){const{actions:t,actionsLayout:n}=nn(e),r=Ae("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 vBe(e,t,n,r,o,a){const s=Ie("RenderFunction"),l=Ie("PreviewAction");return z(),Q("div",{class:ue(e.prefixCls)},[(z(!0),Q(Bt,null,vn(e.resultActions,c=>(z(),qe(l,{key:c.key,name:c.name,disabled:c.disabled,onClick:c.onClick},{default:de(()=>[$(s,{"render-func":c.content},null,8,["render-func"])]),_:2},1032,["name","disabled","onClick"]))),128)),vt(e.$slots,"default")],2)}var mBe=Ve(pBe,[["render",vBe]]);function m0e(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 gBe(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]=gBe(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()},v=y=>{y.target===y.currentTarget&&(y.preventDefault&&y.preventDefault(),a.value=!0,s=y.pageX,l=y.pageY,c=[...o.value],Mi(window,"mousemove",h,!1),Mi(window,"mouseup",p,!1))};function g(){ro(window,"mousemove",h,!1),ro(window,"mouseup",p,!1)}return Os(y=>{n.value&&Mi(n.value,"mousedown",v),y(()=>{n.value&&ro(n.value,"mousedown",v),g()})}),Rt([r],()=>{Cn(()=>d())}),{translate:o,moving:a,resetTranslate(){o.value=[0,0]}}}const bBe=Se({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=Ae("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)}}}}),_Be=["stroke-width","stroke-linecap","stroke-linejoin"];function SBe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,_Be)}var LR=Ve(bBe,[["render",SBe]]);const g0e=Object.assign(LR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LR.name,LR)}}),kBe=Se({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=Ae("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)}}}}),xBe=["stroke-width","stroke-linecap","stroke-linejoin"];function CBe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,xBe)}var DR=Ve(kBe,[["render",CBe]]);const y0e=Object.assign(DR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DR.name,DR)}}),wBe=Se({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=Ae("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)}}}}),EBe=["stroke-width","stroke-linecap","stroke-linejoin"];function TBe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,EBe)}var PR=Ve(wBe,[["render",TBe]]);const U5=Object.assign(PR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PR.name,PR)}}),ABe=Se({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=Ae("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)}}}}),IBe=["stroke-width","stroke-linecap","stroke-linejoin"];function LBe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,IBe)}var RR=Ve(ABe,[["render",LBe]]);const b0e=Object.assign(RR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RR.name,RR)}}),DBe=Se({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=Ae("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)}}}}),PBe=["stroke-width","stroke-linecap","stroke-linejoin"];function RBe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,PBe)}var MR=Ve(DBe,[["render",RBe]]);const _0e=Object.assign(MR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MR.name,MR)}}),MBe=Se({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=Ae("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)}}}}),OBe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Be(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m5.5 11.5 5-2.5h1v32M34 11.5 39 9h1v32"},null,-1),I("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 17h1v1h-1v-1ZM24 30h1v1h-1v-1Z"},null,-1)]),14,OBe)}var OR=Ve(MBe,[["render",$Be]]);const S0e=Object.assign(OR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OR.name,OR)}});function BBe(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 NBe(e,t){const{popupContainer:n}=nn(t);return F(()=>(cs(n.value)?Xhe(n.value):n.value)||e)}const wd=[25,33,50,67,75,80,90,100,110,125,150,175,200,250,300,400,500].map(e=>+(e/100).toFixed(2)),k0e=wd[0],x0e=wd[wd.length-1];function FBe(e=1,t="zoomIn"){let n=wd.indexOf(e);return n===-1&&(n=VBe(e)),t==="zoomIn"?n===wd.length-1?e:wd[n+1]:n===0?e:wd[n-1]}function jBe(e,t=1.1,n="zoomIn"){const r=n==="zoomIn"?t:1/t,o=Number.parseFloat((e*r).toFixed(3));return Math.min(x0e,Math.max(k0e,o))}function VBe(e){let t=wd.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}=No(),{src:r,popupContainer:o,visible:a,defaultVisible:s,maskClosable:l,actionsLayout:c,defaultScale:d,zoomRate:h}=nn(e),p=fe(),v=fe(),g=Ae("image-preview"),[y,S]=fa(s.value,Xt({value:a})),k=F(()=>[g,{[`${g}-hide`]:!y.value}]),C=NBe(document.body,Xt({popupContainer:o})),x=F(()=>C.value===document.body),{zIndex:E}=o3("dialog",{visible:y}),_=F(()=>({...x.value?{zIndex:E.value,position:"fixed"}:{zIndex:"inherit",position:"absolute"}})),{isLoading:T,isLoaded:D,setLoadStatus:P}=m0e(),M=fe(0),O=fe(d.value),{translate:L,moving:B,resetTranslate:j}=yBe(Xt({wrapperEl:p,imageEl:v,visible:y,scale:O})),W=fe(!1);let H=null;const K=()=>{!W.value&&(W.value=!0),H&&clearTimeout(H),H=setTimeout(()=>{W.value=!1},1e3)};BBe(Xt({container:C,hidden:y}));function Y(){M.value=0,O.value=d.value,j()}const ne=ze=>c.value.includes(ze),X=ze=>{switch(ze.stopPropagation(),ze.preventDefault(),ze.key){case Ho.ESC:e.escToClose&&ae();break;case Ho.ARROW_LEFT:e.groupArrowProps.onPrev&&e.groupArrowProps.onPrev();break;case Ho.ARROW_RIGHT:e.groupArrowProps.onNext&&e.groupArrowProps.onNext();break;case Ho.ARROW_UP:ne("zoomIn")&&_e("zoomIn");break;case Ho.ARROW_DOWN:ne("zoomOut")&&_e("zoomOut");break;case Ho.SPACE:ne("originalSize")&&ke(1);break}},U=Im(ze=>{if(ze.preventDefault(),ze.stopPropagation(),!e.wheelZoom)return;const Je=(ze.deltaY||ze.deltaX)>0?"zoomOut":"zoomIn",Te=jBe(O.value,h.value,Je);ke(Te)});let q=!1;const ee=()=>{Cn(()=>{var ze;(ze=p?.value)==null||ze.focus()}),e.keyboard&&!q&&(q=!0,Mi(C.value,"keydown",X))},re=()=>{q&&(q=!1,ro(C.value,"keydown",X))};Rt([r,y],()=>{y.value?(Y(),P("loading"),ee()):re()});function ae(){y.value&&(t("close"),t("update:visible",!1),S(!1))}function ie(ze){var Qe;(Qe=p?.value)==null||Qe.focus(),l.value&&ze.target===ze.currentTarget&&ae()}function ke(ze){O.value!==ze&&(O.value=ze,K())}function Fe(){const ze=p.value.getBoundingClientRect(),Qe=v.value.getBoundingClientRect(),Je=ze.height/(Qe.height/O.value),Te=ze.width/(Qe.width/O.value),ve=Math.max(Je,Te);ke(ve)}function ge(ze){const Je=ze==="clockwise"?(M.value+$R)%360:M.value===0?360-$R:M.value-$R;M.value=Je}function _e(ze){const Qe=FBe(O.value,ze);ke(Qe)}return Io(()=>{re()}),{prefixCls:g,classNames:k,container:C,wrapperStyles:_,scale:O,translate:L,rotate:M,moving:B,mergedVisible:y,isLoading:T,isLoaded:D,scaleValueVisible:W,refWrapper:p,refImage:v,onWheel:U,onMaskClick:ie,onCloseClick:ae,onImgLoad(){P("loaded")},onImgError(){P("error")},actions:F(()=>[{key:"fullScreen",name:n("imagePreview.fullScreen"),content:()=>da(U5),onClick:()=>Fe()},{key:"rotateRight",name:n("imagePreview.rotateRight"),content:()=>da(_0e),onClick:()=>ge("clockwise")},{key:"rotateLeft",name:n("imagePreview.rotateLeft"),content:()=>da(b0e),onClick:()=>ge("counterclockwise")},{key:"zoomIn",name:n("imagePreview.zoomIn"),content:()=>da(y0e),onClick:()=>_e("zoomIn"),disabled:O.value===x0e},{key:"zoomOut",name:n("imagePreview.zoomOut"),content:()=>da(g0e),onClick:()=>_e("zoomOut"),disabled:O.value===k0e},{key:"originalSize",name:n("imagePreview.originalSize"),content:()=>da(S0e),onClick:()=>ke(1)}])}}});const UBe=["src"];function HBe(e,t,n,r,o,a){const s=Ie("IconLoading"),l=Ie("PreviewToolbar"),c=Ie("IconClose"),d=Ie("PreviewArrow");return z(),qe(qm,{to:e.container,disabled:!e.renderToBody},[I("div",{class:ue(e.classNames),style:Ge(e.wrapperStyles)},[$(Cs,{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(()=>[Ai(I("div",{class:ue(`${e.prefixCls}-mask`)},null,2),[[Qo,e.mergedVisible]])]),_:1}),e.mergedVisible?(z(),Q("div",{key:0,ref:"refWrapper",tabindex:"0",class:ue(`${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"]))},[Le(" img "),I("div",{class:ue(`${e.prefixCls}-img-container`),style:Ge({transform:`scale(${e.scale}, ${e.scale})`}),onClick:t[4]||(t[4]=(...h)=>e.onMaskClick&&e.onMaskClick(...h))},[(z(),Q("img",{ref:"refImage",key:e.src,src:e.src,class:ue([`${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,UBe))],6),Le(" loading "),e.isLoading?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-loading`)},[$(s)],2)):Le("v-if",!0),Le(" scale value "),$(Cs,{name:"image-fade"},{default:de(()=>[e.scaleValueVisible?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-scale-value`)},je((e.scale*100).toFixed(0))+"% ",3)):Le("v-if",!0)]),_:1}),Le(" toolbar "),e.isLoaded&&e.actionsLayout.length?(z(),qe(l,{key:1,actions:e.actions,"actions-layout":e.actionsLayout},{default:de(()=>[vt(e.$slots,"actions")]),_:3},8,["actions","actions-layout"])):Le("v-if",!0),Le(" close btn "),e.closable?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-close-btn`),onClick:t[5]||(t[5]=(...h)=>e.onCloseClick&&e.onCloseClick(...h))},[$(c)],2)):Le("v-if",!0),Le(" group arrow "),e.inGroup?(z(),qe(d,Yi(Vt({key:3},e.groupArrowProps)),null,16)):Le("v-if",!0)],34)):Le("v-if",!0)],6)],8,["to","disabled"])}var ay=Ve(zBe,[["render",HBe]]);function _re(e){if(An(e))return;if(!Ze(e)&&/^\d+(%)$/.test(e))return e;const t=parseInt(e,10);return Ze(t)?`${t}px`:void 0}const C0e=Symbol("PreviewGroupInjectionKey");let WBe=0;const GBe=Se({name:"Image",components:{IconImageClose:O5,IconLoading:Xa,ImageFooter:uBe,ImagePreview:ay},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}=No(),{height:a,width:s,hideFooter:l,title:c,description:d,src:h,footerPosition:p,defaultPreviewVisible:v,previewVisible:g,preview:y,previewProps:S}=nn(e),k=On(C0e,void 0),C=Ae("image"),x=fe(),{isLoaded:E,isError:_,isLoading:T,setLoadStatus:D}=m0e(),P=F(()=>({width:_re(s?.value),height:_re(a?.value)})),M=F(()=>e.fit?{objectFit:e.fit}:{}),O=F(()=>[`${C}`,{[`${C}-loading`]:T.value,[`${C}-loading-error`]:_.value,[`${C}-with-footer-inner`]:E&&B&&p.value==="inner",[`${C}-with-footer-outer`]:E&&B&&p.value==="outer"},t.class]),L=F(()=>[P.value,t.style]),B=F(()=>c?.value||d?.value||n.extra?El(l.value)?!l.value&&E.value:l.value==="never":!1),j=F(()=>xa(t,["class","style"])),[W,H]=fa(v.value,Xt({value:g})),K=F(()=>!k?.preview&&y.value);Os(()=>{K_||!x.value||(x.value.src=h?.value,D("loading"))});const Y=WBe++;Os(ee=>{var re,ae,ie;const ke=(ie=k?.registerImageUrl)==null?void 0:ie.call(k,Y,((ae=(re=S?.value)==null?void 0:re.src)!=null?ae:h?.value)||"",y.value);ee(()=>{ke?.()})});function ne(){D("loaded")}function X(){D("error")}function U(){y.value&&(k?.preview?k.preview(Y):(r("preview-visible-change",!0),H(!0)))}function q(){r("preview-visible-change",!1),H(!1)}return{t:o,refImg:x,prefixCls:C,wrapperClassNames:O,wrapperStyles:L,showFooter:B,imgProps:j,imgStyle:P,isLoaded:E,isError:_,isLoading:T,mergedPreviewVisible:W,mergePreview:K,onImgLoaded:ne,onImgLoadError:X,onImgClick:U,onPreviewClose:q,fitStyle:M}}}),KBe=["title","alt"];function qBe(e,t,n,r,o,a){const s=Ie("IconImageClose"),l=Ie("IconLoading"),c=Ie("ImageFooter"),d=Ie("ImagePreview");return z(),Q("div",{class:ue(e.wrapperClassNames),style:Ge(e.wrapperStyles)},[I("img",Vt({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,KBe),e.isLoaded?Le("v-if",!0):(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-overlay`)},[e.isError?vt(e.$slots,"error",{key:0},()=>[I("div",{class:ue(`${e.prefixCls}-error`)},[I("div",{class:ue(`${e.prefixCls}-error-icon`)},[vt(e.$slots,"error-icon",{},()=>[$(s)])],2),e.alt||e.description?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-error-alt`)},je(e.alt||e.description),3)):Le("v-if",!0)],2)]):Le("v-if",!0),e.isLoading&&(e.showLoader||e.$slots.loader)?vt(e.$slots,"loader",{key:1},()=>[I("div",{class:ue([`${e.prefixCls}-loader`])},[I("div",{class:ue(`${e.prefixCls}-loader-spin`)},[$(l),I("div",{class:ue(`${e.prefixCls}-loader-spin-text`)},je(e.t("image.loading")),3)],2)],2)]):Le("v-if",!0)],2)),e.showFooter?(z(),qe(c,{key:1,class:ue(e.footerClass),"prefix-cls":e.prefixCls,title:e.title,description:e.description},yo({_:2},[e.$slots.extra?{name:"extra",fn:de(()=>[vt(e.$slots,"extra")]),key:"0"}:void 0]),1032,["class","prefix-cls","title","description"])):Le("v-if",!0),e.isLoaded&&e.mergePreview?(z(),qe(d,Vt({key:2,src:e.src},e.previewProps,{visible:e.mergedPreviewVisible,"render-to-body":e.renderToBody,onClose:e.onPreviewClose}),{actions:de(()=>[vt(e.$slots,"preview-actions")]),_:3},16,["src","visible","render-to-body","onClose"])):Le("v-if",!0)],6)}var BR=Ve(GBe,[["render",qBe]]),YBe=Se({name:"ImagePreviewGroup",components:{ImagePreview:ay},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,Xt({value:r})),h=L=>{L!==c.value&&(t("visible-change",L),t("update:visible",L),d(L))},p=F(()=>new Map(sr(n?.value)?n?.value.map((L,B)=>[B,{url:L,canPreview:!0}]):[])),v=fe(new Map(p.value||[])),g=F(()=>Array.from(v.value.keys())),y=F(()=>g.value.length);function S(L,B,j){return p.value.has(L)||v.value.set(L,{url:B,canPreview:j}),function(){p.value.has(L)||v.value.delete(L)}}Rt(p,()=>{v.value=new Map(p.value||[])});const[k,C]=fa(s.value,Xt({value:a})),x=L=>{L!==k.value&&(t("change",L),t("update:current",L),C(L))},E=F(()=>g.value[k.value]),_=L=>{const B=g.value.indexOf(L);B!==k.value&&x(B)},T=F(()=>{var L;return(L=v.value.get(E.value))==null?void 0:L.url});ri(C0e,Xt({registerImageUrl:S,preview:L=>{h(!0),_(L)}}));const D=F(()=>{const L=(j,W)=>{var H;for(let K=j;K<=W;K++){const Y=g.value[K];if((H=v.value.get(Y))!=null&&H.canPreview)return K}},B=L(k.value+1,y.value-1);return An(B)&&l.value?L(0,k.value-1):B}),P=F(()=>{const L=(j,W)=>{var H;for(let K=j;K>=W;K--){const Y=g.value[K];if((H=v.value.get(Y))!=null&&H.canPreview)return K}},B=L(k.value-1,0);return An(B)&&l.value?L(y.value-1,k.value+1):B}),M=F(()=>An(P.value)?void 0:()=>{!An(P.value)&&x(P.value)}),O=F(()=>An(D.value)?void 0:()=>{!An(D.value)&&x(D.value)});return{mergedVisible:c,currentUrl:T,prevIndex:P,nextIndex:D,onClose(){h(!1)},groupArrowProps:Xt({onPrev:M,onNext:O})}}});function XBe(e,t,n,r,o,a){const s=Ie("ImagePreview");return z(),Q(Bt,null,[vt(e.$slots,"default"),$(s,Vt({...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}),yo({_:2},[e.$slots.actions?{name:"actions",fn:de(()=>[vt(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 ab=Ve(YBe,[["render",XBe]]);const ZBe=Object.assign(BR,{Preview:ay,PreviewGroup:ab,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+BR.name,BR),e.component(n+ay.name,ay),e.component(n+ab.name,ab),e.component(n+q8.name,q8)}}),w0e=Symbol("LayoutSiderInjectionKey"),E0e=Symbol("SiderInjectionKey");var JBe=Se({name:"Layout",props:{hasSider:{type:Boolean}},setup(e){const t=fe([]),n=Ae("layout"),r=F(()=>[n,{[`${n}-has-sider`]:e.hasSider||t.value.length}]);return ri(w0e,{onSiderMount:o=>t.value.push(o),onSiderUnMount:o=>{t.value=t.value.filter(a=>a!==o)}}),{classNames:r}}});function QBe(e,t,n,r,o,a){return z(),Q("section",{class:ue(e.classNames)},[vt(e.$slots,"default")],2)}var NR=Ve(JBe,[["render",QBe]]);const eNe=Se({name:"LayoutHeader",setup(){return{classNames:[Ae("layout-header")]}}});function tNe(e,t,n,r,o,a){return z(),Q("header",{class:ue(e.classNames)},[vt(e.$slots,"default")],2)}var Rw=Ve(eNe,[["render",tNe]]);const nNe=Se({name:"LayoutContent",setup(){return{classNames:[Ae("layout-content")]}}});function rNe(e,t,n,r,o,a){return z(),Q("main",{class:ue(e.classNames)},[vt(e.$slots,"default")],2)}var Mw=Ve(nNe,[["render",rNe]]);const iNe=Se({name:"LayoutFooter",setup(){return{classNames:[Ae("layout-footer")]}}});function oNe(e,t,n,r,o,a){return z(),Q("footer",{class:ue(e.classNames)},[vt(e.$slots,"default")],2)}var Ow=Ve(iNe,[["render",oNe]]);const sNe=Se({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=Ae("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)}}}}),aNe=["stroke-width","stroke-linecap","stroke-linejoin"];function lNe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M40 17v2h-2v-2h2ZM25 17v2h-2v-2h2ZM10 17v2H8v-2h2ZM40 29v2h-2v-2h2ZM25 29v2h-2v-2h2ZM10 29v2H8v-2h2Z"},null,-1)]),14,aNe)}var FR=Ve(sNe,[["render",lNe]]);const T0e=Object.assign(FR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FR.name,FR)}}),uNe=Se({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=Ae("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)}}}}),cNe=["stroke-width","stroke-linecap","stroke-linejoin"];function dNe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M17 8h2v2h-2V8ZM17 23h2v2h-2v-2ZM17 38h2v2h-2v-2ZM29 8h2v2h-2V8ZM29 23h2v2h-2v-2ZM29 38h2v2h-2v-2Z"},null,-1)]),14,cNe)}var jR=Ve(uNe,[["render",dNe]]);const H5=Object.assign(jR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jR.name,jR)}});var fNe=Se({name:"ResizeTrigger",components:{ResizeObserver:Dd,IconDragDot:T0e,IconDragDotVertical:H5},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 hNe(e,t,n,r,o,a){const s=Ie("IconDragDot"),l=Ie("IconDragDotVertical"),c=Ie("ResizeObserver");return z(),qe(c,{onResize:e.onResize},{default:de(()=>[I("div",{class:ue(e.classNames)},[Le(" @slot 自定义内容 "),vt(e.$slots,"default",{},()=>[I("div",{class:ue(`${e.prefixCls}-icon-wrapper`)},[Le(" @slot 自定义 icon "),vt(e.$slots,"icon",{},()=>[e.isHorizontal?(z(),qe(s,{key:0,class:ue(`${e.prefixCls}-icon`)},null,8,["class"])):(z(),qe(l,{key:1,class:ue(`${e.prefixCls}-icon`)},null,8,["class"]))])],2)])],2)]),_:3},8,["onResize"])}var A0e=Ve(fNe,[["render",hNe]]);const I0e="left",L0e="right",IH="top",LH="bottom",pNe=[I0e,L0e,IH,LH];function Sre(e,t){if(e===0)return 0;const n=e-t;return n<=0?0:n}function VR(e){return[IH,LH].indexOf(e)>-1}const vNe=Se({name:"ResizeBox",components:{ResizeTrigger:A0e},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,Xt({value:r})),[l,c]=fa(null,Xt({value:n})),d=fe(),h=Xt({}),p=Ae("resizebox"),v=F(()=>[p]),g=F(()=>({...Ze(a.value)?{width:`${a.value}px`}:{},...Ze(l.value)?{height:`${l.value}px`}:{},...h})),y=F(()=>o.value.filter(_=>pNe.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:O}=S;let L=P,B=M;const j=_.pageX-T,W=_.pageY-D;switch(O){case I0e:L=P-j,s(L),t("update:width",L);break;case L0e:L=P+j,s(L),t("update:width",L);break;case IH:B=M-W,c(B),t("update:height",B);break;case LH:B=M+W,c(B),t("update:height",B);break}t("moving",{width:L,height:B},_)}function C(_){S.moving=!1,ro(window,"mousemove",k),ro(window,"mouseup",C),ro(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:O,right:L,bottom:B}=S.padding;S.startWidth=Sre(((D=d.value)==null?void 0:D.clientWidth)||0,O+L),S.startHeight=Sre(((P=d.value)==null?void 0:P.clientHeight)||0,M+B),Mi(window,"mousemove",k),Mi(window,"mouseup",C),Mi(window,"contextmenu",C),document.body.style.cursor=VR(_)?"row-resize":"col-resize"}function E(_,T){const{width:D,height:P}=T.contentRect,M=VR(_)?P:D;S.padding[_]=M,h[`padding-${_}`]=`${M}px`}return{prefixCls:p,classNames:v,styles:g,wrapperRef:d,onMoveStart:x,isHorizontal:VR,allowDirections:y,onTiggerResize:E}}});function mNe(e,t,n,r,o,a){const s=Ie("ResizeTrigger");return z(),qe(Wa(e.component),Vt({ref:"wrapperRef",class:e.classNames},e.$attrs,{style:e.styles}),{default:de(()=>[vt(e.$slots,"default"),(z(!0),Q(Bt,null,vn(e.allowDirections,l=>(z(),qe(s,{key:l,"prefix-cls":`${e.prefixCls}-trigger`,class:ue(`${e.prefixCls}-direction-${l}`),direction:e.isHorizontal(l)?"horizontal":"vertical",onMousedown:c=>{e.onMoveStart(l,c)},onResize:c=>{e.onTiggerResize(l,c)}},yo({default:de(()=>[e.$slots["resize-trigger"]?vt(e.$slots,"resize-trigger",{key:0,direction:l}):Le("v-if",!0)]),_:2},[e.$slots["resize-trigger-icon"]?{name:"icon",fn:de(()=>[vt(e.$slots,"resize-trigger-icon",{direction:l})]),key:"0"}:void 0]),1032,["prefix-cls","class","direction","onMousedown","onResize"]))),128))]),_:3},16,["class","style"])}var zR=Ve(vNe,[["render",mNe]]);const D0e=Object.assign(zR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+zR.name,zR)}});function P0e(e,t){const n=F(()=>Bo(e)?e.value:e);let r="";bn(()=>{r=G8.subscribe((o,a)=>{n.value&&(!a||a===n.value)&&t(!!o[n.value])})}),gi(()=>{r&&G8.unsubscribe(r)})}const gNe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();var yNe=Se({name:"LayoutSider",components:{IconLeft:Al,IconRight:Hi,ResizeBox:D0e},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,Xt({value:r})),v=F(()=>d.value?"ResizeBox":"div"),g=F(()=>a.value&&!s.value),y=Ae("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")};P0e(l,T=>{const D=!T;D!==h.value&&(p(D),t("update:collapsed",D),t("collapse",D,"responsive"),t("breakpoint",D))});const E=gNe("__arco_layout_sider"),_=On(w0e,void 0);return bn(()=>{var T;(T=_?.onSiderMount)==null||T.call(_,E)}),gi(()=>{var T;(T=_?.onSiderUnMount)==null||T.call(_,E)}),ri(E0e,Xt({theme:n,collapsed:h,collapsedWidth:c})),{componentTag:v,prefixCls:y,classNames:S,triggerClassNames:C,localCollapsed:h,siderWidth:k,showTrigger:g,toggleTrigger:x}}});const bNe={key:0},_Ne={key:1};function SNe(e,t,n,r,o,a){const s=Ie("IconLeft"),l=Ie("IconRight");return z(),qe(Wa(e.componentTag),Vt({class:e.classNames,style:{width:e.siderWidth}},e.resizeDirections?{directions:e.resizeDirections}:{}),{default:de(()=>[I("div",{class:ue(`${e.prefixCls}-children`)},[vt(e.$slots,"default")],2),e.showTrigger?(z(),Q("div",{key:0,class:ue(e.triggerClassNames),style:Ge({width:e.siderWidth}),onClick:t[0]||(t[0]=(...c)=>e.toggleTrigger&&e.toggleTrigger(...c))},[vt(e.$slots,"trigger",{collapsed:e.localCollapsed},()=>[e.reverseArrow?(z(),Q("div",_Ne,[e.localCollapsed?(z(),qe(s,{key:0})):(z(),qe(l,{key:1}))])):(z(),Q("div",bNe,[e.localCollapsed?(z(),qe(l,{key:1})):(z(),qe(s,{key:0}))]))])],6)):Le("v-if",!0)]),_:3},16,["class","style"])}var $w=Ve(yNe,[["render",SNe]]);const kNe=Object.assign(NR,{Header:Rw,Content:Mw,Footer:Ow,Sider:$w,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+NR.name,NR),e.component(n+Rw.name,Rw),e.component(n+Mw.name,Mw),e.component(n+Ow.name,Ow),e.component(n+$w.name,$w)}}),xNe=Se({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=Ae("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 CNe(e,t,n,r,o,a){return z(),Q("li",{class:ue(e.cls),style:Ge(e.mergedStyle),onClick:t[0]||(t[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[vt(e.$slots,"default",{page:e.pageNumber},()=>[Ue(je(e.pageNumber),1)])],6)}var wNe=Ve(xNe,[["render",CNe]]);const R0e=(e,{min:t,max:n})=>en?n:e,ENe=Se({name:"StepPager",components:{IconLeft:Al,IconRight:Hi},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=Ae("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(()=>R0e(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 TNe(e,t,n,r,o,a){const s=Ie("icon-right"),l=Ie("icon-left");return z(),qe(Wa(e.simple?"span":"li"),{class:ue(e.cls),onClick:e.handleClick},{default:de(()=>[vt(e.$slots,"default",{type:e.isNext?"next":"previous"},()=>[e.isNext?(z(),qe(s,{key:0})):(z(),qe(l,{key:1}))])]),_:3},8,["class","onClick"])}var kre=Ve(ENe,[["render",TNe]]);const ANe=Se({name:"EllipsisPager",components:{IconMore:F0},props:{current:{type:Number,required:!0},step:{type:Number,default:5},pages:{type:Number,required:!0}},emits:["click"],setup(e,{emit:t}){const n=Ae("pagination-item"),r=F(()=>R0e(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 INe(e,t,n,r,o,a){const s=Ie("icon-more");return z(),Q("li",{class:ue(e.cls),onClick:t[0]||(t[0]=(...l)=>e.handleClick&&e.handleClick(...l))},[vt(e.$slots,"default",{},()=>[$(s)])],2)}var LNe=Ve(ANe,[["render",INe]]);const DNe=Se({name:"PageJumper",components:{InputNumber:eS},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=Ae("pagination-jumper"),{t:r}=No(),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),Cn(()=>{e.simple||(o.value=void 0)})};Rt(()=>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 PNe(e,t,n,r,o,a){const s=Ie("input-number");return z(),Q("span",{class:ue(e.cls)},[e.simple?Le("v-if",!0):(z(),Q("span",{key:0,class:ue([`${e.prefixCls}-prepend`,`${e.prefixCls}-text-goto`])},[vt(e.$slots,"jumper-prepend",{},()=>[Ue(je(e.t("pagination.goto")),1)])],2)),$(s,{modelValue:e.inputValue,"onUpdate:modelValue":t[0]||(t[0]=l=>e.inputValue=l),class:ue(`${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"]?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-append`)},[vt(e.$slots,"jumper-append")],2)):Le("v-if",!0),e.simple?(z(),Q(Bt,{key:2},[I("span",{class:ue(`${e.prefixCls}-separator`)},"/",2),I("span",{class:ue(`${e.prefixCls}-total-page`)},je(e.pages),3)],64)):Le("v-if",!0)],2)}var xre=Ve(DNe,[["render",PNe]]);const RNe=Se({name:"PageOptions",components:{ArcoSelect:i_},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=Ae("pagination-options"),{t:r}=No(),o=F(()=>e.sizeOptions.map(s=>({value:s,label:`${s} ${r("pagination.countPerPage")}`})));return{prefixCls:n,options:o,handleChange:s=>{t("change",s)}}}});function MNe(e,t,n,r,o,a){const s=Ie("arco-select");return z(),Q("span",{class:ue(e.prefixCls)},[$(s,Vt({"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 ONe=Ve(RNe,[["render",MNe]]),UR=Se({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=Ae("pagination"),{t:o}=No(),{disabled:a,pageItemStyle:s,activePageItemStyle:l,size:c}=nn(e),{mergedSize:d}=wa(c),h=fe(e.defaultCurrent),p=fe(e.defaultPageSize),v=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!==v.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=Xt({current:v,pages:y,disabled:a,style:s,activeStyle:l,onClick:S}),x=(D,P={})=>D==="more"?$(LNe,Vt(P,C),{default:n["page-item-ellipsis"]}):D==="previous"?$(kre,Vt({type:"previous"},P,C),{default:n["page-item-step"]}):D==="next"?$(kre,Vt({type:"next"},P,C),{default:n["page-item-step"]}):$(wNe,Vt(P,C),{default:n["page-item"]}),E=F(()=>{const D=[];if(y.value2+e.bufferSize&&(O=!0,P=Math.min(v.value-e.bufferSize,y.value-2*e.bufferSize)),v.valuee.simple?$("span",{class:`${r}-simple`},[x("previous",{simple:!0}),$(xre,{disabled:e.disabled,current:v.value,size:d.value,pages:y.value,simple:!0,onChange:S},null),x("next",{simple:!0})]):$("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})]);Rt(g,(D,P)=>{if(e.autoAdjust&&D!==P&&v.value>1){const M=P*(v.value-1)+1,O=Math.ceil(M/D);O!==v.value&&(h.value=O,t("update:current",O),t("change",O))}}),Rt(y,(D,P)=>{if(e.autoAdjust&&D!==P&&v.value>1&&v.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:$("div",{class:T.value},[e.showTotal&&$("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&&$(ONe,{disabled:e.disabled,sizeOptions:e.pageSizeOptions,pageSize:g.value,size:d.value,onChange:k,selectProps:e.pageSizeProps},null),!e.simple&&e.showJumper&&$(xre,{disabled:e.disabled,current:v.value,pages:y.value,size:d.value,onChange:S},{"jumper-prepend":n["jumper-prepend"],"jumper-append":n["jumper-append"]})])}}});const DH=Object.assign(UR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+UR.name,UR)}}),$Ne=(e,{emit:t})=>{var n,r;const o=fe(br(e.paginationProps)&&(n=e.paginationProps.defaultCurrent)!=null?n:1),a=fe(br(e.paginationProps)&&(r=e.paginationProps.defaultPageSize)!=null?r:10),s=F(()=>{var h;return br(e.paginationProps)&&(h=e.paginationProps.current)!=null?h:o.value}),l=F(()=>{var h;return br(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 Cre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var HR=Se({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=Ae("list"),a=On(Ya,void 0),{componentRef:s,elementRef:l}=U1("containerRef"),c=F(()=>e.virtualListProps),{displayScrollbar:d,scrollbarProps:h}=P5(r);let p=0;const v=H=>{const{scrollTop:K,scrollHeight:Y,offsetHeight:ne}=H.target,X=Math.floor(Y-(K+ne));K>p&&X<=e.bottomOffset&&t("reachBottom"),t("scroll"),p=K};bn(()=>{if(l.value){const{scrollTop:H,scrollHeight:K,offsetHeight:Y}=l.value;K<=H+Y&&t("reachBottom")}});const{current:g,pageSize:y,handlePageChange:S,handlePageSizeChange:k}=$Ne(e,{emit:t}),C=H=>{if(!e.paginationProps)return H;if(e.paginationProps&&H.length>y.value){const K=(g.value-1)*y.value;return H.slice(K,K+y.value)}return H},x=H=>{let K;if(!e.gridProps)return null;const Y=C(H);if(e.gridProps.span){const ne=[],X=24/e.gridProps.span;for(let U=0;U{var ke;return $(I4.Col,{key:`${re}-${ie}`,class:`${o}-col`,span:(ke=e.gridProps)==null?void 0:ke.span},{default:()=>{var Fe;return[Wi(ae)?ae:(Fe=n.item)==null?void 0:Fe.call(n,{item:ae,index:ie})]}})}))?q:{default:()=>[q]}))}return ne}return $(I4.Row,{class:`${o}-row`,gutter:e.gridProps.gutter},Cre(K=Y.map((ne,X)=>$(I4.Col,Vt({key:X,class:`${o}-col`},xa(e.gridProps,["gutter"])),{default:()=>{var U;return[Wi(ne)?ne:(U=n.item)==null?void 0:U.call(n,{item:ne,index:X})]}})))?K:{default:()=>[K]})},E=H=>C(H).map((Y,ne)=>{var X;return Wi(Y)?Y:(X=n.item)==null?void 0:X.call(n,{item:Y,index:ne})}),_=()=>{const H=n.default?bf(n.default()):e.data;return H&&H.length>0?e.gridProps?x(H):E(H):j()},T=()=>{if(!e.paginationProps)return null;const H=xa(e.paginationProps,["current","pageSize","defaultCurrent","defaultPageSize"]);return $(DH,Vt({class:`${o}-pagination`},H,{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}]),O=fe(),L=()=>{var H;const K=C((H=e.data)!=null?H:[]);return K.length?$(a3,Vt({ref:O,class:M.value,data:K},e.virtualListProps,{onScroll:v}),{item:({item:Y,index:ne})=>{var X;return(X=n.item)==null?void 0:X.call(n,{item:Y,index:ne})}}):j()},B=()=>n["scroll-loading"]?$("div",{class:[`${o}-item`,`${o}-scroll-loading`]},[n["scroll-loading"]()]):null,j=()=>{var H,K,Y,ne,X;return n["scroll-loading"]?null:(X=(ne=(H=n.empty)==null?void 0:H.call(n))!=null?ne:(Y=a==null?void 0:(K=a.slots).empty)==null?void 0:Y.call(K,{component:"list"}))!=null?X:$(Xh,null,null)};return{virtualListRef:O,render:()=>{const H=d.value?Rd:"div";return $("div",{class:`${o}-wrapper`},[$(Pd,{class:`${o}-spin`,loading:e.loading},{default:()=>[$(H,Vt({ref:s,class:D.value,style:P.value},h.value,{onScroll:v}),{default:()=>[$("div",{class:`${o}-content-wrapper`},[n.header&&$("div",{class:`${o}-header`},[n.header()]),c.value&&!e.gridProps?$(Bt,null,[L(),B()]):$("div",{role:"list",class:M.value},[_(),B()]),n.footer&&$("div",{class:`${o}-footer`},[n.footer()])])]}),T()]})])}}},methods:{scrollIntoView(e){this.virtualListRef&&this.virtualListRef.scrollTo(e)}},render(){return this.render()}}),Bw=Se({name:"ListItem",props:{actionLayout:{type:String,default:"horizontal"}},setup(e,{slots:t}){const n=Ae("list-item"),r=()=>{var o;const a=(o=t.actions)==null?void 0:o.call(t);return!a||!a.length?null:$("ul",{class:`${n}-action`},[a.map((s,l)=>$("li",{key:`${n}-action-${l}`},[s]))])};return()=>{var o,a;return $("div",{role:"listitem",class:n},[$("div",{class:`${n}-main`},[(o=t.meta)==null?void 0:o.call(t),$("div",{class:`${n}-content`},[(a=t.default)==null?void 0:a.call(t)]),e.actionLayout==="vertical"&&r()]),e.actionLayout==="horizontal"&&r(),t.extra&&$("div",{class:`${n}-extra`},[t.extra()])])}}});const BNe=Se({name:"ListItemMeta",props:{title:String,description:String},setup(e,{slots:t}){const n=Ae("list-item-meta"),r=!!(e.title||e.description||t.title||t.description);return{prefixCls:n,hasContent:r}}});function NNe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[e.$slots.avatar?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-avatar`)},[vt(e.$slots,"avatar")],2)):Le("v-if",!0),e.hasContent?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-content`)},[e.$slots.title||e.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2)):Le("v-if",!0),e.$slots.description||e.description?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-description`)},[vt(e.$slots,"description",{},()=>[Ue(je(e.description),1)])],2)):Le("v-if",!0)],2)):Le("v-if",!0)],2)}var Nw=Ve(BNe,[["render",NNe]]);const M0e=Object.assign(HR,{Item:Object.assign(Bw,{Meta:Nw}),install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+HR.name,HR),e.component(n+Bw.name,Bw),e.component(n+Nw.name,Nw)}}),FNe=["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 FNe.forEach(n=>{t[n]=e.getPropertyValue(n)}),t},jNe=Se({name:"Textarea",components:{ResizeObserver:Dd,IconHover:Lo,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=Ae("textarea"),{mergedDisabled:l,mergedError:c,eventHandlers:d}=Do({disabled:r,error:o}),h=fe(),p=fe(),v=fe(),g=fe(),y=fe(e.defaultValue),S=F(()=>{var Me;return(Me=a.value)!=null?Me:y.value}),[k,C]=tpe(h);Rt(a,Me=>{(An(Me)||Tl(Me))&&(y.value="")});const x=F(()=>br(e.maxLength)&&!!e.maxLength.errorOnly),E=F(()=>br(e.maxLength)?e.maxLength.length:e.maxLength),_=Me=>{var He;return En(e.wordLength)?e.wordLength(Me):(He=Me.length)!=null?He:0},T=F(()=>_(S.value)),D=F(()=>c.value||!!(E.value&&x.value&&T.value>E.value)),P=fe(!1),M=fe(!1),O=F(()=>e.allowClear&&!l.value&&S.value),L=fe(!1),B=fe(""),j=()=>{k(),Cn(()=>{h.value&&S.value!==h.value.value&&(h.value.value=S.value,C())})},W=(Me,He=!0)=>{var Xe,rt;E.value&&!x.value&&_(Me)>E.value&&(Me=(rt=(Xe=e.wordSlice)==null?void 0:Xe.call(e,Me,E.value))!=null?rt:Me.slice(0,E.value)),y.value=Me,He&&t("update:modelValue",Me),j()};let H=S.value;const K=(Me,He)=>{var Xe,rt;Me!==H&&(H=Me,t("change",Me,He),(rt=(Xe=d.value)==null?void 0:Xe.onChange)==null||rt.call(Xe,He))},Y=Me=>{var He,Xe;M.value=!0,H=S.value,t("focus",Me),(Xe=(He=d.value)==null?void 0:He.onFocus)==null||Xe.call(He,Me)},ne=Me=>{var He,Xe;M.value=!1,t("blur",Me),(Xe=(He=d.value)==null?void 0:He.onBlur)==null||Xe.call(He,Me),K(S.value,Me)},X=Me=>{var He,Xe;const{value:rt}=Me.target;if(Me.type==="compositionend"){if(L.value=!1,B.value="",E.value&&!x.value&&S.value.length>=E.value&&_(rt)>E.value){j();return}t("input",rt,Me),W(rt),(Xe=(He=d.value)==null?void 0:He.onInput)==null||Xe.call(He,Me)}else L.value=!0},U=Me=>{var He,Xe;const{value:rt}=Me.target;if(L.value)B.value=rt;else{if(E.value&&!x.value&&S.value.length>=E.value&&_(rt)>E.value&&Me.inputType==="insertText"){j();return}t("input",rt,Me),W(rt),(Xe=(He=d.value)==null?void 0:He.onInput)==null||Xe.call(He,Me)}},q=Me=>{W(""),K("",Me),t("clear",Me)};Rt(a,Me=>{Me!==S.value&&W(Me??"",!1)});const ee=Me=>xa(n,S0),re=Me=>xf(n,S0),ae=re(),ie=F(()=>{const Me={...ae,...e.textareaAttrs};return D.value&&(Me["aria-invalid"]=!0),Me}),ke=F(()=>[`${s}-wrapper`,{[`${s}-focus`]:M.value,[`${s}-disabled`]:l.value,[`${s}-error`]:D.value,[`${s}-scroll`]:P.value}]);let Fe;const ge=fe(0),_e=fe(0),ze=F(()=>!br(e.autoSize)||!e.autoSize.minRows?0:e.autoSize.minRows*ge.value+_e.value),Qe=F(()=>!br(e.autoSize)||!e.autoSize.maxRows?0:e.autoSize.maxRows*ge.value+_e.value),Je=()=>{const Me=sV(Fe);ge.value=Number.parseInt(Me["line-height"]||0,10),_e.value=Number.parseInt(Me["border-width"]||0,10)*2+Number.parseInt(Me["padding-top"]||0,10)+Number.parseInt(Me["padding-bottom"]||0,10),g.value=Me,Cn(()=>{var He;const Xe=(He=v.value)==null?void 0:He.offsetHeight;let rt=Xe??0,ft="hidden";ze.value&&rtQe.value&&(rt=Qe.value,ft="auto"),p.value={height:`${rt}px`,resize:"none",overflow:ft}})};bn(()=>{h.value&&(Fe=window.getComputedStyle(h.value),e.autoSize&&Je()),be()});const Te=()=>{e.autoSize&&v.value&&Je(),be()},ve=Me=>{h.value&&Me.target!==h.value&&(Me.preventDefault(),h.value.focus())},be=()=>{h.value&&(h.value.scrollHeight>h.value.offsetHeight?P.value||(P.value=!0):P.value&&(P.value=!1))};return Rt(S,()=>{e.autoSize&&v.value&&Je(),be()}),{prefixCls:s,wrapperCls:ke,textareaRef:h,textareaStyle:p,mirrorRef:v,mirrorStyle:g,computedValue:S,showClearBtn:O,valueLength:T,computedMaxLength:E,mergedDisabled:l,mergeTextareaAttrs:ie,getWrapperAttrs:ee,getTextareaAttrs:re,handleInput:U,handleFocus:Y,handleBlur:ne,handleComposition:X,handleClear:q,handleResize:Te,handleMousedown:ve}},methods:{focus(){var e;(e=this.$refs.textareaRef)==null||e.focus()},blur(){var e;(e=this.$refs.textareaRef)==null||e.blur()}}}),VNe=["disabled","value","placeholder"];function zNe(e,t,n,r,o,a){const s=Ie("resize-observer"),l=Ie("icon-close"),c=Ie("icon-hover");return z(),Q("div",Vt(e.getWrapperAttrs(e.$attrs),{class:e.wrapperCls,onMousedown:t[7]||(t[7]=(...d)=>e.handleMousedown&&e.handleMousedown(...d))}),[e.autoSize?(z(),Q("div",{key:0,ref:"mirrorRef",class:ue(`${e.prefixCls}-mirror`),style:Ge(e.mirrorStyle)},je(`${e.computedValue} `),7)):Le("v-if",!0),$(s,{onResize:e.handleResize},{default:de(()=>[I("textarea",Vt({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,VNe)]),_:1},8,["onResize"]),vt(e.$slots,"suffix"),e.computedMaxLength&&e.showWordLimit?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-word-limit`)},je(e.valueLength)+"/"+je(e.computedMaxLength),3)):Le("v-if",!0),e.showClearBtn?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-clear-btn`),onClick:t[6]||(t[6]=(...d)=>e.handleClear&&e.handleClear(...d))},[$(c,null,{default:de(()=>[$(l)]),_:1})],2)):Le("v-if",!0)],16)}var WR=Ve(jNe,[["render",zNe]]);const O0e=Object.assign(WR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+WR.name,WR)}}),UNe=e=>{const{value:t,selectionStart:n}=e;return t.slice(0,n)},HNe=(e,t)=>[].concat(t).reduce((r,o)=>{const a=e.lastIndexOf(o);return a>r.location?{location:a,prefix:o}:r},{location:-1,prefix:""}),WNe=(e,t)=>!t||!e.includes(t);function GNe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var GR=Se({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=Ae("mention");let a;const{mergedDisabled:s,eventHandlers:l}=Do({disabled:Lu(e,"disabled")}),{data:c,modelValue:d}=nn(e),h=fe(),p=fe({}),v=fe(e.defaultValue),g=F(()=>{var ae;return(ae=e.modelValue)!=null?ae:v.value});Rt(d,ae=>{(An(ae)||Tl(ae))&&(v.value="")});const y=F(()=>g.value?[Dm(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,ie)=>{var ke,Fe;const ge=UNe(ie.target),_e=HNe(ge,e.prefix);if(_e.location>-1){const ze=ge.slice(_e.location+_e.prefix.length);WNe(ze,e.split)?(D.value=!0,S.value={measuring:!0,text:ze,..._e},t("search",ze,_e.prefix)):S.value.location>-1&&k()}else S.value.location>-1&&k();v.value=ae,t("update:modelValue",ae),t("change",ae),(Fe=(ke=l.value)==null?void 0:ke.onChange)==null||Fe.call(ke)},T=ae=>{var ie,ke;v.value="",t("update:modelValue",""),t("change",""),(ke=(ie=l.value)==null?void 0:ie.onChange)==null||ke.call(ie),t("clear",ae)},D=fe(!1),P=F(()=>D.value&&S.value.measuring&&W.value.length>0),M=()=>{K.value=sV(a)},O=ae=>{D.value=ae},L=(ae,ie)=>{var ke,Fe,ge;const{value:_e}=(ke=j.get(ae))!=null?ke:{},ze=S.value.location,Qe=S.value.location+S.value.text.length;let Je=v.value.slice(0,ze),Te=v.value.slice(Qe+1);Je+=!Je||Je.endsWith(e.split)||Je.endsWith(` `)?"":e.split,Te=(!Te||Te.startsWith(e.split)||Te.startsWith(` `)?"":e.split)+Te;const ve=`${S.value.prefix}${_e}`,be=`${Je}${ve}${Te}`;v.value=be,t("select",_e),t("update:modelValue",be),t("change",be),k(),(ge=(Fe=l.value)==null?void 0:Fe.onChange)==null||ge.call(Fe)},{validOptions:B,optionInfoMap:j,validOptionInfos:W,handleKeyDown:H}=uH({options:c,inputValue:x,filterOption:E,popupVisible:P,valueKeys:y,dropdownRef:h,optionRefs:p,onSelect:L,onPopupVisibleChange:O,enterToOpen:!1}),K=fe();bn(()=>{var ae;e.type==="textarea"&&((ae=C.value)!=null&&ae.textareaRef)&&(a=window.getComputedStyle(C.value.textareaRef),K.value=sV(a))});const Y=ae=>{if(En(r.option)&&ae.value){const ie=j.get(ae.key),ke=r.option;return()=>ke({data:ie})}return()=>ae.label},ne=ae=>$(dm,{ref:ie=>{ie?.$el&&(p.value[ae.key]=ie.$el)},key:ae.key,value:ae.value,disabled:ae.disabled,internal:!0},{default:Y(ae)}),X=()=>{let ae;return $(lH,{ref:h},GNe(ae=B.value.map(ie=>ne(ie)))?ae:{default:()=>[ae]})},U=fe();Rt(P,ae=>{e.type==="textarea"&&ae&&Cn(()=>{var ie,ke;(ie=C.value)!=null&&ie.textareaRef&&C.value.textareaRef.scrollTop>0&&((ke=U.value)==null||ke.scrollTo(0,C.value.textareaRef.scrollTop))})});const q=ae=>{t("focus",ae)},ee=ae=>{t("blur",ae)};return{inputRef:C,render:()=>{var ae;return e.type==="textarea"?$("div",{class:o},[$(Dd,{onResize:M},{default:()=>[$(O0e,Vt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:q,onBlur:ee,onKeydown:H}),null)]}),S.value.measuring&&W.value.length>0&&$("div",{ref:U,style:K.value,class:`${o}-measure`},[(ae=g.value)==null?void 0:ae.slice(0,S.value.location),$(ha,{trigger:"focus",position:"bl",popupOffset:4,preventFocus:!0,popupVisible:P.value,clickToClose:!1,onPopupVisibleChange:O},{default:()=>[$("span",null,[Ue("@")])],content:X})])]):$(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:O},{default:()=>[$(N0,Vt(n,{ref:C,allowClear:e.allowClear,modelValue:g.value,disabled:s.value,onInput:_,onClear:T,onFocus:q,onBlur:ee,onKeydown:H}),r)],content:X})}}},methods:{focus(){var e;(e=this.inputRef)==null||e.focus()},blur(){var e;(e=this.inputRef)==null||e.blur()}},render(){return this.render()}});const KNe=Object.assign(GR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+GR.name,GR)}}),PH=Symbol("MenuInjectionKey"),RH=Symbol("LevelInjectionKey"),$0e=Symbol("DataCollectorInjectionKey"),qNe=Se({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=Ae("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)}}}}),YNe=["stroke-width","stroke-linecap","stroke-linejoin"];function XNe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M42 11H6M42 24H22M42 37H6M13.66 26.912l-4.82-3.118 4.82-3.118v6.236Z"},null,-1)]),14,YNe)}var KR=Ve(qNe,[["render",XNe]]);const B0e=Object.assign(KR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KR.name,KR)}}),ZNe=Se({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=Ae("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)}}}}),JNe=["stroke-width","stroke-linecap","stroke-linejoin"];function QNe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 11h36M22 24h20M6 37h36M8 20.882 12.819 24 8 27.118v-6.236Z"},null,-1)]),14,JNe)}var qR=Ve(ZNe,[["render",QNe]]);const N0e=Object.assign(qR,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qR.name,qR)}});function MH(e){const t=F(()=>Bo(e)?e.value:e);ri(RH,Xt({level:t}))}function iS(e){const{provideNextLevel:t}=e||{},n=On(RH),r=F(()=>n?.level||1);if(t){const o=F(()=>r.value+1);MH(o)}return{level:r}}function wre(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 F0e(e=!1){return e?void 0:On($0e)}function j0e(e){const{key:t,type:n}=e,r=fe([]),o=F0e(n==="menu");return ri($0e,{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"&&!An(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"&&!An(t)&&o?.collectSubMenu(t,r.value,!0)}}),n==="subMenu"&&!An(t)?(bn(()=>{o?.collectSubMenu(t,r.value)}),gi(()=>{o?.removeSubMenu(t)})):n==="popupMenu"&&bn(()=>{o?.reportMenuData(r.value)}),{menuData:r,subMenuKeys:F(()=>wre(r.value,s=>!!s.children)),menuItemKeys:F(()=>wre(r.value,s=>!s.children))}}function eFe(e,t){const n=[],r=o=>{for(let a=0;a{d.value=y};Rt(t,()=>{An(t.value)&&h([])});let p=[];bn(()=>{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=>eFe(l.value,k));S.length&&(!r.value||c.value)&&(y=c.value?S[0]:[...new Set([].concat(...S))])}y.length&&h(y)});let v=!1;Rt(a,(y,S=[])=>{if(v||!tFe(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)}v=!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 rFe=Se({name:"BaseMenu",components:{IconMenuFold:B0e,IconMenuUnfold:N0e},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:v,collapsed:g,defaultCollapsed:y,selectedKeys:S,defaultSelectedKeys:k,openKeys:C,defaultOpenKeys:x,triggerProps:E,tooltipProps:_,autoOpenSelected:T,breakpoint:D,popupMaxHeight:P,prefixCls:M,inTrigger:O,siderCollapsed:L,isRoot:B}=nn(e),{subMenuKeys:j,menuData:W}=j0e({type:B.value?"menu":"popupMenu"}),[H,K]=fa(k.value,Xt({value:S})),{openKeys:Y,setOpenKeys:ne,open:X}=nFe(Xt({modelValue:C,defaultValue:x,autoOpen:v,autoOpenSelected:T,selectedKeys:H,subMenuKeys:j,menuData:W,accordion:l})),[U,q]=fa(y.value,Xt({value:g})),ee=F(()=>L.value||U.value||o.value==="popButton"),re=F(()=>["horizontal","popButton"].indexOf(o.value)<0&&!O.value&&c.value),ae=(Je,Te)=>{Je!==U.value&&(q(Je),t("update:collapsed",Je),t("collapse",Je,Te))},ie=()=>{ae(!U.value,"clickTrigger")};P0e(D,Je=>{ae(!Je,"responsive")});const ke=F(()=>M?.value||Ae("menu")),Fe=F(()=>[ke.value,`${ke.value}-${a?.value}`,{[`${ke.value}-horizontal`]:o.value==="horizontal",[`${ke.value}-vertical`]:o.value!=="horizontal",[`${ke.value}-collapsed`]:ee.value,[`${ke.value}-pop`]:o.value==="pop"||ee.value,[`${ke.value}-pop-button`]:o.value==="popButton"}]),ge=F(()=>{const Je=Ze(p.value)?`${p.value}px`:void 0,Te=br(r.value)?r.value:void 0,ve=ee.value?Je:Te?.width;return[Te?xa(Te,["width"]):r.value,{width:ve}]}),_e=xd(n,"expand-icon-down"),ze=xd(n,"expand-icon-right"),Qe=Xt({theme:a,mode:o,levelIndent:s,autoScrollIntoView:h,selectedKeys:H,openKeys:Y,prefixCls:ke,scrollConfig:d,inTrigger:O,collapsed:ee,triggerProps:E,tooltipProps:_,popupMaxHeight:P,expandIconDown:_e,expandIconRight:ze,onMenuItemClick:Je=>{K([Je]),t("update:selectedKeys",[Je]),t("menu-item-click",Je)},onSubMenuClick:(Je,Te)=>{const ve=X(Je,Te);ne(ve),t("update:openKeys",ve),t("sub-menu-click",Je,ve)}});return ri(PH,Qe),MH(1),{computedPrefixCls:ke,classNames:Fe,computedStyle:ge,computedCollapsed:ee,computedHasCollapseButton:re,onCollapseBtnClick:ie}}});function iFe(e,t,n,r,o,a){const s=Ie("IconMenuUnfold"),l=Ie("IconMenuFold");return z(),Q("div",Vt({class:e.classNames},e.$attrs,{style:e.computedStyle}),[I("div",{class:ue(`${e.computedPrefixCls}-inner`)},[vt(e.$slots,"default")],2),e.computedHasCollapseButton?(z(),Q("div",{key:0,class:ue(`${e.computedPrefixCls}-collapse-button`),onClick:t[0]||(t[0]=(...c)=>e.onCollapseBtnClick&&e.onCollapseBtnClick(...c))},[vt(e.$slots,"collapse-icon",{collapsed:e.computedCollapsed},()=>[e.computedCollapsed?(z(),qe(s,{key:0})):(z(),qe(l,{key:1}))])],2)):Le("v-if",!0)],16)}var aV=Ve(rFe,[["render",iFe]]);function Ere(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 On(PH)||{}}const oFe=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})();function W5(){const e=_o();return{key:F(()=>e?.vnode.key||oFe("__arco_menu"))}}const sFe=Se({name:"MenuIndent",props:{level:{type:Number,default:1}},setup(){const e=Ae("menu"),t=Qm();return{prefixCls:e,levelIndent:Lu(t,"levelIndent")}}});function aFe(e,t,n,r,o,a){return e.level>1?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-indent-list`)},[(z(!0),Q(Bt,null,vn(e.level-1,s=>(z(),Q("span",{key:s,class:ue(`${e.prefixCls}-indent`),style:Ge(`width: ${e.levelIndent}px`)},null,6))),128))],2)):Le("v-if",!0)}var G5=Ve(sFe,[["render",aFe]]);const lFe=Se({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 uFe(e,t,n,r,o,a){return z(),qe(Cs,{onBeforeEnter:e.onBeforeEnter,onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave,onLeave:e.onLeave,onAfterLeave:e.onAfterLeave},{default:de(()=>[vt(e.$slots,"default")]),_:3},8,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])}var cFe=Ve(lFe,[["render",uFe]]);const dFe=Se({name:"SubMenuInline",components:{MenuIndent:G5,ExpandTransition:cFe},props:{title:{type:String},isChildrenSelected:{type:Boolean}},setup(e){const{key:t}=W5(),{level:n}=iS({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 fFe(e,t,n,r,o,a){const s=Ie("MenuIndent"),l=Ie("ExpandTransition");return z(),Q("div",{class:ue(e.classNames)},[I("div",{class:ue([`${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))},[$(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),Q(Bt,{key:0},[I("span",{class:ue(`${e.menuPrefixCls}-icon`)},[vt(e.$slots,"icon")],2),I("span",{class:ue(`${e.menuPrefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2)],64)):vt(e.$slots,"title",{key:1},()=>[Ue(je(e.title),1)]),I("span",{class:ue([`${e.menuPrefixCls}-icon-suffix`,{"is-open":e.isOpen}])},[vt(e.$slots,"expand-icon-down")],2)],2),$(l,null,{default:de(()=>[Ai(I("div",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2),[[Qo,e.isOpen]])]),_:3})],2)}var hFe=Ve(dFe,[["render",fFe]]);const pFe=Se({name:"SubMenuPop",components:{Menu:aV,Trigger:ha,MenuIndent:G5,RenderFunction:Jh},inheritAttrs:!1,props:{title:{type:String},selectable:{type:Boolean},isChildrenSelected:{type:Boolean},popupMaxHeight:{type:[Boolean,Number],default:void 0}},setup(e){const{key:t}=W5(),{level:n}=iS(),{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||[]),v=F(()=>`${d.value}-pop`),g=F(()=>r.value&&p.value.includes(t.value)||o.value),y=F(()=>[`${v.value}`,`${v.value}-header`,{[`${d.value}-selected`]:g.value}]),S=F(()=>h.value==="horizontal"&&!s.inTrigger),k=fe(!1),C=T=>{k.value=T},x=Ae("trigger"),E=F(()=>{var T;return[`${v.value}-trigger`,{[`${v.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 vFe(e,t,n,r,o,a){const s=Ie("MenuIndent"),l=Ie("RenderFunction"),c=Ie("Menu"),d=Ie("Trigger");return z(),qe(d,Vt({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(()=>[$(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},yo({default:de(()=>[vt(e.$slots,"default")]),_:2},[e.menuContext.expandIconDown?{name:"expand-icon-down",fn:de(()=>[$(l,{"render-func":e.menuContext.expandIconDown},null,8,["render-func"])]),key:"0"}:void 0,e.menuContext.expandIconRight?{name:"expand-icon-right",fn:de(()=>[$(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(()=>[I("div",Vt({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))}),[Le(" header "),$(s,{level:e.level},null,8,["level"]),e.$slots.icon?(z(),Q(Bt,{key:0},[I("span",{class:ue(`${e.menuPrefixCls}-icon`)},[vt(e.$slots,"icon")],2),I("span",{class:ue(`${e.menuPrefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2)],64)):vt(e.$slots,"title",{key:1},()=>[Ue(je(e.title),1)]),Le(" suffix "),I("span",{class:ue(`${e.menuPrefixCls}-icon-suffix`)},[e.needPopOnBottom?vt(e.$slots,"expand-icon-down",{key:0}):vt(e.$slots,"expand-icon-right",{key:1})],2),e.isSelected&&e.mode==="horizontal"?(z(),Q("div",{key:2,class:ue(`${e.menuPrefixCls}-selected-label`)},null,2)):Le("v-if",!0)],16)]),_:3},16,["class","position","popup-visible","onPopupVisibleChange"])}var mFe=Ve(pFe,[["render",vFe]]),lb=Se({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}=W5(),{level:r}=iS(),{popup:o}=nn(e),a=Qm(),s=F(()=>{const{mode:h,collapsed:p,inTrigger:v}=a;return!!(typeof o.value=="function"?o.value(r.value):o.value)||p||v||h!=="vertical"}),{subMenuKeys:l,menuItemKeys:c}=j0e({key:n.value,type:"subMenu"}),d=F(()=>{const h=a.selectedKeys||[],p=v=>{for(let g=0;g[$(Zh,null,null)]),"expand-icon-right":this.$slots["expand-icon-right"]||a||(()=>[$(Hi,null,null)])};return r?$(mFe,Vt({key:n,title:e.title,selectable:e.selectable,isChildrenSelected:s,popupMaxHeight:e.popupMaxHeight},t),l):$(hFe,Vt({key:n,title:e.title,isChildrenSelected:s},t),l)}});const gFe=10;function Tre(e){return e&&+e.getBoundingClientRect().width.toFixed(2)}function Are(e){const t=Number(e.replace("px",""));return Number.isNaN(t)?0:t}var yFe=Se({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,v=Tre(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=Tre(x)+Are(Ere(x,"marginLeft"))+Are(Ere(x,"marginRight"));if(T){k=D;continue}if(S+=D,S+k+gFe>v){c.value=y-1;return}y++}c.value=null}return bn(()=>{h(),d.value=new w5(p=>{p.forEach(h)}),l.value&&d.value.observe(l.value)}),gi(()=>{d.value&&d.value.disconnect()}),()=>{const p=(g,y)=>{const{isMirror:S=!1,props:k={}}=y||{};return $(lb,Vt({key:`__arco-menu-overflow-sub-menu${S?"-mirror":""}`,class:S?s:o},k),{title:()=>$("span",null,[Ue("...")]),default:()=>g})},v=()=>{var g;const y=((g=t.default)==null?void 0:g.call(t))||[],S=u7e(y);let k=null;const C=p(null,{isMirror:!0}),x=S.map((E,_)=>{const T=wl(E,c.value!==null&&_>c.value?{class:a}:{class:""});if(c.value!==null&&_===c.value+1){const D=S.slice(_).map(P=>wl(P));k=p(D)}return T});return[C,...x,k]};return $("div",{class:`${r}-wrap`,ref:l},[v()])}}}),YR=Se({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=On(E0e,void 0),s=F(()=>a?.collapsed||!1),l=F(()=>r?.value||a?.theme||"light");return ri(PH,void 0),ri(RH,void 0),()=>$(aV,Vt(e,t,{theme:l.value,inTrigger:!1,siderCollapsed:s.value,isRoot:!0}),{...n,default:o.value==="horizontal"&&n.default?()=>$(yFe,null,{default:()=>{var c;return[(c=n.default)==null?void 0:c.call(n)]}}):n.default})}}),Fw=Se({name:"MenuItem",inheritAttrs:!1,props:{disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:t}){const{key:n}=W5(),{level:r}=iS(),o=Qm(),a=fe(),s=F(()=>(o.selectedKeys||[]).indexOf(n.value)>-1),l=F0e();bn(()=>{l?.collectMenuItem(n.value)}),gi(()=>{l?.removeMenuItem(n.value)});function c(){o.autoScrollIntoView&&a.value&&s.value&&u0e(a.value,{behavior:"smooth",block:"nearest",scrollMode:"if-needed",boundary:document.documentElement,...o.scrollConfig||{}})}let d;return bn(()=>{d=setTimeout(()=>{c()},500)}),gi(()=>{clearTimeout(d)}),Rt([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,v=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&&$(G5,{level:n},null),k&&$("span",{class:`${l}-icon`},[k]),S||k?$("span",{class:[`${l}-item-inner`,{[`${l}-title`]:k}]},[y]):y].filter(Boolean),x=$("div",Vt({ref:"refItemElement",class:[`${l}-item`,{[`${l}-disabled`]:o,[`${l}-selected`]:a,[`${l}-has-icon`]:k}]},this.$attrs,{onClick:s}),[C,a&&h==="horizontal"&&$("div",{class:`${l}-selected-label`},null)]);if(v){const E=[`${l}-item-tooltip`,p?.class];return $(Zc,Vt({trigger:"hover",position:"right",class:E},xa(p||{},["class"])),{default:()=>x,content:()=>y})}return x}});const bFe=Se({name:"MenuItemGroup",components:{MenuIndent:G5},props:{title:{type:String}},setup(){const{level:e}=iS(),t=F(()=>e.value===1?e.value+1:e.value);MH(t);const n=Qm(),r=F(()=>n.prefixCls),o=F(()=>[`${r.value}-group`]);return{prefixCls:r,classNames:o,level:e}}});function _Fe(e,t,n,r,o,a){const s=Ie("MenuIndent");return z(),Q("div",{class:ue(e.classNames)},[I("div",{class:ue(`${e.prefixCls}-group-title`)},[$(s,{level:e.level},null,8,["level"]),vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2),vt(e.$slots,"default")],2)}var jw=Ve(bFe,[["render",_Fe]]);const SFe=Object.assign(YR,{Item:Fw,ItemGroup:jw,SubMenu:lb,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+YR.name,YR),e.component(n+Fw.name,Fw),e.component(n+jw.name,jw),e.component(n+lb.name,lb)}}),kFe=Se({name:"Message",components:{AIconHover:Lo,IconInfoCircleFill:i3,IconCheckCircleFill:Yh,IconExclamationCircleFill:Lf,IconCloseCircleFill:Zm,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=Ae("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 bn(()=>{a()}),Qa(()=>{e.resetOnUpdate&&(s(),a())}),gi(()=>{s()}),{handleMouseEnter:()=>{e.resetOnHover&&s()},handleMouseLeave:()=>{e.resetOnHover&&a()},prefixCls:n,handleClose:o}}});function xFe(e,t,n,r,o,a){const s=Ie("icon-info-circle-fill"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill"),h=Ie("icon-loading"),p=Ie("icon-close"),v=Ie("a-icon-hover");return z(),Q("li",{role:"alert",class:ue([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)?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),qe(s,{key:0})):e.type==="success"?(z(),qe(l,{key:1})):e.type==="warning"?(z(),qe(c,{key:2})):e.type==="error"?(z(),qe(d,{key:3})):e.type==="loading"?(z(),qe(h,{key:4})):Le("v-if",!0)])],2)):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2),e.closable?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...g)=>e.handleClose&&e.handleClose(...g))},[$(v,null,{default:de(()=>[$(p)]),_:1})],2)):Le("v-if",!0)],34)}var CFe=Ve(kFe,[["render",xFe]]);function wFe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var EFe=Se({name:"MessageList",props:{messages:{type:Array,default:()=>[]},position:{type:String,default:"top"}},emits:["close","afterClose"],setup(e,t){const n=Ae("message-list"),{zIndex:r}=o3("message",{runOnMounted:!0});return()=>{let o;return $(r3,{class:[n,`${n}-${e.position}`],name:"fade-message",tag:"ul",style:{zIndex:r.value},onAfterLeave:()=>t.emit("afterClose")},wFe(o=e.messages.map(a=>{const s={default:Hl(a.content),icon:Hl(a.icon)};return $(CFe,{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 TFe{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=Xt({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&&(Xc(null,this.container),document.body.removeChild(this.container),this.container=null,ly[this.position]=void 0)};const{position:r="top"}=t;this.container=I5("message"),this.messageIds=new Set,this.messages=fe([]),this.position=r;const o=$(EFe,{messages:this.messages.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??xt._context)&&(o.appContext=n??xt._context),Xc(o,this.container),document.body.appendChild(this.container)}}const ly={},V0e=[...D5,"loading","normal"],Vw=V0e.reduce((e,t)=>(e[t]=(n,r)=>{cs(n)&&(n={content:n});const o={type:t,...n},{position:a="top"}=o;return ly[a]||(ly[a]=new TFe(o,r)),ly[a].add(o)},e),{});Vw.clear=e=>{var t;e?(t=ly[e])==null||t.clear():Object.values(ly).forEach(n=>n?.clear())};const xt={...Vw,install:e=>{const t={clear:Vw.clear};for(const n of V0e)t[n]=(r,o=e._context)=>Vw[n](r,o);e.config.globalProperties.$message=t},_context:null},AFe=({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(),O=r.value?0:(y=e.value)==null?void 0:y.offsetTop,L=D-x,B=T-C-O;(L!==((S=s.value)==null?void 0:S[0])||B!==((k=s.value)==null?void 0:k[1]))&&(s.value=[L,B]);const j=E>P?E-P:0,W=_>M?_-M-O:0;(j!==d.value[0]||W!==d.value[1])&&(d.value=[j,W]),O&&(c.value=[0,0-O])}},p=y=>{n.value&&(y.preventDefault(),o.value=!0,h(),a.value=[y.x,y.y],Mi(window,"mousemove",v),Mi(window,"mouseup",g),Mi(window,"contextmenu",g))},v=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,ro(window,"mousemove",v),ro(window,"mouseup",g)};return{position:l,handleMoveDown:p}};var IFe=Se({name:"Modal",components:{ClientOnly:oH,ArcoButton:Xo,IconHover:Lo,IconClose:ds,IconInfoCircleFill:i3,IconCheckCircleFill:Yh,IconExclamationCircleFill:Lf,IconCloseCircleFill:Zm},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=Ae("modal"),{t:s}=No(),l=fe(),c=fe(),d=fe(e.defaultVisible),h=F(()=>{var ke;return(ke=e.visible)!=null?ke:d.value}),p=fe(!1),v=F(()=>e.okLoading||p.value),g=F(()=>e.draggable&&!e.fullscreen),{teleportContainer:y,containerRef:S}=sH({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:_}=o3("dialog",{visible:h});let T=!1;const D=ke=>{e.escToClose&&ke.key===Ho.ESC&&_()&&H(ke)},P=()=>{e.escToClose&&!T&&(T=!0,Mi(document.documentElement,"keydown",D))},M=()=>{T=!1,ro(document.documentElement,"keydown",D)};let O=0;const{position:L,handleMoveDown:B}=AFe({wrapperRef:l,modalRef:c,draggable:g,alignCenter:o}),j=()=>{O++,p.value&&(p.value=!1),d.value=!1,t("update:visible",!1)},W=async ke=>{const Fe=O,ge=await new Promise(async _e=>{var ze;if(En(e.onBeforeOk)){let Qe=e.onBeforeOk((Je=!0)=>_e(Je));if((Am(Qe)||!El(Qe))&&(p.value=!0),Am(Qe))try{Qe=(ze=await Qe)!=null?ze:!0}catch(Je){throw Qe=!1,Je}El(Qe)&&_e(Qe)}else _e(!0)});Fe===O&&(ge?(t("ok",ke),j()):p.value&&(p.value=!1))},H=ke=>{var Fe;let ge=!0;En(e.onBeforeCancel)&&(ge=(Fe=e.onBeforeCancel())!=null?Fe:!1),ge&&(t("cancel",ke),j())},K=fe(!1),Y=ke=>{ke.target===l.value&&(K.value=!0)},ne=ke=>{e.mask&&e.maskClosable&&K.value&&H(ke)},X=()=>{h.value&&(!c7e(l.value,document.activeElement)&&document.activeElement instanceof HTMLElement&&document.activeElement.blur(),t("open"))},U=()=>{h.value||(g.value&&(L.value=void 0),k.value=!1,ee(),t("close"))},{setOverflowHidden:q,resetOverflow:ee}=a0e(S);bn(()=>{S.value=lf(e.popupContainer),h.value&&(q(),e.escToClose&&P())}),Io(()=>{ee(),M()}),Rt(h,ke=>{d.value!==ke&&(d.value=ke),ke?(t("beforeOpen"),k.value=!0,K.value=!1,q(),P()):(t("beforeClose"),M())}),Rt(n,()=>{L.value&&(L.value=void 0)});const re=F(()=>[`${a}-wrapper`,{[`${a}-wrapper-align-center`]:e.alignCenter&&!e.fullscreen,[`${a}-wrapper-moved`]:!!L.value}]),ae=F(()=>[`${a}`,e.modalClass,{[`${a}-simple`]:e.simple,[`${a}-draggable`]:g.value,[`${a}-fullscreen`]:e.fullscreen}]),ie=F(()=>{var ke;const Fe={...(ke=e.modalStyle)!=null?ke:{}};return e.width&&!e.fullscreen&&(Fe.width=Ze(e.width)?`${e.width}px`:e.width),!e.alignCenter&&e.top&&(Fe.top=Ze(e.top)?`${e.top}px`:e.top),L.value&&(Fe.transform=`translate(${L.value[0]}px, ${L.value[1]}px)`),Fe});return{prefixCls:a,mounted:k,computedVisible:h,containerRef:S,wrapperRef:l,mergedModalStyle:ie,okDisplayText:C,cancelDisplayText:x,zIndex:E,handleOk:W,handleCancel:H,handleMaskClick:ne,handleMaskMouseDown:Y,handleOpen:X,handleClose:U,mergedOkLoading:v,modalRef:c,wrapperCls:re,modalCls:ae,teleportContainer:y,handleMoveDown:B}}});function LFe(e,t,n,r,o,a){const s=Ie("icon-info-circle-fill"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill"),h=Ie("icon-close"),p=Ie("icon-hover"),v=Ie("arco-button"),g=Ie("client-only");return z(),qe(g,null,{default:de(()=>[(z(),qe(qm,{to:e.teleportContainer,disabled:!e.renderToBody},[!e.unmountOnClose||e.computedVisible||e.mounted?Ai((z(),Q("div",Vt({key:0,class:`${e.prefixCls}-container`,style:{zIndex:e.zIndex}},e.$attrs),[$(Cs,{name:e.maskAnimationName,appear:""},{default:de(()=>[e.mask?Ai((z(),Q("div",{key:0,ref:"maskRef",class:ue(`${e.prefixCls}-mask`),style:Ge(e.maskStyle)},null,6)),[[Qo,e.computedVisible]]):Le("v-if",!0)]),_:1},8,["name"]),I("div",{ref:"wrapperRef",class:ue(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"]))},[$(Cs,{name:e.modalAnimationName,appear:"",onAfterEnter:e.handleOpen,onAfterLeave:e.handleClose,persisted:""},{default:de(()=>[Ai(I("div",{ref:"modalRef",class:ue(e.modalCls),style:Ge(e.mergedModalStyle)},[!e.hideTitle&&(e.$slots.title||e.title||e.closable)?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-header`),onMousedown:t[1]||(t[1]=(...y)=>e.handleMoveDown&&e.handleMoveDown(...y))},[e.$slots.title||e.title?(z(),Q("div",{key:0,class:ue([`${e.prefixCls}-title`,`${e.prefixCls}-title-align-${e.titleAlign}`])},[e.messageType?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title-icon`)},[e.messageType==="info"?(z(),qe(s,{key:0})):Le("v-if",!0),e.messageType==="success"?(z(),qe(l,{key:1})):Le("v-if",!0),e.messageType==="warning"?(z(),qe(c,{key:2})):Le("v-if",!0),e.messageType==="error"?(z(),qe(d,{key:3})):Le("v-if",!0)],2)):Le("v-if",!0),vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2)):Le("v-if",!0),!e.simple&&e.closable?(z(),Q("div",{key:1,tabindex:"-1",role:"button","aria-label":"Close",class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...y)=>e.handleCancel&&e.handleCancel(...y))},[$(p,null,{default:de(()=>[$(h)]),_:1})],2)):Le("v-if",!0)],34)):Le("v-if",!0),I("div",{class:ue([`${e.prefixCls}-body`,e.bodyClass]),style:Ge(e.bodyStyle)},[vt(e.$slots,"default")],6),e.footer?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer",{},()=>[e.hideCancel?Le("v-if",!0):(z(),qe(v,Vt({key:0},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[Ue(je(e.cancelDisplayText),1)]),_:1},16,["onClick"])),$(v,Vt({type:"primary"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[Ue(je(e.okDisplayText),1)]),_:1},16,["loading","onClick"])])],2)):Le("v-if",!0)],6),[[Qo,e.computedVisible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],34)],16)),[[Qo,e.computedVisible||e.mounted]]):Le("v-if",!0)],8,["to","disabled"]))]),_:3})}var zw=Ve(IFe,[["render",LFe]]);const XR=(e,t)=>{let n=I5("modal");const r=()=>{d.component&&(d.component.props.visible=!1),En(e.onOk)&&e.onOk()},o=()=>{d.component&&(d.component.props.visible=!1),En(e.onCancel)&&e.onCancel()},a=async()=>{await Cn(),n&&(Xc(null,n),document.body.removeChild(n)),n=null,En(e.onClose)&&e.onClose()},s=()=>{d.component&&(d.component.props.visible=!1)},l=h=>{d.component&&Object.entries(h).forEach(([p,v])=>{d.component.props[p]=v})},d=$(zw,{...{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??Du._context)&&(d.appContext=t??Du._context),Xc(d,n),document.body.appendChild(n),{close:s,update:l}},ZR={open:XR,confirm:(e,t)=>{const n={simple:!0,messageType:"warning",...e};return XR(n,t)},...D5.reduce((e,t)=>(e[t]=(n,r)=>{const o={simple:!0,hideCancel:!0,messageType:t,...n};return XR(o,r)},e),{})},Du=Object.assign(zw,{...ZR,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+zw.name,zw);const r={};for(const o of Object.keys(ZR))r[o]=(a,s=e._context)=>ZR[o](a,s);e.config.globalProperties.$modal=r},_context:null}),DFe=e=>e.replace(/\B([A-Z])/g,"-$1").toLowerCase(),PFe=Se({name:"Notification",components:{AIconHover:Lo,IconInfoCircleFill:i3,IconCheckCircleFill:Yh,IconExclamationCircleFill:Lf,IconCloseCircleFill:Zm,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=Ae("notification");let r=0;const o=()=>{t.emit("close")};return bn(()=>{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)))}),gi(()=>{r&&window.clearTimeout(r)}),{prefixCls:n,handleClose:o}}});function RFe(e,t,n,r,o,a){const s=Ie("icon-info-circle-fill"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill"),h=Ie("icon-close"),p=Ie("a-icon-hover");return z(),Q("li",{role:"alert",class:ue([e.prefixCls,`${e.prefixCls}-${e.type}`,{[`${e.prefixCls}-closable`]:e.closable}])},[e.showIcon?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-left`)},[I("div",{class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),qe(s,{key:0})):e.type==="success"?(z(),qe(l,{key:1})):e.type==="warning"?(z(),qe(c,{key:2})):e.type==="error"?(z(),qe(d,{key:3})):Le("v-if",!0)])],2)],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-right`)},[e.$slots.default?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"default")],2)):Le("v-if",!0),e.$slots.content?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"content")],2)):Le("v-if",!0),e.$slots.footer?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer")],2)):Le("v-if",!0)],2),e.closable?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-close-btn`),onClick:t[0]||(t[0]=(...v)=>e.handleClose&&e.handleClose(...v))},[vt(e.$slots,"closeIconElement",{},()=>[$(p,null,{default:de(()=>[vt(e.$slots,"closeIcon",{},()=>[$(h)])]),_:3})])],2)):Le("v-if",!0)],2)}var MFe=Ve(PFe,[["render",RFe]]);const OFe=["topLeft","topRight","bottomLeft","bottomRight"];function $Fe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var BFe=Se({name:"NotificationList",props:{notifications:{type:Array,default:()=>[]},position:{type:String,default:"topRight",validator:e=>OFe.includes(e)}},emits:["close","afterClose"],setup(e,t){const n=Ae("notification-list"),r=DFe(e.position),{zIndex:o}=o3("message",{runOnMounted:!0}),a=e.position.includes("Right");return()=>{let s;return $(r3,{class:[n,`${n}-${r}`],style:{zIndex:o.value},name:`slide-${a?"right":"left"}-notification`,onAfterLeave:()=>t.emit("afterClose"),tag:"ul"},$Fe(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 $(MFe,{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 NFe{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=Xt({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&&(Xc(null,this.container),document.body.removeChild(this.container),this.container=null,pm[this.position]=void 0)};const{position:r="topRight"}=t;this.container=I5("notification"),this.notificationIds=new Set,this.notifications=fe([]),this.position=r;const o=$(BFe,{notifications:this.notifications.value,position:r,onClose:this.remove,onAfterClose:this.destroy});(n??lV._context)&&(o.appContext=n??lV._context),Xc(o,this.container),document.body.appendChild(this.container)}}const pm={},ub=D5.reduce((e,t)=>(e[t]=(n,r)=>{cs(n)&&(n={content:n});const o={type:t,...n},{position:a="topRight"}=o;return pm[a]||(pm[a]=new NFe(o,r)),pm[a].add(o)},e),{});ub.remove=e=>{e&&Object.values(pm).forEach(t=>t?.remove(e))};ub.clear=e=>{var t;e?(t=pm[e])==null||t.clear():Object.values(pm).forEach(n=>n?.clear())};const lV={...ub,install:e=>{const t={clear:ub.clear};for(const n of D5)t[n]=(r,o=e._context)=>ub[n](r,o);e.config.globalProperties.$notification=t},_context:null},FFe=Se({name:"PageHeader",components:{AIconHover:Lo,IconLeft:Al},props:{title:String,subtitle:String,showBack:{type:Boolean,default:!0}},emits:["back"],setup(e,{emit:t,slots:n}){const r=Ae("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 jFe(e,t,n,r,o,a){const s=Ie("icon-left"),l=Ie("a-icon-hover");return z(),Q("div",{class:ue(e.cls)},[I("div",{class:ue(`${e.prefixCls}-wrapper`)},[e.$slots.breadcrumb?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-breadcrumb`)},[vt(e.$slots,"breadcrumb")],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-header`)},[I("span",{class:ue(`${e.prefixCls}-main`)},[e.showBack?(z(),qe(l,{key:0,class:ue(`${e.prefixCls}-back-btn`),prefix:e.prefixCls,onClick:e.handleBack},{default:de(()=>[vt(e.$slots,"back-icon",{},()=>[$(s)])]),_:3},8,["class","prefix","onClick"])):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2),e.$slots.subtitle||e.subtitle?(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-divider`)},null,2)):Le("v-if",!0),e.$slots.subtitle||e.subtitle?(z(),Q("span",{key:2,class:ue(`${e.prefixCls}-subtitle`)},[vt(e.$slots,"subtitle",{},()=>[Ue(je(e.subtitle),1)])],2)):Le("v-if",!0)],2),e.$slots.extra?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-extra`)},[vt(e.$slots,"extra")],2)):Le("v-if",!0)],2)],2),e.$slots.default?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2)):Le("v-if",!0)],2)}var JR=Ve(FFe,[["render",jFe]]);const VFe=Object.assign(JR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+JR.name,JR)}}),zFe=Se({name:"Popconfirm",components:{ArcoButton:Xo,Trigger:ha,IconInfoCircleFill:i3,IconCheckCircleFill:Yh,IconExclamationCircleFill:Lf,IconCloseCircleFill:Zm},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=Ae("popconfirm"),{t:r}=No(),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(En(e.onBeforeOk)){let E=e.onBeforeOk((_=!0)=>C(_));if((Am(E)||!El(E))&&(s.value=!0),Am(E))try{E=(x=await E)!=null?x:!0}catch(_){throw E=!1,_}El(E)&&C(E)}else C(!0)});S===c&&(k?(t("ok"),d()):s.value&&(s.value=!1))},v=()=>{var S;let k=!0;En(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:v,t:r}}});function UFe(e,t,n,r,o,a){const s=Ie("icon-info-circle-fill"),l=Ie("icon-check-circle-fill"),c=Ie("icon-exclamation-circle-fill"),d=Ie("icon-close-circle-fill"),h=Ie("arco-button"),p=Ie("trigger");return z(),qe(p,{class:ue(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(()=>[I("div",{class:ue(`${e.prefixCls}-body`)},[I("span",{class:ue(`${e.prefixCls}-icon`)},[vt(e.$slots,"icon",{},()=>[e.type==="info"?(z(),qe(s,{key:0})):e.type==="success"?(z(),qe(l,{key:1})):e.type==="warning"?(z(),qe(c,{key:2})):e.type==="error"?(z(),qe(d,{key:3})):Le("v-if",!0)])],2),I("span",{class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"content",{},()=>[Ue(je(e.content),1)])],2)],2),I("div",{class:ue(`${e.prefixCls}-footer`)},[$(h,Vt({size:"mini"},e.cancelButtonProps,{onClick:e.handleCancel}),{default:de(()=>[Ue(je(e.cancelText||e.t("popconfirm.cancelText")),1)]),_:1},16,["onClick"]),$(h,Vt({type:"primary",size:"mini"},e.okButtonProps,{loading:e.mergedOkLoading,onClick:e.handleOk}),{default:de(()=>[Ue(je(e.okText||e.t("popconfirm.okText")),1)]),_:1},16,["loading","onClick"])],2)]),default:de(()=>[vt(e.$slots,"default")]),_:3},8,["class","position","popup-visible","popup-container","content-class","content-style","arrow-class","arrow-style","onPopupVisibleChange"])}var QR=Ve(zFe,[["render",UFe]]);const HFe=Object.assign(QR,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+QR.name,QR)}}),WFe={small:3,medium:4,large:8},GFe=e=>{if(e)return br(e)?{backgroundImage:`linear-gradient(to right, ${Object.keys(e).map(n=>`${e[n]} ${n}`).join(",")})`}:{backgroundColor:e}},KFe=Se({name:"ProgressLine",components:{IconExclamationCircleFill:Lf},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=Ae("progress-line"),n=F(()=>e.strokeWidth!==4?e.strokeWidth:WFe[e.size]),r=F(()=>`${Xl.times(e.percent,100)}%`),o=F(()=>({width:e.width,height:`${n.value}px`,backgroundColor:e.trackColor})),a=F(()=>({width:`${e.percent*100}%`,...GFe(e.color)}));return{prefixCls:t,style:o,barStyle:a,text:r}}}),qFe=["aria-valuenow"];function YFe(e,t,n,r,o,a){const s=Ie("icon-exclamation-circle-fill");return z(),Q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ue(`${e.prefixCls}-wrapper`)},[I("div",{class:ue(e.prefixCls),style:Ge(e.style)},[I("div",{class:ue(`${e.prefixCls}-bar-buffer`)},null,2),I("div",{class:ue([`${e.prefixCls}-bar`]),style:Ge(e.barStyle)},null,6)],6),e.showText?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-text`)},[vt(e.$slots,"text",{percent:e.percent},()=>[Ue(je(e.text)+" ",1),e.status==="danger"?(z(),qe(s,{key:0})):Le("v-if",!0)])],2)):Le("v-if",!0)],10,qFe)}var XFe=Ve(KFe,[["render",YFe]]);const ZFe=Se({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=Ae("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)}}}}),JFe=["stroke-width","stroke-linecap","stroke-linejoin"];function QFe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M23 9h2v21h-2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 9h2v21h-2z"},null,-1),I("path",{d:"M23 37h2v2h-2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M23 37h2v2h-2z"},null,-1)]),14,JFe)}var eM=Ve(ZFe,[["render",QFe]]);const OH=Object.assign(eM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eM.name,eM)}}),eje=Se({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=Ae("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)}}}}),tje=["stroke-width","stroke-linecap","stroke-linejoin"];function nje(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41.678 11.05 19.05 33.678 6.322 20.95"},null,-1)]),14,tje)}var tM=Ve(eje,[["render",nje]]);const eg=Object.assign(tM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tM.name,tM)}});let Ire=0;const rje={mini:16,small:48,medium:64,large:80},ije={mini:4,small:3,medium:4,large:4},oje=Se({name:"ProgressCircle",components:{IconExclamation:OH,IconCheck:eg},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=Ae("progress-circle"),n=br(e.color),r=F(()=>{var p;return(p=e.width)!=null?p:rje[e.size]}),o=F(()=>{var p;return(p=e.strokeWidth)!=null?p:e.size==="mini"?r.value/2:ije[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(()=>(Ire+=1,`${t}-linear-gradient-${Ire}`)),h=F(()=>`${Xl.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}}}),sje=["aria-valuenow"],aje=["viewBox"],lje={key:0},uje=["id"],cje=["offset","stop-color"],dje=["cx","cy","r","stroke-width"],fje=["cx","cy","r","stroke-width"];function hje(e,t,n,r,o,a){const s=Ie("icon-check"),l=Ie("icon-exclamation");return z(),Q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ue(`${e.prefixCls}-wrapper`),style:Ge({width:`${e.mergedWidth}px`,height:`${e.mergedWidth}px`})},[e.type==="circle"&&e.size==="mini"&&e.status==="success"?(z(),qe(s,{key:0,style:Ge({fontSize:e.mergedWidth-2,color:e.color})},null,8,["style"])):(z(),Q("svg",{key:1,viewBox:`0 0 ${e.mergedWidth} ${e.mergedWidth}`,class:ue(`${e.prefixCls}-svg`)},[e.isLinearGradient?(z(),Q("defs",lje,[I("linearGradient",{id:e.linearGradientId,x1:"0",y1:"1",x2:"0",y2:"0"},[(z(!0),Q(Bt,null,vn(Object.keys(e.color),c=>(z(),Q("stop",{key:c,offset:c,"stop-color":e.color[c]},null,8,cje))),128))],8,uje)])):Le("v-if",!0),I("circle",{class:ue(`${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,dje),I("circle",{class:ue(`${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,fje)],10,aje)),e.showText&&e.size!=="mini"?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-text`)},[vt(e.$slots,"text",{percent:e.percent},()=>[e.status==="danger"?(z(),qe(l,{key:0})):e.status==="success"?(z(),qe(s,{key:1})):(z(),Q(Bt,{key:2},[Ue(je(e.text),1)],64))])],2)):Le("v-if",!0)],14,sje)}var pje=Ve(oje,[["render",hje]]);const vje=Se({name:"ProgressSteps",components:{IconExclamationCircleFill:Lf},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=Ae("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(()=>`${Xl.times(e.percent,100)}%`);return{prefixCls:t,stepList:r,mergedStrokeWidth:n,text:o}}}),mje=["aria-valuenow"];function gje(e,t,n,r,o,a){const s=Ie("icon-exclamation-circle-fill");return z(),Q("div",{role:"progressbar","aria-valuemin":"0","aria-valuemax":"100","aria-valuenow":e.percent,class:ue(`${e.prefixCls}-wrapper`)},[I("div",{class:ue(e.prefixCls),style:Ge({height:`${e.mergedStrokeWidth}px`})},[(z(!0),Q(Bt,null,vn(e.stepList,(l,c)=>(z(),Q("div",{key:c,class:ue([`${e.prefixCls}-item`,{[`${e.prefixCls}-item-active`]:l}]),style:Ge({backgroundColor:l?e.color:e.trackColor})},null,6))),128))],6),e.showText?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-text`)},[vt(e.$slots,"text",{percent:e.percent},()=>[Ue(je(e.text)+" ",1),e.status==="danger"?(z(),qe(s,{key:0})):Le("v-if",!0)])],2)):Le("v-if",!0)],10,mje)}var yje=Ve(vje,[["render",gje]]);const bje=Se({name:"Progress",components:{ProgressLine:XFe,ProgressCircle:pje,ProgressSteps:yje},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=Ae("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 _je(e,t,n,r,o,a){const s=Ie("progress-steps"),l=Ie("progress-line"),c=Ie("progress-circle");return z(),Q("div",{class:ue(e.cls)},[e.steps>0?(z(),qe(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},yo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[vt(e.$slots,"text",Yi(Sa(d)))]),key:"0"}:void 0]),1032,["stroke-width","percent","color","track-color","width","steps","size","show-text"])):e.type==="line"&&e.mergedSize!=="mini"?(z(),qe(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},yo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[vt(e.$slots,"text",Yi(Sa(d)))]),key:"0"}:void 0]),1032,["stroke-width","animation","percent","color","track-color","size","buffer-color","width","show-text","status"])):(z(),qe(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},yo({_:2},[e.$slots.text?{name:"text",fn:de(d=>[vt(e.$slots,"text",Yi(Sa(d)))]),key:"0"}:void 0]),1032,["type","stroke-width","path-stroke-width","width","percent","color","track-color","size","show-text","status"]))],2)}var nM=Ve(bje,[["render",_je]]);const z0e=Object.assign(nM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+nM.name,nM)}}),Sje=Se({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=Ae("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)}}}}),kje=["stroke-width","stroke-linecap","stroke-linejoin"];function xje(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,kje)}var rM=Ve(Sje,[["render",xje]]);const $H=Object.assign(rM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rM.name,rM)}}),Cje=Se({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=Ae("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)}}}}),wje=["stroke-width","stroke-linecap","stroke-linejoin"];function Eje(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,wje)}var iM=Ve(Cje,[["render",Eje]]);const uV=Object.assign(iM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iM.name,iM)}}),Tje=Se({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=Ae("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)}}}}),Aje=["stroke-width","stroke-linecap","stroke-linejoin"];function Ije(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Aje)}var oM=Ve(Tje,[["render",Ije]]);const U0e=Object.assign(oM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oM.name,oM)}}),Lje=Se({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=Ae("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)}}}}),Dje=["stroke-width","stroke-linecap","stroke-linejoin"];function Pje(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Dje)}var sM=Ve(Lje,[["render",Pje]]);const H0e=Object.assign(sM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sM.name,sM)}});var aM=Se({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=Ae("rate"),{mergedDisabled:a,eventHandlers:s}=Do({disabled:Lu(e,"disabled")}),l=fe(e.defaultValue),c=fe(!1);Rt(r,M=>{(An(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?Xl.times(Xl.round(Xl.divide(h.value,.5),0),.5):Math.round(h.value);return d.value||M}),v=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(br(e.color)){const O=Object.keys(e.color).map(B=>Number(B)).sort((B,j)=>j-B);let L=(M=O.pop())!=null?M:g.value.length;return g.value.map((B,j)=>{var W;return j+1>L&&(L=(W=O.pop())!=null?W:L),e.color[String(L)]})}}),S=()=>{d.value&&(d.value=0,t("hoverChange",0))},k=(M,O)=>{const L=O&&e.allowHalf?M+.5:M+1;L!==d.value&&(d.value=L,t("hoverChange",L))},C=(M,O)=>{var L,B,j,W;const H=O&&e.allowHalf?M+.5:M+1;c.value=!0,H!==h.value?(l.value=H,t("update:modelValue",H),t("change",H),(B=(L=s.value)==null?void 0:L.onChange)==null||B.call(L)):e.allowClear&&(l.value=0,t("update:modelValue",0),t("change",0),(W=(j=s.value)==null?void 0:j.onChange)==null||W.call(j))},x=M=>{c.value&&M+1>=h.value-1&&(c.value=!1)},E=(M,O)=>M>O?$(uV,null,null):O<=2?$(H0e,null,null):O<=3?$(uV,null,null):$(U0e,null,null),_=(M,O=!1)=>({role:"radio","aria-checked":M+(O?.5:1)<=h.value,"aria-setsize":g.value.length,"aria-posinset":M+(O?.5:1)}),T=M=>e.grading?E(M,p.value):n.character?n.character({index:M}):$($H,null,null),D=M=>{const O=v.value?{}:{onMouseenter:()=>k(M,!0),onClick:()=>C(M,!0)},L=v.value?{}:{onMouseenter:()=>k(M,!1),onClick:()=>C(M,!1)},B=c.value?{animationDelay:`${50*M}ms`}:void 0,j=Math.ceil(p.value)-1,W=y.value&&e.allowHalf&&M+.5===p.value?{color:y.value[j]}:void 0,H=y.value&&M+1<=p.value?{color:y.value[j]}:void 0,K=[`${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)}),[$("div",Vt({class:`${o}-character-left`,style:W},O,e.allowHalf?_(M,!0):void 0),[T(M)]),$("div",Vt({class:`${o}-character-right`,style:H},L,e.allowHalf?_(M):void 0),[T(M)])])},P=F(()=>[o,{[`${o}-readonly`]:e.readonly,[`${o}-disabled`]:a.value}]);return()=>$("div",{class:P.value,onMouseleave:S},[g.value.map((M,O)=>D(O))])}});const Rje=Object.assign(aM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+aM.name,aM)}}),Mje=Se({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=Ae("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)}}}}),Oje=["stroke-width","stroke-linecap","stroke-linejoin"];function $je(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 39h-2V18h2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M25 39h-2V18h2z"},null,-1),I("path",{d:"M25 11h-2V9h2z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M25 11h-2V9h2z"},null,-1)]),14,Oje)}var lM=Ve(Mje,[["render",$je]]);const W0e=Object.assign(lM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lM.name,lM)}});var Bje=Se({name:"ResultForbidden",render(){return $("svg",{viewBox:"0 0 213 213",height:"100%",width:"100%",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[$("g",{transform:"matrix(1,0,0,1,-871.485,-445.62)"},[$("g",null,[$("g",{transform:"matrix(1,0,0,1,-75.2684,-87.3801)"},[$("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),$("g",{transform:"matrix(1,0,0,1,246.523,295.575)"},[$("g",{transform:"matrix(0.316667,0,0,0.316667,277.545,71.0298)"},[$("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),$("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),$("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[$("g",{transform:"matrix(1,0,0,1,-6,-6)"},[$("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)])]),$("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[$("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),$("g",{transform:"matrix(0.182997,0.105653,-0.494902,0.285732,814.161,66.3087)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),$("g",{transform:"matrix(0.316667,0,0,0.316667,237.301,94.2647)"},[$("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),$("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),$("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[$("g",{transform:"matrix(1,0,0,1,-6,-6)"},[$("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)])]),$("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[$("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])]),$("g",{transform:"matrix(0.474953,0,0,0.474953,538.938,8.95289)"},[$("g",{transform:"matrix(0.180615,0.104278,-0.973879,0.562269,790.347,286.159)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),$("g",{transform:"matrix(0.473356,0,0,0.473356,294.481,129.741)"},[$("g",null,[$("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[$("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),$("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[$("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),$("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),$("g",{transform:"matrix(0.473356,0,0,0.473356,192.621,188.549)"},[$("g",null,[$("g",{transform:"matrix(0.1761,-0.101671,1.73518e-16,1.22207,442.564,7.31508)"},[$("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(0.0922781,0.0532768,2.03964e-16,2.20569,405.236,-248.842)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),$("g",{transform:"matrix(0.147541,-0.0851831,1.52371e-16,1.23446,454.294,-3.8127)"},[$("rect",{x:"202.62",y:"575.419",width:"124.002",height:"259.402",style:{fill:"rgb(51, 51, 51)"}},null)]),$("g",{transform:"matrix(0.0921286,0.0531905,-0.126106,0.0728076,474.688,603.724)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)])])]),$("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-49.2109)"},[$("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),$("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),$("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",{transform:"matrix(0.668111,0,0,0.668111,-123.979,-91.97)"},[$("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,974.758,729.412)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,42.5091,1294.14)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(235, 235, 235)"}},null)]),$("g",{transform:"matrix(0.0349225,0.0201625,-1.52814,0.882275,1593.11,461.746)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(102, 102, 102)"}},null)]),$("g",{transform:"matrix(1.1164,-0.644557,0,0.220789,49.4442,1298.14)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(51, 51, 51)"}},null)]),$("g",{transform:"matrix(0.0349225,0.0201625,1.81598e-17,0.220789,753.056,857.412)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fill:"rgb(34, 34, 34)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,898.874,529.479)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,930.12,511.44)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,961.365,493.4)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,992.61,475.361)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1023.86,457.321)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1056.25,438.617)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.142968,-0.0825428,-0.207261,0.478709,1085.74,421.589)"},[$("rect",{x:"831",y:"1023.79",width:"89.214",height:"89.214",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",{transform:"matrix(0.701585,5.16096e-35,-5.16096e-35,0.701585,-546.219,-21.3487)"},[$("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1033.27,615.815)"},[$("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)]),$("g",{transform:"matrix(0.558202,-0.322278,0,0.882275,1035.25,616.977)"},[$("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)]),$("g",{transform:"matrix(1,0,0,1,418.673,507.243)"},[$("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)]),$("g",{transform:"matrix(1,0,0,1,235.984,-39.1315)"},[$("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)]),$("g",{transform:"matrix(0.396683,0,0,0.396683,1000.22,516.921)"},[$("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)]),$("g",{transform:"matrix(0.253614,-0.146424,4.87691e-17,0.338152,1209.98,830.02)"},[$("circle",{cx:"975.681",cy:"316.681",r:"113.681",style:{fill:"rgb(245, 63, 63)"}},null),$("g",{transform:"matrix(1.08844,0,0,0.61677,-99.9184,125.436)"},[$("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)])]),$("g",{transform:"matrix(5.57947,-3.22131,0.306277,0.176829,-6260.71,4938.32)"},[$("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(248, 248, 248)"}},null)]),$("g",{transform:"matrix(0.10726,0.0619268,-1.83335e-14,18.1609,1256.76,-11932.8)"},[$("rect",{x:"1335.54",y:"694.688",width:"18.525",height:"6.511",style:{fill:"rgb(238, 238, 238)"}},null)])])]),$("g",{transform:"matrix(0.316667,0,0,0.316667,269.139,37.8829)"},[$("g",{transform:"matrix(0.989011,-0.571006,1.14201,0.659341,-335.171,81.4498)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(0.164835,-0.0951676,1.14201,0.659341,116.224,-179.163)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(202, 174, 136)"}},null)]),$("g",{transform:"matrix(0.978261,-0.564799,1.26804e-16,1.30435,-337.046,42.0327)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.267591,-0.154493,3.46856e-17,0.356787,992.686,475.823)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(102, 102, 102)"}},null)]),$("g",{transform:"matrix(1.28257,-0.740494,1.23317e-16,1.7101,1501.14,624.071)"},[$("g",{transform:"matrix(1,0,0,1,-6,-6)"},[$("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)])]),$("g",{transform:"matrix(0.725806,0.419045,1.75755e-17,1.01444,155.314,212.138)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.58977,-0.917857,1.15976e-16,2.2425,-1270.46,-614.379)"},[$("rect",{x:"1748.87",y:"1226.67",width:"10.895",height:"13.378",style:{fill:"rgb(132, 97, 0)"}},null)])])])])]),$("defs",null,[$("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)"},[$("stop",{offset:"0",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null),$("stop",{offset:"1",style:{stopColor:"rgb(248, 248, 248)",stopOpacity:1}},null)])])])}}),Nje=Se({name:"ResultNotFound",render(){return $("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:{fillRule:"evenodd",clipRule:"evenodd",strokeLinejoin:"round",strokeMiterlimit:2}},[$("g",{transform:"matrix(1,0,0,1,-1241.95,-445.62)"},[$("g",null,[$("g",{transform:"matrix(1,0,0,1,295.2,-87.3801)"},[$("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:{fill:"rgb(235, 238, 246)"}},null)]),$("g",{transform:"matrix(0.38223,0,0,0.38223,1126.12,238.549)"},[$("g",{transform:"matrix(0.566536,0.327089,-1.28774,0.74348,763.4,317.171)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),$("g",{transform:"matrix(0.29595,0.170867,-0.91077,0.525833,873.797,588.624)"},[$("rect",{x:"657.012",y:"404.643",width:"198.586",height:"145.08",style:{fillOpacity:.1}},null)]),$("g",{transform:"matrix(1,0,0,1,275,-15)"},[$("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),$("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[$("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",{transform:"matrix(1,0,0,1,183.952,-67.5665)"},[$("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),$("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[$("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",{transform:"matrix(1,0,0,1,414,-95.2517)"},[$("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),$("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[$("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",{transform:"matrix(1,0,0,1,322.952,-147.818)"},[$("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),$("g",{transform:"matrix(0.866025,-0.5,1,0.57735,0,-45)"},[$("ellipse",{cx:"-848.416",cy:"1004.25",rx:"6.062",ry:"5.25",style:{fill:"rgb(255, 125, 0)"}},null)])]),$("g",null,[$("g",{transform:"matrix(1.42334,-0.821763,1.11271,0.642426,-1439.64,459.621)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(1.40786,-0.812831,6.60237e-16,1.99081,-2052.17,-84.7286)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(1.26159,-0.728382,5.91642e-16,1.78397,-1774.67,11.2303)"},[$("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)]),$("g",{transform:"matrix(1.2198,-0.704254,5.72043e-16,1.72488,-1697.6,37.2103)"},[$("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)]),$("g",{transform:"matrix(0.707187,0.408295,9.06119e-17,1.54833,-733.949,683.612)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(0.74666,0.431085,2.3583e-17,0.135259,-816.63,57.1397)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.64553,-0.950049,1.17482,0.678285,-1632.45,473.879)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,354.191)"},[$("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[$("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)]),$("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[$("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)]),$("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),$("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,309.191)"},[$("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[$("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)]),$("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[$("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)]),$("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),$("g",{transform:"matrix(0.750082,0,0,0.750082,163.491,263.931)"},[$("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[$("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)]),$("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[$("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)]),$("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])]),$("path",{d:"M555.753,832.474L555.753,921.408L630.693,878.141L630.693,789.207L555.753,832.474Z",style:{fillOpacity:.1}},null),$("g",{transform:"matrix(0.750082,0,0,0.750082,236.431,272.852)"},[$("g",{transform:"matrix(1.64553,-0.950049,1.14552,0.661368,-1606.78,467.933)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(253, 243, 228)"}},null)]),$("g",{transform:"matrix(1.54477,-0.891873,1.05847,0.611108,-1456.84,490.734)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(132, 97, 51)"}},null)]),$("g",{transform:"matrix(1.27607,-0.736739,0.751435,0.433841,-970.952,617.519)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(1.62765,-0.939723,1.42156e-16,0.5,-2476.81,1893.62)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.728038,0.420333,3.52595e-17,0.377589,-790.978,151.274)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2726.83,1873.38)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",null,[$("g",{transform:"matrix(1.75943,-1.01581,1.75879e-16,0.632893,-2721.54,1876.43)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)]),$("g",{transform:"matrix(0.290956,-0.167984,2.90849e-17,0.104661,69.4195,919.311)"},[$("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)]),$("g",{transform:"matrix(0.262716,-0.151679,8.27418e-18,0.0364999,121.496,970.53)"},[$("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)]),$("g",{transform:"matrix(1.77877,-1.02697,0.0581765,0.0335882,-425.293,1228.27)"},[$("rect",{x:"495.52",y:"1057.87",width:"105.078",height:"91",style:{fill:"rgb(240, 218, 183)"}},null)]),$("g",{transform:"matrix(0.0369741,0.021347,4.72735e-17,0.492225,456.143,919.985)"},[$("rect",{x:"1663.92",y:"-407.511",width:"143.183",height:"118.292",style:{fill:"rgb(240, 218, 183)"}},null)])])]),$("g",{transform:"matrix(1.62765,-0.939723,4.80984e-17,0.173913,-2468.81,2307.87)"},[$("rect",{x:"1844.06",y:"1192.54",width:"106.232",height:"92",style:{fill:"rgb(196, 173, 142)"}},null)])]),$("g",null,[$("g",{transform:"matrix(0.479077,0.276595,-0.564376,0.325843,598.357,-129.986)"},[$("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)]),$("g",{transform:"matrix(2.61622,0,0,2.61622,-2305.73,162.161)"},[$("g",{transform:"matrix(1.09915,-0.634597,1.26919,0.73277,-299.167,-62.4615)"},[$("ellipse",{cx:"412.719",cy:"770.575",rx:"6.303",ry:"5.459",style:{fill:"rgb(255, 125, 0)"}},null)]),$("g",{transform:"matrix(0.238212,-0.137532,0.178659,0.103149,875.064,207.93)"},[$("text",{x:"413.474px",y:"892.067px",style:{fontFamily:"NunitoSans-Bold, Nunito Sans",fontWeight:700,fontSize:41.569,fill:"white"}},[Ue("?")])])])])])])])])}}),Fje=Se({name:"ResultServerError",render(){return $("svg",{width:"100%",height:"100%",viewBox:"0 0 213 213",style:"fill-rule: evenodd; clip-rule: evenodd; stroke-linejoin: round; stroke-miterlimit: 2;"},[$("g",{transform:"matrix(1,0,0,1,-483.054,-445.448)"},[$("g",null,[$("g",{transform:"matrix(1,0,0,1,-463.699,-87.5516)"},[$("circle",{cx:"1053.23",cy:"639.477",r:"106.477",style:"fill: rgb(235, 238, 246);"},null)]),$("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,260.021)"},[$("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)]),$("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,218.845)"},[$("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)]),$("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,238.807)"},[$("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)]),$("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,257.804)"},[$("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)]),$("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,329.956)"},[$("clipPath",{id:"_clip1"},[$("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)]),$("g",{"clip-path":"url(#_clip1)"},[$("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,269.266)"},[$("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)])])]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,265.448)"},[$("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)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,268.45)"},[$("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)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,271.452)"},[$("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)]),$("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,124.262)"},[$("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,420.796)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,419.062)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,417.329)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,415.595)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,413.862)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,196.542)"},[$("clipPath",{id:"_clip3"},[$("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)]),$("g",{"clip-path":"url(#_clip3)"},[$("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,68.2716,1030.07)"},[$("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)])])]),$("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,216.764)"},[$("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)]),$("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,235.762)"},[$("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)]),$("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,307.652)"},[$("clipPath",{id:"_clip5"},[$("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)]),$("g",{"clip-path":"url(#_clip5)"},[$("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,321.266)"},[$("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)])])]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,243.144)"},[$("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)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,246.146)"},[$("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)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,249.149)"},[$("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)]),$("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,101.958)"},[$("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,398.492)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,396.759)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,395.025)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,393.292)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,391.558)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.384532,-0.222009,0.444019,0.256354,-0.569781,171.832)"},[$("clipPath",{id:"_clip6"},[$("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)]),$("g",{"clip-path":"url(#_clip6)"},[$("g",{transform:"matrix(1.30028,1.12608,-2.25216,1.95042,12.6215,1078.27)"},[$("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)])])]),$("g",{transform:"matrix(0.361496,-0.20871,0.41742,0.240997,34.7805,192.055)"},[$("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)]),$("g",{transform:"matrix(0.341853,-0.197369,0.394738,0.227902,64.9247,211.052)"},[$("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)]),$("g",{transform:"matrix(0.428916,0,0,0.428916,19.0588,282.943)"},[$("clipPath",{id:"_clip8"},[$("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)]),$("g",{"clip-path":"url(#_clip8)"},[$("g",{transform:"matrix(2.33146,-0,-0,2.33146,1081.79,378.876)"},[$("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)])])]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,218.434)"},[$("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)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,221.437)"},[$("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)]),$("g",{transform:"matrix(0.347769,0.200785,3.44852e-18,0.545466,52.0929,224.439)"},[$("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)]),$("g",{transform:"matrix(0.360289,-0.208013,-4.39887e-18,0.576941,37.5847,77.2484)"},[$("rect",{x:"1621.2",y:"1370.57",width:"57.735",height:"5.947",style:"fill: rgb(106, 161, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,307.505,373.782)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: white;"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,310.507,372.049)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,313.509,370.316)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,316.512,368.582)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.185726,-0.107229,-1.84168e-18,0.247635,319.514,366.849)"},[$("ellipse",{cx:"1566.31",cy:"1372.3",rx:"4",ry:"3.464",style:"fill: rgb(64, 128, 255);"},null)]),$("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,185.45)"},[$("clipPath",{id:"_clip9"},[$("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)]),$("g",{"clip-path":"url(#_clip9)"},[$("g",{transform:"matrix(1.36821,1.1849,-2.36981,2.05231,5.46929,1071.93)"},[$("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)])])]),$("g",{transform:"matrix(0.365442,-0.210988,0.421976,0.243628,28.7259,183.729)"},[$("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)]),$("g",{transform:"matrix(0.407622,0,0,0.407622,47.38,278)"},[$("clipPath",{id:"_clip12"},[$("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)]),$("g",{"clip-path":"url(#_clip12)"},[$("g",{transform:"matrix(2.45325,-0,-0,2.45325,1068.82,410.793)"},[$("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)])])]),$("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-19.3677,248.256)"},[$("clipPath",{id:"_clip14"},[$("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)]),$("g",{"clip-path":"url(#_clip14)"},[$("g",{transform:"matrix(2.69214,1.16573,-1.29422e-16,2.0191,1352.59,983.841)"},[$("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)])])]),$("g",{transform:"matrix(0.371452,-0.214458,2.38096e-17,0.495269,-15.0786,249.972)"},[$("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)]),$("g",{transform:"matrix(0.220199,-0.127132,1.41145e-17,0.293599,339.708,327.53)"},[$("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)]),$("g",{transform:"matrix(0.254264,-0.1468,1.22235e-17,0.254264,329.57,364.144)"},[$("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;'},[Ue("!")])])])]),$("defs",null,[$("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),$("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),$("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),$("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),$("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)"},[$("stop",{offset:"0",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null),$("stop",{offset:"1",style:"stop-color: rgb(64, 128, 255); stop-opacity: 1;"},null)]),$("image",{id:"_Image13",width:"107px",height:"34px",href:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAAiCAYAAABY6CeoAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABFElEQVRoge2aQRKDMAhFmx6it/P+x7Ab64xOmaAG8vnwFnWhiOGFOG3TPsu6vpS0djpuH61zXoz5F3s6r4rRxipiftddeUbp3t18QozEu3/JfdSzgCy5VWpTWcVYSlaPqcvDEUpZQPUdCqUsSAbMoJIViJIVCBNZrO+MHtbjrs4KRMkKBJUs9uXXTxZ7JR2g6ix27sly6BIxReIOHdpZWevoNe68y2DAmTVXFmDBAB9pJ29nBYRCln5jgkVyv1QUsrIAJyvtvg1F7iGykF/KlniPG66zKDCyWLI2IqwOJSsQz2URbqZEpTorEDCypn6xnciVYT+SlbS+08Zt01lJfv7xBmYZLPpgy6p/pA9gyxIArKMLXxexLNiBCThLAAAAAElFTkSuQmCC"},null),$("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 jje=["info","success","warning","error","403","404","500",null],Vje=Se({name:"Result",components:{IconInfo:W0e,IconCheck:eg,IconExclamation:OH,IconClose:ds,ResultForbidden:Bje,ResultNotFound:Nje,ResultServerError:Fje},props:{status:{type:String,default:"info",validator:e=>jje.includes(e)},title:String,subtitle:String},setup(){return{prefixCls:Ae("result")}}});function zje(e,t,n,r,o,a){const s=Ie("icon-info"),l=Ie("icon-check"),c=Ie("icon-exclamation"),d=Ie("icon-close"),h=Ie("result-forbidden"),p=Ie("result-not-found"),v=Ie("result-server-error");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue([`${e.prefixCls}-icon`,{[`${e.prefixCls}-icon-${e.status}`]:e.status,[`${e.prefixCls}-icon-custom`]:e.status===null}])},[I("div",{class:ue(`${e.prefixCls}-icon-tip`)},[vt(e.$slots,"icon",{},()=>[e.status==="info"?(z(),qe(s,{key:0})):e.status==="success"?(z(),qe(l,{key:1})):e.status==="warning"?(z(),qe(c,{key:2})):e.status==="error"?(z(),qe(d,{key:3})):e.status==="403"?(z(),qe(h,{key:4})):e.status==="404"?(z(),qe(p,{key:5})):e.status==="500"?(z(),qe(v,{key:6})):Le("v-if",!0)])],2)],2),e.title||e.$slots.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2)):Le("v-if",!0),e.subtitle||e.$slots.subtitle?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-subtitle`)},[vt(e.$slots,"subtitle",{},()=>[Ue(je(e.subtitle),1)])],2)):Le("v-if",!0),e.$slots.extra?(z(),Q("div",{key:2,class:ue(`${e.prefixCls}-extra`)},[vt(e.$slots,"extra")],2)):Le("v-if",!0),e.$slots.default?(z(),Q("div",{key:3,class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2)):Le("v-if",!0)],2)}var uM=Ve(Vje,[["render",zje]]);const Uje=Object.assign(uM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+uM.name,uM)}}),Hje=Se({name:"Skeleton",props:{loading:{type:Boolean,default:!0},animation:{type:Boolean,default:!1}},setup(e){const t=Ae("skeleton"),n=F(()=>[t,{[`${t}-animation`]:e.animation}]);return{prefixCls:t,cls:n}}});function Wje(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls)},[e.loading?vt(e.$slots,"default",{key:0}):vt(e.$slots,"content",{key:1})],2)}var cM=Ve(Hje,[["render",Wje]]);const Gje=Se({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=Ae("skeleton-line"),n=[];for(let r=0;r0&&(o.marginTop=`${e.lineSpacing}px`),n.push(o)}return{prefixCls:t,lines:n}}});function Kje(e,t,n,r,o,a){return z(!0),Q(Bt,null,vn(e.lines,(s,l)=>(z(),Q("ul",{key:l,class:ue(e.prefixCls)},[I("li",{class:ue(`${e.prefixCls}-row`),style:Ge(s)},null,6)],2))),128)}var Uw=Ve(Gje,[["render",Kje]]);const qje=Se({name:"SkeletonShape",props:{shape:{type:String,default:"square"},size:{type:String,default:"medium"}},setup(e){const t=Ae("skeleton-shape"),n=F(()=>[t,`${t}-${e.shape}`,`${t}-${e.size}`]);return{prefixCls:t,cls:n}}});function Yje(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls)},null,2)}var Hw=Ve(qje,[["render",Yje]]);const Xje=Object.assign(cM,{Line:Uw,Shape:Hw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+cM.name,cM),e.component(n+Uw.name,Uw),e.component(n+Hw.name,Hw)}}),Zje=Se({name:"SliderButton",components:{Tooltip:Zc},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=Ae("slider-btn"),r=fe(!1),o=p=>{e.disabled||(p.preventDefault(),r.value=!0,Mi(window,"mousemove",a),Mi(window,"touchmove",a),Mi(window,"mouseup",s),Mi(window,"contextmenu",s),Mi(window,"touchend",s),t("movestart"))},a=p=>{let v,g;p.type.startsWith("touch")?(g=p.touches[0].clientY,v=p.touches[0].clientX):(g=p.clientY,v=p.clientX),t("moving",v,g)},s=()=>{r.value=!1,ro(window,"mousemove",a),ro(window,"mouseup",s),ro(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,v;return(v=(p=e.formatTooltip)==null?void 0:p.call(e,e.value))!=null?v:`${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}}}),Jje=["aria-disabled","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"];function Qje(e,t,n,r,o,a){const s=Ie("tooltip");return z(),qe(s,{"popup-visible":e.popupVisible,position:e.mergedTooltipPosition,content:e.tooltipContent},{default:de(()=>[I("div",Vt(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,Jje)]),_:1},8,["popup-visible","position","content"])}var eVe=Ve(Zje,[["render",Qje]]);const t0=(e,[t,n])=>{const r=Math.max((e-t)/(n-t),0);return`${Xl.round(r*100,2)}%`},K5=(e,t)=>t==="vertical"?{bottom:e}:{left:e},tVe=Se({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:Ae("slider"),getStyle:r=>K5(t0(r,[e.min,e.max]),e.direction)}}});function nVe(e,t,n,r,o,a){return z(),Q("div",{class:ue(`${e.prefixCls}-dots`)},[(z(!0),Q(Bt,null,vn(e.data,(s,l)=>(z(),Q("div",{key:l,class:ue(`${e.prefixCls}-dot-wrapper`),style:Ge(e.getStyle(s.key))},[I("div",{class:ue([`${e.prefixCls}-dot`,{[`${e.prefixCls}-dot-active`]:s.isActive}])},null,2)],6))),128))],2)}var rVe=Ve(tVe,[["render",nVe]]);const iVe=Se({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:Ae("slider"),getStyle:r=>K5(t0(r,[e.min,e.max]),e.direction)}}});function oVe(e,t,n,r,o,a){return z(),Q("div",{class:ue(`${e.prefixCls}-marks`)},[(z(!0),Q(Bt,null,vn(e.data,(s,l)=>(z(),Q("div",{key:l,"aria-hidden":"true",class:ue(`${e.prefixCls}-mark`),style:Ge(e.getStyle(s.key))},je(s.content),7))),128))],2)}var sVe=Ve(iVe,[["render",oVe]]);const aVe=Se({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=Ae("slider"),n=F(()=>{const o=[],a=Math.floor((e.max-e.min)/e.step);for(let s=0;s<=a;s++){const l=Xl.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=>K5(t0(o,[e.min,e.max]),e.direction)}}});function lVe(e,t,n,r,o,a){return z(),Q("div",{class:ue(`${e.prefixCls}-ticks`)},[(z(!0),Q(Bt,null,vn(e.steps,(s,l)=>(z(),Q("div",{key:l,class:ue([`${e.prefixCls}-tick`,{[`${e.prefixCls}-tick-active`]:s.isActive}]),style:Ge(e.getStyle(s.key))},null,6))),128))],2)}var uVe=Ve(aVe,[["render",lVe]]);const cVe=Se({name:"SliderInput",components:{InputNumber:eS},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:Ae("slider")}}});function dVe(e,t,n,r,o,a){const s=Ie("input-number");return z(),Q("div",{class:ue(`${e.prefixCls}-input`)},[e.range?(z(),Q(Bt,{key:0},[$(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"]),I("div",{class:ue(`${e.prefixCls}-input-hyphens`)},null,2)],64)):Le("v-if",!0),$(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 fVe=Ve(cVe,[["render",dVe]]);const hVe=Se({name:"Slider",components:{SliderButton:eVe,SliderDots:rVe,SliderMarks:sVe,SliderTicks:uVe,SliderInput:fVe},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=Ae("slider"),{mergedDisabled:o,eventHandlers:a}=Do({disabled:Lu(e,"disabled")}),s=fe(null),l=fe(),c=e.modelValue?e.modelValue:e.defaultValue,d=fe(sr(c)?c[0]:0),h=fe(sr(c)?c[1]:c);Rt(n,B=>{var j,W,H,K,Y;sr(B)?(d.value=(W=(j=B[0])!=null?j:e.min)!=null?W:0,h.value=(K=(H=B[1])!=null?H:e.min)!=null?K:0):h.value=(Y=B??e.min)!=null?Y:0});const p=()=>{var B,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=(B=a.value)==null?void 0:B.onChange)==null||j.call(B)},v=B=>{B=B??e.min,d.value=B,p()},g=B=>{B=B??e.min,h.value=B,p()},y=F(()=>{var B,j,W;return e.range?sr(e.modelValue)?e.modelValue:[d.value,(B=e.modelValue)!=null?B:h.value]:An(e.modelValue)?[d.value,h.value]:sr(e.modelValue)?[(j=e.min)!=null?j:0,e.modelValue[1]]:[(W=e.min)!=null?W:0,e.modelValue]}),S=F(()=>Object.keys(e.marks||{}).map(B=>{var j;const W=Number(B);return{key:W,content:(j=e.marks)==null?void 0:j[W],isActive:W>=y.value[0]&&W<=y.value[1]}})),k=B=>K5(t0(B,[e.min,e.max]),e.direction),C=fe(!1),x=()=>{C.value=!0,s.value&&(l.value=s.value.getBoundingClientRect())};function E(B,j){if(!l.value)return 0;const{left:W,top:H,width:K,height:Y}=l.value,ne=e.direction==="horizontal"?K:Y,X=ne*e.step/(e.max-e.min);let U=e.direction==="horizontal"?B-W:H+Y-j;U<0&&(U=0),U>ne&&(U=ne);const q=Math.round(U/X);return Xl.plus(e.min,Xl.times(q,e.step))}const _=(B,j)=>{h.value=E(B,j),p()},T=B=>{if(o.value)return;const{clientX:j,clientY:W}=B;s.value&&(l.value=s.value.getBoundingClientRect()),h.value=E(j,W),p()};function D([B,j]){return B>j&&([B,j]=[j,B]),e.direction==="vertical"?{bottom:t0(B,[e.min,e.max]),top:t0(e.max+e.min-j,[e.min,e.max])}:{left:t0(B,[e.min,e.max]),right:t0(e.max+e.min-j,[e.min,e.max])}}const P=(B,j)=>{d.value=E(B,j),p()},M=()=>{C.value=!1},O=F(()=>[r,{[`${r}-vertical`]:e.direction==="vertical",[`${r}-with-marks`]:!!e.marks}]),L=F(()=>[`${r}-track`,{[`${r}-track-disabled`]:o.value,[`${r}-track-vertical`]:e.direction==="vertical"}]);return{prefixCls:r,cls:O,trackCls:L,trackRef:s,computedValue:y,mergedDisabled:o,markList:S,getBtnStyle:k,getBarStyle:D,handleClick:T,handleMoveStart:x,handleEndMoving:_,handleMoveEnd:M,handleStartMoving:P,handleStartChange:v,handleEndChange:g}}});function pVe(e,t,n,r,o,a){const s=Ie("slider-ticks"),l=Ie("slider-dots"),c=Ie("slider-marks"),d=Ie("slider-button"),h=Ie("slider-input");return z(),Q("div",{class:ue(e.cls)},[I("div",{ref:"trackRef",class:ue(e.trackCls),onClick:t[0]||(t[0]=(...p)=>e.handleClick&&e.handleClick(...p))},[I("div",{class:ue(`${e.prefixCls}-bar`),style:Ge(e.getBarStyle(e.computedValue))},null,6),e.showTicks?(z(),qe(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"])):Le("v-if",!0),e.marks?(z(),qe(l,{key:1,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Le("v-if",!0),e.marks?(z(),qe(c,{key:2,data:e.markList,min:e.min,max:e.max,direction:e.direction},null,8,["data","min","max","direction"])):Le("v-if",!0),e.range?(z(),qe(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"])):Le("v-if",!0),$(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?(z(),qe(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"])):Le("v-if",!0)],2)}var dM=Ve(hVe,[["render",pVe]]);const vVe=Object.assign(dM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+dM.name,dM)}});var fM=Se({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=Ae("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(sr(e.size)?e.size[0]:e.size)}px`,h=`${a(sr(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=bf((l=t.default)==null?void 0:l.call(t),!0).filter(d=>d.type!==ks);return $("div",{class:o.value},[c.map((d,h)=>{var p,v;const g=t.split&&h>0;return $(Bt,{key:(p=d.key)!=null?p:`item-${h}`},[g&&$("div",{class:`${n}-item-split`,style:s(!1)},[(v=t.split)==null?void 0:v.call(t)]),$("div",{class:`${n}-item`,style:s(h===c.length-1)},[d])])})])}}});const mVe=Object.assign(fM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+fM.name,fM)}});function G0e(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 Sx({size:e,defaultSize:t,containerSize:n}){const r=G0e(e??t);return r.isPx?r.size:r.size*n}function gVe(e,t){return parseFloat(e)/parseFloat(t)}const yVe=Se({name:"Split",components:{ResizeTrigger:A0e},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=Ae("split"),[h,p]=fa(o.value,Xt({value:r})),v=F(()=>G0e(h.value)),g=F(()=>n.value==="horizontal"),y=F(()=>[d,{[`${d}-horizontal`]:g.value,[`${d}-vertical`]:!g.value}]),S=F(()=>{const{size:O,unit:L,isPx:B}=v.value;return{flex:`0 0 calc(${B?O:O*100}${L} - ${l.value/2}px)`}}),k={startPageX:0,startPageY:0,startContainerSize:0,startSize:0};async function C(){const O=()=>{var L,B;return g.value?(L=c.value)==null?void 0:L.clientWidth:((B=c.value)==null?void 0:B.clientHeight)||0};return(!c.value||O())&&await Cn(),O()}function x(O,L){if(!L)return;const B=v.value.isPx?`${O}px`:gVe(O,L);h.value!==B&&(p(B),t("update:size",B))}function E(O,L){const B=Sx({size:O,containerSize:L}),j=Sx({size:a.value,defaultSize:"0px",containerSize:L}),W=Sx({size:s.value,defaultSize:`${L}px`,containerSize:L});let H=B;return H=Math.max(H,j),H=Math.min(H,W),H}function _({startContainerSize:O,startSize:L,startPosition:B,endPosition:j}){const W=Sx({size:L,containerSize:O});return E(`${W+(j-B)}px`,O)}function T(O){t("moving",O);const L=g.value?_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageX,endPosition:O.pageX}):_({startContainerSize:k.startContainerSize,startSize:k.startSize,startPosition:k.startPageY,endPosition:O.pageY});x(L,k.startContainerSize)}function D(O){ro(window,"mousemove",T),ro(window,"mouseup",D),ro(window,"contextmenu",D),document.body.style.cursor="default",t("moveEnd",O)}async function P(O){t("moveStart",O),k.startPageX=O.pageX,k.startPageY=O.pageY,k.startContainerSize=await C(),k.startSize=h.value,Mi(window,"mousemove",T),Mi(window,"mouseup",D),Mi(window,"contextmenu",D),document.body.style.cursor=g.value?"col-resize":"row-resize"}function M(O){const{width:L,height:B}=O.contentRect;l.value=g.value?L:B}return bn(async()=>{const O=await C(),L=E(h.value,O);x(L,O)}),{prefixCls:d,classNames:y,isHorizontal:g,wrapperRef:c,onMoveStart:P,onTriggerResize:M,firstPaneStyles:S}}});function bVe(e,t,n,r,o,a){const s=Ie("ResizeTrigger");return z(),qe(Wa(e.component),{ref:"wrapperRef",class:ue(e.classNames)},{default:de(()=>[I("div",{class:ue([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-first`]),style:Ge(e.firstPaneStyles)},[vt(e.$slots,"first")],6),e.disabled?Le("v-if",!0):(z(),qe(s,{key:0,"prefix-cls":`${e.prefixCls}-trigger`,direction:e.isHorizontal?"vertical":"horizontal",onMousedown:e.onMoveStart,onResize:e.onTriggerResize},{default:de(()=>[vt(e.$slots,"resize-trigger")]),icon:de(()=>[vt(e.$slots,"resize-trigger-icon")]),_:3},8,["prefix-cls","direction","onMousedown","onResize"])),I("div",{class:ue([`${e.prefixCls}-pane`,`${e.prefixCls}-pane-second`])},[vt(e.$slots,"second")],2)]),_:3},8,["class"])}var hM=Ve(yVe,[["render",bVe]]);const _Ve=Object.assign(hM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+hM.name,hM)}}),SVe=Se({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=Ae("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(()=>An(e.value)),c=(h=(v=>(v=e.valueFrom)!=null?v:0)(),p=r.value)=>{var v;h!==p&&(a.value=new Jm({from:{value:h},to:{value:p},duration:e.animationDuration,easing:"quartOut",onUpdate:g=>{o.value=g.value},onFinish:()=>{o.value=p}}),(v=a.value)==null||v.start())},d=F(()=>{let h=o.value;if(Ze(h)){Ze(e.precision)&&(h=Xl.round(h,e.precision).toFixed(e.precision));const p=String(h).split("."),v=e.showGroupSeparator?Number(p[0]).toLocaleString("en-US"):p[0],g=p[1];return{isNumber:!0,integer:v,decimal:g}}return e.format&&(h=ml(h).format(e.format)),{isNumber:!1,value:h}});return bn(()=>{e.animation&&e.start&&c()}),Rt(()=>e.start,h=>{h&&e.animation&&!a.value&&c()}),Rt(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}}}),kVe={key:0};function xVe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.prefixCls)},[e.title||e.$slots.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-content`)},[I("div",{class:ue(`${e.prefixCls}-value`),style:Ge(e.valueStyle)},[e.showPlaceholder?(z(),Q("span",kVe,je(e.placeholder),1)):(z(),Q(Bt,{key:1},[e.$slots.prefix?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-prefix`)},[vt(e.$slots,"prefix")],2)):Le("v-if",!0),e.formatValue.isNumber?(z(),Q(Bt,{key:1},[I("span",{class:ue(`${e.prefixCls}-value-integer`)},je(e.formatValue.integer),3),e.formatValue.decimal?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-value-decimal`)}," ."+je(e.formatValue.decimal),3)):Le("v-if",!0)],64)):(z(),Q(Bt,{key:2},[Ue(je(e.formatValue.value),1)],64)),e.$slots.suffix?(z(),Q("span",{key:3,class:ue(`${e.prefixCls}-suffix`)},[vt(e.$slots,"suffix")],2)):Le("v-if",!0)],64))],6),e.extra||e.$slots.extra?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-extra`)},[vt(e.$slots,"extra",{},()=>[Ue(je(e.extra),1)])],2)):Le("v-if",!0)],2)],2)}var pM=Ve(SVe,[["render",xVe]]);const CVe=[["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 vM(e,t){let n=e;return CVe.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 wVe=Se({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=Ae("statistic"),{start:r,value:o,now:a,format:s}=nn(e),l=fe(vM(Math.max(ml(e.value).diff(ml(e.now),"millisecond"),0),e.format));Rt([o,a,s],()=>{const p=vM(Math.max(ml(e.value).diff(ml(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=()=>{ml(e.value).valueOf(){const p=ml(e.value).diff(ml(),"millisecond");p<=0&&(d(),t("finish")),l.value=vM(Math.max(p,0),e.format)},1e3/30))};return bn(()=>{e.start&&h()}),Io(()=>{d()}),Rt(r,p=>{p&&!c.value&&h()}),{prefixCls:n,displayValue:l}}});function EVe(e,t,n,r,o,a){return z(),Q("div",{class:ue([`${e.prefixCls}`,`${e.prefixCls}-countdown`])},[e.title||e.$slots.title?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"title",{},()=>[Ue(je(e.title),1)])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-content`)},[I("div",{class:ue(`${e.prefixCls}-value`),style:Ge(e.valueStyle)},je(e.displayValue),7)],2)],2)}var Ww=Ve(wVe,[["render",EVe]]);const TVe=Object.assign(pM,{Countdown:Ww,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+pM.name,pM),e.component(n+Ww.name,Ww)}}),K0e=Symbol("ArcoSteps"),AVe=Se({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=Ae("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))},v=Xt(new Map),g=F(()=>Array.from(v.values()).filter(C=>C.status==="error").map(C=>C.step)),y=(C,x)=>{v.set(C,x)},S=C=>{v.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 ri(K0e,Xt({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 IVe(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls)},[vt(e.$slots,"default")],2)}var mM=Ve(AVe,[["render",IVe]]);const LVe=Se({name:"Step",components:{IconCheck:eg,IconClose:ds},props:{title:String,description:String,status:{type:String},disabled:{type:Boolean,default:!1}},setup(e){const t=Ae("steps-item"),n=_o(),r=Ae("steps-icon"),o=On(K0e,void 0),a=F(()=>{var y;return(y=o?.type)!=null?y:"default"}),s=fe(),{computedIndex:l}=cH({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,Xt({step:c,status:d})),Io(()=>{n&&o?.removeItem(n.uid)});const p=F(()=>!o?.lineLess&&(o?.labelPlacement==="vertical"||o?.direction==="vertical")),v=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:v}}});function DVe(e,t,n,r,o,a){const s=Ie("icon-check"),l=Ie("icon-close");return z(),Q("div",{ref:"itemRef",class:ue(e.cls),onClick:t[0]||(t[0]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.showTail?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-tail`)},null,2)):Le("v-if",!0),e.type!=="arrow"?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-node`)},[vt(e.$slots,"node",{step:e.stepNumber,status:e.computedStatus},()=>[e.type!=="dot"?(z(),Q("div",{key:0,class:ue(e.iconCls)},[vt(e.$slots,"icon",{step:e.stepNumber,status:e.computedStatus},()=>[e.computedStatus==="finish"?(z(),qe(s,{key:0})):e.computedStatus==="error"?(z(),qe(l,{key:1})):(z(),Q(Bt,{key:2},[Ue(je(e.stepNumber),1)],64))])],2)):Le("v-if",!0)])],2)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-content`)},[I("div",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"default",{},()=>[Ue(je(e.title),1)])],2),e.description||e.$slots.description?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-description`)},[vt(e.$slots,"description",{},()=>[Ue(je(e.description),1)])],2)):Le("v-if",!0)],2)],2)}var Gw=Ve(LVe,[["render",DVe]]);const PVe=Object.assign(mM,{Step:Gw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+mM.name,mM),e.component(n+Gw.name,Gw)}}),RVe=Se({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=Ae("switch"),{mergedSize:s}=wa(r),{mergedDisabled:l,mergedSize:c,eventHandlers:d}=Do({disabled:n,size:s}),h=fe(e.defaultChecked?e.checkedValue:e.uncheckedValue),p=F(()=>{var _;return((_=e.modelValue)!=null?_:h.value)===e.checkedValue}),v=fe(!1),g=F(()=>v.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(En(P)){v.value=!0;try{const M=await P(D);(M??!0)&&y(T,_)}finally{v.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,_)};Rt(o,_=>{(An(_)||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}}}),MVe=["aria-checked","disabled"];function OVe(e,t,n,r,o,a){const s=Ie("icon-loading");return z(),Q("button",{type:"button",role:"switch","aria-checked":e.computedCheck,class:ue(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))},[I("span",{class:ue(`${e.prefixCls}-handle`)},[I("span",{class:ue(`${e.prefixCls}-handle-icon`)},[e.computedLoading?(z(),qe(s,{key:0})):(z(),Q(Bt,{key:1},[e.computedCheck?vt(e.$slots,"checked-icon",{key:0}):vt(e.$slots,"unchecked-icon",{key:1})],64))],2)],2),Le(" prettier-ignore "),e.type!=="line"&&e.size!=="small"&&(e.$slots.checked||e.checkedText||e.$slots.unchecked||e.uncheckedText)?(z(),Q(Bt,{key:0},[I("span",{class:ue(`${e.prefixCls}-text-holder`)},[e.computedCheck?vt(e.$slots,"checked",{key:0},()=>[Ue(je(e.checkedText),1)]):vt(e.$slots,"unchecked",{key:1},()=>[Ue(je(e.uncheckedText),1)])],2),I("span",{class:ue(`${e.prefixCls}-text`)},[e.computedCheck?vt(e.$slots,"checked",{key:0},()=>[Ue(je(e.checkedText),1)]):vt(e.$slots,"unchecked",{key:1},()=>[Ue(je(e.uncheckedText),1)])],2)],64)):Le("v-if",!0)],46,MVe)}var gM=Ve(RVe,[["render",OVe]]);const $Ve=Object.assign(gM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+gM.name,gM)}}),BVe=e=>{let t=0;const n=r=>{if(sr(r)&&r.length>0)for(const o of r)o.children?n(o.children):t+=1};return n(e),t},q0e=e=>{let t=0;if(sr(e)&&e.length>0){t=1;for(const n of e)if(n.children){const r=q0e(n.children);r>0&&(t=Math.max(t,r+1))}}return t},Lre=(e,t)=>{let{parent:n}=e;for(;n;)n.fixed===t&&(t==="left"?n.isLastLeftFixed=!0:n.isFirstRightFixed=!0),n=n.parent},NVe=(e,t,n)=>{const r=q0e(e);t.clear();const o=[],a=[...Array(r)].map(()=>[]);let s,l;const c=(d,{level:h=0,parent:p,fixed:v}={})=>{var g;for(const y of d){const S={...y,parent:p};if(sr(S.children)){const k=BVe(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),(v||S.fixed)&&(S.fixed=(g=S.fixed)!=null?g:v,S.fixed==="left"?s=o.length:An(l)&&(l=o.length)),(An(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),An(s)||(o[s].isLastLeftFixed=!0,Lre(o[s],"left")),An(l)||(o[l].isFirstRightFixed=!0,Lre(o[l],"right")),{dataColumns:o,groupColumns:a}},FVe=(e,t)=>{for(let n=0;n{var n;const r=FVe(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},BH=e=>e.children&&e.children.length>0?BH(e.children[0]):e,VVe=e=>e.children&&e.children.length>0?BH(e.children[e.children.length-1]):e,zVe=(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=BH(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=VVe(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},Y0e=(e,t)=>t.fixed?[`${e}-col-fixed-left`,{[`${e}-col-fixed-left-last`]:t.isLastLeftFixed}]:[],X0e=(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}]:[],Z0e=(e,{dataColumns:t,operations:n})=>{if(e.fixed){const r=`${zVe(e,{dataColumns:t,operations:n})}px`;return e.fixed==="left"?{left:r}:{right:r}}return{}},J0e=(e,t)=>e.fixed?{left:`${jVe(e,t)}px`}:{};function Q0e(e){return e.map(t=>{const n={...t};return n.children&&(n.children=Q0e(n.children)),n})}function eve(e){return e.map(t=>{const n=t.raw;return t.children&&n.children&&(n.children=eve(t.children)),t.raw})}const NH=e=>{const t=[];if(e.children)for(const n of e.children)n.isLeaf?t.push(n.key):t.push(...NH(n));return t},UVe=(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}},q2=(e,t,n=!1)=>n?e.filter(r=>!t.includes(r)):Array.from(new Set(e.concat(t))),HVe=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}),v=F(()=>p.value.filter(E=>r.value.includes(E)));return{isRadio:d,selectedRowKeys:p,currentSelectedRowKeys:v,handleSelectAll:E=>{const _=q2(p.value,o.value,!E);h.value=_,a("selectAll",E),a("selectionChange",_),a("update:selectedKeys",_)},handleSelect:(E,_)=>{const T=d.value?[_.key]:q2(p.value,[_.key],!E);h.value=T,a("select",T,_.key,_.raw),a("selectionChange",T),a("update:selectedKeys",T)},handleSelectAllLeafs:(E,_)=>{const T=q2(p.value,NH(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:q2(p.value,T,!_);h.value=D,a("selectionChange",D),a("update:selectedKeys",D)},selectAll:(E=!0)=>{const _=q2(p.value,o.value,!E);h.value=_,a("selectionChange",_),a("update:selectedKeys",_)},clearSelected:()=>{h.value=[],a("selectionChange",[]),a("update:selectedKeys",[])}}},GVe=({expandedKeys:e,defaultExpandedKeys:t,defaultExpandAllRows:n,expandable:r,allRowKeys:o,emit:a})=>{const l=fe((()=>{var v,g;return t.value?t.value:(v=r.value)!=null&&v.defaultExpandedRowKeys?r.value.defaultExpandedRowKeys:n.value||(g=r.value)!=null&&g.defaultExpandAllRows?[...o.value]:[]})()),c=F(()=>{var v,g,y;return(y=(g=e.value)!=null?g:(v=r.value)==null?void 0:v.expandedRowKeys)!=null?y:l.value});return{expandedRowKeys:c,handleExpand:(v,g)=>{const S=c.value.includes(v)?c.value.filter(k=>v!==k):c.value.concat(v);l.value=S,a("expand",v,g),a("expandedChange",S),a("update:expandedKeys",S)},expand:(v,g=!0)=>{const y=[].concat(v),S=g?c.value.concat(y):c.value.filter(k=>!y.includes(k));l.value=S,a("expandedChange",S),a("update:expandedKeys",S)},expandAll:(v=!0)=>{const g=v?[...o.value]:[];l.value=g,a("expandedChange",g),a("update:expandedKeys",g)}}},KVe=(e,t)=>{var n,r;const o=fe(br(e.pagination)&&(n=e.pagination.defaultCurrent)!=null?n:1),a=fe(br(e.pagination)&&(r=e.pagination.defaultPageSize)!=null?r:10),s=F(()=>{var h;return br(e.pagination)&&(h=e.pagination.pageSize)!=null?h:a.value});return{page:F(()=>{var h;return br(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)}}},qVe=Se({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 YVe(e,t,n,r,o,a){return z(),Q("colgroup",null,[(z(!0),Q(Bt,null,vn(e.operations,s=>(z(),Q("col",{key:`arco-col-${s.name}`,class:ue(`arco-table-${s.name}-col`),style:Ge(e.fixedWidth(s.width))},null,6))),128)),(z(!0),Q(Bt,null,vn(e.dataColumns,s=>(z(),Q("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 kx=Ve(qVe,[["render",YVe]]),cb=Se({name:"Thead",setup(e,{slots:t}){return()=>{var n,r;return $((r=(n=t.thead)==null?void 0:n.call(t)[0])!=null?r:"thead",null,{default:t.default})}}}),db=Se({name:"Tbody",setup(e,{slots:t}){return()=>{var n,r;return $((r=(n=t.tbody)==null?void 0:n.call(t)[0])!=null?r:"tbody",null,{default:t.default})}}}),kh=Se({name:"Tr",props:{expand:{type:Boolean},empty:{type:Boolean},checked:{type:Boolean},rowIndex:Number,record:{type:Object,default:()=>({})}},setup(e,{slots:t}){const n=Ae("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 $((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 XVe=Se({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=Ae("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)}}}}),ZVe=["stroke-width","stroke-linecap","stroke-linejoin"];function JVe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,ZVe)}var yM=Ve(XVe,[["render",JVe]]);const FH=Object.assign(yM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yM.name,yM)}}),QVe=Se({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=Ae("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)}}}}),eze=["stroke-width","stroke-linecap","stroke-linejoin"];function tze(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,eze)}var bM=Ve(QVe,[["render",tze]]);const tve=Object.assign(bM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bM.name,bM)}}),nze=Se({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=Ae("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)}}}}),rze=["stroke-width","stroke-linecap","stroke-linejoin"];function ize(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,rze)}var _M=Ve(nze,[["render",ize]]);const jH=Object.assign(_M,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_M.name,_M)}}),oze=({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))}}},sze=({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);Rt(n,g=>{sr(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)}}},u3=Symbol("ArcoTable"),Dre=Symbol("ArcoTableColumn");function Pre(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var nve=Se({name:"AutoTooltip",inheritAttrs:!1,props:{tooltipProps:{type:Object}},setup(e,{attrs:t,slots:n}){const r=Ae("auto-tooltip"),o=fe(),a=fe(),s=fe(""),l=fe(!1),c=()=>{if(o.value&&a.value){const v=a.value.offsetWidth>o.value.offsetWidth;v!==l.value&&(l.value=v)}},d=()=>{var v;(v=a.value)!=null&&v.textContent&&a.value.textContent!==s.value&&(s.value=a.value.textContent)},h=()=>{d(),c()};bn(()=>{d(),c()}),Qa(()=>{d(),c()});const p=()=>$("span",Vt({ref:o,class:r},t),[$(x0,{onResize:h},{default:()=>{var v;return[$("span",{ref:a,class:`${r}-content`},[(v=n.default)==null?void 0:v.call(n)])]}})]);return()=>{let v;if(l.value){let g;return $(Zc,Vt({content:s.value,onResize:h},e.tooltipProps),Pre(g=p())?g:{default:()=>[g]})}return $(x0,{onResize:h},Pre(v=p())?v:{default:()=>[v]})}}});function SM(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var fb=Se({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=Ae("table"),{t:o}=No(),a=On(u3,{}),s=F(()=>{var ne;return((ne=e.column)==null?void 0:ne.dataIndex)&&a.resizingColumn===e.column.dataIndex}),l=F(()=>{var ne;if(br((ne=e.column)==null?void 0:ne.tooltip))return e.column.tooltip}),c=F(()=>{var ne;return(ne=e.column)!=null&&ne.filterable&&El(e.column.filterable.alignLeft)?e.column.filterable.alignLeft:a.filterIconAlignLeft}),{sortOrder:d,hasSorter:h,hasAscendBtn:p,hasDescendBtn:v,nextSortOrder:g,handleClickSorter:y}=oze({column:n,tableCtx:a}),{filterPopupVisible:S,isFilterActive:k,isMultipleFilter:C,columnFilterValue:x,handleFilterPopupVisibleChange:E,setFilterValue:_,handleCheckboxFilterChange:T,handleRadioFilterChange:D,handleFilterConfirm:P,handleFilterReset:M}=sze({column:n,tableCtx:a}),O=()=>{var ne,X,U,q,ee;let re,ae;const{filterable:ie}=e.column;return(ne=e.column.slots)!=null&&ne["filter-content"]?(X=e.column.slots)==null?void 0:X["filter-content"]({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):ie?.slotName?(q=(U=a?.slots)==null?void 0:U[ie?.slotName])==null?void 0:q.call(U,{filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):ie?.renderContent?ie.renderContent({filterValue:x.value,setFilterValue:_,handleFilterConfirm:P,handleFilterReset:M}):$("div",{class:`${r}-filters-content`},[$("ul",{class:`${r}-filters-list`},[(ee=ie?.filters)==null?void 0:ee.map((ke,Fe)=>{var ge;return $("li",{class:`${r}-filters-item`,key:Fe},[C.value?$(Uc,{value:ke.value,modelValue:x.value,uninjectGroupContext:!0,onChange:T},{default:()=>[ke.text]}):$(Pm,{value:ke.value,modelValue:(ge=x.value[0])!=null?ge:"",uninjectGroupContext:!0,onChange:D},{default:()=>[ke.text]})])})]),$("div",{class:`${r}-filters-bottom`},[$(Xo,{size:"mini",onClick:M},SM(re=o("table.resetText"))?re:{default:()=>[re]}),$(Xo,{type:"primary",size:"mini",onClick:P},SM(ae=o("table.okText"))?ae:{default:()=>[ae]})])])},L=()=>{const{filterable:ne}=e.column;return ne?$(ha,Vt({popupVisible:S.value,trigger:"click",autoFitPosition:!0,popupOffset:c.value?4:0,onPopupVisibleChange:E},ne.triggerProps),{default:()=>[$(Lo,{class:[`${r}-filters`,{[`${r}-filters-active`]:k.value,[`${r}-filters-open`]:S.value,[`${r}-filters-align-left`]:c.value}],disabled:!c.value,onClick:X=>X.stopPropagation()},{default:()=>{var X,U,q,ee,re;return[(re=(ee=(U=(X=e.column.slots)==null?void 0:X["filter-icon"])==null?void 0:U.call(X))!=null?ee:(q=ne.icon)==null?void 0:q.call(ne))!=null?re:$(jH,null,null)]}})],content:O}):null},B=F(()=>{var ne,X;const U=[`${r}-cell`,`${r}-cell-align-${(X=(ne=e.column)==null?void 0:ne.align)!=null?X:e.column.children?"center":"left"}`];return h.value&&U.push(`${r}-cell-with-sorter`,{[`${r}-cell-next-ascend`]:g.value==="ascend",[`${r}-cell-next-descend`]:g.value==="descend"}),c.value&&U.push(`${r}-cell-with-filter`),U}),j=()=>{var ne,X,U,q,ee,re;return t.default?t.default():(ne=e.column)!=null&&ne.titleSlotName&&((X=a.slots)!=null&&X[e.column.titleSlotName])?(q=(U=a.slots)[e.column.titleSlotName])==null?void 0:q.call(U,{column:e.column}):(re=(ee=e.column)==null?void 0:ee.slots)!=null&&re.title?e.column.slots.title():En(e.column.title)?e.column.title():e.column.title},W=()=>{var ne,X,U;let q;return $("span",{class:B.value,onClick:h.value?y:void 0},[(ne=e.column)!=null&&ne.ellipsis&&((X=e.column)!=null&&X.tooltip)?$(nve,{class:`${r}-th-title`,tooltipProps:l.value},SM(q=j())?q:{default:()=>[q]}):$("span",{class:[`${r}-th-title`,{[`${r}-text-ellipsis`]:(U=e.column)==null?void 0:U.ellipsis}]},[j()]),h.value&&$("span",{class:`${r}-sorter`},[p.value&&$("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="ascend"}]},[$(tve,null,null)]),v.value&&$("div",{class:[`${r}-sorter-icon`,{[`${r}-sorter-icon-active`]:d.value==="descend"}]},[$(FH,null,null)])]),c.value&&L()])},H=F(()=>{var ne,X;return{...Z0e(e.column,{dataColumns:e.dataColumns,operations:e.operations}),...(ne=e.column)==null?void 0:ne.cellStyle,...(X=e.column)==null?void 0:X.headerCellStyle}}),K=F(()=>{var ne,X;return[`${r}-th`,{[`${r}-col-sorted`]:!!d.value,[`${r}-th-resizing`]:s.value},...X0e(r,e.column),(ne=e.column)==null?void 0:ne.cellClass,(X=e.column)==null?void 0:X.headerCellClass]}),Y=ne=>{var X,U,q;(X=e.column)!=null&&X.dataIndex&&((q=a.onThMouseDown)==null||q.call(a,(U=e.column)==null?void 0:U.dataIndex,ne))};return()=>{var ne,X,U,q;const ee=(ne=e.column.colSpan)!=null?ne:1,re=(X=e.column.rowSpan)!=null?X:1;return $((q=(U=t.th)==null?void 0:U.call(t,{column:e.column})[0])!=null?q:"th",{class:K.value,style:H.value,colspan:ee>1?ee:void 0,rowspan:re>1?re:void 0},{default:()=>[W(),!c.value&&L(),e.resizable&&$("span",{class:`${r}-column-handle`,onMousedown:Y},null)]})}}});function aze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var r0=Se({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=Ae("table"),r=F(()=>{var k;if(br((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?En((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:En((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},...X0e(n,e.column),(k=e.column)==null?void 0:k.cellClass,s()]}),c=()=>{var k,C,x,E,_,T;return e.summary?En((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:En((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=Z0e(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=On(u3,{}),v=()=>{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=hm((D=e.record)==null?void 0:D.raw,e.column.dataIndex))!=null?P:"")},g=fe(!1),y=k=>{var C,x;En(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 $("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&&$("span",{style:{paddingLeft:`${e.indentSize}px`}},null),e.showExpandBtn&&$("span",{class:`${n}-cell-inline-icon`,onClick:y},[g.value?$(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)?$(nve,{class:`${n}-td-content`,tooltipProps:r.value},aze(D=v())?D:{default:()=>[D]}):$("span",{class:[`${n}-td-content`,{[`${n}-text-ellipsis`]:(T=e.column)==null?void 0:T.ellipsis}]},[v()])])};return()=>{var k,C,x,E;return $((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()]})}}}),lze=Se({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=Ae("table"),n=On(u3,{}),r=F(()=>{var l,c,d,h;let p=!1,v=!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:v=!0),{checked:p,indeterminate:v}}),o=()=>e.selectAll?$(Uc,{modelValue:r.value.checked,indeterminate:r.value.indeterminate,uninjectGroupContext:!0,onChange:l=>{var c;(c=n.onSelectAll)==null||c.call(n,l)}},{default:En(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title}):e.operationColumn.title?En(e.operationColumn.title)?e.operationColumn.title():e.operationColumn.title:null,a=F(()=>J0e(e.operationColumn,e.operations)),s=F(()=>[`${t}-th`,`${t}-operation`,{[`${t}-checkbox`]:e.selectAll},...Y0e(t,e.operationColumn)]);return()=>$("th",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0},[$("span",{class:`${t}-cell`},[o()])])}}),Rre=Se({name:"OperationTd",components:{Checkbox:Uc,Radio:Pm,IconPlus:wf,IconMinus:Rm},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=Ae("table"),o=On(u3,{}),a=F(()=>J0e(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"},...Y0e(r,e.operationColumn)]),l=F(()=>NH(e.record)),c=F(()=>{var h;return UVe((h=o.currentSelectedRowKeys)!=null?h:[],l.value)}),d=()=>{var h,p,v,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?$(Uc,{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):$(Uc,{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 $(Pm,{modelValue:(g=(v=e.selectedRowKeys)==null?void 0:v.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:$(H5,null,null):null};return()=>$("td",{class:s.value,style:a.value,rowspan:e.rowSpan>1?e.rowSpan:void 0,colspan:e.colSpan>1?e.colSpan:void 0},[$("span",{class:`${r}-cell`},[d()])])}});const uze=e=>{const t=F(()=>{if(e.value)return e.value.type==="handle"?"handle":"row"}),n=Xt({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,v,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=v,n.targetPath=[...v],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()}}},cze=(e,t)=>{const n=fe(""),r=Xt({}),o=(l,c)=>{c.preventDefault(),n.value=l,Mi(window,"mousemove",s),Mi(window,"mouseup",a),Mi(window,"contextmenu",a)},a=()=>{n.value="",ro(window,"mousemove",s),ro(window,"mouseup",a),ro(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}},dze=({columns:e,onFilterChange:t})=>{const n=fe(Mre(e.value));Rt(e,s=>{const l=Mre(s);s3(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}}},Mre=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},fze=({columns:e,onSorterChange:t})=>{const n=fe(Ore(e.value));Rt(e,s=>{const l=Ore(s);s3(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,"")}}},Ore=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}},$re=({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((v,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:v,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 hze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}const Bre={wrapper:!0,cell:!1,headerCell:!1,bodyCell:!1};var kM=Se({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=On(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:v,defaultExpandAllRows:g,spanMethod:y,draggable:S,summarySpanMethod:k,scrollbar:C,showEmptyTree:x}=nn(e),E=Ae("table"),_=On(Ya,void 0),T=F(()=>br(e.bordered)?{...Bre,...e.bordered}:{...Bre,wrapper:e.bordered}),{children:D,components:P}=Q_("TableColumn"),M=F(()=>{var Lt,Jt;return(Jt=(Lt=a.value)==null?void 0:Lt.checkStrictly)!=null?Jt:!0}),{displayScrollbar:O,scrollbarProps:L}=P5(C),B=F(()=>{var Lt,Jt,un,mn;const Dn=!!((Lt=e.scroll)!=null&&Lt.x||(Jt=e.scroll)!=null&&Jt.minWidth),tr=!!((un=e.scroll)!=null&&un.y||(mn=e.scroll)!=null&&mn.maxHeight);return{x:Dn,y:tr}}),j=fe(),W=fe({}),{componentRef:H,elementRef:K}=U1("containerRef"),{componentRef:Y,elementRef:ne}=U1("containerRef"),{elementRef:X}=U1("viewportRef"),{componentRef:U,elementRef:q}=U1("containerRef"),ee=F(()=>re.value?Ln.value?X.value:ne.value:K.value),re=F(()=>B.value.y||e.stickyHeader||Ln.value||B.value.x&&he.value.length===0),ae=Xt(new Map),ie=fe();Rt([P,ae],([Lt,Jt])=>{if(Lt.length>0){const un=[];Lt.forEach(mn=>{const Dn=Jt.get(mn);Dn&&un.push(Dn)}),ie.value=un}else ie.value=void 0});const ke=new Map,Fe=fe([]),ge=fe([]),{resizingColumn:_e,columnWidth:ze,handleThMouseDown:Qe}=cze(W,t);Rt([r,ie,ze],([Lt,Jt])=>{var un;const mn=NVe((un=Jt??Lt)!=null?un:[],ke,ze);Fe.value=mn.dataColumns,ge.value=mn.groupColumns},{immediate:!0,deep:!0});const Je=F(()=>["tl","top","tr"].includes(e.pagePosition)),Te=fe(!1),ve=fe(!1),be=fe(!1);Os(()=>{var Lt,Jt,un;let mn=!1,Dn=!1,tr=!1;((Lt=e.rowSelection)!=null&&Lt.fixed||(Jt=e.expandable)!=null&&Jt.fixed||(un=e.draggable)!=null&&un.fixed)&&(mn=!0);for(const Tr of Fe.value)Tr.fixed==="left"?(mn=!0,tr=!0):Tr.fixed==="right"&&(Dn=!0);mn!==Te.value&&(Te.value=mn),Dn!==ve.value&&(ve.value=Dn),tr!==be.value&&(be.value=tr)});const Me=F(()=>{for(const Lt of Fe.value)if(Lt.ellipsis)return!0;return!1}),He=Lt=>{const Jt={type:Lt,page:ln.value,pageSize:le.value,sorter:Tt.value,filters:lt.value,dragTarget:Lt==="drag"?fn.data:void 0};t("change",xe.value,Jt,gn.value)},Xe=(Lt,Jt)=>{ft.value={...lt.value,[Lt]:Jt},t("filterChange",Lt,Jt),He("filter")},rt=(Lt,Jt)=>{Wt.value=Jt?{field:Lt,direction:Jt}:void 0,t("sorterChange",Lt,Jt),He("sorter")},{_filters:ft,computedFilters:lt,resetFilters:Et,clearFilters:St}=dze({columns:Fe,onFilterChange:Xe}),{_sorter:Wt,computedSorter:Tt,resetSorters:Mt,clearSorters:sn}=fze({columns:Fe,onSorterChange:rt}),ct=new Set,Ne=F(()=>{const Lt=[];ct.clear();const Jt=un=>{if(sr(un)&&un.length>0)for(const mn of un)Lt.push(mn[o.value]),mn.disabled&&ct.add(mn[o.value]),mn.children&&Jt(mn.children)};return Jt(e.data),Lt}),De=F(()=>{const Lt=[],Jt=un=>{for(const mn of un)Lt.push(mn.key),mn.children&&Jt(mn.children)};return Jt(he.value),Lt}),Oe=F(()=>{const Lt=[],Jt=un=>{for(const mn of un)mn.disabled||Lt.push(mn.key),mn.children&&Jt(mn.children)};return Jt(he.value),Lt}),{selectedRowKeys:Ye,currentSelectedRowKeys:dt,handleSelect:Dt,handleSelectAllLeafs:pt,handleSelectAll:$e,select:Ct,selectAll:Zt,clearSelected:tn}=WVe({selectedKeys:d,defaultSelectedKeys:h,rowSelection:a,currentAllRowKeys:De,currentAllEnabledRowKeys:Oe,emit:t}),{expandedRowKeys:Ft,handleExpand:rn,expand:Qn,expandAll:mr}=GVe({expandedKeys:p,defaultExpandedKeys:v,defaultExpandAllRows:g,expandable:s,allRowKeys:Ne,emit:t}),yi=Xt({}),Kt=(Lt,Jt)=>{Lt&&(yi[Jt.key]=Lt)},st=Lt=>{var Jt,un;for(const mn of Object.keys(lt.value)){const Dn=lt.value[mn],tr=ke.get(mn);if(tr&&((Jt=tr.filterable)!=null&&Jt.filter)&&Dn.length>0){const Tr=(un=tr.filterable)==null?void 0:un.filter(Dn,Lt.raw);if(!Tr)return Tr}}return!0},{dragType:zt,dragState:fn,handleDragStart:on,handleDragEnter:pn,handleDragover:er,handleDragEnd:Kr,handleDrop:wt}=uze(S),Gt=F(()=>{var Lt;const Jt=un=>{const mn=[];for(const Dn of un){const tr={raw:Dn,key:Dn[e.rowKey],disabled:Dn.disabled,expand:Dn.expand,isLeaf:Dn.isLeaf};Dn.children?(tr.isLeaf=!1,tr.children=Jt(Dn.children)):e.loadMore&&!Dn.isLeaf?(tr.isLeaf=!1,yi[tr.key]&&(tr.children=Jt(yi[tr.key]))):tr.isLeaf=!0,tr.hasSubtree=!!(tr.children?!e.hideExpandButtonOnEmpty||tr.children.length>0:e.loadMore&&!tr.isLeaf),mn.push(tr)}return mn};return Jt((Lt=e.data)!=null?Lt:[])}),hn=F(()=>{const Lt=Jt=>Jt.filter(un=>st(un)?(un.children&&(un.children=Lt(un.children)),!0):!1);return Object.keys(lt.value).length>0?Lt(Gt.value):Gt.value}),gn=F(()=>{var Lt,Jt,un;const mn=Q0e(hn.value);if(mn.length>0){if((Lt=Tt.value)!=null&&Lt.field){const Tr=ke.get(Tt.value.field);if(Tr&&((Jt=Tr.sortable)==null?void 0:Jt.sorter)!==!0){const{field:ui,direction:Ji}=Tt.value;mn.sort((Ts,Bu)=>{var yc;const Fr=hm(Ts.raw,ui),xr=hm(Bu.raw,ui);if((yc=Tr.sortable)!=null&&yc.sorter&&En(Tr.sortable.sorter))return Tr.sortable.sorter(Ts.raw,Bu.raw,{dataIndex:ui,direction:Ji});const mo=Fr>xr?1:-1;return Ji==="descend"?-mo:mo})}}const{sourcePath:Dn,targetPath:tr}=fn;if(fn.dragging&&tr.length&&tr.toString()!==Dn.toString()&&Dn.length===tr.length&&Dn.slice(0,-1).toString()===tr.slice(0,-1).toString()){let Tr=mn;for(let ui=0;ui=Dn.length-1){const Bu=Tr[Ji],yc=tr[ui];yc>Ji?(Tr.splice(yc+1,0,Bu),Tr.splice(Ji,1)):(Tr.splice(yc,0,Bu),Tr.splice(Ji+1,1))}else Tr=(un=Tr[Ji].children)!=null?un:[]}}}return mn}),{page:ln,pageSize:le,handlePageChange:oe,handlePageSizeChange:te}=KVe(e,t),J=F(()=>{var Lt,Jt;return(Jt=(Lt=a.value)==null?void 0:Lt.onlyCurrent)!=null?Jt:!1});Rt(ln,(Lt,Jt)=>{Lt!==Jt&&J.value&&tn()});const he=F(()=>e.pagination&&gn.value.length>le.value?gn.value.slice((ln.value-1)*le.value,ln.value*le.value):gn.value),xe=F(()=>eve(he.value)),Ce=()=>Fe.value.reduce((Lt,Jt,un)=>{if(Jt.dataIndex)if(un===0)H8(Lt,Jt.dataIndex,e.summaryText,{addPath:!0});else{let mn=0,Dn=!1;he.value.forEach(tr=>{if(Jt.dataIndex){const Tr=hm(tr.raw,Jt.dataIndex);Ze(Tr)?mn+=Tr:!An(Tr)&&!Tl(Tr)&&(Dn=!0)}}),H8(Lt,Jt.dataIndex,Dn?"":mn,{addPath:!0})}return Lt},{}),Re=Lt=>Lt&&Lt.length>0?Lt.map(Jt=>({raw:Jt,key:Jt[e.rowKey]})):[],ut=F(()=>e.summary?En(e.summary)?Re(e.summary({columns:Fe.value,data:xe.value})):Re([Ce()]):[]),it=fe(0),gt=fe(!0),we=fe(!0),nt=()=>{let Lt=!0,Jt=!0;const un=ee.value;un&&(Lt=it.value===0,Jt=Math.ceil(it.value+un.offsetWidth)>=un.scrollWidth),Lt!==gt.value&&(gt.value=Lt),Jt!==we.value&&(we.value=Jt)},at=()=>gt.value&&we.value?`${E}-scroll-position-both`:gt.value?`${E}-scroll-position-left`:we.value?`${E}-scroll-position-right`:`${E}-scroll-position-middle`,Ot=()=>{const Lt=[];return Te.value&&Lt.push(`${E}-has-fixed-col-left`),ve.value&&Lt.push(`${E}-has-fixed-col-right`),Lt},Qt=Lt=>{Lt.target.scrollLeft!==it.value&&(it.value=Lt.target.scrollLeft),nt()},qt=Lt=>{Qt(Lt);const{scrollLeft:Jt}=Lt.target;q.value&&(q.value.scrollLeft=Jt),j.value&&(j.value.scrollLeft=Jt)},yn=(Lt,Jt)=>{t("rowClick",Lt.raw,Jt)},Sn=(Lt,Jt)=>{t("rowDblclick",Lt.raw,Jt)},dn=(Lt,Jt)=>{t("rowContextmenu",Lt.raw,Jt)},fr=(Lt,Jt,un)=>{t("cellClick",Lt.raw,Jt,un)},or=r_((Lt,Jt,un)=>{t("cellMouseEnter",Lt.raw,Jt,un)},30),wn=r_((Lt,Jt,un)=>{t("cellMouseLeave",Lt.raw,Jt,un)},30),Jn=(Lt,Jt,un)=>{t("cellDblclick",Lt.raw,Jt,un)},hr=(Lt,Jt,un)=>{t("cellContextmenu",Lt.raw,Jt,un)},ar=(Lt,Jt)=>{t("headerClick",Lt,Jt)},Mn=F(()=>{var Lt,Jt;const un=[],mn=Te.value||ve.value;let Dn,tr,Tr;((Lt=e.draggable)==null?void 0:Lt.type)==="handle"&&(Dn={name:"drag-handle",title:e.draggable.title,width:e.draggable.width,fixed:e.draggable.fixed||mn},un.push(Dn)),e.expandable&&(tr={name:"expand",title:e.expandable.title,width:e.expandable.width,fixed:e.expandable.fixed||mn},un.push(tr)),e.rowSelection&&(Tr={name:e.rowSelection.type==="radio"?"selection-radio":"selection-checkbox",title:e.rowSelection.title,width:e.rowSelection.width,fixed:e.rowSelection.fixed||mn},un.push(Tr)),!be.value&&un.length>0&&un[un.length-1].fixed&&(un[un.length-1].isLastLeftFixed=!0);const ui=(Jt=e.components)==null?void 0:Jt.operations;return En(ui)?ui({dragHandle:Dn,expand:tr,selection:Tr}):un}),lr=F(()=>{var Lt,Jt,un,mn;if(B.value.x){const Dn={width:Ze((Lt=e.scroll)==null?void 0:Lt.x)?`${(Jt=e.scroll)==null?void 0:Jt.x}px`:(un=e.scroll)==null?void 0:un.x};return(mn=e.scroll)!=null&&mn.minWidth&&(Dn.minWidth=Ze(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),Dn}}),gr=F(()=>{var Lt,Jt,un,mn;if(B.value.x&&he.value.length>0){const Dn={width:Ze((Lt=e.scroll)==null?void 0:Lt.x)?`${(Jt=e.scroll)==null?void 0:Jt.x}px`:(un=e.scroll)==null?void 0:un.x};return(mn=e.scroll)!=null&&mn.minWidth&&(Dn.minWidth=Ze(e.scroll.minWidth)?`${e.scroll.minWidth}px`:e.scroll.minWidth),Dn}});ri(u3,Xt({loadMore:l,addLazyLoadData:Kt,slots:n,sorter:Tt,filters:lt,filterIconAlignLeft:c,resizingColumn:_e,checkStrictly:M,currentAllEnabledRowKeys:Oe,currentSelectedRowKeys:dt,addColumn:(Lt,Jt)=>{ae.set(Lt,Jt)},removeColumn:Lt=>{ae.delete(Lt)},onSelectAll:$e,onSelect:Dt,onSelectAllLeafs:pt,onSorterChange:rt,onFilterChange:Xe,onThMouseDown:Qe}));const bi=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`]:fn.dragging,[`${E}-type-selection`]:!!e.rowSelection,[`${E}-empty`]:e.data&&he.value.length===0,[`${E}-layout-fixed`]:e.tableLayoutFixed||B.value.x||re.value||Me.value}]),ai=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`]:Je.value}]),Ta=F(()=>{const Lt=Ot();return B.value.x&&Lt.push(at()),re.value&&Lt.push(`${E}-scroll-y`),Lt}),Ln=F(()=>!!e.virtualListProps),Yr=fe({}),ws=()=>{const Lt={};for(const Jt of Object.keys(W.value))Lt[Jt]=W.value[Jt].offsetWidth;Yr.value=Lt},Fo=fe(!1),Go=()=>ne.value?ne.value.offsetWidth>ne.value.clientWidth:!1,li=()=>{const Lt=Go();Fo.value!==Lt&&(Fo.value=Lt),nt(),ws()};bn(()=>{Fo.value=Go(),ws()});const tu=F(()=>br(e.loading)?e.loading:{loading:e.loading}),Il=()=>$(kh,{empty:!0},{default:()=>[$(r0,{colSpan:Fe.value.length+Mn.value.length},{default:()=>{var Lt,Jt,un,mn,Dn;return[(Dn=(mn=(Lt=n.empty)==null?void 0:Lt.call(n))!=null?mn:(un=_==null?void 0:(Jt=_.slots).empty)==null?void 0:un.call(Jt,{component:"table"}))!=null?Dn:$(Xh,null,null)]}})]}),jo=Lt=>{var Jt;if(Lt.expand)return En(Lt.expand)?Lt.expand():Lt.expand;if(n["expand-row"])return n["expand-row"]({record:Lt.raw});if((Jt=e.expandable)!=null&&Jt.expandedRowRender)return e.expandable.expandedRowRender(Lt.raw)},hc=F(()=>[].concat(Mn.value,Fe.value)),og=F(()=>e.spanAll?hc.value:Fe.value),{tableSpan:$f,removedCells:nu}=$re({spanMethod:y,data:he,columns:og}),{tableSpan:pc,removedCells:np}=$re({spanMethod:k,data:ut,columns:hc}),Bs=Lt=>{if(!(!Ln.value||!Lt||!Yr.value[Lt]))return{width:`${Yr.value[Lt]}px`}},Bf=(Lt,Jt)=>$(kh,{key:`table-summary-${Jt}`,class:[`${E}-tr-summary`,En(e.rowClass)?e.rowClass(Lt.raw,Jt):e.rowClass],onClick:un=>yn(Lt,un)},{default:()=>[Mn.value.map((un,mn)=>{var Dn;const tr=`${Jt}-${mn}-${Lt.key}`,[Tr,ui]=(Dn=pc.value[tr])!=null?Dn:[1,1];if(np.value.includes(tr))return null;const Ji=Bs(un.name);return $(Rre,{style:Ji,operationColumn:un,operations:Mn.value,record:Lt,rowSpan:Tr,colSpan:ui,summary:!0},null)}),Fe.value.map((un,mn)=>{var Dn;const tr=`${Jt}-${Mn.value.length+mn}-${Lt.key}`,[Tr,ui]=(Dn=pc.value[tr])!=null?Dn:[1,1];if(np.value.includes(tr))return null;const Ji=Bs(un.dataIndex);return $(r0,{key:`td-${tr}`,style:Ji,rowIndex:Jt,record:Lt,column:un,operations:Mn.value,dataColumns:Fe.value,rowSpan:Tr,colSpan:ui,summary:!0,onClick:Ts=>fr(Lt,un,Ts),onDblclick:Ts=>Jn(Lt,un,Ts),onMouseenter:Ts=>or(Lt,un,Ts),onMouseleave:Ts=>wn(Lt,un,Ts),onContextmenu:Ts=>hr(Lt,un,Ts)},{td:n.td,cell:n["summary-cell"]})})],tr:n.tr}),id=()=>ut.value&&ut.value.length>0?$("tfoot",null,[ut.value.map((Lt,Jt)=>Bf(Lt,Jt))]):null,Vd=(Lt,Jt=!0)=>{var un,mn,Dn,tr,Tr;const ui=Lt.key,Ji=Ft.value.includes(ui);return $("button",{type:"button",class:`${E}-expand-btn`,onClick:Ts=>{rn(ui,Lt.raw),Jt&&Ts.stopPropagation()}},[(Tr=(tr=(un=n["expand-icon"])==null?void 0:un.call(n,{expanded:Ji,record:Lt.raw}))!=null?tr:(Dn=(mn=e.expandable)==null?void 0:mn.icon)==null?void 0:Dn.call(mn,Ji,Lt.raw))!=null?Tr:$(Ji?Rm:wf,null,null)])},Ou=(Lt,{indentSize:Jt,indexPath:un,allowDrag:mn,expandContent:Dn})=>{var tr,Tr;if(Lt.hasSubtree)return((tr=Lt.children)==null?void 0:tr.length)===0&&x.value?Il():(Tr=Lt.children)==null?void 0:Tr.map((ui,Ji)=>tl(ui,Ji,{indentSize:Jt,indexPath:un,allowDrag:mn}));if(Dn){const ui=ee.value;return $(kh,{key:`${Lt.key}-expand`,expand:!0},{default:()=>[$(r0,{isFixedExpand:Te.value||ve.value,containerWidth:ui?.clientWidth,colSpan:Fe.value.length+Mn.value.length},hze(Dn)?Dn:{default:()=>[Dn]})]})}return null},tl=(Lt,Jt,{indentSize:un=0,indexPath:mn,allowDrag:Dn=!0}={})=>{var tr;const Tr=Lt.key,ui=(mn??[]).concat(Jt),Ji=jo(Lt),Ts=Ft.value.includes(Tr),Bu=fn.sourceKey===Lt.key,yc=zt.value?{draggable:Dn,onDragstart:xr=>{Dn&&on(xr,Lt.key,ui,Lt.raw)},onDragend:xr=>{Dn&&Kr(xr)}}:{},Fr=zt.value?{onDragenter:xr=>{Dn&&pn(xr,ui)},onDragover:xr=>{Dn&&er(xr)},onDrop:xr=>{Dn&&(He("drag"),wt(xr))}}:{};return $(Bt,null,[$(kh,Vt({key:Tr,class:[{[`${E}-tr-draggable`]:zt.value==="row",[`${E}-tr-drag`]:Bu},En(e.rowClass)?e.rowClass(Lt.raw,Jt):e.rowClass],rowIndex:Jt,record:Lt,checked:e.rowSelection&&((tr=Ye.value)==null?void 0:tr.includes(Tr)),onClick:xr=>yn(Lt,xr),onDblclick:xr=>Sn(Lt,xr),onContextmenu:xr=>dn(Lt,xr)},zt.value==="row"?yc:{},Fr),{default:()=>[Mn.value.map((xr,mo)=>{var Aa;const si=`${Jt}-${mo}-${Lt.key}`,[Ia,Bn]=e.spanAll?(Aa=$f.value[si])!=null?Aa:[1,1]:[1,1];if(e.spanAll&&nu.value.includes(si))return null;const Nu=Bs(xr.name);return $(Rre,Vt({key:`operation-td-${mo}`,style:Nu,operationColumn:xr,operations:Mn.value,record:Lt,hasExpand:!!Ji,selectedRowKeys:dt.value,rowSpan:Ia,colSpan:Bn,renderExpandBtn:Vd},zt.value==="handle"?yc:{}),{"drag-handle-icon":n["drag-handle-icon"]})}),Fe.value.map((xr,mo)=>{var Aa;const si=`${Jt}-${e.spanAll?Mn.value.length+mo:mo}-${Lt.key}`,[Ia,Bn]=(Aa=$f.value[si])!=null?Aa:[1,1];if(nu.value.includes(si))return null;const Nu=mo===0?{showExpandBtn:Lt.hasSubtree,indentSize:Lt.hasSubtree?un-20:un}:{},TS=Bs(xr.dataIndex);return $(r0,Vt({key:`td-${mo}`,style:TS,rowIndex:Jt,record:Lt,column:xr,operations:Mn.value,dataColumns:Fe.value,rowSpan:Ia,renderExpandBtn:Vd,colSpan:Bn},Nu,{onClick:Ns=>fr(Lt,xr,Ns),onDblclick:Ns=>Jn(Lt,xr,Ns),onMouseenter:Ns=>or(Lt,xr,Ns),onMouseleave:Ns=>wn(Lt,xr,Ns),onContextmenu:Ns=>hr(Lt,xr,Ns)}),{td:n.td})})],tr:n.tr}),Ts&&Ou(Lt,{indentSize:un+e.indentSize,indexPath:ui,allowDrag:Dn&&!Bu,expandContent:Ji})])},Es=()=>{const Lt=he.value.some(Jt=>!!Jt.hasSubtree);return $(db,null,{default:()=>[he.value.length>0?he.value.map((Jt,un)=>tl(Jt,un,{indentSize:Lt?20:0})):Il()],tbody:n.tbody})},rp=()=>$(cb,null,{default:()=>[ge.value.map((Lt,Jt)=>$(kh,{key:`header-row-${Jt}`},{default:()=>[Jt===0&&Mn.value.map((un,mn)=>{var Dn;return $(lze,{key:`operation-th-${mn}`,ref:tr=>{tr?.$el&&un.name&&(W.value[un.name]=tr.$el)},operationColumn:un,operations:Mn.value,selectAll:!!(un.name==="selection-checkbox"&&((Dn=e.rowSelection)!=null&&Dn.showCheckedAll)),rowSpan:ge.value.length},null)}),Lt.map((un,mn)=>{const Dn=e.columnResizable&&!!un.dataIndex&&mn{tr?.$el&&un.dataIndex&&(W.value[un.dataIndex]=tr.$el)},column:un,operations:Mn.value,dataColumns:Fe.value,resizable:Dn,onClick:tr=>ar(un,tr)},{th:n.th})})]}))],thead:n.thead}),vc=()=>{var Lt,Jt;if(re.value){const un=Ze(e.stickyHeader)?`${e.stickyHeader}px`:void 0,mn=[(Lt=L.value)==null?void 0:Lt.outerClass];e.stickyHeader&&mn.push(`${E}-header-sticky`);const Dn={top:un,...(Jt=L.value)==null?void 0:Jt.outerStyle},tr=O.value?Rd:"div";return $(Bt,null,[e.showHeader&&$(tr,Vt({ref:U,class:[`${E}-header`,{[`${E}-header-sticky`]:e.stickyHeader&&!O.value}],style:{overflowY:Fo.value?"scroll":void 0,top:O.value?void 0:un}},C.value?{hide:he.value.length!==0,disableVertical:!0,...L.value,outerClass:mn,outerStyle:Dn}:void 0),{default:()=>[$("table",{class:`${E}-element`,style:lr.value,cellpadding:0,cellspacing:0},[$(kx,{dataColumns:Fe.value,operations:Mn.value,columnWidth:ze},null),rp()])]}),$(Dd,{onResize:li},{default:()=>{var Tr,ui;return[Ln.value&&he.value.length?$(a3,Vt({ref:Ji=>{Ji?.$el&&(ne.value=Ji.$el)},class:`${E}-body`,data:he.value,itemKey:"_key",component:{list:"table",content:"tbody"},listAttrs:{class:`${E}-element`,style:gr.value},paddingPosition:"list",height:"auto"},e.virtualListProps,{onScroll:qt}),{item:({item:Ji,index:Ts})=>tl(Ji,Ts)}):$(tr,Vt({ref:Y,class:`${E}-body`,style:{maxHeight:Ze((Tr=e.scroll)==null?void 0:Tr.y)?`${(ui=e.scroll)==null?void 0:ui.y}px`:"100%"}},C.value?{outerStyle:{display:"flex",minHeight:"0"},...L.value}:void 0,{onScroll:qt}),{default:()=>[$("table",{class:`${E}-element`,style:gr.value,cellpadding:0,cellspacing:0},[he.value.length!==0&&$(kx,{dataColumns:Fe.value,operations:Mn.value,columnWidth:ze},null),Es()])]})]}}),ut.value&&ut.value.length>0&&$("div",{ref:j,class:`${E}-tfoot`,style:{overflowY:Fo.value?"scroll":"hidden"}},[$("table",{class:`${E}-element`,style:gr.value,cellpadding:0,cellspacing:0},[$(kx,{dataColumns:Fe.value,operations:Mn.value,columnWidth:ze},null),id()])])])}return $(Dd,{onResize:()=>nt()},{default:()=>[$("table",{class:`${E}-element`,cellpadding:0,cellspacing:0,style:gr.value},[$(kx,{dataColumns:Fe.value,operations:Mn.value,columnWidth:ze},null),e.showHeader&&rp(),Es(),ut.value&&ut.value.length>0&&id()])]})},mc=Lt=>{var Jt;const un=(Jt=e.scroll)!=null&&Jt.maxHeight?{maxHeight:e.scroll.maxHeight}:void 0,mn=O.value?Rd:"div";return $(Bt,null,[$("div",{class:[`${E}-container`,Ta.value]},[$(mn,Vt({ref:H,class:[`${E}-content`,{[`${E}-content-scroll-x`]:!re.value}],style:un},C.value?{outerStyle:{height:"100%"},...L.value}:void 0,{onScroll:Qt}),{default:()=>[Lt?$("table",{class:`${E}-element`,cellpadding:0,cellspacing:0},[Lt()]):vc()]})]),n.footer&&$("div",{class:`${E}-footer`},[n.footer()])])},$u=()=>{var Lt,Jt;const un=br(e.pagination)?xa(e.pagination,["current","pageSize","defaultCurrent","defaultPageSize"]):{};return $("div",{class:ai.value},[(Lt=n["pagination-left"])==null?void 0:Lt.call(n),$(DH,Vt({total:hn.value.length,current:ln.value,pageSize:le.value,onChange:mn=>{oe(mn),He("pagination")},onPageSizeChange:mn=>{te(mn),He("pagination")}},un),null),(Jt=n["pagination-right"])==null?void 0:Jt.call(n)])},gc=F(()=>{var Lt,Jt;if(cs((Lt=e.scroll)==null?void 0:Lt.y))return{height:(Jt=e.scroll)==null?void 0:Jt.y}});return{render:()=>{var Lt;return n.default?$("div",{class:bi.value},[mc(n.default)]):(D.value=(Lt=n.columns)==null?void 0:Lt.call(n),$("div",{class:bi.value,style:gc.value},[D.value,$(Pd,tu.value,{default:()=>[e.pagination!==!1&&(he.value.length>0||gn.value.length>0)&&Je.value&&$u(),mc(),e.pagination!==!1&&(he.value.length>0||gn.value.length>0)&&!Je.value&&$u()]})]))},selfExpand:Qn,selfExpandAll:mr,selfSelect:Ct,selfSelectAll:Zt,selfResetFilters:Et,selfClearFilters:St,selfResetSorters:Mt,selfClearSorters:sn}},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 ud=(e,t)=>{const n=Lu(e,t),r=fe(n.value);return Rt(n,(o,a)=>{s3(o,a)||(r.value=o)}),r};var Kw=Se({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=ud(e,"sortable"),v=ud(e,"filterable"),g=ud(e,"cellClass"),y=ud(e,"headerCellClass"),S=ud(e,"bodyCellClass"),k=ud(e,"summaryCellClass"),C=ud(e,"cellStyle"),x=ud(e,"headerCellStyle"),E=ud(e,"bodyCellStyle"),_=ud(e,"summaryCellStyle"),T=ud(e,"tooltip"),D=_o(),P=On(u3,{}),M=On(Dre,void 0),{children:O,components:L}=Q_("TableColumn"),B=Xt(new Map);ri(Dre,{addChild:(Y,ne)=>{B.set(Y,ne)},removeChild:Y=>{B.delete(Y)}});const H=fe();Rt([L,B],([Y,ne])=>{if(Y.length>0){const X=[];Y.forEach(U=>{const q=ne.get(U);q&&X.push(q)}),H.value=X}else H.value=void 0});const K=Xt({dataIndex:r,title:o,width:a,minWidth:h,align:s,fixed:l,ellipsis:c,sortable:p,filterable:v,cellClass:g,headerCellClass:y,bodyCellClass:S,summaryCellClass:k,cellStyle:C,headerCellStyle:x,bodyCellStyle:E,summaryCellStyle:_,index:d,tooltip:T,children:H,slots:t});return D&&(M?M.addChild(D.uid,K):(n=P.addColumn)==null||n.call(P,D.uid,K)),Io(()=>{var Y;D&&(M?M.removeChild(D.uid):(Y=P.removeColumn)==null||Y.call(P,D.uid))}),()=>{var Y;return O.value=(Y=t.default)==null?void 0:Y.call(t),O.value}}});const pze=Object.assign(kM,{Thead:cb,Tbody:db,Tr:kh,Th:fb,Td:r0,Column:Kw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+kM.name,kM),e.component(n+cb.name,cb),e.component(n+db.name,db),e.component(n+kh.name,kh),e.component(n+fb.name,fb),e.component(n+r0.name,r0),e.component(n+Kw.name,Kw)}}),vze=({direction:e,type:t,offset:n})=>e==="vertical"?{transform:`translateY(${-n}px)`}:{transform:`translateX(${-n}px)`},mze=(e,t)=>{const{scrollTop:n,scrollLeft:r}=e;t==="horizontal"&&r&&e.scrollTo({left:-1*r}),t==="vertical"&&n&&e.scrollTo({top:-1*n})},VH=Symbol("ArcoTabs"),gze=Se({name:"TabsTab",components:{IconHover:Lo,IconClose:ds},props:{tab:{type:Object,required:!0},active:Boolean,editable:Boolean},emits:["click","delete"],setup(e,{emit:t}){const n=Ae("tabs-tab"),r=On(VH,{}),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 yze(e,t,n,r,o,a){const s=Ie("icon-close"),l=Ie("icon-hover");return z(),Q("div",Vt({tabindex:"0",class:e.cls},e.eventHandlers),[I("span",{class:ue(`${e.prefixCls}-title`)},[vt(e.$slots,"default")],2),e.editable&&e.tab.closable?(z(),qe(l,{key:0,class:ue(`${e.prefixCls}-close-btn`),onClick:us(e.handleDelete,["stop"])},{default:de(()=>[$(s)]),_:1},8,["class","onClick"])):Le("v-if",!0)],16)}var bze=Ve(gze,[["render",yze]]);function _ze(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var Nre=Se({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=Ae("tabs-nav-button"),r=s=>{e.disabled||t("click",e.type,s)},o=()=>e.direction==="horizontal"?e.type==="next"?$(Hi,null,null):$(Al,null,null):e.type==="next"?$(Zh,null,null):$(J_,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 $("div",{class:a.value,onClick:r},[$(Lo,{disabled:e.disabled},_ze(s=o())?s:{default:()=>[s]})])}}});const Sze=Se({name:"TabsNavInk",props:{activeTabRef:{type:Object},direction:{type:String},disabled:Boolean,animation:Boolean},setup(e){const{activeTabRef:t}=nn(e),n=Ae("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)}};bn(()=>{Cn(()=>s())}),Qa(()=>{s()});const l=F(()=>[n,{[`${n}-animation`]:e.animation,[`${n}-disabled`]:e.disabled}]);return{prefixCls:n,cls:l,style:a}}});function kze(e,t,n,r,o,a){return z(),Q("div",{class:ue(e.cls),style:Ge(e.style)},null,6)}var xze=Ve(Sze,[["render",kze]]),Cze=Se({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=Ae("tabs-nav"),d=fe(),h=fe(),p=fe({}),v=F(()=>{if(!An(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 U,q,ee;return(ee=s.value==="vertical"?(U=d.value)==null?void 0:U.offsetHeight:(q=d.value)==null?void 0:q.offsetWidth)!=null?ee: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=U=>{(!d.value||!h.value||U<0)&&(U=0),x.value=Math.min(U,C.value)},M=()=>{if(!v.value||!d.value||!S.value)return;mze(d.value,s.value);const U=s.value==="horizontal",q=U?"offsetLeft":"offsetTop",ee=U?"offsetWidth":"offsetHeight",re=v.value[q],ae=v.value[ee],ie=d.value[ee],ke=window.getComputedStyle(v.value),Fe=U?l.value==="end"?"marginRight":"marginLeft":l.value==="end"?"marginBottom":"marginTop",ge=parseFloat(ke[Fe])||0;l.value==="auto"?rex.value+ie&&P(re+ae-ie+ge):l.value==="center"?P(re+(ae-ie+ge)/2):l.value==="start"?P(re-ge):l.value==="end"?P(re+ae-ie+ge):Ze(l.value)&&P(re-l.value)},O=U=>{if(!S.value)return;U.preventDefault();const{deltaX:q,deltaY:ee}=U;Math.abs(q)>Math.abs(ee)?P(x.value+q):P(x.value+ee)},L=(U,q)=>{t("click",U,q)},B=(U,q)=>{t("delete",U,q),Cn(()=>{delete p.value[U]})},j=U=>{const q=U==="previous"?x.value-k.value:x.value+k.value;P(q)},W=()=>{T(),g.value&&g.value.$forceUpdate()};Rt(r,()=>{Cn(()=>{T()})}),Rt([a,l],()=>{setTimeout(()=>{M()},0)}),bn(()=>{T(),d.value&&Mi(d.value,"wheel",O,{passive:!1})}),gi(()=>{d.value&&ro(d.value,"wheel",O)});const H=()=>!y.value||!e.showAddButton?null:$("div",{class:`${c}-add-btn`,onClick:U=>t("add",U)},[$(Lo,null,{default:()=>[$(wf,null,null)]})]),K=F(()=>[c,`${c}-${e.direction}`,`${c}-${e.position}`,`${c}-size-${e.size}`,`${c}-type-${e.type}`]),Y=F(()=>[`${c}-tab-list`,{[`${c}-tab-list-no-padding`]:!e.headerPadding&&["line","text"].includes(e.type)&&e.direction==="horizontal"}]),ne=F(()=>vze({direction:e.direction,type:e.type,offset:x.value})),X=F(()=>[`${c}-tab`,{[`${c}-tab-scroll`]:S.value}]);return()=>{var U;return $("div",{class:K.value},[S.value&&$(Nre,{type:"previous",direction:e.direction,disabled:x.value<=0,onClick:j},null),$(Dd,{onResize:()=>T()},{default:()=>[$("div",{class:X.value,ref:d},[$(Dd,{onResize:W},{default:()=>[$("div",{ref:h,class:Y.value,style:ne.value},[e.tabs.map((q,ee)=>$(bze,{key:q.key,ref:re=>{re?.$el&&(p.value[q.key]=re.$el)},active:q.key===o.value,tab:q,editable:e.editable,onClick:L,onDelete:B},{default:()=>{var re,ae,ie;return[(ie=(ae=(re=q.slots).title)==null?void 0:ae.call(re))!=null?ie:q.title]}})),e.type==="line"&&v.value&&$(xze,{ref:g,activeTabRef:v.value,direction:e.direction,disabled:!1,animation:e.animation},null)])]}),!S.value&&H()])]}),S.value&&$(Nre,{type:"next",direction:e.direction,disabled:x.value>=C.value,onClick:j},null),$("div",{class:`${c}-extra`},[S.value&&H(),(U=n.extra)==null?void 0:U.call(n)])])}}}),xM=Se({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=Ae("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:v}=Q_("TabPane"),g=Xt(new Map),y=F(()=>{const B=[];return v.value.forEach(j=>{const W=g.get(j);W&&B.push(W)}),B}),S=F(()=>y.value.map(B=>B.key)),k=(B,j)=>{g.set(B,j)},C=B=>{g.delete(B)},x=fe(e.defaultActiveKey),E=F(()=>{var B;const j=(B=e.activeKey)!=null?B:x.value;return An(j)?S.value[0]:j}),_=F(()=>{const B=S.value.indexOf(E.value);return B===-1?0:B});ri(VH,Xt({lazyLoad:o,destroyOnHide:a,activeKey:E,addItem:k,removeItem:C,trigger:s}));const T=B=>{B!==E.value&&(x.value=B,t("update:activeKey",B),t("change",B))},D=(B,j)=>{T(B),t("tabClick",B,j)},P=B=>{t("add",B),e.autoSwitch&&Cn(()=>{const j=S.value[S.value.length-1];T(j)})},M=(B,j)=>{t("delete",B,j)},O=()=>$("div",{class:[`${l}-content`,{[`${l}-content-hide`]:e.hideContent}]},[$("div",{class:[`${l}-content-list`,{[`${l}-content-animation`]:e.animation}],style:{marginLeft:`-${_.value*100}%`}},[p.value])]),L=F(()=>[l,`${l}-${h.value}`,`${l}-${d.value}`,`${l}-type-${e.type}`,`${l}-size-${c.value}`,{[`${l}-justify`]:e.justify}]);return()=>{var B;return p.value=(B=n.default)==null?void 0:B.call(n),$("div",{class:L.value},[d.value==="bottom"&&O(),$(Cze,{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"&&O()])}}});const wze=Se({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=_o(),l=Ae("tabs"),c=On(VH,{}),d=fe(),h=F(()=>s?.vnode.key),p=F(()=>h.value===c.activeKey),v=fe(c.lazyLoad?p.value:!0),g=Xt({key:h,title:r,disabled:o,closable:a,slots:t});return s?.uid&&((n=c.addItem)==null||n.call(c,s.uid,g)),Io(()=>{var y;s?.uid&&((y=c.removeItem)==null||y.call(c,s.uid))}),Rt(p,y=>{y?v.value||(v.value=!0):(e.destroyOnHide||c.destroyOnHide)&&(v.value=!1)}),Qa(()=>{g.slots={...t}}),{prefixCls:l,active:p,itemRef:d,mounted:v}}});function Eze(e,t,n,r,o,a){return z(),Q("div",{ref:"itemRef",class:ue([`${e.prefixCls}-content-item`,{[`${e.prefixCls}-content-item-active`]:e.active}])},[e.mounted?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-pane`)},[vt(e.$slots,"default")],2)):Le("v-if",!0)],2)}var qw=Ve(wze,[["render",Eze]]);const Tze=Object.assign(xM,{TabPane:qw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+xM.name,xM),e.component(n+qw.name,qw)}});function Aze(e){const{modelValue:t,defaultValue:n,format:r,isRange:o}=nn(e);function a(){return o.value?[]:void 0}function s(k){if(!An(k))return o.value?sr(k)?k:[k,void 0]:k}const l=F(()=>{const k=s(t.value);return dc(k,r.value)}),c=F(()=>{const k=s(n.value);return dc(k,r.value)}),[d,h]=Ga(An(l.value)?An(c.value)?a():c.value:l.value);Rt(l,()=>{An(l.value)&&h(a())});const p=F(()=>l.value||d.value),[v,g]=Ga(p.value);Rt([p],()=>{g(p.value)});const[y,S]=Ga();return Rt([v],()=>{S(void 0)}),{computedValue:p,panelValue:v,inputValue:y,setValue:h,setPanelValue:g,setInputValue:S}}var Ize=Se({name:"TimePickerRangePanel",components:{Panel:z8},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);Rt(r,()=>{o.value=r.value});const a=F(()=>n?.value?n.value[o.value]:void 0);function s(c){const d=An(n)||An(n?.value)?[]:[...n.value];d[o.value]=c,t("select",d)}function l(){if(A4(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 $(z8,e,this.$slots)}});const Lze=Se({name:"TimePicker",components:{Trigger:ha,DateInput:jpe,DateRangeInput:o0e,Panel:z8,RangePanel:Ize,IconClockCircle:s_},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:v,disabledMinutes:g,disabledSeconds:y}=nn(e),{mergedDisabled:S,eventHandlers:k}=Do({disabled:d}),C=F(()=>n.value==="time-range"),x=Ae("timepicker"),E=fe(),{format:_,use12Hours:T}=xH(Xt({format:r,use12Hours:o})),{computedValue:D,panelValue:P,inputValue:M,setValue:O,setPanelValue:L,setInputValue:B}=Aze(Xt({modelValue:a,defaultValue:s,isRange:C,format:_})),[j,W]=fa(c.value,Xt({value:l})),H=be=>{be!==j.value&&(W(be),t("popup-visible-change",be),t("update:popupVisible",be))},{t:K}=No(),[Y,ne]=Ga(0),X=F(()=>{const be=h?.value;return C.value?An(be)?K("datePicker.rangePlaceholder.time"):sr(be)?be:[be,be]:An(be)?K("datePicker.placeholder.time"):be}),U=Gpe(Xt({disabledHours:v,disabledMinutes:g,disabledSeconds:y}));function q(be){var Me,He;if(hH(be,D.value)){const Xe=ff(be,_.value),rt=xu(be);t("update:modelValue",Xe),t("change",Xe,rt),(He=(Me=k.value)==null?void 0:Me.onChange)==null||He.call(Me)}}function ee(be,Me){if(U(be))return;let He=be;if(sr(be)){const Xe=Rs();He=be.map(rt=>(rt&&(rt=rt.year(Xe.year()),rt=rt.month(Xe.month()),rt=rt.date(Xe.date())),rt)),A4(He)&&(He=n_(He)),He?.length===0&&(He=void 0)}q(He),O(He),Me!==j.value&&H(Me)}function re(be,Me){L(be),Me!==j.value&&H(Me)}function ae(be){E.value&&E.value.focus&&E.value.focus(be)}function ie(be){S.value||(H(be),be&&Cn(()=>{ae(Y.value)}))}function ke(be){const Me=ff(be,_.value),He=xu(be);t("select",Me,He),p.value&&(!C.value||A4(be))?ee(be,!0):(re(be,!0),B(void 0))}function Fe(be){ee(be,!1)}function ge(){ee(P.value||D.value,!1)}function _e(){if(A4(P.value))ee(P.value,!1);else{const be=(Y.value+1)%2;ne(be),ae(be)}}function ze(be){H(!0);const Me=be.target.value;if(B(Me),!V8(Me,_.value))return;const He=Rs(Me,_.value);U(He)||(p.value?ee(He,!0):re(He,!0))}function Qe(be){H(!0);const Me=be.target.value,He=sr(M.value)?[...M.value]:sr(P.value)&&ff(P.value,_.value)||[];if(He[Y.value]=Me,B(He),!V8(Me,_.value))return;const Xe=Rs(Me,_.value);if(U(Xe))return;const rt=sr(P.value)?[...P.value]:[];rt[Y.value]=Xe,p.value&&A4(rt)?ee(rt,!0):re(rt,!0)}function Je(be){be.stopPropagation(),L(void 0),ee(void 0,C.value)}Rt(j,(be,Me)=>{be!==Me&&L(D.value),be||B(void 0)});const Te=F(()=>C.value?{focusedIndex:Y.value,onFocusedIndexChange:be=>{ne(be)},onChange:Qe,onPressEnter:_e}:{onChange:ze,onPressEnter:ge}),ve=F(()=>C.value?{displayIndex:Y.value,onDisplayIndexChange:be=>{ne(be),ae(be)}}:{});return{refInput:E,isRange:C,prefixCls:x,panelVisible:j,focusedInputIndex:Y,computedPlaceholder:X,panelValue:P,inputValue:M,computedFormat:_,computedUse12Hours:T,inputProps:Te,panelProps:ve,mergedDisabled:S,onPanelVisibleChange:ie,onInputClear:Je,onPanelSelect:ke,onPanelConfirm:Fe,onPanelClick:()=>{ae(Y.value)}}}});function Dze(e,t,n,r,o,a){const s=Ie("IconClockCircle"),l=Ie("Trigger");return z(),qe(l,Vt({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(()=>[I("div",{class:ue(`${e.prefixCls}-container`),onClick:t[0]||(t[0]=(...c)=>e.onPanelClick&&e.onPanelClick(...c))},[(z(),qe(Wa(e.isRange?"RangePanel":"Panel"),Vt(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}),yo({_:2},[e.$slots.extra?{name:"extra-footer",fn:de(()=>[vt(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(()=>[(z(),qe(Wa(e.isRange?"DateRangeInput":"DateInput"),Vt({...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}),yo({"suffix-icon":de(()=>[vt(e.$slots,"suffix-icon",{},()=>[$(s)])]),_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(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 CM=Ve(Lze,[["render",Dze]]);const Pze=Object.assign(CM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+CM.name,CM)}}),rve=Symbol("ArcoTimeline"),Rze=(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]},Mze=Se({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=Ae("timeline-item"),n=_o(),r=On(rve,{}),o=F(()=>{var v,g,y;return(y=(g=r.items)==null?void 0:g.indexOf((v=n?.uid)!=null?v:-1))!=null?y:-1}),a=F(()=>{var v;return(v=r?.direction)!=null?v:"vertical"}),s=F(()=>{var v;return(v=r?.labelPosition)!=null?v:"same"}),l=F(()=>{const{items:v=[],reverse:g,labelPosition:y,mode:S="left"}=r,k=a.value,C=Rze(o.value,S,k,e.position);return[t,{[`${t}-${k}-${C}`]:k,[`${t}-label-${y}`]:y,[`${t}-last`]:o.value===(g===!0?0:v.length-1)}]}),c=F(()=>[`${t}-dot-line`,`${t}-dot-line-is-${a.value}`]),d=F(()=>{const{direction:v}=r||{};return{[v==="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 Oze(e,t,n,r,o,a){return z(),Q("div",{role:"listitem",class:ue(e.cls)},[I("div",{class:ue(`${e.prefixCls}-dot-wrapper`)},[I("div",{class:ue(e.dotLineCls),style:Ge(e.computedDotLineStyle)},null,6),I("div",{class:ue(`${e.prefixCls}-dot-content`)},[e.$slots.dot?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-dot-custom`)},[vt(e.$slots,"dot")],2)):(z(),Q("div",{key:1,class:ue(e.dotTypeCls),style:Ge(e.computedDotStyle)},null,6))],2)],2),I("div",{class:ue(`${e.prefixCls}-content-wrapper`)},[e.$slots.default?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-content`)},[vt(e.$slots,"default")],2)):Le("v-if",!0),e.labelPosition!=="relative"?(z(),Q("div",{key:1,class:ue(`${e.prefixCls}-label`)},[e.$slots.label?vt(e.$slots,"label",{key:0}):(z(),Q(Bt,{key:1},[Ue(je(e.label),1)],64))],2)):Le("v-if",!0)],2),e.labelPosition==="relative"?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-label`)},[e.$slots.label?vt(e.$slots,"label",{key:0}):(z(),Q(Bt,{key:1},[Ue(je(e.label),1)],64))],2)):Le("v-if",!0)],2)}var uy=Ve(Mze,[["render",Oze]]),wM=Se({name:"Timeline",components:{Item:uy,Spin:Pd},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=Ae("timeline"),r=F(()=>e.pending||t.pending),{children:o,components:a}=Q_("TimelineItem"),{reverse:s,direction:l,labelPosition:c,mode:d}=nn(e),h=Xt({items:a,direction:l,reverse:s,labelPosition:c,mode:d});ri(rve,h);const p=F(()=>[n,`${n}-${e.mode}`,`${n}-direction-${e.direction}`,{[`${n}-is-reverse`]:e.reverse}]);return()=>{var v,g;return r.value?o.value=(v=t.default)==null?void 0:v.call(t).concat($(uy,{lineType:"dashed"},{default:()=>[e.pending!==!0&&$("div",null,[e.pending])],dot:()=>{var y,S;return(S=(y=t.dot)==null?void 0:y.call(t))!=null?S:$(Pd,{size:12},null)}})):o.value=(g=t.default)==null?void 0:g.call(t),$("div",{role:"list",class:p.value},[o.value])}}});const $ze=Object.assign(wM,{Item:uy,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+wM.name,wM),e.component(n+uy.name,uy)}}),Bze=Se({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=Ae("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)}}}}),Nze=["stroke-width","stroke-linecap","stroke-linejoin"];function Fze(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Nze)}var EM=Ve(Bze,[["render",Fze]]);const fc=Object.assign(EM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EM.name,EM)}}),zH=Symbol("ArcoTransfer");var jze=Se({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=Ae("transfer-list-item"),n=On(zH,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 $("div",{class:o.value,onClick:r},[e.allowClear||e.simple?$("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]):$(Uc,{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&&$(Lo,{class:`${t}-remove-btn`,onClick:a},{default:()=>[$(ds,null,null)]})])}}});const Vze=Se({name:"TransferView",components:{Empty:QC,Checkbox:Uc,IconHover:Lo,IconDelete:fc,InputSearch:N0.Search,List:M0e,TransferListItem:jze,Scrollbar:Rd},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=Ae("transfer-view"),r=fe(""),o=On(zH,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 zze(e,t,n,r,o,a){const s=Ie("checkbox"),l=Ie("icon-delete"),c=Ie("icon-hover"),d=Ie("input-search"),h=Ie("transfer-list-item"),p=Ie("list"),v=Ie("Scrollbar"),g=Ie("Empty");return z(),Q("div",{class:ue(e.prefixCls)},[I("div",{class:ue(`${e.prefixCls}-header`)},[vt(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},()=>[I("span",{class:ue(`${e.prefixCls}-header-title`)},[e.allowClear||e.simple||!e.showSelectAll?(z(),Q("span",{key:0,class:ue(`${e.prefixCls}-header-title-simple`)},je(e.title),3)):(z(),qe(s,{key:1,"model-value":e.checked,indeterminate:e.indeterminate,disabled:e.disabled,"uninject-group-context":"",onChange:e.handleSelectAllChange},{default:de(()=>[Ue(je(e.title),1)]),_:1},8,["model-value","indeterminate","disabled","onChange"]))],2),e.allowClear?(z(),qe(c,{key:0,disabled:e.disabled,class:ue(`${e.prefixCls}-header-clear-btn`),onClick:e.handleClear},{default:de(()=>[$(l)]),_:1},8,["disabled","class","onClick"])):e.simple?Le("v-if",!0):(z(),Q("span",{key:1,class:ue(`${e.prefixCls}-header-count`)},je(e.dataInfo.selected.length)+" / "+je(e.dataInfo.data.length),3))])],2),e.showSearch?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-search`)},[$(d,Vt({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)):Le("v-if",!0),I("div",{class:ue(`${e.prefixCls}-body`)},[e.filteredData.length>0?(z(),qe(v,{key:0},{default:de(()=>{var y,S;return[vt(e.$slots,"default",{data:e.filteredData,selectedKeys:(y=e.transferCtx)==null?void 0:y.selected,onSelect:(S=e.transferCtx)==null?void 0:S.onSelect},()=>[$(p,{class:ue(`${e.prefixCls}-list`),bordered:!1,scrollbar:!1},{default:de(()=>[(z(!0),Q(Bt,null,vn(e.filteredData,k=>(z(),qe(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})):(z(),qe(g,{key:1,class:ue(`${e.prefixCls}-empty`)},null,8,["class"]))],2)],2)}var Uze=Ve(Vze,[["render",zze]]);const Hze=Se({name:"Transfer",components:{ArcoButton:Xo,TransferView:Uze,IconLeft:Al,IconRight:Hi},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}=Do({disabled:Lu(e,"disabled")}),a=Ae("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]}),v=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(v.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"?v.value.sourceInfo.validSelected:v.value.targetInfo.validSelected;y(E,x)},k=x=>{c.value=x,t("update:selected",x),t("select",x)};ri(zH,Xt({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:v,computedSelected:d,mergedDisabled:r,sourceTitle:h,targetTitle:p,handleClick:S,handleSearch:g}}});function Wze(e,t,n,r,o,a){const s=Ie("transfer-view"),l=Ie("icon-right"),c=Ie("arco-button"),d=Ie("icon-left");return z(),Q("div",{class:ue(e.cls)},[$(s,{type:"source",class:ue(`${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},yo({_:2},[e.$slots.source?{name:"default",fn:de(h=>[vt(e.$slots,"source",Yi(Sa(h)))]),key:"0"}:void 0,e.$slots["source-title"]?{name:"title",fn:de(h=>[vt(e.$slots,"source-title",Yi(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?Le("v-if",!0):(z(),Q("div",{key:0,class:ue([`${e.prefixCls}-operations`])},[$(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(()=>[vt(e.$slots,"to-target-icon",{},()=>[$(l)])]),_:3},8,["disabled"]),e.oneWay?Le("v-if",!0):(z(),qe(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(()=>[vt(e.$slots,"to-source-icon",{},()=>[$(d)])]),_:3},8,["disabled"]))],2)),$(s,{type:"target",class:ue(`${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},yo({_:2},[e.$slots.target?{name:"default",fn:de(h=>[vt(e.$slots,"target",Yi(Sa(h)))]),key:"0"}:void 0,e.$slots["target-title"]?{name:"title",fn:de(h=>[vt(e.$slots,"target-title",Yi(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 TM=Ve(Hze,[["render",Wze]]);const Gze=Object.assign(TM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+TM.name,TM)}}),ive=Symbol("TreeInjectionKey");function Kze(e){const t=[];function n(r){r&&r.forEach(o=>{t.push(o),n(o.children)})}return n(e),t}function qze(e){const t=new Map;return e.forEach(n=>{t.set(n.key,n)}),t}function cV(e){return e.selectable&&!e.disabled}function Fre(e){return!e.isLeaf&&e.children}function Yze(e){return El(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 vm(e){return e.disabled||e.disableCheckbox?!1:!!e.checkable}function UH(e){var t;const n=[];return(t=e.children)==null||t.forEach(r=>{vm(r)&&n.push(r.key,...UH(r))}),n}function ove(e){var t;const{node:n,checkedKeySet:r,indeterminateKeySet:o}=e;let a=n.parent;for(;a;){if(vm(a)){const s=a.key,l=((t=a.children)==null?void 0:t.filter(vm))||[];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=UH(t);n?d.forEach(dV(l)):d.forEach(fV(l)),d.forEach(fV(c)),ove({node:t,checkedKeySet:l,indeterminateKeySet:c})}return[[...l],[...c]]}function Xze(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=UH(h);p.forEach(dV(s)),p.forEach(fV(l)),a.add(c),l.delete(c),ove({node:h,checkedKeySet:a,indeterminateKeySet:l})}),[[...a,...s],[...l]]}function q5(){return On(ive)||{}}const Zze=Se({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=Ae("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)}}}}),Jze=["stroke-width","stroke-linecap","stroke-linejoin"];function Qze(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Jze)}var AM=Ve(Zze,[["render",Qze]]);const Y5=Object.assign(AM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AM.name,AM)}});var eUe=Se({name:"TreeNodeSwitcher",components:{IconLoading:Xa,RenderFunction:Jh},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=q5(),l=xd(t,"switcher-icon"),c=xd(t,"loading-icon");return{getSwitcherIcon:()=>{var d,h,p;const v=(h=(d=r?.value)==null?void 0:d.switcherIcon)!=null?h:l.value;return v?v(o.value):(p=s.switcherIcon)==null?void 0:p.call(s,a.value,o.value)},getLoadingIcon:()=>{var d,h,p;const v=(h=(d=r?.value)==null?void 0:d.loadingIcon)!=null?h:c.value;return v?v(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 v=null,g=!1;if(p)d&&(v=(n=o())!=null?n:da(Y5));else{const S=d?da("span",{class:`${r}-${h?"minus":"plus"}-icon`}):da(FH);v=(t=o())!=null?t:S,g=!d}if(!v)return null;const y=da("span",{class:`${r}-switcher-icon`,onClick:s},v);return g?da(Lo,{class:`${r}-icon-hover`},()=>y):y}});const sve=(()=>{let e=0;return()=>(e+=1,`__arco_tree${e}`)})();function tUe(e,t){return!!(An(e)?t:e)}function nUe(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 jre({subEnable:e,superEnable:t,isLeaf:n,treeNodeData:r,level:o}){return An(e)?En(t)?t(r,{isLeaf:n,level:o}):t??!1:e}function rUe(e){var t,n;const{treeNodeData:r,parentNode:o,isTail:a=!0,treeProps:s}=e,{fieldNames:l}=s||{},c=nUe(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:sve(),selectable:jre({subEnable:c.selectable,superEnable:s?.selectable,isLeaf:d,level:h,treeNodeData:r}),disabled:!!c.disabled,disableCheckbox:!!c.disableCheckbox,checkable:jre({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:tUe(c.draggable,s?.draggable)};return{...p,treeNodeProps:p,treeNodeData:r,parent:o,parentKey:o?.key,pathParentKeys:o?[...o.pathParentKeys,o.key]:[]}}function iUe(e,t){function n(r,o){if(!r)return;const{fieldNames:a}=t,s=[];return r.forEach((l,c)=>{const d=rUe({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 ave(){const e=_o(),t=()=>{var r;return(r=e?.vnode.key)!=null?r:sve()},n=fe(t());return Qa(()=>{n.value=t()}),n}function oUe(e){const{key:t,refTitle:n}=nn(e),r=q5(),o=fe(!1),a=fe(!1),s=fe(!1),l=fe(0),c=Im(d=>{if(!n.value)return;const h=n.value.getBoundingClientRect(),p=window.pageYOffset+h.top,{pageY:v}=d,g=h.height/4,y=v-p;l.value=y[]}},setup(e){const t=ave(),n=Ae("tree-node"),r=q5(),o=F(()=>{var ne;return(ne=r.key2TreeNode)==null?void 0:ne.get(t.value)}),a=F(()=>o.value.treeNodeData),s=F(()=>o.value.children),l=F(()=>{var ne;const X=(ne=r.treeProps)==null?void 0:ne.actionOnNodeClick;return X?sUe(X):[]}),{isLeaf:c,isTail:d,selectable:h,disabled:p,disableCheckbox:v,draggable:g}=nn(e),y=F(()=>{var ne;return[`${n}`,{[`${n}-selected`]:M.value,[`${n}-is-leaf`]:c.value,[`${n}-is-tail`]:d.value,[`${n}-expanded`]:O.value,[`${n}-disabled-selectable`]:!h.value&&!((ne=r.treeProps)!=null&&ne.disableSelectActionOnly),[`${n}-disabled`]:p.value}]}),S=fe(),{isDragOver:k,isDragging:C,isAllowDrop:x,dropPosition:E,setDragStatus:_}=oUe(Xt({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 ne,X;return(X=(ne=r.checkedKeys)==null?void 0:ne.includes)==null?void 0:X.call(ne,t.value)}),P=F(()=>{var ne,X;return(X=(ne=r.indeterminateKeys)==null?void 0:ne.includes)==null?void 0:X.call(ne,t.value)}),M=F(()=>{var ne,X;return(X=(ne=r.selectedKeys)==null?void 0:ne.includes)==null?void 0:X.call(ne,t.value)}),O=F(()=>{var ne,X;return(X=(ne=r.expandedKeys)==null?void 0:ne.includes)==null?void 0:X.call(ne,t.value)}),L=F(()=>{var ne,X;return(X=(ne=r.loadingKeys)==null?void 0:ne.includes)==null?void 0:X.call(ne,t.value)}),B=F(()=>r.dragIcon),j=F(()=>r.nodeIcon);function W(ne){var X,U;c.value||(!((X=s.value)!=null&&X.length)&&En(r.onLoadMore)?r.onLoadMore(t.value):(U=r?.onExpand)==null||U.call(r,!O.value,t.value,ne))}const H=Xt({loading:L,checked:D,selected:M,indeterminate:P,expanded:O,isLeaf:c}),K=F(()=>r.nodeTitle?()=>{var ne;return(ne=r.nodeTitle)==null?void 0:ne.call(r,a.value,H)}:void 0),Y=F(()=>r.nodeExtra?()=>{var ne;return(ne=r.nodeExtra)==null?void 0:ne.call(r,a.value,H)}:void 0);return{nodekey:t,refTitle:S,prefixCls:n,classNames:y,titleClassNames:T,indeterminate:P,checked:D,expanded:O,selected:M,treeTitle:K,treeNodeData:a,loading:L,treeDragIcon:B,treeNodeIcon:j,extra:Y,nodeStatus:H,onCheckboxChange(ne,X){var U;v.value||p.value||(U=r.onCheck)==null||U.call(r,ne,t.value,X)},onTitleClick(ne){var X;l.value.includes("expand")&&W(ne),!(!h.value||p.value)&&((X=r.onSelect)==null||X.call(r,t.value,ne))},onSwitcherClick:W,onDragStart(ne){var X;if(g.value){ne.stopPropagation(),_("dragStart",ne);try{(X=ne.dataTransfer)==null||X.setData("text/plain","")}catch{}}},onDragEnd(ne){g.value&&(ne.stopPropagation(),_("dragEnd",ne))},onDragOver(ne){g&&(ne.stopPropagation(),ne.preventDefault(),_("dragOver",ne))},onDragLeave(ne){g.value&&(ne.stopPropagation(),_("dragLeave",ne))},onDrop(ne){!g.value||!x.value||(ne.stopPropagation(),ne.preventDefault(),_("drop",ne))}}}}),lUe=["data-level","data-key"],uUe=["draggable"];function cUe(e,t,n,r,o,a){const s=Ie("NodeSwitcher"),l=Ie("Checkbox"),c=Ie("RenderFunction"),d=Ie("IconDragDotVertical");return z(),Q("div",{class:ue(e.classNames),"data-level":e.level,"data-key":e.nodekey},[Le(" 缩进 "),I("span",{class:ue(`${e.prefixCls}-indent`)},[(z(!0),Q(Bt,null,vn(e.level,h=>(z(),Q("span",{key:h,class:ue([`${e.prefixCls}-indent-block`,{[`${e.prefixCls}-indent-block-lineless`]:e.lineless[h-1]}])},null,2))),128))],2),Le(" switcher "),I("span",{class:ue([`${e.prefixCls}-switcher`,{[`${e.prefixCls}-switcher-expanded`]:e.expanded}])},[$(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},yo({_:2},[e.$slots["switcher-icon"]?{name:"switcher-icon",fn:de(()=>[Le(" @slot 定制 switcher 图标,会覆盖 Tree 的配置 "),vt(e.$slots,"switcher-icon")]),key:"0"}:void 0,e.$slots["loading-icon"]?{name:"loading-icon",fn:de(()=>[Le(" @slot 定制 loading 图标,会覆盖 Tree 的配置 "),vt(e.$slots,"loading-icon")]),key:"1"}:void 0]),1032,["prefix-cls","loading","show-line","tree-node-data","icons","node-status","onClick"])],2),Le(" checkbox "),e.checkable?(z(),qe(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"])):Le("v-if",!0),Le(" 内容 "),I("span",{ref:"refTitle",class:ue(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?(z(),Q("span",{key:0,class:ue([`${e.prefixCls}-icon`,`${e.prefixCls}-custom-icon`])},[Le(" 节点图标 "),e.$slots.icon?vt(e.$slots,"icon",Yi(Vt({key:0},e.nodeStatus))):e.icon?(z(),qe(c,Vt({key:1,"render-func":e.icon},e.nodeStatus),null,16,["render-func"])):e.treeNodeIcon?(z(),qe(c,Vt({key:2,"render-func":e.treeNodeIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):Le("v-if",!0)],2)):Le("v-if",!0),I("span",{class:ue(`${e.prefixCls}-title-text`)},[e.treeTitle?(z(),qe(c,{key:0,"render-func":e.treeTitle},null,8,["render-func"])):(z(),Q(Bt,{key:1},[Le(" 标题,treeTitle 优先级高于节点的 title "),vt(e.$slots,"title",{title:e.title},()=>[Ue(je(e.title),1)])],2112)),e.draggable?(z(),Q("span",{key:2,class:ue([`${e.prefixCls}-icon`,`${e.prefixCls}-drag-icon`])},[Le(" 拖拽图标 "),e.$slots["drag-icon"]?vt(e.$slots,"drag-icon",Yi(Vt({key:0},e.nodeStatus))):e.dragIcon?(z(),qe(c,Vt({key:1,"render-func":e.dragIcon},e.nodeStatus),null,16,["render-func"])):e.treeDragIcon?(z(),qe(c,Vt({key:2,"render-func":e.treeDragIcon,node:e.treeNodeData},e.nodeStatus),null,16,["render-func","node"])):(z(),qe(d,{key:3}))],2)):Le("v-if",!0)],2)],42,uUe),Le(" 额外 "),e.extra?(z(),qe(c,{key:1,"render-func":e.extra},null,8,["render-func"])):Le("v-if",!0)],10,lUe)}var pV=Ve(aUe,[["render",cUe]]);const dUe=Se({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 fUe(e,t,n,r,o,a){return z(),qe(Cs,{onEnter:e.onEnter,onAfterEnter:e.onAfterEnter,onBeforeLeave:e.onBeforeLeave},{default:de(()=>[vt(e.$slots,"default")]),_:3},8,["onEnter","onAfterEnter","onBeforeLeave"])}var hUe=Ve(dUe,[["render",fUe]]);const pUe=Se({name:"TransitionNodeList",components:{ExpandTransition:hUe,BaseTreeNode:pV},props:{nodeKey:{type:[String,Number],required:!0}},setup(e){const n=[`${Ae("tree")}-node-list`],r=q5(),{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 v,g;return(v=p.pathParentKeys)!=null&&v.includes(o.value)?!r.filterTreeNode||((g=r.filterTreeNode)==null?void 0:g.call(r,p.treeNodeData)):!1});return h?.filter(p=>{var v;if(a.value)return(v=p.pathParentKeys)==null?void 0:v.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 vUe(e,t,n,r,o,a){const s=Ie("BaseTreeNode"),l=Ie("ExpandTransition");return z(),qe(l,{expanded:e.expanded,onEnd:e.onTransitionEnd},{default:de(()=>[e.show?(z(),Q("div",{key:0,class:ue(e.classNames)},[(z(!0),Q(Bt,null,vn(e.visibleNodeList,c=>(z(),qe(s,Vt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)):Le("v-if",!0)]),_:1},8,["expanded","onEnd"])}var mUe=Ve(pUe,[["render",vUe]]),gUe=Se({name:"TreeNode",inheritAttrs:!1,props:{...pV.props},setup(e,{slots:t,attrs:n}){const r=ave();return()=>$(Bt,null,[$(pV,Vt(e,n,{key:r.value}),t),$(mUe,{key:r.value,nodeKey:r.value},null)])}});function yUe(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(),v=y=>Xze({initCheckedKeys:y,key2TreeNode:r.value,checkStrictly:o.value,onlyCheckLeaf:s.value}),g=y=>{const S=v(y);[c.value,d.value]=S};return g(n.value||t?.value||[]),Os(()=>{n.value?[h.value,p.value]=v(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 lve(e){const{treeData:t,fieldNames:n,selectable:r,showLine:o,blockNode:a,checkable:s,loadMore:l,draggable:c}=nn(e),d=fe([]);Os(()=>{var v,g;d.value=iUe(t.value||[],{selectable:(v=r?.value)!=null?v:!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(()=>Kze(d.value)),p=F(()=>qze(h.value));return{treeData:d,flattenTreeData:h,key2TreeNode:p}}const bUe=Se({name:"Tree",components:{VirtualList:a3,TreeNode:gUe},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:v,defaultExpandedKeys:g,checkedStrategy:y,selectable:S,checkable:k,blockNode:C,fieldNames:x,size:E,defaultExpandAll:_,filterTreeNode:T,draggable:D,allowDrop:P,defaultExpandSelected:M,defaultExpandChecked:O,autoExpandParent:L,halfCheckedKeys:B,onlyCheckLeaf:j,animation:W}=nn(e),H=Ae("tree"),K=F(()=>[`${H}`,{[`${H}-checkable`]:k.value,[`${H}-show-line`]:o.value},`${H}-size-${E.value}`]),Y=xd(n,"switcher-icon"),ne=xd(n,"loading-icon"),X=xd(n,"drag-icon"),U=xd(n,"icon"),q=xd(n,"title"),ee=xd(n,"extra"),{treeData:re,flattenTreeData:ae,key2TreeNode:ie}=lve(Xt({treeData:r,selectable:S,showLine:o,blockNode:C,checkable:k,fieldNames:x,loadMore:s,draggable:D})),{checkedKeys:ke,indeterminateKeys:Fe,setCheckedState:ge}=yUe(Xt({defaultCheckedKeys:d,checkedKeys:c,checkStrictly:l,key2TreeNode:ie,halfCheckedKeys:B,onlyCheckLeaf:j})),[_e,ze]=fa(p?.value||[],Xt({value:h})),Qe=fe([]),Je=fe();function Te(){if(g?.value){const pt=new Set([]);return g.value.forEach($e=>{if(pt.has($e))return;const Ct=ie.value.get($e);Ct&&[...L.value?Ct.pathParentKeys:[],$e].forEach(Zt=>pt.add(Zt))}),[...pt]}if(_.value)return ae.value.filter(pt=>pt.children&&pt.children.length).map(pt=>pt.key);if(M.value||O.value){const pt=new Set([]),$e=Ct=>{Ct.forEach(Zt=>{const tn=ie.value.get(Zt);tn&&(tn.pathParentKeys||[]).forEach(Ft=>pt.add(Ft))})};return M.value&&$e(_e.value),O.value&&$e(ke.value),[...pt]}return[]}const[ve,be]=fa(Te(),Xt({value:v})),Me=fe([]),He=F(()=>{const pt=new Set(ve.value),$e=new Set(Me.value);return ae.value.filter(Ct=>{var Zt;if(!(!T||!T.value||T?.value(Ct.treeNodeData)))return!1;const Ft=An(Ct.parentKey),rn=(Zt=Ct.pathParentKeys)==null?void 0:Zt.every(Qn=>pt.has(Qn)&&!$e.has(Qn));return Ft||rn})});function Xe(pt,$e=y.value){let Ct=[...pt];return $e==="parent"?Ct=pt.filter(Zt=>{const tn=ie.value.get(Zt);return tn&&!(!An(tn.parentKey)&&pt.includes(tn.parentKey))}):$e==="child"&&(Ct=pt.filter(Zt=>{var tn,Ft;return!((Ft=(tn=ie.value.get(Zt))==null?void 0:tn.children)!=null&&Ft.length)})),Ct}function rt(pt){return pt.map($e=>{var Ct;return((Ct=ie.value.get($e))==null?void 0:Ct.treeNodeData)||void 0}).filter(Boolean)}function ft(pt){const{targetKey:$e,targetChecked:Ct,newCheckedKeys:Zt,newIndeterminateKeys:tn,event:Ft}=pt,rn=$e?ie.value.get($e):void 0,Qn=Xe(Zt);t("update:checkedKeys",Qn),t("update:halfCheckedKeys",tn),t("check",Qn,{checked:Ct,node:rn?.treeNodeData,checkedNodes:rt(Qn),halfCheckedKeys:tn,halfCheckedNodes:rt(tn),e:Ft})}function lt(pt){const{targetKey:$e,targetSelected:Ct,newSelectedKeys:Zt,event:tn}=pt,Ft=$e?ie.value.get($e):void 0;t("update:selectedKeys",Zt),t("select",Zt,{selected:Ct,node:Ft?.treeNodeData,selectedNodes:rt(Zt),e:tn})}function Et(pt){const{targetKey:$e,targetExpanded:Ct,newExpandedKeys:Zt,event:tn}=pt,Ft=$e?ie.value.get($e):void 0;t("expand",Zt,{expanded:Ct,node:Ft?.treeNodeData,expandedNodes:rt(Zt),e:tn}),t("update:expandedKeys",Zt)}function St(pt){const[$e,Ct]=ge(pt,[],!0);ft({newCheckedKeys:$e,newIndeterminateKeys:Ct})}function Wt(pt){let $e=pt;!a.value&&pt.length>1&&($e=[pt[0]]),ze($e),lt({newSelectedKeys:$e})}function Tt(pt){Me.value=[],be(pt),Et({newExpandedKeys:pt})}function Mt(pt,$e,Ct){if(!pt.length)return;let Zt=[...ke.value],tn=[...Fe.value];pt.forEach(Ft=>{const rn=ie.value.get(Ft);rn&&([Zt,tn]=hV({node:rn,checked:$e,checkedKeys:[...Zt],indeterminateKeys:[...tn],checkStrictly:l.value}))}),ge(Zt,tn),ft({targetKey:Ct,targetChecked:An(Ct)?void 0:$e,newCheckedKeys:Zt,newIndeterminateKeys:tn})}function sn(pt,$e,Ct){if(!pt.length)return;let Zt;if(a.value){const tn=new Set(_e.value);pt.forEach(Ft=>{$e?tn.add(Ft):tn.delete(Ft)}),Zt=[...tn]}else Zt=$e?[pt[0]]:[];ze(Zt),lt({targetKey:Ct,targetSelected:An(Ct)?void 0:$e,newSelectedKeys:Zt})}function ct(pt,$e,Ct){const Zt=new Set(ve.value);pt.forEach(Ft=>{$e?Zt.add(Ft):Zt.delete(Ft),Ye(Ft)});const tn=[...Zt];be(tn),Et({targetKey:Ct,targetExpanded:An(Ct)?void 0:$e,newExpandedKeys:tn})}function Ne(pt,$e,Ct){const Zt=ie.value.get($e);if(!Zt)return;const[tn,Ft]=hV({node:Zt,checked:pt,checkedKeys:ke.value,indeterminateKeys:Fe.value,checkStrictly:l.value});ge(tn,Ft),ft({targetKey:$e,targetChecked:pt,newCheckedKeys:tn,newIndeterminateKeys:Ft,event:Ct})}function De(pt,$e){if(!ie.value.get(pt))return;let Zt,tn;if(a.value){const Ft=new Set(_e.value);tn=!Ft.has(pt),tn?Ft.add(pt):Ft.delete(pt),Zt=[...Ft]}else tn=!0,Zt=[pt];ze(Zt),lt({targetKey:pt,targetSelected:tn,newSelectedKeys:Zt,event:$e})}function Oe(pt,$e,Ct){if(Me.value.includes($e)||!ie.value.get($e))return;const tn=new Set(ve.value);pt?tn.add($e):tn.delete($e);const Ft=[...tn];be(Ft),W.value&&Me.value.push($e),Et({targetKey:$e,targetExpanded:pt,newExpandedKeys:Ft,event:Ct})}function Ye(pt){const $e=Me.value.indexOf(pt);Me.value.splice($e,1)}const dt=F(()=>s?.value?async pt=>{if(!En(s.value))return;const $e=ie.value.get(pt);if(!$e)return;const{treeNodeData:Ct}=$e;Qe.value=[...new Set([...Qe.value,pt])];try{await s.value(Ct),Qe.value=Qe.value.filter(Zt=>Zt!==pt),Oe(!0,pt),ke.value.includes(pt)&&Ne(!0,pt)}catch(Zt){Qe.value=Qe.value.filter(tn=>tn!==pt),console.error("[tree]load data error: ",Zt)}}:void 0),Dt=Xt({treeProps:e,switcherIcon:Y,loadingIcon:ne,dragIcon:X,nodeIcon:U,nodeTitle:q,nodeExtra:ee,treeData:re,flattenTreeData:ae,key2TreeNode:ie,checkedKeys:ke,indeterminateKeys:Fe,selectedKeys:_e,expandedKeys:ve,loadingKeys:Qe,currentExpandKeys:Me,onLoadMore:dt,filterTreeNode:T,onCheck:Ne,onSelect:De,onExpand:Oe,onExpandEnd:Ye,allowDrop(pt,$e){const Ct=ie.value.get(pt);return Ct&&En(P.value)?!!P.value({dropNode:Ct.treeNodeData,dropPosition:$e}):!0},onDragStart(pt,$e){const Ct=ie.value.get(pt);Je.value=Ct,Ct&&t("dragStart",$e,Ct.treeNodeData)},onDragEnd(pt,$e){const Ct=ie.value.get(pt);Je.value=void 0,Ct&&t("dragEnd",$e,Ct.treeNodeData)},onDragOver(pt,$e){const Ct=ie.value.get(pt);Ct&&t("dragOver",$e,Ct.treeNodeData)},onDragLeave(pt,$e){const Ct=ie.value.get(pt);Ct&&t("dragLeave",$e,Ct.treeNodeData)},onDrop(pt,$e,Ct){const Zt=ie.value.get(pt);Je.value&&Zt&&!(Zt.key===Je.value.key||Zt.pathParentKeys.includes(Je.value.key||""))&&t("drop",{e:Ct,dragNode:Je.value.treeNodeData,dropNode:Zt.treeNodeData,dropPosition:$e})}});return ri(ive,Dt),{classNames:K,visibleTreeNodeList:He,treeContext:Dt,virtualListRef:fe(),computedSelectedKeys:_e,computedExpandedKeys:ve,computedCheckedKeys:ke,computedIndeterminateKeys:Fe,getPublicCheckedKeys:Xe,getNodes:rt,internalCheckNodes:Mt,internalSetCheckedKeys:St,internalSelectNodes:sn,internalSetSelectedKeys:Wt,internalExpandNodes:ct,internalSetExpandedKeys:Tt}},methods:{toggleCheck(e,t){const{key2TreeNode:n,onCheck:r,checkedKeys:o}=this.treeContext,a=!o.includes(e),s=n.get(e);s&&vm(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&&vm(o)}):[];this.internalSetCheckedKeys(n)},checkNode(e,t=!0,n=!1){const{checkStrictly:r,treeContext:o}=this,{key2TreeNode:a}=o,s=sr(e),l=(s?e:[e]).filter(c=>{const d=a.get(c);return d&&vm(d)&&(r||!n||Yze(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=sr(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&&Fre(o)}):[];this.internalSetExpandedKeys(n)},expandNode(e,t=!0){const{key2TreeNode:n}=this.treeContext,r=sr(e),o=(r?e:[e]).filter(a=>{const s=n.get(a);return s&&Fre(s)});this.internalExpandNodes(o,t,r?void 0:e)}}});function _Ue(e,t,n,r,o,a){const s=Ie("TreeNode"),l=Ie("VirtualList");return z(),Q("div",{class:ue(e.classNames)},[e.virtualListProps?(z(),qe(l,Vt({key:0,ref:"virtualListRef"},e.virtualListProps,{data:e.visibleTreeNodeList}),{item:de(({item:c})=>[(z(),qe(s,Vt({key:`${e.searchValue}-${c.key}`},c.treeNodeProps),null,16))]),_:1},16,["data"])):(z(!0),Q(Bt,{key:1},vn(e.visibleTreeNodeList,c=>(z(),qe(s,Vt({key:c.key,ref_for:!0},c.treeNodeProps),null,16))),128))],2)}var IM=Ve(bUe,[["render",_Ue]]);const vV=Object.assign(IM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+IM.name,IM)}}),SUe=Se({name:"Typography",setup(){return{classNames:[Ae("typography")]}}});function kUe(e,t,n,r,o,a){return z(),Q("article",{class:ue(e.classNames)},[vt(e.$slots,"default")],2)}var LM=Ve(SUe,[["render",kUe]]);const xUe=Se({name:"TypographyEditContent",components:{Input:N0},props:{text:{type:String,required:!0}},emits:["change","end","update:text"],setup(e,{emit:t}){const r=[`${Ae("typography")}-edit-content`],o=fe();function a(l){t("update:text",l),t("change",l)}function s(){t("end")}return bn(()=>{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 CUe(e,t,n,r,o,a){const s=Ie("Input");return z(),Q("div",{class:ue(e.classNames)},[$(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 wUe=Ve(xUe,[["render",CUe]]);const EUe=Se({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=Ae("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)}}}}),TUe=["stroke-width","stroke-linecap","stroke-linejoin"];function AUe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,TUe)}var DM=Ve(EUe,[["render",AUe]]);const X5=Object.assign(DM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DM.name,DM)}}),IUe=Se({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=Ae("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)}}}}),LUe=["stroke-width","stroke-linecap","stroke-linejoin"];function DUe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,LUe)}var PM=Ve(IUe,[["render",DUe]]);const HH=Object.assign(PM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PM.name,PM)}}),PUe=Se({name:"TypographyOperations",components:{Tooltip:Zc,IconCheckCircleFill:Yh,IconCopy:X5,IconEdit:HH},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=Ae("typography"),r=F(()=>e.forceRenderExpand||e.expandable&&e.isEllipsis),{t:o}=No();return{prefixCls:n,showExpand:r,t:o,onEditClick(){t("edit")},onCopyClick(){t("copy")},onExpandClick(){t("expand")}}}});function RUe(e,t,n,r,o,a){const s=Ie("IconEdit"),l=Ie("Tooltip"),c=Ie("IconCheckCircleFill"),d=Ie("IconCopy");return z(),Q(Bt,null,[e.editable?(z(),qe(l,Vt({key:0,content:e.t("typography.edit")},e.editTooltipProps),{default:de(()=>[I("span",{class:ue(`${e.prefixCls}-operation-edit`),onClick:t[0]||(t[0]=us((...h)=>e.onEditClick&&e.onEditClick(...h),["stop"]))},[$(s)],2)]),_:1},16,["content"])):Le("v-if",!0),e.copyable?(z(),qe(l,Yi(Vt({key:1},e.copyTooltipProps)),{content:de(()=>[vt(e.$slots,"copy-tooltip",{copied:e.isCopied},()=>[Ue(je(e.isCopied?e.t("typography.copied"):e.t("typography.copy")),1)])]),default:de(()=>[I("span",{class:ue({[`${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"]))},[vt(e.$slots,"copy-icon",{copied:e.isCopied},()=>[e.isCopied?(z(),qe(c,{key:0})):(z(),qe(d,{key:1}))])],2)]),_:3},16)):Le("v-if",!0),e.showExpand?(z(),Q("a",{key:2,class:ue(`${e.prefixCls}-operation-expand`),onClick:t[2]||(t[2]=us((...h)=>e.onExpandClick&&e.onExpandClick(...h),["stop"]))},[vt(e.$slots,"expand-node",{expanded:e.expanded},()=>[Ue(je(e.expanded?e.t("typography.collapse"):e.t("typography.expand")),1)])],2)):Le("v-if",!0)],64)}var Vre=Ve(PUe,[["render",RUe]]);let Ws;function MUe(e){return Array.prototype.slice.apply(e).map(n=>`${n}: ${e.getPropertyValue(n)};`).join("")}function RM(e){if(!e)return 0;const t=e.match(/^\d*(\.\d*)?/);return t?Number(t[0]):0}var OUe=(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=MUe(l),d=RM(l.lineHeight),h=Math.round(d*o+RM(l.paddingTop)+RM(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=Iy({render(){return $("span",null,[n])}});p.mount(Ws);const v=Array.prototype.slice.apply(Ws.childNodes[0].cloneNode(!0).childNodes);p.unmount(),Ws.innerHTML="";const g=document.createTextNode(`${s}${a}`);Ws.appendChild(g),v.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 $Ue=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 a1;function BUe(e){if(!e)return"";a1||(a1=document.createElement("div"),a1.setAttribute("aria-hidden","true"),document.body.appendChild(a1));const t=Iy({render(){return $("div",null,[e])}});t.mount(a1);const n=a1.innerText;return t.unmount(),n}function uve(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}function NUe(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 zre(e,t){const{mark:n}=e,r=NUe(e),o=br(n)&&n.color?{backgroundColor:n.color}:{};return r.reduce((a,s)=>$(s,s==="mark"?{style:o}:{},uve(a)?a:{default:()=>[a]}),t)}function FUe(e){const t=!!e.showTooltip,n=br(e.showTooltip)&&e.showTooltip.type==="popover"?dH:Zc,r=br(e.showTooltip)&&e.showTooltip.props||{};return{rows:1,suffix:"",ellipsisStr:"...",expandable:!1,css:!1,...xa(e,["showTooltip"]),showTooltip:t,TooltipComponent:n,tooltipProps:r}}var WH=Se({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:v}=nn(e),g=Ae("typography"),y=F(()=>[g,{[`${g}-${e.type}`]:e.type,[`${g}-disabled`]:e.disabled}]),S=fe(),k=fe(""),[C,x]=fa(a.value,Xt({value:o})),E=F(()=>c.value&&C.value);function _(){n("update:editing",!0),n("editStart"),x(!0)}function T(ke){n("update:editText",ke),n("change",ke)}function D(){C.value&&(n("update:editing",!1),n("editEnd"),x(!1))}const P=fe(!1);let M=null;function O(){var ke;const Fe=(ke=d.value)!=null?ke:k.value;$Ue(Fe||""),P.value=!0,n("copy",Fe),M=setTimeout(()=>{P.value=!1},p.value)}gi(()=>{M&&clearTimeout(M),M=null});const L=fe(!1),B=fe(!1),j=fe(""),W=F(()=>FUe(br(s.value)&&s.value||{}));let H=null;function K(){const ke=!B.value;B.value=ke,n("expand",ke)}function Y(ke=!1){return W.value.css?$(Vre,{editable:c.value,copyable:l.value,expandable:W.value.expandable,isCopied:P.value,isEllipsis:re.value,expanded:B.value,forceRenderExpand:ke||B.value,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:O,onExpand:K},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]}):$(Vre,{editable:c.value,copyable:l.value,expandable:W.value.expandable,isCopied:P.value,isEllipsis:L.value,expanded:B.value,forceRenderExpand:ke,editTooltipProps:e.editTooltipProps,copyTooltipProps:e.copyTooltipProps,onEdit:_,onCopy:O,onExpand:K},{"copy-tooltip":t["copy-tooltip"],"copy-icon":t["copy-icon"],"expand-node":t["expand-node"]})}function ne(){if(!S.value)return;const{ellipsis:ke,text:Fe}=OUe(S.value,W.value,Y(!!W.value.expandable),k.value);L.value!==ke&&(L.value=ke,W.value.css||n("ellipsis",ke)),j.value!==Fe&&(j.value=Fe||"")}function X(){s.value&&!B.value&&(N8(H),H=qhe(()=>{ne()}))}gi(()=>{N8(H)}),Rt(()=>W.value.rows,()=>{X()}),Rt(s,ke=>{ke?X():L.value=!1});let U=[];const q=()=>{if(s.value||l.value||c.value){const ke=BUe(U);ke!==k.value&&(k.value=ke,X())}};bn(q),Qa(q);const ee=fe(),re=fe(!1),ae=()=>{if(S.value&&ee.value){const ke=ee.value.offsetHeight>S.value.offsetHeight;ke!==re.value&&(re.value=ke,n("ellipsis",ke))}},ie=F(()=>B.value?{}:{overflow:"hidden","text-overflow":"ellipsis",display:"-webkit-box","-webkit-line-clamp":W.value.rows,"-webkit-box-orient":"vertical"});return()=>{var ke,Fe;if(U=((ke=t.default)==null?void 0:ke.call(t))||[],E.value){const He=(Fe=h.value)!=null?Fe:k.value;return $(wUe,{text:He,onChange:Xe=>{Xe!==He&&T(Xe)},onEnd:D},null)}const{suffix:ge,ellipsisStr:_e,showTooltip:ze,tooltipProps:Qe,TooltipComponent:Je}=W.value,Te=L.value&&!B.value,ve=Te&&!ze?{title:k.value}:{},be=v.value;if(W.value.css){const He=zre(e,U),Xe=$(be,Vt({class:y.value,ref:S,style:ie.value},ve,r),{default:()=>[$("span",{ref:ee},[He])]});return re.value?$(Je,Vt(Qe,{onResize:()=>ae()}),{default:()=>[Xe],content:()=>k.value}):$(Dd,{onResize:()=>{ae()}},uve(Xe)?Xe:{default:()=>[Xe]})}const Me=zre(e,Te?j.value:U);return $(Dd,{onResize:()=>X()},{default:()=>[$(be,Vt({class:y.value,ref:S},ve,r),{default:()=>[Te&&ze?$(Je,Qe,{default:()=>[$("span",null,[Me])],content:()=>k.value}):Me,Te?_e:null,ge,Y()]})]})}}}),Yw=Se({name:"TypographyParagraph",inheritAttrs:!1,props:{blockquote:{type:Boolean},spacing:{type:String,default:"default"}},setup(e){const{blockquote:t,spacing:n}=nn(e),r=Ae("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 $(WH,Vt({class:t},this.$attrs,{component:e}),this.$slots)}}),Xw=Se({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 $(WH,Vt(this.$attrs,{component:e}),this.$slots)}}),Zw=Se({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 $(WH,Vt(this.$attrs,{ellipsis:e,component:t}),this.$slots)}});const jUe=Object.assign(LM,{Paragraph:Yw,Title:Xw,Text:Zw,install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+LM.name,LM),e.component(n+Yw.name,Yw),e.component(n+Xw.name,Xw),e.component(n+Zw.name,Zw)}}),Ure=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},VUe=e=>{switch(e){case"done":return"success";case"error":return"danger";default:return"normal"}},Hre=(e,t)=>En(e)?e(t):e,zUe=({fileItem:e,action:t,name:n,data:r,headers:o={},withCredentials:a=!1,onProgress:s=iy,onSuccess:l=iy,onError:c=iy})=>{const d=Hre(n,e)||"file",h=Hre(r,e),p=new XMLHttpRequest;a&&(p.withCredentials=!0),p.upload.onprogress=g=>{const y=g.total>0?Xl.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(Ure(p));return}l(Ure(p))};const v=new FormData;if(h)for(const g of Object.keys(h))v.append(g,h[g]);e.file&&v.append(d,e.file),p.open("post",t??"",!0);for(const g of Object.keys(o))p.setRequestHeader(g,o[g]);return p.send(v),{abort(){p.abort()}}},cve=(e,t)=>{if(t&&e){const n=sr(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},UUe=(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,cve(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()))},HUe=e=>{var t;return(t=e.type)==null?void 0:t.includes("image")},MM=(e,t)=>{if(!e)return[];const n=Array.from(e);return t?n.filter(r=>cve(r,t)):n},WUe=Se({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=Ae("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)}}}}),GUe=["stroke-width","stroke-linecap","stroke-linejoin"];function KUe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14.93 17.071 24.001 8l9.071 9.071m-9.07 16.071v-25M40 35v6H8v-6"},null,-1)]),14,GUe)}var OM=Ve(WUe,[["render",KUe]]);const w0=Object.assign(OM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OM.name,OM)}});var qUe=Se({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=Ae("upload"),{t:r}=No(),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(En(e.onButtonClick)){const C=e.onButtonClick(k);if(Am(C)){C.then(x=>{e.uploadFiles(MM(x))});return}}a.value&&a.value.click()}},h=k=>{const C=k.target;C.files&&e.uploadFiles(MM(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))UUe(k.dataTransfer.items,e.accept,E=>{e.uploadFiles(E)});else{const E=MM((x=k.dataTransfer)==null?void 0:x.files,e.accept);e.uploadFiles(e.multiple?E:E.slice(0,1))}},v=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?$("span",null,[t.default()]):e.listType==="picture-card"?$("div",{class:`${n}-picture-card`},[$("div",{class:`${n}-picture-card-text`},[$(wf,null,null)]),e.tip&&$("div",{class:`${n}-tip`},[e.tip])]):e.draggable?$("div",{class:[`${n}-drag`,{[`${n}-drag-active`]:o.value}]},[$("div",null,[$(wf,null,null)]),$("div",{class:`${n}-drag-text`},[o.value?r("upload.dragHover"):r("upload.drag")]),e.tip&&$("div",{class:`${n}-tip`},[e.tip])]):$(Xo,{type:"primary",disabled:e.disabled},{default:()=>[r("upload.buttonText")],icon:()=>$(w0,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()=>$("span",{ref:s,class:S.value,onClick:d,onDragenter:()=>{c("add")},onDrop:p,onDragover:g,onDragleave:v},[$("input",Vt({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 YUe=Se({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=Ae("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)}}}}),XUe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZUe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M14 12h4v24h-4zM30 12h4v24h-4z"},null,-1)]),14,XUe)}var $M=Ve(YUe,[["render",ZUe]]);const dve=Object.assign($M,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$M.name,$M)}}),JUe=Se({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=Ae("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)}}}}),QUe=["stroke-width","stroke-linecap","stroke-linejoin"];function eHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,QUe)}var BM=Ve(JUe,[["render",eHe]]);const fve=Object.assign(BM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BM.name,BM)}}),Z5=Symbol("ArcoUpload");var hve=Se({name:"UploadProgress",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const t=Ae("upload-progress"),{t:n}=No(),r=On(Z5,void 0),o=()=>{var s,l,c,d,h,p,v,g,y,S,k;return e.file.status==="error"?$("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"?$(w0,null,null):n("upload.retry")]):e.file.status==="done"?$("span",{class:[r?.iconCls,`${r?.iconCls}-success`]},[(k=(S=(v=r==null?void 0:(p=r.slots)["success-icon"])==null?void 0:v.call(p))!=null?S:(y=(g=r?.customIcon)==null?void 0:g.successIcon)==null?void 0:y.call(g))!=null?k:$(eg,null,null)]):e.file.status==="init"?$(Zc,{content:n("upload.start")},{default:()=>{var C,x,E,_,T,D;return[$("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:$(fve,null,null)])]}}):r?.showCancelButton&&$(Zc,{content:n("upload.cancel")},{default:()=>{var C,x,E,_,T,D;return[$("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:$(dve,null,null)])]}})},a=()=>{var s;if(["init","uploading"].includes((s=e.file.status)!=null?s:"")){const l=VUe(e.file.status);return $(z0e,{type:"circle",size:"mini",showText:!1,status:l,percent:e.file.percent},null)}return null};return()=>$("span",{class:t},[a(),o()])}});const tHe=Se({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=Ae("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)}}}}),nHe=["stroke-width","stroke-linecap","stroke-linejoin"];function rHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,nHe)}var NM=Ve(tHe,[["render",rHe]]);const pve=Object.assign(NM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NM.name,NM)}}),iHe=Se({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=Ae("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)}}}}),oHe=["stroke-width","stroke-linecap","stroke-linejoin"];function sHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,oHe)}var FM=Ve(iHe,[["render",sHe]]);const vve=Object.assign(FM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FM.name,FM)}}),aHe=Se({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=Ae("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)}}}}),lHe=["stroke-width","stroke-linecap","stroke-linejoin"];function uHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M22 27.796v-6l5 3-5 3Z"},null,-1)]),14,lHe)}var jM=Ve(aHe,[["render",uHe]]);const mve=Object.assign(jM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jM.name,jM)}}),cHe=Se({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=Ae("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)}}}}),dHe=["stroke-width","stroke-linecap","stroke-linejoin"];function fHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M25 30a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z",fill:"currentColor",stroke:"none"},null,-1),I("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,dHe)}var VM=Ve(cHe,[["render",fHe]]);const gve=Object.assign(VM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VM.name,VM)}});var Wre=Se({name:"UploadListItem",props:{file:{type:Object,required:!0},listType:{type:String,required:!0}},setup(e){const n=`${Ae("upload-list")}-item`,{t:r}=No(),o=On(Z5,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")?$(vve,null,null):c.includes("pdf")?$(pve,null,null):c.includes("audio")?$(gve,null,null):c.includes("video")?$(mve,null,null):$(Y5,null,null)};return()=>{var s,l,c,d,h,p,v,g,y,S,k,C,x,E,_,T,D,P,M,O,L,B,j;return $("div",{class:[n,`${n}-${e.file.status}`]},[$("div",{class:`${n}-content`},[o?.listType==="picture"&&$("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:$("img",Vt({src:e.file.url,alt:e.file.name},o?.imageLoading?{loading:o.imageLoading}:void 0),null)]),$("div",{class:`${n}-name`},[o?.listType==="text"&&$("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:(v=(p=o?.customIcon)==null?void 0:p.fileIcon)==null?void 0:v.call(p,e.file))!=null?y:a()]),o?.showLink&&e.file.url?$("a",Vt({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]):$("span",{class:`${n}-name-text`,onClick:()=>o?.onPreview(e.file)},[(L=(O=(D=o==null?void 0:(T=o.slots)["file-name"])==null?void 0:D.call(T,{fileItem:e.file}))!=null?O:(M=(P=o?.customIcon)==null?void 0:P.fileName)==null?void 0:M.call(P,e.file))!=null?L:e.file.name]),e.file.status==="error"&&$(Zc,{content:r("upload.error")},{default:()=>{var W,H,K,Y,ne,X;return[$("span",{class:[o?.iconCls,`${o?.iconCls}-error`]},[(X=(ne=(H=o==null?void 0:(W=o.slots)["error-icon"])==null?void 0:H.call(W))!=null?ne:(Y=(K=o?.customIcon)==null?void 0:K.errorIcon)==null?void 0:Y.call(K))!=null?X:$(Lf,null,null)])]}})]),$(hve,{file:e.file,listType:e.listType},null)]),o?.showRemoveButton&&$("span",{class:`${n}-operation`},[$(Lo,{onClick:()=>{var W;return(W=o?.onRemove)==null?void 0:W.call(o,e.file)}},{default:()=>{var W,H,K,Y,ne,X;return[$("span",{class:[o?.iconCls,`${o?.iconCls}-remove`]},[(X=(ne=(H=o==null?void 0:(W=o.slots)["remove-icon"])==null?void 0:H.call(W))!=null?ne:(Y=(K=o?.customIcon)==null?void 0:K.removeIcon)==null?void 0:Y.call(K))!=null?X:$(fc,null,null)])]}})]),(j=o==null?void 0:(B=o.slots)["extra-button"])==null?void 0:j.call(B,{fileItem:e.file})])}}}),Gre=Se({name:"UploadPictureItem",props:{file:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},setup(e){const n=`${Ae("upload-list")}-picture`,r=F(()=>[n,{[`${n}-status-error`]:e.file.status==="error"}]),o=On(Z5,void 0),a=()=>{var s,l,c,d,h,p,v,g,y,S,k,C,x,E,_,T,D,P,M,O,L,B,j,W,H,K,Y,ne,X;return e.file.status==="uploading"?$(hve,{file:e.file,listType:"picture-card"},null):$(Bt,null,[(c=(l=o==null?void 0:(s=o.slots).image)==null?void 0:l.call(s,{fileItem:e.file}))!=null?c:$("img",Vt({src:e.file.url,alt:e.file.name},o?.imageLoading?{loading:o.imageLoading}:void 0),null),$("div",{class:`${n}-mask`},[e.file.status==="error"&&o?.showCancelButton&&$("div",{class:`${n}-error-tip`},[$("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:(v=(p=o?.customIcon)==null?void 0:p.errorIcon)==null?void 0:v.call(p))!=null?y:$(O5,null,null)])]),$("div",{class:`${n}-operation`},[e.file.status!=="error"&&o?.showPreviewButton&&$("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?_:$(k0,null,null)]),["init","error"].includes(e.file.status)&&o?.showRetryButton&&$("span",{class:[o?.iconCls,`${o?.iconCls}-upload`],onClick:()=>o?.onUpload(e.file)},[(L=(O=(D=o==null?void 0:(T=o.slots)["retry-icon"])==null?void 0:D.call(T))!=null?O:(M=(P=o?.customIcon)==null?void 0:P.retryIcon)==null?void 0:M.call(P))!=null?L:$(w0,null,null)]),!o?.disabled&&o?.showRemoveButton&&$("span",{class:[o?.iconCls,`${o?.iconCls}-remove`],onClick:()=>o?.onRemove(e.file)},[(Y=(K=(j=o==null?void 0:(B=o.slots)["remove-icon"])==null?void 0:j.call(B))!=null?K:(H=(W=o?.customIcon)==null?void 0:W.removeIcon)==null?void 0:H.call(W))!=null?Y:$(fc,null,null)]),(X=o==null?void 0:(ne=o.slots)["extra-button"])==null?void 0:X.call(ne,e.file)])])])};return()=>$("span",{class:r.value},[a()])}}),hHe=Se({name:"UploadList",components:{UploadListItem:Wre,UploadPictureItem:Gre},props:{fileList:{type:Array,required:!0},listType:{type:String,required:!0}},setup(e,{slots:t}){const n=Ae("upload"),r=F(()=>[`${n}-list`,`${n}-list-type-${e.listType}`]),o=(a,s)=>En(t["upload-item"])?t["upload-item"]({fileItem:a,index:s}):e.listType==="picture-card"?$(Gre,{file:a,key:`item-${s}`},null):$(Wre,{file:a,listType:e.listType,key:`item-${s}`},null);return()=>$(r3,{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))]}})}}),zM=Se({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:v,showLink:g}=nn(e),y=Ae("upload"),{mergedDisabled:S,eventHandlers:k}=Do({disabled:o}),C=fe([]),x=new Map,E=new Map,_=F(()=>e.limit>0&&C.value.length>=e.limit),T=ie=>{x.clear();const ke=ie?.map((Fe,ge)=>{var _e,ze,Qe;const Je=(_e=Fe.status)!=null?_e:"done",Te=Xt({...Fe,uid:(ze=Fe.uid)!=null?ze:`${Date.now()}${ge}`,status:Je,percent:(Qe=Fe.percent)!=null?Qe:["error","init"].indexOf(Je)>-1?0:1});return x.set(Te.uid,Te),Te});C.value=ke??[]};T(e.defaultFileList),Rt(r,ie=>{ie&&T(ie)},{immediate:!0,deep:!0});const D=ie=>{var ke,Fe;t("update:fileList",C.value),t("change",C.value,ie),(Fe=(ke=k.value)==null?void 0:ke.onChange)==null||Fe.call(ke)},P=(ie,ke)=>{for(const Fe of C.value)if(Fe.uid===ie){Fe.file=ke,D(Fe);break}},M=ie=>{const ke=(Qe,Je)=>{const Te=x.get(ie.uid);Te&&(Te.status="uploading",Te.percent=Qe,t("progress",Te,Je),D(Te))},Fe=Qe=>{const Je=x.get(ie.uid);Je&&(Je.status="done",Je.percent=1,Je.response=Qe,e.responseUrlKey&&(En(e.responseUrlKey)?Je.url=e.responseUrlKey(Je):Qe[e.responseUrlKey]&&(Je.url=Qe[e.responseUrlKey])),E.delete(Je.uid),t("success",Je),D(Je))},ge=Qe=>{const Je=x.get(ie.uid);Je&&(Je.status="error",Je.percent=0,Je.response=Qe,E.delete(Je.uid),t("error",Je),D(Je))},_e={fileItem:ie,action:e.action,name:e.name,data:e.data,headers:e.headers,withCredentials:e.withCredentials,onProgress:ke,onSuccess:Fe,onError:ge};ie.status="uploading",ie.percent=0;const ze=En(e.customRequest)?e.customRequest(_e):zUe(_e);E.set(ie.uid,ze),D(ie)},O=ie=>{var ke;const Fe=E.get(ie.uid);if(Fe){(ke=Fe.abort)==null||ke.call(Fe),E.delete(ie.uid);const ge=x.get(ie.uid);ge&&(ge.status="error",ge.percent=0,D(ge))}},L=ie=>{if(ie){const ke=x.get(ie.uid);ke&&M(ke)}else for(const ke of C.value)ke.status==="init"&&M(ke)},B=async(ie,ke)=>{const Fe=`${Date.now()}-${ke}`,ge=HUe(ie)?URL.createObjectURL(ie):void 0,_e=Xt({uid:Fe,file:ie,url:ge,name:ie.name,status:"init",percent:0});x.set(Fe,_e),C.value=[...C.value,_e],D(_e),e.autoUpload&&M(_e)},j=ie=>{if(e.limit>0&&C.value.length+ie.length>e.limit){t("exceedLimit",C.value,ie);return}for(let ke=0;ke{ge&&B(El(ge)?Fe:ge,ke)}).catch(ge=>{console.error(ge)}):B(Fe,ke)}},W=ie=>{C.value=C.value.filter(ke=>ke.uid!==ie.uid),D(ie)},H=ie=>{En(e.onBeforeRemove)?Promise.resolve(e.onBeforeRemove(ie)).then(ke=>{ke&&W(ie)}).catch(ke=>{console.error(ke)}):W(ie)},K=ie=>{if(e.imagePreview&&ie.url){const ke=re.value.indexOf(ie.url);ke>-1&&(U.value=ke,X.value=!0)}t("preview",ie)};ri(Z5,Xt({disabled:S,listType:a,iconCls:`${y}-icon`,showRemoveButton:d,showRetryButton:l,showCancelButton:c,showPreviewButton:h,showLink:g,imageLoading:p,download:v,customIcon:s,slots:n,onUpload:M,onAbort:O,onRemove:H,onPreview:K}));const Y=F(()=>{if(e.accept)return e.accept;if(e.listType==="picture"||e.listType==="picture-card")return"image/*"}),ne=()=>{const ie=$(qUe,{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&&!(br(e.showUploadButton)&&e.showUploadButton.showOnExceedLimit),accept:Y.value,onButtonClick:e.onButtonClick},{default:n["upload-button"]});return e.tip&&e.listType!=="picture-card"&&!e.draggable?$("span",null,[ie,$("div",{class:`${y}-tip`},[e.tip])]):ie},X=fe(!1),U=fe(0),q=ie=>{U.value=ie},ee=ie=>{X.value=ie},re=F(()=>C.value.filter(ie=>!!ie.url).map(ie=>ie.url));return{prefixCls:y,render:()=>e.showFileList?$("div",{class:[`${y}-wrapper`,`${y}-wrapper-type-${e.listType}`]},[e.imagePreview&&re.value.length>0&&$(ab,{srcList:re.value,visible:X.value,current:U.value,onChange:q,onVisibleChange:ee},null),e.listType!=="picture-card"&&e.showUploadButton&&ne(),$(hHe,{fileList:C.value,listType:e.listType},{"upload-button":ne,"upload-item":n["upload-item"]})]):e.showUploadButton&&ne(),innerSubmit:L,innerAbort:O,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 pHe=Object.assign(zM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+zM.name,zM)}});var UM=Se({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=Ae("overflow-list"),o=fe(),a=fe(),s=fe(),l={},c=[],d=fe(0),h=fe(0),p=F(()=>h.value>0),v=fe(0),g=F(()=>e.from==="start");Rt(d,(k,C)=>{h.value>0&&(h.value+=k-C,h.value<0&&(h.value=0))}),Rt(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"}),bn(()=>{s.value&&s.value.offsetWidth<1&&y()});const S=()=>{var k,C;const x=g.value?{marginRight:`${e.margin}px`}:void 0;return $("div",{ref:a,class:`${r}-overflow`,style:x},[(C=(k=n.overflow)==null?void 0:k.call(n,{number:h.value}))!=null?C:$(pH,null,{default:()=>[Ue("+"),h.value]})])};return()=>{var k,C;l.value=bf((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(),$(x0,{onResize:y},{default:()=>[$("div",{ref:s,class:`${r}-spacer`},null)]})])}}});const vHe=Object.assign(UM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+UM.name,UM)}});var HM=Se({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=Ae("verification-code"),r=Ae("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)=>Vne(k[x])?String(k[x]):"")}),d=fe(c.value);Rt(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),v()},p=k=>o?.value[k].focus(),v=k=>{if(!(Vne(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(En(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===epe.code&&!d.value[k]?(C.preventDefault(),d.value[Math.max(k-1,0)]="",h()):x===vDe.code&&k>0?(C.preventDefault(),p(k-1)):x===mDe.code&&d.value[k]&&k{let E=(C||"").trim().charAt(C.length-1);if(t("input",E,k,x),En(e.formatter)){const _=e.formatter(E,k,d.value.join(""));if(_===!1)return;cs(_)&&(E=_.charAt(0))}d.value[k]=E,h()};return()=>$("div",{class:n},[d.value.map((k,C)=>{var x;return $(Bt,null,[$(N0,{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:()=>v(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 mHe=Object.assign(HM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+HM.name,HM)}}),gHe=typeof window<"u"?window:void 0;function yHe(e){var t;const n=et(e);return(t=n?.$el)!=null?t:n}function bHe(e){return a5()?(AU(e),!0):!1}function yve(e,t,n={}){const{window:r=gHe,...o}=n,a=r&&"MutationObserver"in r;let s;const l=()=>{s&&(s.disconnect(),s=void 0)},c=Rt(()=>yHe(e),h=>{l(),a&&r&&h&&(s=new MutationObserver(t),s.observe(h,o))},{immediate:!0}),d=()=>{l(),c()};return bHe(d),{isSupported:a,stop:d}}const WM="arco-theme",xx={Dark:"dark",Light:"light"},_He=e=>{const t=fe(xx.Light),n=o=>{t.value=o},r=o=>o.getAttribute(WM)===xx.Dark?xx.Dark:xx.Light;return yve(document.body,o=>{for(const a of o)if(a.type==="attributes"&&a.attributeName===WM){n(r(a.target)),e?.();break}},{attributes:!0,attributeFilter:[WM],subtree:!1,childList:!1,characterData:!1}),n(r(document.body)),{theme:t,setTheme:n}};function SHe(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function kHe(e){return Object.entries(e).map(([t,n])=>`${SHe(t)}:${n}`).join(";")}function xHe(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=Ae("watermark"),p=window.devicePixelRatio||1,v=d0(),g=fe(new Map),y=F(()=>{var U,q;return(q=(U=e.font)==null?void 0:U.fontSize)!=null?q:16}),S=F(()=>{var U,q;return(q=(U=e.font)==null?void 0:U.fontWeight)!=null?q:"normal"}),k=F(()=>{var U,q;return(q=(U=e.font)==null?void 0:U.fontStyle)!=null?q:"normal"}),C=F(()=>{var U,q;return(q=(U=e.font)==null?void 0:U.fontFamily)!=null?q:"sans-serif"}),x=F(()=>{var U,q;return(q=(U=e.font)==null?void 0:U.textAlign)!=null?q:"center"}),E=F(()=>sr(e.content)?e.content:[e.content]),_=F(()=>{var U,q;return(q=(U=e.font)==null?void 0:U.color)!=null?q:X.value==="dark"?"rgba(255, 255, 255, 0.15)":"rgba(0, 0, 0, 0.15)"}),T=F(()=>{var U,q;return(q=(U=e.gap)==null?void 0:U[0])!=null?q:90}),D=F(()=>{var U,q;return(q=(U=e.gap)==null?void 0:U[1])!=null?q:90}),P=F(()=>T.value/2),M=F(()=>D.value/2),O=F(()=>{var U,q;return(q=(U=e.offset)==null?void 0:U[0])!=null?q:P.value}),L=F(()=>{var U,q;return(q=(U=e.offset)==null?void 0:U[1])!=null?q:M.value}),B=F(()=>{var U;const q=O.value-P.value,ee=L.value-M.value;return{position:"absolute",left:q>0?`${q}px`:0,top:ee>0?`${ee}px`:0,width:q>0?`calc(100% - ${q}px)`:"100%",height:ee>0?`calc(100% - ${ee}px)`:"100%",pointerEvents:"none",backgroundRepeat:e.repeat?"repeat":"no-repeat",backgroundPosition:`${q>0?0:q}px ${ee>0?0:ee}px`,zIndex:(U=e.zIndex)!=null?U:6}}),j=F(()=>e.repeat&&e.staggered),W=(U,q)=>{var ee;if(v.value){const re=g.value.get(v.value);re&&(v.value.contains(re)&&v.value.removeChild(re),g.value.delete(v.value));const ae=document.createElement("div");ae.setAttribute("style",kHe({...B.value,backgroundImage:`url('${U}')`,backgroundSize:`${q}px`})),(ee=v.value)==null||ee.append(ae),g.value.set(v.value,ae)}},H=U=>{var q,ee;let re=120,ae=28;if(!a.value&&U.measureText){U.font=`${y.value}px ${C.value}`;const ie=E.value.map(ke=>U.measureText(ke).width);re=Math.ceil(Math.max(...ie)),ae=y.value*E.value.length+(E.value.length-1)*3}return[(q=r.value)!=null?q:re,(ee=o.value)!=null?ee:ae]},K=()=>{var U;const q=document.createElement("canvas"),ee=q.getContext("2d");if(!ee)return;const[re,ae]=H(ee),ie=re*p,ke=ae*p,Fe=(T.value+re)*p,ge=(D.value+ae)*p,_e=T.value/2*p,ze=D.value/2*p,Qe=Fe/2,Je=ge/2,Te=j.value?2:1,ve=(T.value+re)*Te;q.width=Fe*Te,q.height=ge*Te,ee.globalAlpha=l.value,ee.save(),ee.translate(Qe,Je),ee.rotate(Math.PI/180*s.value),ee.translate(-Qe,-Je);const be=()=>{ee.restore(),j.value&&ee.drawImage(q,0,0,Fe,ge,Fe,ge,Fe,ge),d.value&&xHe(q),W(q.toDataURL(),ve)};if(a.value){const Me=new Image;Me.onload=()=>{ee.drawImage(Me,_e,ze,ie,ke),be()},Me.crossOrigin="anonymous",Me.referrerPolicy="no-referrer",Me.src=a.value}else{const Me=Number(y.value)*p;ee.font=`${k.value} normal ${S.value} ${Me}px/${ae}px ${C.value}`,ee.fillStyle=_.value,ee.textAlign=x.value,ee.textBaseline="top",ee.translate(ie/2,0),(U=E.value)==null||U.forEach((He,Xe)=>{ee.fillText(He??"",_e,ze+Xe*(Me+3*p))}),be()}},Y=U=>Array.from(g.value.values()).includes(U),ne=U=>{if(e.antiTamper)for(const q of U){const ee=Array.from(q.removedNodes).some(ae=>Y(ae)),re=q.type==="attributes"&&Y(q.target);if(ee||re){K();break}}},{theme:X}=_He(K);return bn(()=>{K(),yve(v.value,ne,{attributes:!0,childList:!0,characterData:!0,subtree:!0})}),Rt(e,K,{deep:!0,flush:"post"}),()=>{var U;return $("div",Vt({ref:v,class:h,style:{position:"relative",overflow:"hidden"}},n),[(U=t.default)==null?void 0:U.call(t)])}}});const CHe=Object.assign(GM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+GM.name,GM)}});function wHe(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Wi(e)}var EHe=Se({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}=P5(a),c=Ae("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)},v=y=>{t("change",y)},g=()=>$(vV,Vt({ref:d},h.value,{onSelect:p,onCheck:v}),e.treeSlots);return()=>{if(s.value){let y;return $(Rd,Vt({class:`${c}-tree-wrapper`},l.value),wHe(y=g())?y:{default:()=>[y]})}return $("div",{class:`${c}-tree-wrapper`},[g()])}}});function GH(e){return br(e)}function bve(e){return e!=null&&e!==""}function KH(e){return GH(e)?e.value:e}function THe(e){return GH(e)?e.label:void 0}function Kre(e){const t=KH(e);return bve(t)}function qre(e){return e.map(KH).filter(bve)}function AHe(e){var t;const{defaultValue:n,modelValue:r,key2TreeNode:o,multiple:a,treeCheckable:s,fallbackOption:l,fieldNames:c}=nn(e);function d(_){const T=(sr(_)?_:[_]).filter(Kre);return a?.value||s?.value?T:T.slice(0,1)}function h(_,T){const D=[],P=_?_.filter(Kre):[];if(P.length){const M=new Map;T?.forEach(O=>{M.set(O.value,O)}),P.forEach(O=>{var L,B,j,W,H;const K=KH(O),Y=M.get(K),ne=o.value.get(K);let X=null;const U=((L=c?.value)==null?void 0:L.title)||"title";if(!ne){const q=En(l?.value)?l?.value(K):l?.value;if(q===!1)return;br(q)&&(X=q)}D.push({...GH(O)?O:{},...Y||{},value:K,label:(H=(W=(j=(B=THe(O))!=null?B:ne?.title)!=null?j:Y?.label)!=null?W:X?.[U])!=null?H:K})})}return D}const p=fe(),v=fe();Os(()=>{var _;const T=r?.value!==void 0,D=d((_=r?.value)!=null?_:[]),P=qre(D);v.value=T?h(P,h(D)):void 0,p.value=T?P:void 0});const g=d((t=n?.value)!=null?t:[]),y=qre(g),S=h(y,h(g)),k=fe(y||[]),C=fe(S);Rt(k,()=>{C.value=h(k.value,S)}),Rt([p,v],([_,T])=>{k.value=_||[],C.value=T||[]});const x=F(()=>{var _;return(_=p.value)!=null?_:k.value}),E=F(()=>{var _;return(_=v.value)!=null?_:C.value});return{selectedKeys:x,selectedValue:E,setLocalSelectedKeys(_){k.value=_},localSelectedKeys:k,localSelectedValue:C}}function IHe(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!An(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),v=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=r_((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:v}}function LHe(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 DHe=Se({name:"TreeSelect",components:{Trigger:ha,SelectView:j8,Panel:EHe,Empty:Xh,Spin:Pd},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:v,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:O}=Do({disabled:S}),L=Ae("tree-select"),B=On(Ya,void 0),j=(a=(o=B==null?void 0:(r=B.slots).empty)==null?void 0:o.call(r,{component:"tree-select"}))==null?void 0:a[0],W=F(()=>c.value||p.value),H=(lt,Et)=>{var St;return D.value==="leaf"?Et.isLeaf:En(D.value)?D.value(lt,Et):(St=D.value)!=null?St:!1},K=F(()=>p.value?H:!1),Y=F(()=>br(e.allowSearch)&&!!e.allowSearch.retainInputValue),{flattenTreeData:ne,key2TreeNode:X}=lve(Xt({treeData:g,fieldNames:y,selectable:H,checkable:K})),{selectedKeys:U,selectedValue:q,setLocalSelectedKeys:ee,localSelectedKeys:re,localSelectedValue:ae}=AHe(Xt({defaultValue:s,modelValue:l,key2TreeNode:X,multiple:c,treeCheckable:p,treeCheckStrictly:v,fallbackOption:T,fieldNames:y}));function ie(lt){return p.value?vm(lt):cV(lt)}const ke=F(()=>An(q.value)?[]:W.value&&!M.value?q.value.map(lt=>{const Et=X.value.get(lt.value);return{...lt,closable:!Et||ie(Et)}}):q.value),Fe=lt=>{ee(lt),Cn(()=>{var Et,St;const Wt=(k.value?ae.value:re.value)||[],Tt=W.value?Wt:Wt[0];t("update:modelValue",Tt),t("change",Tt),(St=(Et=O.value)==null?void 0:Et.onChange)==null||St.call(Et)})},ge=fe(e.defaultInputValue),_e=F(()=>{var lt;return(lt=e.inputValue)!=null?lt:ge.value}),ze=lt=>{ge.value=lt,t("update:inputValue",lt),t("inputValueChange",lt)},Qe=lt=>{lt!==_e.value&&(ve(!0),ze(lt),e.allowSearch&&t("search",lt))},[Je,Te]=fa(h.value,Xt({value:d})),ve=lt=>{lt!==Je.value&&(Te(lt),t("popup-visible-change",lt),t("update:popupVisible",lt)),lt||Xe.value&&Xe.value.blur&&Xe.value.blur()},{isEmptyFilterResult:be,filterTreeNode:Me}=IHe(Xt({searchValue:_e,flattenTreeData:ne,filterMethod:C,disableFilter:x,fieldNames:y})),He=F(()=>!ne.value.length||be.value),Xe=fe(),rt=F(()=>{var lt;return[E?.value||{},(lt=_?.value)!=null&<.virtualListProps?{"max-height":"unset"}:{}]});return{refSelectView:Xe,prefixCls:L,TreeSelectEmpty:j,selectedValue:q,selectedKeys:U,mergedDisabled:M,searchValue:_e,panelVisible:Je,isEmpty:He,computedFilterTreeNode:Me,isMultiple:W,selectViewValue:ke,computedDropdownStyle:rt,onSearchValueChange:Qe,onSelectChange(lt){Fe(lt),!Y.value&&_e.value&&ze(""),W.value||ve(!1)},onVisibleChange:ve,onInnerClear(){Fe([]),t("clear")},pickSubCompSlots:LHe,isSelectable:H,isCheckable:K,onBlur:()=>{!Y.value&&_e.value&&ze("")},onItemRemove(lt){if(M.value)return;const Et=X.value.get(lt);if(p.value&&Et){if(ie(Et)){const[St]=hV({node:Et,checked:!1,checkedKeys:U.value,indeterminateKeys:[],checkStrictly:v.value});Fe(St)}}else{const St=U.value.filter(Wt=>Wt!==lt);Fe(St)}}}}});function PHe(e,t,n,r,o,a){const s=Ie("SelectView"),l=Ie("Spin"),c=Ie("Panel"),d=Ie("Trigger");return z(),qe(d,Vt({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(()=>[I("div",{class:ue([`${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)?(z(),Q("div",{key:0,class:ue(`${e.prefixCls}-header`)},[vt(e.$slots,"header")],2)):Le("v-if",!0),e.loading?vt(e.$slots,"loader",{key:1},()=>[$(l)]):e.isEmpty?vt(e.$slots,"empty",{key:2},()=>[(z(),qe(Wa(e.TreeSelectEmpty?e.TreeSelectEmpty:"Empty")))]):(z(),qe(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)?(z(),Q("div",{key:4,class:ue(`${e.prefixCls}-footer`)},[vt(e.$slots,"footer")],2)):Le("v-if",!0)],6)]),default:de(()=>[vt(e.$slots,"trigger",{},()=>[$(s,Vt({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}),yo({_:2},[e.$slots.prefix?{name:"prefix",fn:de(()=>[vt(e.$slots,"prefix")]),key:"0"}:void 0,e.$slots.label?{name:"label",fn:de(h=>[vt(e.$slots,"label",Yi(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 KM=Ve(DHe,[["render",PHe]]);const RHe=Object.assign(KM,{install:(e,t)=>{Zn(e,t);const n=Xn(t);e.component(n+KM.name,KM)}}),mV={Button:Xo,Link:Jpe,Typography:jUe,Divider:n$e,Grid:I4,Layout:kNe,Space:mVe,Avatar:DPe,Badge:VPe,Calendar:Cpe,Card:cMe,Carousel:CMe,Collapse:zMe,Comment:_9e,ColorPicker:h9e,Descriptions:t$e,Empty:Xh,Image:ZBe,Scrollbar:Rd,List:M0e,Popover:dH,Statistic:TVe,Table:pze,Tabs:Tze,Tag:pH,Timeline:$ze,Tooltip:Zc,AutoComplete:SPe,Cascader:RMe,Checkbox:Uc,DatePicker:s0e,Form:Q$e,Input:N0,InputNumber:eS,InputTag:kpe,Mention:KNe,Radio:Pm,Rate:Rje,Select:i_,Slider:vVe,Switch:$Ve,Textarea:O0e,TimePicker:Pze,Transfer:Gze,Tree:vV,Upload:pHe,TreeSelect:RHe,Alert:Zhe,Drawer:rV,Message:xt,Modal:Du,Notification:lV,Popconfirm:HFe,Progress:z0e,Result:Uje,Spin:Pd,Skeleton:Xje,Breadcrumb:fRe,Dropdown:hpe,Menu:SFe,PageHeader:VFe,Pagination:DH,Steps:PVe,Affix:y7e,Anchor:uDe,BackTop:BPe,ConfigProvider:x9e,ResizeBox:D0e,Trigger:ha,Split:_Ve,Icon:iBe,OverflowList:vHe,Watermark:CHe,VerificationCode:mHe},MHe=(e,t)=>{for(const n of Object.keys(mV))e.use(mV[n],t)},OHe={...mV,Alter:Zhe,AnchorLink:XC,AvatarGroup:nw,BreadcrumbItem:nb,ButtonGroup:eb,Calendar:Cpe,CardMeta:gw,CardGrid:yw,CarouselItem:bw,CascaderPanel:_w,CheckboxGroup:tb,CollapseItem:Sw,DescriptionsItem:Aw,WeekPicker:xw,MonthPicker:Cw,YearPicker:ww,QuarterPicker:Ew,RangePicker:Tw,Doption:sy,Dgroup:iw,Dsubmenu:ow,DropdownButton:sw,FormItem:Dw,Row:ob,Col:sb,GridItem:Lw,ImagePreview:ay,ImagePreviewAction:q8,ImagePreviewGroup:ab,InputGroup:oy,InputSearch:ZC,InputPassword:JC,LayoutHeader:Rw,LayoutContent:Mw,LayoutFooter:Ow,LayoutSider:$w,ListItem:Bw,ListItemMeta:Nw,MenuItem:Fw,MenuItemGroup:jw,SubMenu:lb,RadioGroup:ib,Option:dm,Optgroup:rb,SkeletonLine:Uw,SkeletonShape:Hw,Countdown:Ww,Step:Gw,Thead:cb,Td:r0,Th:fb,Tr:kh,Tbody:db,TableColumn:Kw,TabPane:qw,TimelineItem:uy,TypographyParagraph:Yw,TypographyTitle:Xw,TypographyText:Zw,install:MHe,addI18nMessages:FLe,useLocale:jLe,getLocale:VLe,useFormItem:Do},$He=Se({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=Ae("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)}}}}),BHe=["stroke-width","stroke-linecap","stroke-linejoin"];function NHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m11.27 27.728 12.727 12.728 12.728-12.728M24 5v34.295"},null,-1)]),14,BHe)}var qM=Ve($He,[["render",NHe]]);const gV=Object.assign(qM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qM.name,qM)}}),FHe=Se({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=Ae("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)}}}}),jHe=["stroke-width","stroke-linecap","stroke-linejoin"];function VHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M24 42 14 30h20L24 42Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M22 6h4v26h-4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M22 6h4v26h-4z"},null,-1)]),14,jHe)}var YM=Ve(FHe,[["render",VHe]]);const zHe=Object.assign(YM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YM.name,YM)}}),UHe=Se({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=Ae("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)}}}}),HHe=["stroke-width","stroke-linecap","stroke-linejoin"];function WHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20.272 11.27 7.544 23.998l12.728 12.728M43 24H8.705"},null,-1)]),14,HHe)}var XM=Ve(UHe,[["render",WHe]]);const qH=Object.assign(XM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XM.name,XM)}}),GHe=Se({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=Ae("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)}}}}),KHe=["stroke-width","stroke-linecap","stroke-linejoin"];function qHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m27.728 11.27 12.728 12.728-12.728 12.728M5 24h34.295"},null,-1)]),14,KHe)}var ZM=Ve(GHe,[["render",qHe]]);const YHe=Object.assign(ZM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZM.name,ZM)}}),XHe=Se({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=Ae("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)}}}}),ZHe=["stroke-width","stroke-linecap","stroke-linejoin"];function JHe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"m24 6 10 12H14L24 6Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M26 42h-4V16h4z"},null,-1),I("path",{fill:"currentColor",stroke:"none",d:"M26 42h-4V16h4z"},null,-1)]),14,ZHe)}var JM=Ve(XHe,[["render",JHe]]);const QHe=Object.assign(JM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JM.name,JM)}}),eWe=Se({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=Ae("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)}}}}),tWe=["stroke-width","stroke-linecap","stroke-linejoin"];function nWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M11.27 20.272 23.997 7.544l12.728 12.728M24 43V8.705"},null,-1)]),14,tWe)}var QM=Ve(eWe,[["render",nWe]]);const yV=Object.assign(QM,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QM.name,QM)}}),rWe=Se({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=Ae("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)}}}}),iWe=["stroke-width","stroke-linecap","stroke-linejoin"];function oWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,iWe)}var e9=Ve(rWe,[["render",oWe]]);const sWe=Object.assign(e9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e9.name,e9)}}),aWe=Se({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=Ae("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)}}}}),lWe=["stroke-width","stroke-linecap","stroke-linejoin"];function uWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,lWe)}var t9=Ve(aWe,[["render",uWe]]);const cWe=Object.assign(t9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t9.name,t9)}}),dWe=Se({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=Ae("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)}}}}),fWe=["stroke-width","stroke-linecap","stroke-linejoin"];function hWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18",transform:"rotate(-180 24 24)"},null,-1),I("path",{d:"M32.484 20.515 24 29l-8.485-8.485"},null,-1)]),14,fWe)}var n9=Ve(dWe,[["render",hWe]]);const pWe=Object.assign(n9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n9.name,n9)}}),vWe=Se({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=Ae("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)}}}}),mWe=["stroke-width","stroke-linecap","stroke-linejoin"];function gWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,mWe)}var r9=Ve(vWe,[["render",gWe]]);const _ve=Object.assign(r9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r9.name,r9)}}),yWe=Se({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=Ae("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)}}}}),bWe=["stroke-width","stroke-linecap","stroke-linejoin"];function _We(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 26v14c0 .552.444 1 .996 1H22m19-19V8c0-.552-.444-1-.996-1H26"},null,-1)]),14,bWe)}var i9=Ve(yWe,[["render",_We]]);const SWe=Object.assign(i9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i9.name,i9)}}),kWe=Se({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=Ae("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)}}}}),xWe=["stroke-width","stroke-linecap","stroke-linejoin"];function CWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M28.485 32.485 20 24l8.485-8.485"},null,-1)]),14,xWe)}var o9=Ve(kWe,[["render",CWe]]);const wWe=Object.assign(o9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o9.name,o9)}}),EWe=Se({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=Ae("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)}}}}),TWe=["stroke-width","stroke-linecap","stroke-linejoin"];function AWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M19.485 15.515 27.971 24l-8.486 8.485"},null,-1)]),14,TWe)}var s9=Ve(EWe,[["render",AWe]]);const IWe=Object.assign(s9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s9.name,s9)}}),LWe=Se({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=Ae("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)}}}}),DWe=["stroke-width","stroke-linecap","stroke-linejoin"];function PWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M20 44V29c0-.552-.444-1-.996-1H4M28 4v15c0 .552.444 1 .996 1H44"},null,-1)]),14,DWe)}var a9=Ve(LWe,[["render",PWe]]);const RWe=Object.assign(a9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a9.name,a9)}}),MWe=Se({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=Ae("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)}}}}),OWe=["stroke-width","stroke-linecap","stroke-linejoin"];function $We(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,OWe)}var l9=Ve(MWe,[["render",$We]]);const Sve=Object.assign(l9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l9.name,l9)}}),BWe=Se({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=Ae("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)}}}}),NWe=["stroke-width","stroke-linecap","stroke-linejoin"];function FWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 41h38M24 28V5M24 34.04 17.547 27h12.907L24 34.04Zm-.736.803v.001Z"},null,-1),I("path",{d:"m24 34 6-7H18l6 7Z",fill:"currentColor",stroke:"none"},null,-1)]),14,NWe)}var u9=Ve(BWe,[["render",FWe]]);const jWe=Object.assign(u9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u9.name,u9)}}),VWe=Se({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=Ae("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)}}}}),zWe=["stroke-width","stroke-linecap","stroke-linejoin"];function UWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 5v38M20 24h23M20.999 17.547v12.907L13.959 24l7.04-6.453Z"},null,-1),I("path",{d:"m14 24 7 6V18l-7 6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,zWe)}var c9=Ve(VWe,[["render",UWe]]);const HWe=Object.assign(c9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c9.name,c9)}}),WWe=Se({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=Ae("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)}}}}),GWe=["stroke-width","stroke-linecap","stroke-linejoin"];function KWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 43V5M28 24H5M34.04 24 27 30.453V17.546L34.04 24Zm.803.736h.001Z"},null,-1),I("path",{d:"m34 24-7-6v12l7-6Z",fill:"currentColor",stroke:"none"},null,-1)]),14,GWe)}var d9=Ve(WWe,[["render",KWe]]);const qWe=Object.assign(d9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d9.name,d9)}}),YWe=Se({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=Ae("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)}}}}),XWe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZWe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M15.516 28.485 24 20l8.485 8.485"},null,-1)]),14,XWe)}var f9=Ve(YWe,[["render",ZWe]]);const JWe=Object.assign(f9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f9.name,f9)}}),QWe=Se({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=Ae("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)}}}}),eGe=["stroke-width","stroke-linecap","stroke-linejoin"];function tGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,eGe)}var h9=Ve(QWe,[["render",tGe]]);const nGe=Object.assign(h9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h9.name,h9)}}),rGe=Se({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=Ae("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)}}}}),iGe=["stroke-width","stroke-linecap","stroke-linejoin"];function oGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,iGe)}var p9=Ve(rGe,[["render",oGe]]);const sGe=Object.assign(p9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p9.name,p9)}}),aGe=Se({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=Ae("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)}}}}),lGe=["stroke-width","stroke-linecap","stroke-linejoin"];function uGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,lGe)}var v9=Ve(aGe,[["render",uGe]]);const cGe=Object.assign(v9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v9.name,v9)}}),dGe=Se({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=Ae("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)}}}}),fGe=["stroke-width","stroke-linecap","stroke-linejoin"];function hGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,fGe)}var m9=Ve(dGe,[["render",hGe]]);const pGe=Object.assign(m9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m9.name,m9)}}),vGe=Se({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=Ae("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)}}}}),mGe=["stroke-width","stroke-linecap","stroke-linejoin"];function gGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,mGe)}var g9=Ve(vGe,[["render",gGe]]);const nc=Object.assign(g9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g9.name,g9)}}),yGe=Se({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=Ae("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)}}}}),bGe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Ge(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,bGe)}var y9=Ve(yGe,[["render",_Ge]]);const SGe=Object.assign(y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y9.name,y9)}}),kGe=Se({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=Ae("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)}}}}),xGe=["stroke-width","stroke-linecap","stroke-linejoin"];function CGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,xGe)}var b9=Ve(kGe,[["render",CGe]]);const wGe=Object.assign(b9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b9.name,b9)}}),EGe=Se({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=Ae("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)}}}}),TGe=["stroke-width","stroke-linecap","stroke-linejoin"];function AGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,TGe)}var _9=Ve(EGe,[["render",AGe]]);const Sd=Object.assign(_9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_9.name,_9)}}),IGe=Se({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=Ae("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)}}}}),LGe=["stroke-width","stroke-linecap","stroke-linejoin"];function DGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,LGe)}var S9=Ve(IGe,[["render",DGe]]);const Pc=Object.assign(S9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S9.name,S9)}}),PGe=Se({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=Ae("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)}}}}),RGe=["stroke-width","stroke-linecap","stroke-linejoin"];function MGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,RGe)}var k9=Ve(PGe,[["render",MGe]]);const OGe=Object.assign(k9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k9.name,k9)}}),$Ge=Se({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=Ae("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)}}}}),BGe=["stroke-width","stroke-linecap","stroke-linejoin"];function NGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,BGe)}var x9=Ve($Ge,[["render",NGe]]);const FGe=Object.assign(x9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x9.name,x9)}}),jGe=Se({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=Ae("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)}}}}),VGe=["stroke-width","stroke-linecap","stroke-linejoin"];function zGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,VGe)}var C9=Ve(jGe,[["render",zGe]]);const UGe=Object.assign(C9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C9.name,C9)}}),HGe=Se({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=Ae("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)}}}}),WGe=["stroke-width","stroke-linecap","stroke-linejoin"];function GGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,WGe)}var w9=Ve(HGe,[["render",GGe]]);const KGe=Object.assign(w9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w9.name,w9)}}),qGe=Se({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=Ae("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)}}}}),YGe=["stroke-width","stroke-linecap","stroke-linejoin"];function XGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,YGe)}var E9=Ve(qGe,[["render",XGe]]);const YH=Object.assign(E9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E9.name,E9)}}),ZGe=Se({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=Ae("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)}}}}),JGe=["stroke-width","stroke-linecap","stroke-linejoin"];function QGe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M43 5v26h-4V5h4Z",fill:"currentColor",stroke:"none"},null,-1),I("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,JGe)}var T9=Ve(ZGe,[["render",QGe]]);const eKe=Object.assign(T9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T9.name,T9)}}),tKe=Se({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=Ae("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)}}}}),nKe=["stroke-width","stroke-linecap","stroke-linejoin"];function rKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5 43V17h4v26H5Z",fill:"currentColor",stroke:"none"},null,-1),I("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,nKe)}var A9=Ve(tKe,[["render",rKe]]);const iKe=Object.assign(A9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A9.name,A9)}}),oKe=Se({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=Ae("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)}}}}),sKe=["stroke-width","stroke-linecap","stroke-linejoin"];function aKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,sKe)}var I9=Ve(oKe,[["render",aKe]]);const lKe=Object.assign(I9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I9.name,I9)}}),uKe=Se({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=Ae("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)}}}}),cKe=["stroke-width","stroke-linecap","stroke-linejoin"];function dKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,cKe)}var L9=Ve(uKe,[["render",dKe]]);const fKe=Object.assign(L9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L9.name,L9)}}),hKe=Se({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=Ae("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)}}}}),pKe=["stroke-width","stroke-linecap","stroke-linejoin"];function vKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,pKe)}var D9=Ve(hKe,[["render",vKe]]);const kve=Object.assign(D9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D9.name,D9)}}),mKe=Se({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=Ae("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)}}}}),gKe=["stroke-width","stroke-linecap","stroke-linejoin"];function yKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,gKe)}var P9=Ve(mKe,[["render",yKe]]);const bKe=Object.assign(P9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P9.name,P9)}}),_Ke=Se({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=Ae("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)}}}}),SKe=["stroke-width","stroke-linecap","stroke-linejoin"];function kKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,SKe)}var R9=Ve(_Ke,[["render",kKe]]);const E0=Object.assign(R9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R9.name,R9)}}),xKe=Se({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=Ae("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)}}}}),CKe=["stroke-width","stroke-linecap","stroke-linejoin"];function wKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,CKe)}var M9=Ve(xKe,[["render",wKe]]);const EKe=Object.assign(M9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M9.name,M9)}}),TKe=Se({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=Ae("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)}}}}),AKe=["stroke-width","stroke-linecap","stroke-linejoin"];function IKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m33.072 22.071-9.07 9.071-9.072-9.07M24 5v26m16 4v6H8v-6"},null,-1)]),14,AKe)}var O9=Ve(TKe,[["render",IKe]]);const mm=Object.assign(O9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O9.name,O9)}}),LKe=Se({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=Ae("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)}}}}),DKe=["stroke-width","stroke-linecap","stroke-linejoin"];function PKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M31.928 33.072 41 24.002l-9.072-9.072M16.858 24h24M31 41H7V7h24"},null,-1)]),14,DKe)}var $9=Ve(LKe,[["render",PKe]]);const J5=Object.assign($9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$9.name,$9)}}),RKe=Se({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=Ae("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)}}}}),MKe=["stroke-width","stroke-linecap","stroke-linejoin"];function OKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,MKe)}var B9=Ve(RKe,[["render",OKe]]);const Q5=Object.assign(B9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B9.name,B9)}}),$Ke=Se({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=Ae("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)}}}}),BKe=["stroke-width","stroke-linecap","stroke-linejoin"];function NKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,BKe)}var N9=Ve($Ke,[["render",NKe]]);const My=Object.assign(N9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N9.name,N9)}}),FKe=Se({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=Ae("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)}}}}),jKe=["stroke-width","stroke-linecap","stroke-linejoin"];function VKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17 24 7l17 10v24H7V17Z"},null,-1),I("path",{d:"M20 28h8v13h-8V28Z"},null,-1)]),14,jKe)}var F9=Ve(FKe,[["render",VKe]]);const c3=Object.assign(F9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F9.name,F9)}}),zKe=Se({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=Ae("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)}}}}),UKe=["stroke-width","stroke-linecap","stroke-linejoin"];function HKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m27.929 33.072-9.071-9.07 9.07-9.072M43 24H19m12 17H7V7h24"},null,-1)]),14,UKe)}var j9=Ve(zKe,[["render",HKe]]);const eA=Object.assign(j9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j9.name,j9)}}),WKe=Se({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=Ae("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)}}}}),GKe=["stroke-width","stroke-linecap","stroke-linejoin"];function KKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,GKe)}var V9=Ve(WKe,[["render",KKe]]);const xve=Object.assign(V9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V9.name,V9)}}),qKe=Se({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=Ae("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)}}}}),YKe=["stroke-width","stroke-linecap","stroke-linejoin"];function XKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M5 12h4m4 24h30M13 12h30M5 24h4M5 36h4"},null,-1)]),14,YKe)}var z9=Ve(qKe,[["render",XKe]]);const XH=Object.assign(z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z9.name,z9)}}),ZKe=Se({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=Ae("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)}}}}),JKe=["stroke-width","stroke-linecap","stroke-linejoin"];function QKe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,JKe)}var U9=Ve(ZKe,[["render",QKe]]);const eqe=Object.assign(U9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U9.name,U9)}}),tqe=Se({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=Ae("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)}}}}),nqe=["stroke-width","stroke-linecap","stroke-linejoin"];function rqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,nqe)}var H9=Ve(tqe,[["render",rqe]]);const iqe=Object.assign(H9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H9.name,H9)}}),oqe=Se({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=Ae("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)}}}}),sqe=["stroke-width","stroke-linecap","stroke-linejoin"];function aqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M25 10h-2V8h2v2ZM25 25h-2v-2h2v2ZM25 40h-2v-2h2v2Z"},null,-1)]),14,sqe)}var W9=Ve(oqe,[["render",aqe]]);const lqe=Object.assign(W9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W9.name,W9)}}),uqe=Se({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=Ae("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)}}}}),cqe=["stroke-width","stroke-linecap","stroke-linejoin"];function dqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,cqe)}var G9=Ve(uqe,[["render",dqe]]);const fqe=Object.assign(G9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G9.name,G9)}}),hqe=Se({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=Ae("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)}}}}),pqe=["stroke-width","stroke-linecap","stroke-linejoin"];function vqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,pqe)}var K9=Ve(hqe,[["render",vqe]]);const Ed=Object.assign(K9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K9.name,K9)}}),mqe=Se({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=Ae("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)}}}}),gqe=["stroke-width","stroke-linecap","stroke-linejoin"];function yqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,gqe)}var q9=Ve(mqe,[["render",yqe]]);const bqe=Object.assign(q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q9.name,q9)}}),_qe=Se({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=Ae("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)}}}}),Sqe=["stroke-width","stroke-linecap","stroke-linejoin"];function kqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Sqe)}var Y9=Ve(_qe,[["render",kqe]]);const zp=Object.assign(Y9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y9.name,Y9)}}),xqe=Se({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=Ae("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)}}}}),Cqe=["stroke-width","stroke-linecap","stroke-linejoin"];function wqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 17V7h10m24 10V7H31m10 24v10H31M7 31v10h10M5 24h38"},null,-1)]),14,Cqe)}var X9=Ve(xqe,[["render",wqe]]);const Eqe=Object.assign(X9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X9.name,X9)}}),Tqe=Se({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=Ae("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)}}}}),Aqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Iqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Aqe)}var Z9=Ve(Tqe,[["render",Iqe]]);const Lqe=Object.assign(Z9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z9.name,Z9)}}),Dqe=Se({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=Ae("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)}}}}),Pqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Rqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 24-7-5V7l34 17L7 41V29l7-5Zm0 0h25","stroke-miterlimit":"3.864"},null,-1)]),14,Pqe)}var J9=Ve(Dqe,[["render",Rqe]]);const Mqe=Object.assign(J9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J9.name,J9)}}),Oqe=Se({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=Ae("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)}}}}),$qe=["stroke-width","stroke-linecap","stroke-linejoin"];function Bqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,$qe)}var Q9=Ve(Oqe,[["render",Bqe]]);const Df=Object.assign(Q9,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q9.name,Q9)}}),Nqe=Se({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=Ae("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)}}}}),Fqe=["stroke-width","stroke-linecap","stroke-linejoin"];function jqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Fqe)}var eO=Ve(Nqe,[["render",jqe]]);const Vqe=Object.assign(eO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eO.name,eO)}}),zqe=Se({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=Ae("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)}}}}),Uqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Hqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Uqe)}var tO=Ve(zqe,[["render",Hqe]]);const Wqe=Object.assign(tO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tO.name,tO)}}),Gqe=Se({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=Ae("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)}}}}),Kqe=["stroke-width","stroke-linecap","stroke-linejoin"];function qqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Kqe)}var nO=Ve(Gqe,[["render",qqe]]);const Yqe=Object.assign(nO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nO.name,nO)}}),Xqe=Se({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=Ae("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)}}}}),Zqe=["stroke-width","stroke-linecap","stroke-linejoin"];function Jqe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Zqe)}var rO=Ve(Xqe,[["render",Jqe]]);const tA=Object.assign(rO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rO.name,rO)}}),Qqe=Se({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=Ae("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)}}}}),eYe=["stroke-width","stroke-linecap","stroke-linejoin"];function tYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,eYe)}var iO=Ve(Qqe,[["render",tYe]]);const nYe=Object.assign(iO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iO.name,iO)}}),rYe=Se({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=Ae("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)}}}}),iYe=["stroke-width","stroke-linecap","stroke-linejoin"];function oYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,iYe)}var oO=Ve(rYe,[["render",oYe]]);const sYe=Object.assign(oO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oO.name,oO)}}),aYe=Se({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=Ae("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)}}}}),lYe=["stroke-width","stroke-linecap","stroke-linejoin"];function uYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,lYe)}var sO=Ve(aYe,[["render",uYe]]);const cYe=Object.assign(sO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sO.name,sO)}}),dYe=Se({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=Ae("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)}}}}),fYe=["stroke-width","stroke-linecap","stroke-linejoin"];function hYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,fYe)}var aO=Ve(dYe,[["render",hYe]]);const pYe=Object.assign(aO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aO.name,aO)}}),vYe=Se({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=Ae("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)}}}}),mYe=["stroke-width","stroke-linecap","stroke-linejoin"];function gYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,mYe)}var lO=Ve(vYe,[["render",gYe]]);const yYe=Object.assign(lO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lO.name,lO)}}),bYe=Se({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=Ae("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)}}}}),_Ye=["stroke-width","stroke-linecap","stroke-linejoin"];function SYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M44 9H4m38 20H6m28-10H14m20 20H14"},null,-1)]),14,_Ye)}var uO=Ve(bYe,[["render",SYe]]);const kYe=Object.assign(uO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uO.name,uO)}}),xYe=Se({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=Ae("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)}}}}),CYe=["stroke-width","stroke-linecap","stroke-linejoin"];function wYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M44 9H4m36 20H4m21-10H4m21 20H4"},null,-1)]),14,CYe)}var cO=Ve(xYe,[["render",wYe]]);const EYe=Object.assign(cO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cO.name,cO)}}),TYe=Se({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=Ae("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)}}}}),AYe=["stroke-width","stroke-linecap","stroke-linejoin"];function IYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M4 9h40M8 29h36M23 19h21M23 39h21"},null,-1)]),14,AYe)}var dO=Ve(TYe,[["render",IYe]]);const LYe=Object.assign(dO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dO.name,dO)}}),DYe=Se({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=Ae("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)}}}}),PYe=["stroke-width","stroke-linecap","stroke-linejoin"];function RYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,PYe)}var fO=Ve(DYe,[["render",RYe]]);const MYe=Object.assign(fO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fO.name,fO)}}),OYe=Se({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=Ae("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)}}}}),$Ye=["stroke-width","stroke-linecap","stroke-linejoin"];function BYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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),I("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,$Ye)}var hO=Ve(OYe,[["render",BYe]]);const Cve=Object.assign(hO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hO.name,hO)}}),NYe=Se({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=Ae("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)}}}}),FYe=["stroke-width","stroke-linecap","stroke-linejoin"];function jYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,FYe)}var pO=Ve(NYe,[["render",jYe]]);const VYe=Object.assign(pO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pO.name,pO)}}),zYe=Se({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=Ae("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)}}}}),UYe=["stroke-width","stroke-linecap","stroke-linejoin"];function HYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,UYe)}var vO=Ve(zYe,[["render",HYe]]);const WYe=Object.assign(vO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vO.name,vO)}}),GYe=Se({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=Ae("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)}}}}),KYe=["stroke-width","stroke-linecap","stroke-linejoin"];function qYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,KYe)}var mO=Ve(GYe,[["render",qYe]]);const YYe=Object.assign(mO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mO.name,mO)}}),XYe=Se({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=Ae("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)}}}}),ZYe=["stroke-width","stroke-linecap","stroke-linejoin"];function JYe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,ZYe)}var gO=Ve(XYe,[["render",JYe]]);const QYe=Object.assign(gO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gO.name,gO)}}),eXe=Se({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=Ae("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)}}}}),tXe=["stroke-width","stroke-linecap","stroke-linejoin"];function nXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,tXe)}var yO=Ve(eXe,[["render",nXe]]);const wve=Object.assign(yO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yO.name,yO)}}),rXe=Se({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=Ae("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)}}}}),iXe=["stroke-width","stroke-linecap","stroke-linejoin"];function oXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,iXe)}var bO=Ve(rXe,[["render",oXe]]);const sXe=Object.assign(bO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bO.name,bO)}}),aXe=Se({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=Ae("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)}}}}),lXe=["stroke-width","stroke-linecap","stroke-linejoin"];function uXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18M40 42V21h-1l-6 3"},null,-1)]),14,lXe)}var _O=Ve(aXe,[["render",uXe]]);const cXe=Object.assign(_O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_O.name,_O)}}),dXe=Se({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=Ae("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)}}}}),fXe=["stroke-width","stroke-linecap","stroke-linejoin"];function hXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,fXe)}var SO=Ve(dXe,[["render",hXe]]);const pXe=Object.assign(SO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SO.name,SO)}}),vXe=Se({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=Ae("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)}}}}),mXe=["stroke-width","stroke-linecap","stroke-linejoin"];function gXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,mXe)}var kO=Ve(vXe,[["render",gXe]]);const yXe=Object.assign(kO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kO.name,kO)}}),bXe=Se({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=Ae("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)}}}}),_Xe=["stroke-width","stroke-linecap","stroke-linejoin"];function SXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m14.5-6H31v-1l8-15h1.5v16Zm0 0H44m-3.5 0v6"},null,-1)]),14,_Xe)}var xO=Ve(bXe,[["render",SXe]]);const kXe=Object.assign(xO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xO.name,xO)}}),xXe=Se({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=Ae("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)}}}}),CXe=["stroke-width","stroke-linecap","stroke-linejoin"];function wXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,CXe)}var CO=Ve(xXe,[["render",wXe]]);const EXe=Object.assign(CO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CO.name,CO)}}),TXe=Se({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=Ae("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)}}}}),AXe=["stroke-width","stroke-linecap","stroke-linejoin"];function IXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,AXe)}var wO=Ve(TXe,[["render",IXe]]);const LXe=Object.assign(wO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wO.name,wO)}}),DXe=Se({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=Ae("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)}}}}),PXe=["stroke-width","stroke-linecap","stroke-linejoin"];function RXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 6v18m0 0v18m0-18h20m0 0V6m0 18v18m4-21h12v1l-4.4 16-1.1 3.5"},null,-1)]),14,PXe)}var EO=Ve(DXe,[["render",RXe]]);const MXe=Object.assign(EO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EO.name,EO)}}),OXe=Se({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=Ae("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)}}}}),$Xe=["stroke-width","stroke-linecap","stroke-linejoin"];function BXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,$Xe)}var TO=Ve(OXe,[["render",BXe]]);const NXe=Object.assign(TO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TO.name,TO)}}),FXe=Se({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=Ae("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)}}}}),jXe=["stroke-width","stroke-linecap","stroke-linejoin"];function VXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 8h9m8 0h-8m0 0-6 32m0 0h-8m8 0h9"},null,-1)]),14,jXe)}var AO=Ve(FXe,[["render",VXe]]);const zXe=Object.assign(AO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AO.name,AO)}}),UXe=Se({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=Ae("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)}}}}),HXe=["stroke-width","stroke-linecap","stroke-linejoin"];function WXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M4 8h14.5M33 8H18.5m0 0v34"},null,-1),I("path",{d:"M39 9.5 37 13h4l-2-3.5ZM39 38.5 37 35h4l-2 3.5Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M39 13h2l-2-3.5-2 3.5h2Zm0 0v22m0 0h2l-2 3.5-2-3.5h2Z"},null,-1)]),14,HXe)}var IO=Ve(UXe,[["render",WXe]]);const GXe=Object.assign(IO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IO.name,IO)}}),KXe=Se({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=Ae("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)}}}}),qXe=["stroke-width","stroke-linecap","stroke-linejoin"];function YXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M13 37h30M13 11h30"},null,-1),I("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,qXe)}var LO=Ve(KXe,[["render",YXe]]);const XXe=Object.assign(LO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LO.name,LO)}}),ZXe=Se({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=Ae("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)}}}}),JXe=["stroke-width","stroke-linecap","stroke-linejoin"];function QXe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"8",y:"14",width:"24",height:"28",rx:"1"},null,-1),I("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 6h.01v.01H24V6ZM32 6h.01v.01H32V6ZM40 6h.01v.01H40V6ZM40 13h.01v.01H40V13ZM40 21h.01v.01H40V21Z"},null,-1)]),14,JXe)}var DO=Ve(ZXe,[["render",QXe]]);const eZe=Object.assign(DO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DO.name,DO)}}),tZe=Se({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=Ae("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)}}}}),nZe=["stroke-width","stroke-linecap","stroke-linejoin"];function rZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,nZe)}var PO=Ve(tZe,[["render",rZe]]);const iZe=Object.assign(PO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PO.name,PO)}}),oZe=Se({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=Ae("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)}}}}),sZe=["stroke-width","stroke-linecap","stroke-linejoin"];function aZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,sZe)}var RO=Ve(oZe,[["render",aZe]]);const lZe=Object.assign(RO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RO.name,RO)}}),uZe=Se({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=Ae("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)}}}}),cZe=["stroke-width","stroke-linecap","stroke-linejoin"];function dZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,cZe)}var MO=Ve(uZe,[["render",dZe]]);const fZe=Object.assign(MO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MO.name,MO)}}),hZe=Se({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=Ae("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)}}}}),pZe=["stroke-width","stroke-linecap","stroke-linejoin"];function vZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,pZe)}var OO=Ve(hZe,[["render",vZe]]);const Eve=Object.assign(OO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OO.name,OO)}}),mZe=Se({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=Ae("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)}}}}),gZe=["stroke-width","stroke-linecap","stroke-linejoin"];function yZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,gZe)}var $O=Ve(mZe,[["render",yZe]]);const Tve=Object.assign($O,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$O.name,$O)}}),bZe=Se({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=Ae("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)}}}}),_Ze=["stroke-width","stroke-linecap","stroke-linejoin"];function SZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M43 9H5m0 30h14m15.5-15H5"},null,-1)]),14,_Ze)}var BO=Ve(bZe,[["render",SZe]]);const kZe=Object.assign(BO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BO.name,BO)}}),xZe=Se({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=Ae("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)}}}}),CZe=["stroke-width","stroke-linecap","stroke-linejoin"];function wZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,CZe)}var NO=Ve(xZe,[["render",wZe]]);const EZe=Object.assign(NO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NO.name,NO)}}),TZe=Se({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=Ae("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)}}}}),AZe=["stroke-width","stroke-linecap","stroke-linejoin"];function IZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 5v17.5C13 27 15.5 33 24 33s11-5 11-10.5V5M9 41h30"},null,-1)]),14,AZe)}var FO=Ve(TZe,[["render",IZe]]);const LZe=Object.assign(FO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FO.name,FO)}}),DZe=Se({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=Ae("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)}}}}),PZe=["stroke-width","stroke-linecap","stroke-linejoin"];function RZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,PZe)}var jO=Ve(DZe,[["render",RZe]]);const MZe=Object.assign(jO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jO.name,jO)}}),OZe=Se({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=Ae("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)}}}}),$Ze=["stroke-width","stroke-linecap","stroke-linejoin"];function BZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M13 24h30M5 11h4m4 26h30M13 11h30M5 24h4M5 37h4"},null,-1)]),14,$Ze)}var VO=Ve(OZe,[["render",BZe]]);const NZe=Object.assign(VO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VO.name,VO)}}),FZe=Se({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=Ae("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)}}}}),jZe=["stroke-width","stroke-linecap","stroke-linejoin"];function VZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,jZe)}var zO=Ve(FZe,[["render",VZe]]);const zZe=Object.assign(zO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zO.name,zO)}}),UZe=Se({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=Ae("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)}}}}),HZe=["stroke-width","stroke-linecap","stroke-linejoin"];function WZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,HZe)}var UO=Ve(UZe,[["render",WZe]]);const GZe=Object.assign(UO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UO.name,UO)}}),KZe=Se({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=Ae("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)}}}}),qZe=["stroke-width","stroke-linecap","stroke-linejoin"];function YZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,qZe)}var HO=Ve(KZe,[["render",YZe]]);const XZe=Object.assign(HO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HO.name,HO)}}),ZZe=Se({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=Ae("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)}}}}),JZe=["stroke-width","stroke-linecap","stroke-linejoin"];function QZe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,JZe)}var WO=Ve(ZZe,[["render",QZe]]);const eJe=Object.assign(WO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WO.name,WO)}}),tJe=Se({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=Ae("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)}}}}),nJe=["stroke-width","stroke-linecap","stroke-linejoin"];function rJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,nJe)}var GO=Ve(tJe,[["render",rJe]]);const iJe=Object.assign(GO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GO.name,GO)}}),oJe=Se({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=Ae("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)}}}}),sJe=["stroke-width","stroke-linecap","stroke-linejoin"];function aJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 15 10-7v32l-10-7H6V15h8Z",fill:"currentColor",stroke:"none"},null,-1),I("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),I("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,sJe)}var KO=Ve(oJe,[["render",aJe]]);const lJe=Object.assign(KO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KO.name,KO)}}),uJe=Se({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=Ae("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)}}}}),cJe=["stroke-width","stroke-linecap","stroke-linejoin"];function dJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,cJe)}var qO=Ve(uJe,[["render",dJe]]);const fJe=Object.assign(qO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qO.name,qO)}}),hJe=Se({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=Ae("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)}}}}),pJe=["stroke-width","stroke-linecap","stroke-linejoin"];function vJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,pJe)}var YO=Ve(hJe,[["render",vJe]]);const mJe=Object.assign(YO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YO.name,YO)}}),gJe=Se({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=Ae("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)}}}}),yJe=["stroke-width","stroke-linecap","stroke-linejoin"];function bJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,yJe)}var XO=Ve(gJe,[["render",bJe]]);const ZH=Object.assign(XO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XO.name,XO)}}),_Je=Se({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=Ae("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)}}}}),SJe=["stroke-width","stroke-linecap","stroke-linejoin"];function kJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,SJe)}var ZO=Ve(_Je,[["render",kJe]]);const a_=Object.assign(ZO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZO.name,ZO)}}),xJe=Se({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=Ae("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)}}}}),CJe=["stroke-width","stroke-linecap","stroke-linejoin"];function wJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,CJe)}var JO=Ve(xJe,[["render",wJe]]);const EJe=Object.assign(JO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JO.name,JO)}}),TJe=Se({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=Ae("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)}}}}),AJe=["stroke-width","stroke-linecap","stroke-linejoin"];function IJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,AJe)}var QO=Ve(TJe,[["render",IJe]]);const LJe=Object.assign(QO,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QO.name,QO)}}),DJe=Se({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=Ae("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)}}}}),PJe=["stroke-width","stroke-linecap","stroke-linejoin"];function RJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M19 19v10h1V19h-1ZM28 19v10h1V19h-1Z"},null,-1)]),14,PJe)}var e$=Ve(DJe,[["render",RJe]]);const MJe=Object.assign(e$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+e$.name,e$)}}),OJe=Se({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=Ae("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)}}}}),$Je=["stroke-width","stroke-linecap","stroke-linejoin"];function BJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,$Je)}var t$=Ve(OJe,[["render",BJe]]);const qa=Object.assign(t$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+t$.name,t$)}}),NJe=Se({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=Ae("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)}}}}),FJe=["stroke-width","stroke-linecap","stroke-linejoin"];function jJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M19 17v14l12-7-12-7Z"},null,-1)]),14,FJe)}var n$=Ve(NJe,[["render",jJe]]);const Oy=Object.assign(n$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+n$.name,n$)}}),VJe=Se({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=Ae("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)}}}}),zJe=["stroke-width","stroke-linecap","stroke-linejoin"];function UJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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),I("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,zJe)}var r$=Ve(VJe,[["render",UJe]]);const HJe=Object.assign(r$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+r$.name,r$)}}),WJe=Se({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=Ae("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)}}}}),GJe=["stroke-width","stroke-linecap","stroke-linejoin"];function KJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M30 24a6 6 0 1 1-12 0 6 6 0 0 1 12 0Z"},null,-1)]),14,GJe)}var i$=Ve(WJe,[["render",KJe]]);const qJe=Object.assign(i$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+i$.name,i$)}}),YJe=Se({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=Ae("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)}}}}),XJe=["stroke-width","stroke-linecap","stroke-linejoin"];function ZJe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M34 24 10 40V8l24 16Z"},null,-1),I("path",{d:"M38 6v36"},null,-1)]),14,XJe)}var o$=Ve(YJe,[["render",ZJe]]);const JJe=Object.assign(o$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+o$.name,o$)}}),QJe=Se({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=Ae("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)}}}}),eQe=["stroke-width","stroke-linecap","stroke-linejoin"];function tQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 24 24 16V8L14 24Z"},null,-1),I("path",{d:"M10 6v36"},null,-1)]),14,eQe)}var s$=Ve(QJe,[["render",tQe]]);const nQe=Object.assign(s$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+s$.name,s$)}}),rQe=Se({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=Ae("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)}}}}),iQe=["stroke-width","stroke-linecap","stroke-linejoin"];function oQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"m14 16 10-9v34l-10-9H6V16h8Z"},null,-1),I("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,iQe)}var a$=Ve(rQe,[["render",oQe]]);const Ave=Object.assign(a$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+a$.name,a$)}}),sQe=Se({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=Ae("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)}}}}),aQe=["stroke-width","stroke-linecap","stroke-linejoin"];function lQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M280.416 794.112 128 829.952v-636.32l152.416 35.84z",fill:"#325AB4"},null,-1),I("path",{d:"M928 828.48 800 864V160l128 35.52z",fill:"#78E6DC"},null,-1),I("path",{d:"M480 798.304 352 832V480l128 33.696z",fill:"#3C8CFF"},null,-1),I("path",{d:"M576 449.696 704 416v352l-128-33.696z",fill:"#00C8D2"},null,-1)]),14,aQe)}var l$=Ve(sQe,[["render",lQe]]);const uQe=Object.assign(l$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+l$.name,l$)}}),cQe=Se({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=Ae("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)}}}}),dQe=["stroke-width","stroke-linecap","stroke-linejoin"];function fQe(e,t,n,r,o,a){return z(),Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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),I("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,dQe)}var u$=Ve(cQe,[["render",fQe]]);const hQe=Object.assign(u$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+u$.name,u$)}}),pQe=Se({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=Ae("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)}}}}),vQe=["stroke-width","stroke-linecap","stroke-linejoin"];function mQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.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,vQe)}var c$=Ve(pQe,[["render",mQe]]);const gQe=Object.assign(c$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+c$.name,c$)}}),yQe=Se({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=Ae("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)}}}}),bQe=["stroke-width","stroke-linecap","stroke-linejoin"];function _Qe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,bQe)}var d$=Ve(yQe,[["render",_Qe]]);const SQe=Object.assign(d$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+d$.name,d$)}}),kQe=Se({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=Ae("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)}}}}),xQe=["stroke-width","stroke-linecap","stroke-linejoin"];function CQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,xQe)}var f$=Ve(kQe,[["render",CQe]]);const wQe=Object.assign(f$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+f$.name,f$)}}),EQe=Se({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=Ae("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)}}}}),TQe=["stroke-width","stroke-linecap","stroke-linejoin"];function AQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,TQe)}var h$=Ve(EQe,[["render",AQe]]);const IQe=Object.assign(h$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+h$.name,h$)}}),LQe=Se({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=Ae("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)}}}}),DQe=["stroke-width","stroke-linecap","stroke-linejoin"];function PQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,DQe)}var p$=Ve(LQe,[["render",PQe]]);const RQe=Object.assign(p$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+p$.name,p$)}}),MQe=Se({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=Ae("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)}}}}),OQe=["stroke-width","stroke-linecap","stroke-linejoin"];function $Qe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,OQe)}var v$=Ve(MQe,[["render",$Qe]]);const BQe=Object.assign(v$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+v$.name,v$)}}),NQe=Se({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=Ae("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)}}}}),FQe=["stroke-width","stroke-linecap","stroke-linejoin"];function jQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,FQe)}var m$=Ve(NQe,[["render",jQe]]);const VQe=Object.assign(m$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+m$.name,m$)}}),zQe=Se({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=Ae("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)}}}}),UQe=["stroke-width","stroke-linecap","stroke-linejoin"];function HQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,UQe)}var g$=Ve(zQe,[["render",HQe]]);const WQe=Object.assign(g$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+g$.name,g$)}}),GQe=Se({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=Ae("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)}}}}),KQe=["stroke-width","stroke-linecap","stroke-linejoin"];function qQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,KQe)}var y$=Ve(GQe,[["render",qQe]]);const YQe=Object.assign(y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+y$.name,y$)}}),XQe=Se({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=Ae("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)}}}}),ZQe=["stroke-width","stroke-linecap","stroke-linejoin"];function JQe(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,ZQe)}var b$=Ve(XQe,[["render",JQe]]);const QQe=Object.assign(b$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+b$.name,b$)}}),eet=Se({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=Ae("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)}}}}),tet=["stroke-width","stroke-linecap","stroke-linejoin"];function net(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,tet)}var _$=Ve(eet,[["render",net]]);const ret=Object.assign(_$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_$.name,_$)}}),iet=Se({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=Ae("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)}}}}),oet=["stroke-width","stroke-linecap","stroke-linejoin"];function set(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,oet)}var S$=Ve(iet,[["render",set]]);const aet=Object.assign(S$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+S$.name,S$)}}),uet=Se({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=Ae("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)}}}}),cet=["stroke-width","stroke-linecap","stroke-linejoin"];function det(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,cet)}var k$=Ve(uet,[["render",det]]);const Ive=Object.assign(k$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+k$.name,k$)}}),fet=Se({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=Ae("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)}}}}),het=["stroke-width","stroke-linecap","stroke-linejoin"];function pet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,het)}var x$=Ve(fet,[["render",pet]]);const vet=Object.assign(x$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+x$.name,x$)}}),met=Se({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=Ae("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)}}}}),get=["stroke-width","stroke-linecap","stroke-linejoin"];function yet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,get)}var C$=Ve(met,[["render",yet]]);const bet=Object.assign(C$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+C$.name,C$)}}),_et=Se({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=Ae("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)}}}}),ket=["stroke-width","stroke-linecap","stroke-linejoin"];function xet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,ket)}var w$=Ve(_et,[["render",xet]]);const Cet=Object.assign(w$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+w$.name,w$)}}),wet=Se({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=Ae("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)}}}}),Eet=["stroke-width","stroke-linecap","stroke-linejoin"];function Tet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Eet)}var E$=Ve(wet,[["render",Tet]]);const Aet=Object.assign(E$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+E$.name,E$)}}),Iet=Se({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=Ae("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)}}}}),Let=["stroke-width","stroke-linecap","stroke-linejoin"];function Det(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Let)}var T$=Ve(Iet,[["render",Det]]);const Pet=Object.assign(T$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+T$.name,T$)}}),Ret=Se({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=Ae("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)}}}}),Met=["stroke-width","stroke-linecap","stroke-linejoin"];function Oet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Met)}var A$=Ve(Ret,[["render",Oet]]);const $et=Object.assign(A$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+A$.name,A$)}}),Bet=Se({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=Ae("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)}}}}),Net=["stroke-width","stroke-linecap","stroke-linejoin"];function Fet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Net)}var I$=Ve(Bet,[["render",Fet]]);const jet=Object.assign(I$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+I$.name,I$)}}),Vet=Se({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=Ae("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)}}}}),zet=["stroke-width","stroke-linecap","stroke-linejoin"];function Uet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,zet)}var L$=Ve(Vet,[["render",Uet]]);const Het=Object.assign(L$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+L$.name,L$)}}),Wet=Se({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=Ae("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)}}}}),Get=["stroke-width","stroke-linecap","stroke-linejoin"];function Ket(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M22 21h-5v4.094h5V21ZM26 25.094V21h5v4.094h-5Z",fill:"currentColor",stroke:"none"},null,-1),I("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,Get)}var D$=Ve(Wet,[["render",Ket]]);const qet=Object.assign(D$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+D$.name,D$)}}),Yet=Se({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=Ae("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)}}}}),Xet=["stroke-width","stroke-linecap","stroke-linejoin"];function Zet(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Xet)}var P$=Ve(Yet,[["render",Zet]]);const Jet=Object.assign(P$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+P$.name,P$)}}),Qet=Se({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=Ae("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)}}}}),ett=["stroke-width","stroke-linecap","stroke-linejoin"];function ttt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,ett)}var R$=Ve(Qet,[["render",ttt]]);const ntt=Object.assign(R$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+R$.name,R$)}}),rtt=Se({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=Ae("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)}}}}),itt=["stroke-width","stroke-linecap","stroke-linejoin"];function ott(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,itt)}var M$=Ve(rtt,[["render",ott]]);const stt=Object.assign(M$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+M$.name,M$)}}),att=Se({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=Ae("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)}}}}),ltt=["stroke-width","stroke-linecap","stroke-linejoin"];function utt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"9",fill:"currentColor",stroke:"none"},null,-1),I("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,ltt)}var O$=Ve(att,[["render",utt]]);const ctt=Object.assign(O$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+O$.name,O$)}}),dtt=Se({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=Ae("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)}}}}),ftt=["stroke-width","stroke-linecap","stroke-linejoin"];function htt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M7 7h13v13H7zM28 7h13v13H28zM7 28h13v13H7zM28 28h13v13H28z"},null,-1)]),14,ftt)}var $$=Ve(dtt,[["render",htt]]);const Lve=Object.assign($$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$$.name,$$)}}),ptt=Se({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=Ae("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)}}}}),vtt=["stroke-width","stroke-linecap","stroke-linejoin"];function mtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"9",y:"18",width:"30",height:"22",rx:"1"},null,-1),I("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,vtt)}var B$=Ve(ptt,[["render",mtt]]);const gtt=Object.assign(B$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+B$.name,B$)}}),ytt=Se({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=Ae("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)}}}}),btt=["stroke-width","stroke-linecap","stroke-linejoin"];function _tt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",stroke:"currentColor",fill:"none",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 7H29v34h12V7ZM29 18H18v23h11V18ZM18 29H7v12h11V29Z"},null,-1)]),14,btt)}var N$=Ve(ytt,[["render",_tt]]);const Dve=Object.assign(N$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+N$.name,N$)}}),Stt=Se({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=Ae("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)}}}}),ktt=["stroke-width","stroke-linecap","stroke-linejoin"];function xtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,ktt)}var F$=Ve(Stt,[["render",xtt]]);const nA=Object.assign(F$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+F$.name,F$)}}),Ctt=Se({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=Ae("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)}}}}),wtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ett(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M16 16h16M16 24h8"},null,-1),I("path",{d:"M24 41H8V6h32v17"},null,-1),I("path",{d:"M30 29h11v13l-5.5-3.5L30 42V29Z"},null,-1)]),14,wtt)}var j$=Ve(Ctt,[["render",Ett]]);const Ttt=Object.assign(j$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+j$.name,j$)}}),Att=Se({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=Ae("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)}}}}),Itt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ltt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Itt)}var V$=Ve(Att,[["render",Ltt]]);const Dtt=Object.assign(V$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+V$.name,V$)}}),Ptt=Se({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=Ae("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)}}}}),Rtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Rtt)}var z$=Ve(Ptt,[["render",Mtt]]);const $y=Object.assign(z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+z$.name,z$)}}),Ott=Se({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=Ae("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)}}}}),$tt=["stroke-width","stroke-linecap","stroke-linejoin"];function Btt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,$tt)}var U$=Ve(Ott,[["render",Btt]]);const Ntt=Object.assign(U$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+U$.name,U$)}}),Ftt=Se({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=Ae("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)}}}}),jtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Vtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,jtt)}var H$=Ve(Ftt,[["render",Vtt]]);const ztt=Object.assign(H$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+H$.name,H$)}}),Utt=Se({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=Ae("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)}}}}),Htt=["stroke-width","stroke-linecap","stroke-linejoin"];function Wtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Htt)}var W$=Ve(Utt,[["render",Wtt]]);const Gtt=Object.assign(W$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+W$.name,W$)}}),Ktt=Se({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=Ae("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)}}}}),qtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ytt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,qtt)}var G$=Ve(Ktt,[["render",Ytt]]);const Xtt=Object.assign(G$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+G$.name,G$)}}),Ztt=Se({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=Ae("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)}}}}),Jtt=["stroke-width","stroke-linecap","stroke-linejoin"];function Qtt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Jtt)}var K$=Ve(Ztt,[["render",Qtt]]);const ent=Object.assign(K$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+K$.name,K$)}}),tnt=Se({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=Ae("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)}}}}),nnt=["stroke-width","stroke-linecap","stroke-linejoin"];function rnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 23 7.652 14.345M24 23l16.366-8.664M24 23v19.438M7 14v20l17 9 17-9V14L24 5 7 14Z"},null,-1)]),14,nnt)}var q$=Ve(tnt,[["render",rnt]]);const int=Object.assign(q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+q$.name,q$)}}),ont=Se({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=Ae("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)}}}}),snt=["stroke-width","stroke-linecap","stroke-linejoin"];function ant(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,snt)}var Y$=Ve(ont,[["render",ant]]);const lnt=Object.assign(Y$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Y$.name,Y$)}}),unt=Se({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=Ae("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)}}}}),cnt=["stroke-width","stroke-linecap","stroke-linejoin"];function dnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M41 7H7v22h34V7Z"},null,-1),I("path",{d:"M23.778 29v10"},null,-1),I("path",{d:"M16 39h16"},null,-1),I("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,cnt)}var X$=Ve(unt,[["render",dnt]]);const JH=Object.assign(X$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+X$.name,X$)}}),fnt=Se({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=Ae("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)}}}}),hnt=["stroke-width","stroke-linecap","stroke-linejoin"];function pnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,hnt)}var Z$=Ve(fnt,[["render",pnt]]);const Pve=Object.assign(Z$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Z$.name,Z$)}}),vnt=Se({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=Ae("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)}}}}),mnt=["stroke-width","stroke-linecap","stroke-linejoin"];function gnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M24 32a5 5 0 1 0 0 10 5 5 0 0 0 0-10Zm0 0V19"},null,-1)]),14,mnt)}var J$=Ve(vnt,[["render",gnt]]);const ynt=Object.assign(J$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+J$.name,J$)}}),bnt=Se({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=Ae("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)}}}}),_nt=["stroke-width","stroke-linecap","stroke-linejoin"];function Snt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,_nt)}var Q$=Ve(bnt,[["render",Snt]]);const Y8=Object.assign(Q$,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+Q$.name,Q$)}}),knt=Se({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=Ae("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)}}}}),xnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Cnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.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,xnt)}var eB=Ve(knt,[["render",Cnt]]);const wnt=Object.assign(eB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eB.name,eB)}}),Ent=Se({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=Ae("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)}}}}),Tnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ant(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Tnt)}var tB=Ve(Ent,[["render",Ant]]);const Int=Object.assign(tB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tB.name,tB)}}),Lnt=Se({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=Ae("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)}}}}),Dnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Pnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Dnt)}var nB=Ve(Lnt,[["render",Pnt]]);const Rnt=Object.assign(nB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nB.name,nB)}}),Mnt=Se({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=Ae("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)}}}}),Ont=["stroke-width","stroke-linecap","stroke-linejoin"];function $nt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"6",y:"8",width:"36",height:"32",rx:"1"},null,-1),I("path",{d:"m37 17-12.43 8.606a1 1 0 0 1-1.14 0L11 17"},null,-1)]),14,Ont)}var rB=Ve(Mnt,[["render",$nt]]);const Bnt=Object.assign(rB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rB.name,rB)}}),Nnt=Se({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=Ae("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)}}}}),Fnt=["stroke-width","stroke-linecap","stroke-linejoin"];function jnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Fnt)}var iB=Ve(Nnt,[["render",jnt]]);const Vnt=Object.assign(iB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iB.name,iB)}}),znt=Se({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=Ae("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)}}}}),Unt=["stroke-width","stroke-linecap","stroke-linejoin"];function Hnt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Unt)}var oB=Ve(znt,[["render",Hnt]]);const Rve=Object.assign(oB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oB.name,oB)}}),Wnt=Se({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=Ae("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)}}}}),Gnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Knt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Gnt)}var sB=Ve(Wnt,[["render",Knt]]);const qnt=Object.assign(sB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+sB.name,sB)}}),Ynt=Se({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=Ae("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)}}}}),Xnt=["stroke-width","stroke-linecap","stroke-linejoin"];function Znt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Xnt)}var aB=Ve(Ynt,[["render",Znt]]);const Jnt=Object.assign(aB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+aB.name,aB)}}),Qnt=Se({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=Ae("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)}}}}),ert=["stroke-width","stroke-linecap","stroke-linejoin"];function trt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,ert)}var lB=Ve(Qnt,[["render",trt]]);const Mve=Object.assign(lB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+lB.name,lB)}}),nrt=Se({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=Ae("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)}}}}),rrt=["stroke-width","stroke-linecap","stroke-linejoin"];function irt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,rrt)}var uB=Ve(nrt,[["render",irt]]);const ort=Object.assign(uB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+uB.name,uB)}}),srt=Se({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=Ae("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)}}}}),art=["stroke-width","stroke-linecap","stroke-linejoin"];function lrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M36 33a7 7 0 1 0-14 0"},null,-1),I("circle",{cx:"29",cy:"20",r:"4"},null,-1)]),14,art)}var cB=Ve(srt,[["render",lrt]]);const urt=Object.assign(cB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+cB.name,cB)}}),crt=Se({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=Ae("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)}}}}),drt=["stroke-width","stroke-linecap","stroke-linejoin"];function frt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M33 33v-9l-9 9h9ZM23.5 33l-3-4-3 4h6ZM15 15h2v2h-2z",fill:"currentColor",stroke:"none"},null,-1)]),14,drt)}var dB=Ve(crt,[["render",frt]]);const rA=Object.assign(dB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+dB.name,dB)}}),hrt=Se({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=Ae("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)}}}}),prt=["stroke-width","stroke-linecap","stroke-linejoin"];function vrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,prt)}var fB=Ve(hrt,[["render",vrt]]);const mrt=Object.assign(fB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+fB.name,fB)}}),grt=Se({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=Ae("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)}}}}),yrt=["stroke-width","stroke-linecap","stroke-linejoin"];function brt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M25 11s-1.889 7.826-6.611 12.174C13.667 27.522 6 31 6 31"},null,-1)]),14,yrt)}var hB=Ve(grt,[["render",brt]]);const Ove=Object.assign(hB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+hB.name,hB)}}),_rt=Se({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=Ae("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)}}}}),Srt=["stroke-width","stroke-linecap","stroke-linejoin"];function krt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24.015 7.017 41 14.62l-16.985 7.605L7.03 14.62l16.985-7.604Z"},null,-1),I("path",{d:"m41 23.255-16.985 7.604L7.03 23.255M40.97 33.412l-16.985 7.605L7 33.412"},null,-1)]),14,Srt)}var pB=Ve(_rt,[["render",krt]]);const xrt=Object.assign(pB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+pB.name,pB)}}),Crt=Se({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=Ae("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)}}}}),wrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Ert(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,wrt)}var vB=Ve(Crt,[["render",Ert]]);const Trt=Object.assign(vB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+vB.name,vB)}}),Art=Se({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=Ae("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)}}}}),Irt=["stroke-width","stroke-linecap","stroke-linejoin"];function Lrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"19",r:"5"},null,-1),I("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,Irt)}var mB=Ve(Art,[["render",Lrt]]);const Drt=Object.assign(mB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+mB.name,mB)}}),Prt=Se({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=Ae("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)}}}}),Rrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Mrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),I("path",{d:"M15 21v-6a9 9 0 1 1 18 0v6M24 35v-8"},null,-1)]),14,Rrt)}var gB=Ve(Prt,[["render",Mrt]]);const Ort=Object.assign(gB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+gB.name,gB)}}),$rt=Se({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=Ae("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)}}}}),Brt=["stroke-width","stroke-linecap","stroke-linejoin"];function Nrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Brt)}var yB=Ve($rt,[["render",Nrt]]);const Frt=Object.assign(yB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+yB.name,yB)}}),jrt=Se({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=Ae("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)}}}}),Vrt=["stroke-width","stroke-linecap","stroke-linejoin"];function zrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Vrt)}var bB=Ve(jrt,[["render",zrt]]);const Urt=Object.assign(bB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+bB.name,bB)}}),Hrt=Se({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=Ae("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)}}}}),Wrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Grt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M5 10h38M5 24h38M5 38h38"},null,-1)]),14,Wrt)}var _B=Ve(Hrt,[["render",Grt]]);const $ve=Object.assign(_B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+_B.name,_B)}}),Krt=Se({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=Ae("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)}}}}),qrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Yrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,qrt)}var SB=Ve(Krt,[["render",Yrt]]);const Xrt=Object.assign(SB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+SB.name,SB)}}),Zrt=Se({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=Ae("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)}}}}),Jrt=["stroke-width","stroke-linecap","stroke-linejoin"];function Qrt(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("circle",{cx:"24",cy:"33",r:"2",fill:"currentColor",stroke:"none"},null,-1)]),14,Jrt)}var kB=Ve(Zrt,[["render",Qrt]]);const Bve=Object.assign(kB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+kB.name,kB)}}),eit=Se({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=Ae("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)}}}}),tit=["stroke-width","stroke-linecap","stroke-linejoin"];function nit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,tit)}var xB=Ve(eit,[["render",nit]]);const rit=Object.assign(xB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+xB.name,xB)}}),iit=Se({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=Ae("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)}}}}),oit=["stroke-width","stroke-linecap","stroke-linejoin"];function sit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,oit)}var CB=Ve(iit,[["render",sit]]);const ait=Object.assign(CB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+CB.name,CB)}}),lit=Se({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=Ae("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)}}}}),uit=["stroke-width","stroke-linecap","stroke-linejoin"];function cit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M6 19h10m0 0h26m-26 0V9m0 10v10m0 0v10m0-10H6m10 0h26M6 9h36v30H6V9Z"},null,-1)]),14,uit)}var wB=Ve(lit,[["render",cit]]);const dit=Object.assign(wB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+wB.name,wB)}}),fit=Se({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=Ae("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)}}}}),hit=["stroke-width","stroke-linecap","stroke-linejoin"];function pit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,hit)}var EB=Ve(fit,[["render",pit]]);const vit=Object.assign(EB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+EB.name,EB)}}),mit=Se({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=Ae("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)}}}}),git=["stroke-width","stroke-linecap","stroke-linejoin"];function yit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,git)}var TB=Ve(mit,[["render",yit]]);const bit=Object.assign(TB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+TB.name,TB)}}),_it=Se({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=Ae("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)}}}}),Sit=["stroke-width","stroke-linecap","stroke-linejoin"];function kit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.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,Sit)}var AB=Ve(_it,[["render",kit]]);const QH=Object.assign(AB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+AB.name,AB)}}),xit=Se({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=Ae("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)}}}}),Cit=["stroke-width","stroke-linecap","stroke-linejoin"];function wit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Cit)}var IB=Ve(xit,[["render",wit]]);const Eit=Object.assign(IB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+IB.name,IB)}}),Tit=Se({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=Ae("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)}}}}),Ait=["stroke-width","stroke-linecap","stroke-linejoin"];function Iit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Ait)}var LB=Ve(Tit,[["render",Iit]]);const Lit=Object.assign(LB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+LB.name,LB)}}),Dit=Se({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=Ae("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)}}}}),Pit=["stroke-width","stroke-linecap","stroke-linejoin"];function Rit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Pit)}var DB=Ve(Dit,[["render",Rit]]);const Mit=Object.assign(DB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+DB.name,DB)}}),Oit=Se({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=Ae("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)}}}}),$it=["stroke-width","stroke-linecap","stroke-linejoin"];function Bit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,$it)}var PB=Ve(Oit,[["render",Bit]]);const Nit=Object.assign(PB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+PB.name,PB)}}),Fit=Se({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=Ae("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)}}}}),jit=["stroke-width","stroke-linecap","stroke-linejoin"];function Vit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,jit)}var RB=Ve(Fit,[["render",Vit]]);const zit=Object.assign(RB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+RB.name,RB)}}),Uit=Se({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=Ae("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)}}}}),Hit=["stroke-width","stroke-linecap","stroke-linejoin"];function Wit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Hit)}var MB=Ve(Uit,[["render",Wit]]);const Git=Object.assign(MB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+MB.name,MB)}}),Kit=Se({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=Ae("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)}}}}),qit=["stroke-width","stroke-linecap","stroke-linejoin"];function Yit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",stroke:"currentColor",xmlns:"http://www.w3.org/2000/svg",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,qit)}var OB=Ve(Kit,[["render",Yit]]);const Xit=Object.assign(OB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+OB.name,OB)}}),Zit=Se({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=Ae("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)}}}}),Jit=["stroke-width","stroke-linecap","stroke-linejoin"];function Qit(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m25 8H9V13h30v11m-7 11h14m-7-7v14M18 26h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,Jit)}var $B=Ve(Zit,[["render",Qit]]);const eot=Object.assign($B,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+$B.name,$B)}}),tot=Se({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=Ae("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)}}}}),not=["stroke-width","stroke-linecap","stroke-linejoin"];function rot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("path",{d:"M18 26h1v1h-1v-1ZM29 26h1v1h-1v-1Z",fill:"currentColor",stroke:"none"},null,-1),I("path",{d:"M24 7v6m0-6h5m-5 0h-5M3 21v11m36 8H9V13h30v29m6-21v11m-27-6h1v1h-1v-1Zm11 0h1v1h-1v-1Z"},null,-1)]),14,not)}var BB=Ve(tot,[["render",rot]]);const iot=Object.assign(BB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+BB.name,BB)}}),oot=Se({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=Ae("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)}}}}),sot=["stroke-width","stroke-linecap","stroke-linejoin"];function aot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,sot)}var NB=Ve(oot,[["render",aot]]);const _f=Object.assign(NB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+NB.name,NB)}}),lot=Se({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=Ae("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)}}}}),uot=["stroke-width","stroke-linecap","stroke-linejoin"];function cot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"18"},null,-1),I("path",{d:"M24 13v10l6.5 7"},null,-1)]),14,uot)}var FB=Ve(lot,[["render",cot]]);const dot=Object.assign(FB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+FB.name,FB)}}),fot=Se({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=Ae("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)}}}}),hot=["stroke-width","stroke-linecap","stroke-linejoin"];function pot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("circle",{cx:"17.637",cy:"30.364",r:"1",transform:"rotate(45 17.637 30.364)",fill:"currentColor",stroke:"none"},null,-1)]),14,hot)}var jB=Ve(fot,[["render",pot]]);const vot=Object.assign(jB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+jB.name,jB)}}),mot=Se({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=Ae("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)}}}}),got=["stroke-width","stroke-linecap","stroke-linejoin"];function yot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,got)}var VB=Ve(mot,[["render",yot]]);const bot=Object.assign(VB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+VB.name,VB)}}),_ot=Se({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=Ae("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)}}}}),Sot=["stroke-width","stroke-linecap","stroke-linejoin"];function kot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Sot)}var zB=Ve(_ot,[["render",kot]]);const xot=Object.assign(zB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+zB.name,zB)}}),Cot=Se({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=Ae("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)}}}}),wot=["stroke-width","stroke-linecap","stroke-linejoin"];function Eot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M13.02 36H13v.02h.02V36Z"},null,-1),I("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),I("path",{d:"M13.02 24H13v.02h.02V24Z"},null,-1)]),14,wot)}var UB=Ve(Cot,[["render",Eot]]);const bV=Object.assign(UB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+UB.name,UB)}}),Tot=Se({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=Ae("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)}}}}),Aot=["stroke-width","stroke-linecap","stroke-linejoin"];function Iot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Aot)}var HB=Ve(Tot,[["render",Iot]]);const Lot=Object.assign(HB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+HB.name,HB)}}),Dot=Se({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=Ae("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)}}}}),Pot=["stroke-width","stroke-linecap","stroke-linejoin"];function Rot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Pot)}var WB=Ve(Dot,[["render",Rot]]);const Mot=Object.assign(WB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+WB.name,WB)}}),Oot=Se({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=Ae("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)}}}}),$ot=["stroke-width","stroke-linecap","stroke-linejoin"];function Bot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,$ot)}var GB=Ve(Oot,[["render",Bot]]);const Not=Object.assign(GB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+GB.name,GB)}}),Fot=Se({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=Ae("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)}}}}),jot=["stroke-width","stroke-linecap","stroke-linejoin"];function Vot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"24",cy:"24",r:"7"},null,-1),I("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),I("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,jot)}var KB=Ve(Fot,[["render",Vot]]);const zot=Object.assign(KB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+KB.name,KB)}}),Uot=Se({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=Ae("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)}}}}),Hot=["stroke-width","stroke-linecap","stroke-linejoin"];function Wot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M31.577 17.346a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"},null,-1),I("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,Hot)}var qB=Ve(Uot,[["render",Wot]]);const Got=Object.assign(qB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+qB.name,qB)}}),Kot=Se({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=Ae("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)}}}}),qot=["stroke-width","stroke-linecap","stroke-linejoin"];function Yot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("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,qot)}var YB=Ve(Kot,[["render",Yot]]);const Xot=Object.assign(YB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+YB.name,YB)}}),Zot=Se({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=Ae("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)}}}}),Jot=["stroke-width","stroke-linecap","stroke-linejoin"];function Qot(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Jot)}var XB=Ve(Zot,[["render",Qot]]);const est=Object.assign(XB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+XB.name,XB)}}),tst=Se({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=Ae("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)}}}}),nst=["stroke-width","stroke-linecap","stroke-linejoin"];function rst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,nst)}var ZB=Ve(tst,[["render",rst]]);const ist=Object.assign(ZB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+ZB.name,ZB)}}),ost=Se({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=Ae("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)}}}}),sst=["stroke-width","stroke-linecap","stroke-linejoin"];function ast(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,sst)}var JB=Ve(ost,[["render",ast]]);const lst=Object.assign(JB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+JB.name,JB)}}),ust=Se({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=Ae("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)}}}}),cst=["stroke-width","stroke-linecap","stroke-linejoin"];function dst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("rect",{x:"7",y:"21",width:"34",height:"20",rx:"1"},null,-1),I("path",{d:"M44 15a9 9 0 1 0-18 0v6M24 35v-8"},null,-1)]),14,cst)}var QB=Ve(ust,[["render",dst]]);const fst=Object.assign(QB,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+QB.name,QB)}}),hst=Se({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=Ae("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)}}}}),pst=["stroke-width","stroke-linecap","stroke-linejoin"];function vst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,pst)}var eN=Ve(hst,[["render",vst]]);const mst=Object.assign(eN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+eN.name,eN)}}),gst=Se({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=Ae("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)}}}}),yst=["stroke-width","stroke-linecap","stroke-linejoin"];function bst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("circle",{cx:"18",cy:"15",r:"7"},null,-1),I("circle",{cx:"34",cy:"19",r:"4"},null,-1),I("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,yst)}var tN=Ve(gst,[["render",bst]]);const _st=Object.assign(tN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+tN.name,tN)}}),Sst=Se({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=Ae("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)}}}}),kst=["stroke-width","stroke-linecap","stroke-linejoin"];function xst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("circle",{cx:"24",cy:"15",r:"8"},null,-1)]),14,kst)}var nN=Ve(Sst,[["render",xst]]);const Cst=Object.assign(nN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+nN.name,nN)}}),wst=Se({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=Ae("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)}}}}),Est=["stroke-width","stroke-linecap","stroke-linejoin"];function Tst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Est)}var rN=Ve(wst,[["render",Tst]]);const Nve=Object.assign(rN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+rN.name,rN)}}),Ast=Se({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=Ae("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)}}}}),Ist=["stroke-width","stroke-linecap","stroke-linejoin"];function Lst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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),I("path",{d:"M27.535 35.465a5 5 0 0 0-7.07 0L24 39l3.535-3.535Z",fill:"currentColor",stroke:"none"},null,-1)]),14,Ist)}var iN=Ve(Ast,[["render",Lst]]);const Dst=Object.assign(iN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+iN.name,iN)}}),Pst=Se({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=Ae("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)}}}}),Rst=["stroke-width","stroke-linecap","stroke-linejoin"];function Mst(e,t,n,r,o,a){return z(),Q("svg",{viewBox:"0 0 48 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",stroke:"currentColor",class:ue(e.cls),style:Ge(e.innerStyle),"stroke-width":e.strokeWidth,"stroke-linecap":e.strokeLinecap,"stroke-linejoin":e.strokeLinejoin,onClick:t[0]||(t[0]=(...s)=>e.onClick&&e.onClick(...s))},t[1]||(t[1]=[I("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,Rst)}var oN=Ve(Pst,[["render",Mst]]);const Ost=Object.assign(oN,{install:(e,t)=>{var n;const r=(n=t?.iconPrefix)!=null?n:"";e.component(r+oN.name,oN)}}),_V={IconArrowDown:gV,IconArrowFall:zHe,IconArrowLeft:qH,IconArrowRight:YHe,IconArrowRise:QHe,IconArrowUp:yV,IconCaretDown:FH,IconCaretLeft:SH,IconCaretRight:_H,IconCaretUp:tve,IconDoubleDown:sWe,IconDoubleLeft:Hpe,IconDoubleRight:Wpe,IconDoubleUp:cWe,IconDownCircle:pWe,IconDown:Zh,IconDragArrow:_ve,IconExpand:SWe,IconLeftCircle:wWe,IconLeft:Al,IconMenuFold:B0e,IconMenuUnfold:N0e,IconRightCircle:IWe,IconRight:Hi,IconRotateLeft:b0e,IconRotateRight:_0e,IconShrink:RWe,IconSwap:Sve,IconToBottom:jWe,IconToLeft:HWe,IconToRight:qWe,IconToTop:upe,IconUpCircle:JWe,IconUp:J_,IconCheckCircleFill:Yh,IconCloseCircleFill:Zm,IconExclamationCircleFill:Lf,IconExclamationPolygonFill:nGe,IconInfoCircleFill:i3,IconMinusCircleFill:sGe,IconPlusCircleFill:cGe,IconQuestionCircleFill:pGe,IconCheckCircle:nc,IconCheckSquare:SGe,IconCheck:eg,IconClockCircle:s_,IconCloseCircle:wGe,IconClose:ds,IconExclamationCircle:Sd,IconExclamation:OH,IconInfoCircle:Pc,IconInfo:W0e,IconMinusCircle:OGe,IconMinus:Rm,IconPlusCircle:FGe,IconPlus:wf,IconQuestionCircle:AH,IconQuestion:UGe,IconStop:KGe,IconHeartFill:YH,IconStarFill:$H,IconThumbDownFill:eKe,IconThumbUpFill:iKe,IconAt:lKe,IconCloudDownload:fKe,IconCodeBlock:kve,IconCodeSquare:bKe,IconCode:E0,IconCustomerService:EKe,IconDownload:mm,IconExport:J5,IconEyeInvisible:rpe,IconEye:k0,IconHeart:Q5,IconHistory:My,IconHome:c3,IconImport:eA,IconLaunch:xve,IconList:XH,IconMessageBanned:eqe,IconMessage:iqe,IconMoreVertical:lqe,IconMore:F0,IconPoweroff:fqe,IconRefresh:Ed,IconReply:bqe,IconSave:zp,IconScan:Eqe,IconSearch:Lm,IconSelectAll:Lqe,IconSend:Mqe,IconSettings:Df,IconShareAlt:Vqe,IconShareExternal:Wqe,IconShareInternal:Yqe,IconStar:tA,IconSync:nYe,IconThumbDown:sYe,IconThumbUp:cYe,IconTranslate:pYe,IconUpload:w0,IconVoice:yYe,IconAlignCenter:kYe,IconAlignLeft:EYe,IconAlignRight:LYe,IconAttachment:MYe,IconBgColors:Cve,IconBold:VYe,IconBrush:WYe,IconCopy:X5,IconDelete:fc,IconEdit:HH,IconEraser:YYe,IconFilter:jH,IconFindReplace:QYe,IconFontColors:wve,IconFormula:sXe,IconH1:cXe,IconH2:pXe,IconH3:yXe,IconH4:kXe,IconH5:EXe,IconH6:LXe,IconH7:MXe,IconHighlight:NXe,IconItalic:zXe,IconLineHeight:GXe,IconLink:Mc,IconObliqueLine:dpe,IconOrderedList:XXe,IconOriginalSize:S0e,IconPaste:eZe,IconQuote:iZe,IconRedo:lZe,IconScissor:fZe,IconSortAscending:Eve,IconSortDescending:Tve,IconSort:kZe,IconStrikethrough:EZe,IconUnderline:LZe,IconUndo:MZe,IconUnorderedList:NZe,IconZoomIn:y0e,IconZoomOut:g0e,IconMuteFill:zZe,IconPauseCircleFill:GZe,IconPlayArrowFill:fve,IconPlayCircleFill:XZe,IconSkipNextFill:eJe,IconSkipPreviousFill:iJe,IconSoundFill:lJe,IconBackward:fJe,IconForward:mJe,IconFullscreenExit:ZH,IconFullscreen:U5,IconLiveBroadcast:a_,IconMusic:EJe,IconMute:LJe,IconPauseCircle:MJe,IconPause:dve,IconPlayArrow:qa,IconPlayCircle:Oy,IconRecordStop:HJe,IconRecord:qJe,IconSkipNext:JJe,IconSkipPrevious:nQe,IconSound:Ave,IconBytedanceColor:uQe,IconLarkColor:hQe,IconTiktokColor:gQe,IconXiguaColor:SQe,IconFaceBookCircleFill:wQe,IconFacebookSquareFill:IQe,IconGoogleCircleFill:RQe,IconQqCircleFill:BQe,IconTwitterCircleFill:VQe,IconWeiboCircleFill:WQe,IconAlipayCircle:YQe,IconCodeSandbox:QQe,IconCodepen:ret,IconFacebook:aet,IconGithub:Ive,IconGitlab:vet,IconGoogle:bet,IconQqZone:Cet,IconQq:Aet,IconTwitter:Pet,IconWechat:$et,IconWechatpay:jet,IconWeibo:Het,IconChineseFill:qet,IconEnglishFill:Jet,IconFaceFrownFill:H0e,IconFaceMehFill:uV,IconFaceSmileFill:U0e,IconMoonFill:ntt,IconPenFill:stt,IconSunFill:ctt,IconApps:Lve,IconArchive:gtt,IconBarChart:Dve,IconBook:nA,IconBookmark:Ttt,IconBranch:Dtt,IconBug:$y,IconBulb:Ntt,IconCalendarClock:ztt,IconCalendar:nS,IconCamera:Gtt,IconCloud:Xtt,IconCommand:ent,IconCommon:int,IconCompass:lnt,IconComputer:JH,IconCopyright:Pve,IconDashboard:ynt,IconDesktop:Y8,IconDice:wnt,IconDragDotVertical:H5,IconDragDot:T0e,IconDriveFile:Int,IconEar:Rnt,IconEmail:Bnt,IconEmpty:aH,IconExperiment:Vnt,IconFileAudio:gve,IconFileImage:vve,IconFilePdf:pve,IconFileVideo:mve,IconFile:Y5,IconFire:Rve,IconFolderAdd:qnt,IconFolderDelete:Jnt,IconFolder:Mve,IconGift:ort,IconIdcard:urt,IconImageClose:O5,IconImage:rA,IconInteraction:mrt,IconLanguage:Ove,IconLayers:xrt,IconLayout:Trt,IconLoading:Xa,IconLocation:Drt,IconLock:Ort,IconLoop:Frt,IconMan:Urt,IconMenu:$ve,IconMindMapping:Xrt,IconMobile:Bve,IconMoon:rit,IconMosaic:ait,IconNav:dit,IconNotificationClose:vit,IconNotification:bit,IconPalette:QH,IconPen:Eit,IconPhone:Lit,IconPrinter:Mit,IconPublic:Nit,IconPushpin:zit,IconQrcode:Git,IconRelation:Xit,IconRobotAdd:eot,IconRobot:iot,IconSafe:_f,IconSchedule:dot,IconShake:vot,IconSkin:bot,IconStamp:xot,IconStorage:bV,IconSubscribeAdd:Lot,IconSubscribe:Mot,IconSubscribed:Not,IconSun:zot,IconTag:Got,IconTags:Xot,IconThunderbolt:est,IconTool:ist,IconTrophy:lst,IconUnlock:fst,IconUserAdd:mst,IconUserGroup:_st,IconUser:Cst,IconVideoCamera:Nve,IconWifi:Dst,IconWoman:Ost},$st=(e,t)=>{for(const n of Object.keys(_V))e.use(_V[n],t)},Bst={..._V,install:$st},kr=(e,t)=>{const n=e.__vccOpts||e;for(const[r,o]of t)n[r]=o;return n},Nst=Se({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(){xt.info("前进按钮")},goForward(){xt.info("后退按钮")},refreshPage(){xt.info("刷新页面"),window.location.reload()},onSearch(e){xt.info(`搜索内容: ${e}`)},minimize(){xt.info("最小化窗口"),this.exitFullScreen()},maximize(){xt.info("最大化窗口"),this.enterFullScreen()},showCloseConfirm(){this.showConfirmModal=!0},hideCloseConfirm(){this.showConfirmModal=!1},confirmClose(){this.showConfirmModal=!1,xt.info("正在关闭应用...");try{window.opener||window.open("about:blank","_self"),window.close(),setTimeout(()=>{window.closed||(xt.warning("无法自动关闭窗口,请手动关闭浏览器标签页"),window.location.href="about:blank")},500)}catch(e){console.error("关闭窗口失败:",e),xt.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()}}}),Fst={class:"header-left"},jst={key:0,class:"header-center"},Vst={class:"header-right"},zst={class:"modal-header"},Ust={class:"modal-footer"};function Hst(e,t,n,r,o,a){const s=Ie("icon-left"),l=Ie("a-button"),c=Ie("icon-right"),d=Ie("icon-refresh"),h=Ie("a-input-search"),p=Ie("icon-shrink"),v=Ie("icon-expand"),g=Ie("icon-close"),y=Ie("icon-exclamation-circle-fill"),S=Ie("a-layout-header");return z(),qe(S,{class:"header"},{default:de(()=>[I("div",Fst,[$(l,{shape:"circle",onClick:e.goBack},{icon:de(()=>[$(s)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.goForward},{icon:de(()=>[$(c)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.refreshPage},{icon:de(()=>[$(d)]),_:1},8,["onClick"])]),e.searchAggregationEnabled?(z(),Q("div",jst,[$(h,{placeholder:"搜索内容...","enter-button":"搜索",onSearch:e.onSearch},null,8,["onSearch"])])):Le("",!0),I("div",Vst,[$(l,{shape:"circle",onClick:e.minimize},{icon:de(()=>[$(p)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.maximize},{icon:de(()=>[$(v)]),_:1},8,["onClick"]),$(l,{shape:"circle",onClick:e.showCloseConfirm},{icon:de(()=>[$(g)]),_:1},8,["onClick"])]),e.showConfirmModal?(z(),Q("div",{key:1,class:"confirm-modal-overlay",onClick:t[1]||(t[1]=(...k)=>e.hideCloseConfirm&&e.hideCloseConfirm(...k))},[I("div",{class:"confirm-modal",onClick:t[0]||(t[0]=us(()=>{},["stop"]))},[I("div",zst,[$(y,{class:"warning-icon"}),t[2]||(t[2]=I("h3",{class:"modal-title"},"确认关闭",-1))]),t[5]||(t[5]=I("div",{class:"modal-content"},[I("p",{class:"modal-message"},"你确认要关闭当前应用吗?"),I("p",{class:"modal-submessage"},"关闭后将退出应用程序")],-1)),I("div",Ust,[$(l,{class:"cancel-btn",onClick:e.hideCloseConfirm},{default:de(()=>[...t[3]||(t[3]=[Ue(" 取消 ",-1)])]),_:1},8,["onClick"]),$(l,{type:"primary",status:"danger",class:"confirm-btn",onClick:e.confirmClose},{default:de(()=>[...t[4]||(t[4]=[Ue(" 确认关闭 ",-1)])]),_:1},8,["onClick"])])])])):Le("",!0)]),_:1})}const Wst=kr(Nst,[["render",Hst],["__scopeId","data-v-98f3d1c0"]]);/*! * pinia v2.3.1 * (c) 2025 Eduardo San Martin Morote * @license MIT */let Fve;const iA=e=>Fve=e,jve=Symbol();function SV(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var hb;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(hb||(hb={}));function Gst(){const e=TU(!0),t=e.run(()=>fe({}));let n=[],r=[];const o=h5({install(a){iA(o),o._a=a,a.provide(jve,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 Vve=()=>{};function Yre(e,t,n,r=Vve){e.push(t);const o=()=>{const a=e.indexOf(t);a>-1&&(e.splice(a,1),r())};return!n&&a5()&&AU(o),o}function l1(e,...t){e.slice().forEach(n=>{n(...t)})}const Kst=e=>e(),Xre=Symbol(),sN=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)&&!Bo(r)&&!yf(r)?e[n]=kV(o,r):e[n]=r}return e}const qst=Symbol();function Yst(e){return!SV(e)||!e.hasOwnProperty(qst)}const{assign:Up}=Object;function Xst(e){return!!(Bo(e)&&e.effect)}function Zst(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 Up(h,a,Object.keys(s||{}).reduce((p,v)=>(p[v]=h5(F(()=>{iA(n);const g=n._s.get(e);return s[v].call(g,g)})),p),{}))}return c=zve(e,d,t,n,r,!0),c}function zve(e,t,n={},r,o,a){let s;const l=Up({actions:{}},n),c={deep:!0};let d,h,p=[],v=[],g;const y=r.state.value[e];!a&&!y&&(r.state.value[e]={}),fe({});let S;function k(M){let O;d=h=!1,typeof M=="function"?(M(r.state.value[e]),O={type:hb.patchFunction,storeId:e,events:g}):(kV(r.state.value[e],M),O={type:hb.patchObject,payload:M,storeId:e,events:g});const L=S=Symbol();Cn().then(()=>{S===L&&(d=!0)}),h=!0,l1(p,O,r.state.value[e])}const C=a?function(){const{state:O}=n,L=O?O():{};this.$patch(B=>{Up(B,L)})}:Vve;function x(){s.stop(),p=[],v=[],r._s.delete(e)}const E=(M,O="")=>{if(Xre in M)return M[sN]=O,M;const L=function(){iA(r);const B=Array.from(arguments),j=[],W=[];function H(ne){j.push(ne)}function K(ne){W.push(ne)}l1(v,{args:B,name:L[sN],store:T,after:H,onError:K});let Y;try{Y=M.apply(this&&this.$id===e?this:T,B)}catch(ne){throw l1(W,ne),ne}return Y instanceof Promise?Y.then(ne=>(l1(j,ne),ne)).catch(ne=>(l1(W,ne),Promise.reject(ne))):(l1(j,Y),Y)};return L[Xre]=!0,L[sN]=O,L},_={_p:r,$id:e,$onAction:Yre.bind(null,v),$patch:k,$reset:C,$subscribe(M,O={}){const L=Yre(p,M,O.detached,()=>B()),B=s.run(()=>Rt(()=>r.state.value[e],j=>{(O.flush==="sync"?h:d)&&M({storeId:e,type:hb.direct,events:g},j)},Up({},c,O)));return L},$dispose:x},T=Xt(_);r._s.set(e,T);const P=(r._a&&r._a.runWithContext||Kst)(()=>r._e.run(()=>(s=TU()).run(()=>t({action:E}))));for(const M in P){const O=P[M];if(Bo(O)&&!Xst(O)||yf(O))a||(y&&Yst(O)&&(Bo(O)?O.value=y[M]:kV(O,y[M])),r.state.value[e][M]=O);else if(typeof O=="function"){const L=E(O,M);P[M]=L,l.actions[M]=O}}return Up(T,P),Up(Bi(T),P),Object.defineProperty(T,"$state",{get:()=>r.state.value[e],set:M=>{k(O=>{Up(O,M)})}}),r._p.forEach(M=>{Up(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 tg(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=Efe();return l=l||(d?On(jve,null):null),l&&iA(l),l=Fve,l._s.has(r)||(a?zve(r,t,o,l):Zst(r,o,l)),l._s.get(r)}return s.$id=r,s}const oS=tg("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"}}),Jst={class:"footer-content"},Qst={key:0,class:"pagination-stats"},eat={class:"stats-text"},tat={key:1,class:"default-footer"},nat={class:"footer-info"},rat={class:"copyright-section"},iat={class:"copyright-text"},oat={class:"project-section"},sat={class:"license-section"},aat={__name:"Footer",setup(e){const t=oS(),n=F(()=>new Date().getFullYear()),r=()=>{xt.success("正在跳转到项目主页...")};return(o,a)=>(z(),Q("div",Jst,[et(t).shouldShow?(z(),Q("div",Qst,[I("span",eat,je(et(t).statsText),1)])):(z(),Q("div",tat,[I("div",nat,[I("div",rat,[$(et(Pve),{class:"footer-icon"}),I("span",iat,je(n.value)+" DrPlayer",1)]),a[1]||(a[1]=I("div",{class:"separator"},"|",-1)),I("div",oat,[$(et(Ive),{class:"footer-icon"}),I("a",{href:"https://github.com/hjdhnx/DrPlayer",target:"_blank",class:"project-link",onClick:r}," GitHub ")]),a[2]||(a[2]=I("div",{class:"separator"},"|",-1)),I("div",sat,[$(et(_f),{class:"footer-icon"}),a[0]||(a[0]=I("span",{class:"license-text"},"hjdhnx",-1))])])]))]))}},lat=kr(aat,[["__scopeId","data-v-3b2cc39c"]]),uat="/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,v){v.parentNode.insertBefore(p,v)};if(t&&!e.__iconfont__svg__cssinject__){e.__iconfont__svg__cssinject__=!0;try{document.write("")}catch(p){console&&console.log(p)}}r=function(){var p,v=document.createElement("div");v.innerHTML=e._iconfont_svg_string_5032989,(v=v.getElementsByTagName("svg")[0])&&(v.setAttribute("aria-hidden","true"),v.style.position="absolute",v.style.width=0,v.style.height=0,v.style.overflow="hidden",v=v,(p=document.body).firstChild?c(v,p.firstChild):p.appendChild(v))},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 cat=Se({components:{IconCaretRight:_H,IconCaretLeft:SH,IconHome:c3,IconCalendar:nS,Header:Wst,Footer:lat},setup(){const e=x5(),t=oS(),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(uat),a=fe("欢迎使用DrPlayer");return Rt(()=>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)}}}}),dat={class:"app-container"},fat={class:"fixed-header"},hat={class:"logo"},pat={style:{width:"20px",height:"20px","margin-right":"8px"}},vat=["href"],mat={class:"content-wrapper"},gat={class:"fixed-footer"};function yat(e,t,n,r,o,a){const s=Ie("Header"),l=Ie("a-image"),c=Ie("a-popover"),d=Ie("a-menu-item"),h=Ie("router-link"),p=Ie("a-menu"),v=Ie("IconCaretRight"),g=Ie("IconCaretLeft"),y=Ie("a-layout-sider"),S=Ie("Footer"),k=Ie("a-layout");return z(),Q("div",dat,[I("div",fat,[$(s)]),$(k,{class:"layout-demo"},{default:de(()=>[$(y,{collapsible:"",breakpoint:"xl",class:"fixed-sider",onCollapse:e.onSiderCollapse},{trigger:de(({collapsed:C})=>[C?(z(),qe(v,{key:0})):(z(),qe(g,{key:1}))]),default:de(()=>[I("div",hat,[$(c,{title:"道长: 您好!"},{content:de(()=>[I("p",null,je(e.logoDesc),1)]),default:de(()=>[$(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})]),$(p,{"default-open-keys":["1"],"default-selected-keys":["1"],style:{width:"100%"},onMenuItemClick:e.onClickMenuItem},{default:de(()=>[(z(!0),Q(Bt,null,vn(e.menuItems,(C,x)=>(z(),qe(h,{key:x,to:C.route,class:"menu-item"},{default:de(()=>[(z(),qe(d,{key:C.id},{default:de(()=>[(z(),Q("svg",pat,[I("use",{href:`#${C.icon}`},null,8,vat)])),Ue(" "+je(C.name),1)]),_:2},1024))]),_:2},1032,["to"]))),128))]),_:1},8,["onMenuItemClick"])]),_:1},8,["onCollapse"]),I("div",{class:ue(["main-content",{"sider-collapsed":e.siderCollapsed}])},[I("div",mat,[vt(e.$slots,"default",{},void 0,!0)]),I("div",gat,[$(S)])],2)]),_:3})])}const bat=kr(cat,[["render",yat],["__scopeId","data-v-7cb7a4e5"]]),pb=fe({show:!1,message:"",type:"success",duration:3e3});function Kn(e,t="success",n=3e3){pb.value={show:!0,message:e,type:t,duration:n},setTimeout(()=>{_at()},n)}function _at(){pb.value.show=!1}const Sat={__name:"GlobalToast",setup(e){return(t,n)=>(z(),qe(qm,{to:"body"},[$(Cs,{name:"action-toast"},{default:de(()=>[et(pb).show?(z(),Q("div",{key:0,class:ue(["action-toast",et(pb).type])},je(et(pb).message),3)):Le("",!0)]),_:1})]))}},kat=kr(Sat,[["__scopeId","data-v-0de7c39c"]]),oA=tg("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()}}}}),xat={name:"App",components:{Layout:bat,GlobalToast:kat},setup(){const e=oA();return bn(()=>{e.loadFromStorage()}),{}}};function Cat(e,t,n,r,o,a){const s=Ie("router-view"),l=Ie("Layout"),c=Ie("GlobalToast");return z(),Q(Bt,null,[$(l,null,{default:de(()=>[$(s)]),_:1}),$(c)],64)}const wat=kr(xat,[["render",Cat]]);/*! ***************************************************************************** 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 Vn(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 Eat=(function(){function e(){this.firefox=!1,this.ie=!1,this.edge=!1,this.newEdge=!1,this.weChat=!1}return e})(),Tat=(function(){function e(){this.browser=new Eat,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})(),zr=new Tat;typeof wx=="object"&&typeof wx.getSystemInfoSync=="function"?(zr.wxa=!0,zr.touchEventsSupported=!0):typeof document>"u"&&typeof self<"u"?zr.worker=!0:!zr.hasGlobalWindow||"Deno"in window?(zr.node=!0,zr.svgSupported=!0):Aat(navigator.userAgent,zr);function Aat(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 eW=12,Iat="sans-serif",Mm=eW+"px "+Iat,Lat=20,Dat=100,Pat="007LLmW'55;N0500LLLLLLLLLL00NNNLzWW\\\\WQb\\0FWLg\\bWb\\WQ\\WrWWQ000CL5LLFLL0LL**F*gLLLL5F0LF\\FFF5.5N";function Rat(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 rlt(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,v=h.left,g=h.top;s.push(v,g),c=c&&a&&v===a[p]&&g===a[p+1],l.push(e[d].offsetLeft,e[d].offsetTop)}return c&&o?o:(t.srcCoords=s,t[r]=n?eie(l,s):eie(s,l))}function Xve(e){return e.nodeName.toUpperCase()==="CANVAS"}var ilt=/([&<>"'])/g,olt={"&":"&","<":"<",">":">",'"':""","'":"'"};function yu(e){return e==null?"":(e+"").replace(ilt,function(t,n){return olt[n]})}var slt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,cN=[],alt=zr.browser.firefox&&+zr.browser.version.split(".")[0]<39;function LV(e,t,n,r){return n=n||{},r?nie(e,t,n):alt&&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):nie(e,t,n),n}function nie(e,t,n){if(zr.domSupported&&e.getBoundingClientRect){var r=t.clientX,o=t.clientY;if(Xve(e)){var a=e.getBoundingClientRect();n.zrX=r-a.left,n.zrY=o-a.top;return}else if(IV(cN,e,r,o)){n.zrX=cN[0],n.zrY=cN[1];return}}n.zrX=n.zrY=0}function oW(e){return e||window.event}function Lc(e,t,n){if(t=oW(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=llt(t);t.zrDelta=a?a/120:-(t.detail||0)/3}var l=t.button;return t.which==null&&l!==void 0&&slt.test(t.type)&&(t.which=l&1?1:l&2?3:l&4?2:0),t}function llt(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 ult(e,t,n,r){e.addEventListener(t,n,r)}function clt(e,t,n,r){e.removeEventListener(t,n,r)}var Zve=function(e){e.preventDefault(),e.stopPropagation(),e.cancelBubble=!0},dlt=(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=rie(r)/rie(o);!isFinite(a)&&(a=1),t.pinchScale=a;var s=flt(r);return t.pinchX=s[0],t.pinchY=s[1],{type:"pinch",target:e[0].target,event:t}}}}};function dy(){return[1,0,0,1,0,0]}function sW(e){return e[0]=1,e[1]=0,e[2]=0,e[3]=1,e[4]=0,e[5]=0,e}function hlt(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 fy(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 aW(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 plt(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 lW(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 Wr=(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})(),Ex=Math.min,Tx=Math.max,gv=new Wr,yv=new Wr,bv=new Wr,_v=new Wr,Y2=new Wr,X2=new Wr,lo=(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=Ex(t.x,this.x),r=Ex(t.y,this.y);isFinite(this.x)&&isFinite(this.width)?this.width=Tx(t.x+t.width,this.x+this.width)-n:this.width=t.width,isFinite(this.y)&&isFinite(this.height)?this.height=Tx(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=dy();return DV(a,a,[-n.x,-n.y]),plt(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,v=!(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}gv.x=bv.x=n.x,gv.y=_v.y=n.y,yv.x=_v.x=n.x+n.width,yv.y=bv.y=n.y+n.height,gv.transform(r),_v.transform(r),yv.transform(r),bv.transform(r),t.x=Ex(gv.x,yv.x,bv.x,_v.x),t.y=Ex(gv.y,yv.y,bv.y,_v.y);var c=Tx(gv.x,yv.x,bv.x,_v.x),d=Tx(gv.y,yv.y,bv.y,_v.y);t.width=c-t.x,t.height=d-t.y},e})(),Jve="silent";function vlt(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:mlt}}function mlt(){Zve(this.event)}var glt=(function(e){Vn(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})(Rf),Z2=(function(){function e(t,n){this.x=t,this.y=n}return e})(),ylt=["click","dblclick","mousewheel","mouseout","mouseup","mousedown","mousemove","contextmenu"],fN=new lo(0,0,0,0),Qve=(function(e){Vn(t,e);function t(n,r,o,a,s){var l=e.call(this)||this;return l._hovered=new Z2(0,0),l.storage=n,l.painter=r,l.painterRoot=a,l._pointerSize=s,o=o||new glt,l.proxy=null,l.setHandlerProxy(o),l._draggingMgr=new Qat(l),l}return t.prototype.setHandlerProxy=function(n){this.proxy&&this.proxy.dispose(),n&&(At(ylt,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=eme(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 Z2(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 Z2(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=vlt(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 Z2(n,r);if(iie(a,s,n,r,o),this._pointerSize&&!s.target){for(var l=[],c=this._pointerSize,d=c/2,h=new lo(n-d,r-d,c,c),p=a.length-1;p>=0;p--){var v=a[p];v!==o&&!v.ignore&&!v.ignoreCoarsePointer&&(!v.parent||!v.parent.ignoreCoarsePointer)&&(fN.copy(v.getBoundingRect()),v.transform&&fN.applyTransform(v.transform),fN.intersect(h)&&l.push(v))}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 blt(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?Jve:!0}return!1}function iie(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=blt(s,n,r))&&(!t.topTarget&&(t.topTarget=s),l!==Jve)){t.target=s;break}}}function eme(e,t,n){var r=e.painter;return t<0||t>r.getWidth()||n<0||n>r.getHeight()}var tme=32,J2=7;function _lt(e){for(var t=0;e>=tme;)t|=e&1,e>>=1;return e+t}function oie(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 Slt(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 hN(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 pN(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 klt(e,t){var n=J2,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]=J2||P>=J2);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,O=0,L=!1;do if(t(s[E],e[x])<0){if(e[_--]=e[x--],M++,O=0,--y===0){L=!0;break}}else if(e[_--]=s[E--],O++,M=0,--k===1){L=!0;break}while((M|O)=0;C--)e[D+C]=e[T+C];if(y===0){L=!0;break}}if(e[_--]=s[E--],--k===1){L=!0;break}if(O=k-hN(e[x],s,0,k,k-1,t),O!==0){for(_-=O,E-=O,k-=O,D=_+1,T=E+1,C=0;C=J2||O>=J2);if(L)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),sie(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 oc=1,L4=2,B1=4,aie=!1;function vN(){aie||(aie=!0,console.warn("z / z2 / zlevel of displayable is invalid, which may cause unexpected errors"))}function lie(e,t){return e.zlevel===t.zlevel?e.z===t.z?e.z2-t.z2:e.z-t.z:e.zlevel-t.zlevel}var xlt=(function(){function e(){this._roots=[],this._displayList=[],this._displayListLen=0,this.displayableSortFunc=lie}return e.prototype.traverse=function(t,n){for(var r=0;r0&&(h.__clipPaths=[]),isNaN(h.z)&&(vN(),h.z=0),isNaN(h.z2)&&(vN(),h.z2=0),isNaN(h.zlevel)&&(vN(),h.zlevel=0),this._displayList[this._displayListLen++]=h}var p=t.getDecalElement&&t.getDecalElement();p&&this._updateAndAddDisplayable(p,n,r);var v=t.getTextGuideLine();v&&this._updateAndAddDisplayable(v,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})(),Z8;Z8=zr.hasGlobalWindow&&(window.requestAnimationFrame&&window.requestAnimationFrame.bind(window)||window.msRequestAnimationFrame&&window.msRequestAnimationFrame.bind(window)||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame)||function(e){return setTimeout(e,16)};var gb={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-gb.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?gb.bounceIn(e*2)*.5:gb.bounceOut(e*2-1)*.5+.5}},Ax=Math.pow,p0=Math.sqrt,J8=1e-8,nme=1e-4,uie=p0(3),Ix=1/3,uf=f3(),Oc=f3(),hy=f3();function i0(e){return e>-J8&&eJ8||e<-J8}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 cie(e,t,n,r,o){var a=1-o;return 3*(((t-e)*a+2*(n-t)*o)*a+(r-n)*o*o)}function Q8(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,v=c*c-3*l*d,g=0;if(i0(h)&&i0(p))if(i0(l))a[0]=0;else{var y=-c/l;y>=0&&y<=1&&(a[g++]=y)}else{var S=p*p-4*h*v;if(i0(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=p0(S),E=h*l+1.5*s*(-p+x),_=h*l+1.5*s*(-p-x);E<0?E=-Ax(-E,Ix):E=Ax(E,Ix),_<0?_=-Ax(-_,Ix):_=Ax(_,Ix);var y=(-l-(E+_))/(3*s);y>=0&&y<=1&&(a[g++]=y)}else{var T=(2*h*l-3*s*p)/(2*p0(h*h*h)),D=Math.acos(T)/3,P=p0(h),M=Math.cos(D),y=(-l-2*P*M)/(3*s),C=(-l+P*(M+uie*Math.sin(D)))/(3*s),O=(-l+P*(M-uie*Math.sin(D)))/(3*s);y>=0&&y<=1&&(a[g++]=y),C>=0&&C<=1&&(a[g++]=C),O>=0&&O<=1&&(a[g++]=O)}}return g}function ime(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(i0(s)){if(rme(a)){var d=-l/a;d>=0&&d<=1&&(o[c++]=d)}}else{var h=a*a-4*s*l;if(i0(h))o[0]=-a/(2*s);else if(h>0){var p=p0(h),d=(-a+p)/(2*s),v=(-a-p)/(2*s);d>=0&&d<=1&&(o[c++]=d),v>=0&&v<=1&&(o[c++]=v)}}return c}function eT(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 Clt(e,t,n,r,o,a,s,l,c,d,h){var p,v=.005,g=1/0,y,S,k,C;uf[0]=c,uf[1]=d;for(var x=0;x<1;x+=.05)Oc[0]=Va(e,n,o,s,x),Oc[1]=Va(t,r,a,l,x),k=cy(uf,Oc),k=0&&k=0&&d<=1&&(o[c++]=d)}}else{var h=s*s-4*a*l;if(i0(h)){var d=-s/(2*a);d>=0&&d<=1&&(o[c++]=d)}else if(h>0){var p=p0(h),d=(-s+p)/(2*a),v=(-s-p)/(2*a);d>=0&&d<=1&&(o[c++]=d),v>=0&&v<=1&&(o[c++]=v)}}return c}function ome(e,t,n){var r=e+n-2*t;return r===0?.5:(e-t)/r}function tT(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 Tlt(e,t,n,r,o,a,s,l,c){var d,h=.005,p=1/0;uf[0]=s,uf[1]=l;for(var v=0;v<1;v+=.05){Oc[0]=bu(e,n,o,v),Oc[1]=bu(t,r,a,v);var g=cy(uf,Oc);g=0&&g=1?1:Q8(0,r,a,1,c,l)&&Va(0,o,s,1,l[0])}}}var Llt=(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||Tu,this.ondestroy=t.ondestroy||Tu,this.onrestart=t.onrestart||Tu,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=ni(t)?t:gb[t]||sme(t)},e})(),ame=(function(){function e(t){this.value=t}return e})(),Dlt=(function(){function e(){this._len=0}return e.prototype.insert=function(t){var n=new ame(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})(),aS=(function(){function e(t){this._list=new Dlt,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 ame(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})(),fie={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 v0(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 mN(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?v0(parseFloat(t)/100*255):v0(parseInt(t,10))}function yb(e){var t=e;return t.length&&t.charAt(t.length-1)==="%"?PV(parseFloat(t)/100):PV(parseFloat(t))}function gN(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 Lx(e,t,n){return e+(t-e)*n}function Ic(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 lme=new aS(20),Dx=null;function c1(e,t){Dx&&RV(Dx,t),Dx=lme.put(e,Dx||t.slice())}function Rh(e,t){if(e){t=t||[];var n=lme.get(e);if(n)return RV(t,n);e=e+"";var r=e.replace(/ /g,"").toLowerCase();if(r in fie)return RV(t,fie[r]),c1(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)){Ic(t,0,0,0,1);return}return Ic(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),c1(e,t),t}else if(o===7||o===9){var a=parseInt(r.slice(1,7),16);if(!(a>=0&&a<=16777215)){Ic(t,0,0,0,1);return}return Ic(t,(a&16711680)>>16,(a&65280)>>8,a&255,o===9?parseInt(r.slice(7),16)/255:1),c1(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?Ic(t,+d[0],+d[1],+d[2],1):Ic(t,0,0,0,1);h=yb(d.pop());case"rgb":if(d.length>=3)return Ic(t,mN(d[0]),mN(d[1]),mN(d[2]),d.length===3?h:yb(d[3])),c1(e,t),t;Ic(t,0,0,0,1);return;case"hsla":if(d.length!==4){Ic(t,0,0,0,1);return}return d[3]=yb(d[3]),hie(d,t),c1(e,t),t;case"hsl":if(d.length!==3){Ic(t,0,0,0,1);return}return hie(d,t),c1(e,t),t;default:return}}Ic(t,0,0,0,1)}}function hie(e,t){var n=(parseFloat(e[0])%360+360)%360/360,r=yb(e[1]),o=yb(e[2]),a=o<=.5?o*(r+1):o+r-o*r,s=o*2-a;return t=t||[],Ic(t,v0(gN(s,a,n+1/3)*255),v0(gN(s,a,n)*255),v0(gN(s,a,n-1/3)*255),1),e.length===4&&(t[3]=e[3]),t}function pie(e,t){var n=Rh(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 uA(n,n.length===4?"rgba":"rgb")}}function Plt(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=Rh(t[o]),l=Rh(t[a]),c=r-o,d=uA([v0(Lx(s[0],l[0],c)),v0(Lx(s[1],l[1],c)),v0(Lx(s[2],l[2],c)),PV(Lx(s[3],l[3],c))],"rgba");return n?{color:d,leftIndex:o,rightIndex:a,value:r}:d}}function uA(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 nT(e,t){var n=Rh(e);return n?(.299*n[0]+.587*n[1]+.114*n[2])*n[3]/255+(1-n[3])*t:0}var vie=new aS(100);function mie(e){if(Sr(e)){var t=vie.get(e);return t||(t=pie(e,-.1),vie.put(e,t)),t}else if(aA(e)){var n=xn({},e);return n.colorStops=Er(e.colorStops,function(r){return{offset:r.offset,color:pie(r.color,-.1)}}),n}return e}function Rlt(e){return e.type==="linear"}function Mlt(e){return e.type==="radial"}(function(){return zr.hasGlobalWindow&&ni(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 yN(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=yie,c=n;if(Pu(n)){var d=Nlt(n);l=d,(d===1&&!Ao(n[0])||d===2&&!Ao(n[0][0]))&&(s=!0)}else if(Ao(n)&&!X8(n))l=Rx;else if(Sr(n))if(!isNaN(+n))l=Rx;else{var h=Rh(n);h&&(c=h,l=D4)}else if(aA(n)){var p=xn({},c);p.colorStops=Er(n.colorStops,function(g){return{offset:g.offset,color:Rh(g.color)}}),Rlt(n)?l=OV:Mlt(n)&&(l=$V),c=p}a===0?this.valType=l:(l!==this.valType||l===yie)&&(s=!0),this.discrete=this.discrete||s;var v={time:t,value:c,rawValue:n,percent:0};return r&&(v.easing=r,v.easingFunc=ni(r)?r:gb[r]||sme(r)),o.push(v),v},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=Mx(o),d=bie(o),h=0;h=0&&!(s[h].percent<=n);h--);h=v(h,l-2)}else{for(h=p;hn);h++);h=v(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:v((n-g.percent)/k,1);y.easingFunc&&(C=y.easingFunc(C));var x=r?this._additiveValue:d?Q2:t[c];if((Mx(a)||d)&&!x&&(x=this._additiveValue=[]),this.discrete)t[c]=C<1?g.rawValue:y.rawValue;else if(Mx(a))a===tE?yN(x,g[o],y[o],C):Olt(x,g[o],y[o],C);else if(bie(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:Er(E.colorStops,function(P,M){var O=_.colorStops[M];return{offset:vh(P.offset,O.offset,C),color:eE(yN([],P.color,O.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)yN(x,g[o],y[o],C),r||(t[c]=eE(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===Rx?t[r]=t[r]+o:n===D4?(Rh(t[r],Q2),Px(Q2,Q2,o,1),t[r]=eE(Q2)):n===tE?Px(t[r],t[r],o,1):n===ume&&gie(t[r],t[r],o,1)},e})(),uW=(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){rW("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,Qw(d),o),this._trackKeys.push(l)}c.addKeyframe(t,Qw(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 G1(){return new Date().getTime()}var jlt=(function(e){Vn(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=G1()-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&&(Z8(r),!n._paused&&n.update())}Z8(r)},t.prototype.start=function(){this._running||(this._time=G1(),this._pausedTime=0,this._startLoop())},t.prototype.stop=function(){this._running=!1},t.prototype.pause=function(){this._paused||(this._pauseStart=G1(),this._paused=!0)},t.prototype.resume=function(){this._paused&&(this._pausedTime+=G1()-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 uW(n,r.loop);return this.addAnimator(o),o},t})(Rf),Vlt=300,bN=zr.domSupported,_N=(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=Er(e,function(o){var a=o.replace("mouse","pointer");return n.hasOwnProperty(a)?a:o});return{mouse:e,touch:t,pointer:r}})(),_ie={mouse:["mousemove","mouseup"],pointer:["pointermove","pointerup"]},Sie=!1;function BV(e){var t=e.pointerType;return t==="pen"||t==="touch"}function zlt(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 SN(e){e&&(e.zrByTouch=!0)}function Ult(e,t){return Lc(e.dom,new Hlt(e,t),!0)}function cme(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 Hlt=(function(){function e(t,n){this.stopPropagation=Tu,this.stopImmediatePropagation=Tu,this.preventDefault=Tu,this.type=n.type,this.target=this.currentTarget=t.dom,this.pointerType=n.pointerType,this.clientX=n.clientX,this.clientY=n.clientY}return e})(),gd={mousedown:function(e){e=Lc(this.dom,e),this.__mayPointerCapture=[e.zrX,e.zrY],this.trigger("mousedown",e)},mousemove:function(e){e=Lc(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=Lc(this.dom,e),this.__togglePointerCapture(!1),this.trigger("mouseup",e)},mouseout:function(e){e=Lc(this.dom,e);var t=e.toElement||e.relatedTarget;cme(this,t)||(this.__pointerCapturing&&(e.zrEventControl="no_globalout"),this.trigger("mouseout",e))},wheel:function(e){Sie=!0,e=Lc(this.dom,e),this.trigger("mousewheel",e)},mousewheel:function(e){Sie||(e=Lc(this.dom,e),this.trigger("mousewheel",e))},touchstart:function(e){e=Lc(this.dom,e),SN(e),this.__lastTouchMoment=new Date,this.handler.processGesture(e,"start"),gd.mousemove.call(this,e),gd.mousedown.call(this,e)},touchmove:function(e){e=Lc(this.dom,e),SN(e),this.handler.processGesture(e,"change"),gd.mousemove.call(this,e)},touchend:function(e){e=Lc(this.dom,e),SN(e),this.handler.processGesture(e,"end"),gd.mouseup.call(this,e),+new Date-+this.__lastTouchMomentCie||e<-Cie}var kv=[],d1=[],xN=dy(),CN=Math.abs,cW=(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 Sv(this.rotation)||Sv(this.x)||Sv(this.y)||Sv(this.scaleX-1)||Sv(this.scaleY-1)||Sv(this.skewX)||Sv(this.skewY)},e.prototype.updateTransform=function(){var t=this.parent&&this.parent.transform,n=this.needLocalTransform(),r=this.transform;if(!(n||t)){r&&(xie(r),this.invTransform=null);return}r=r||dy(),n?this.getLocalTransform(r):xie(r),t&&(n?fy(r,t,r):hlt(r,t)),this.transform=r,this._resolveGlobalScaleRatio(r)},e.prototype._resolveGlobalScaleRatio=function(t){var n=this.globalScaleRatio;if(n!=null&&n!==1){this.getGlobalScale(kv);var r=kv[0]<0?-1:1,o=kv[1]<0?-1:1,a=((kv[0]-r)*n+r)/kv[0]||0,s=((kv[1]-o)*n+o)/kv[1]||0;t[0]*=a,t[1]*=a,t[2]*=s,t[3]*=s}this.invTransform=this.invTransform||dy(),lW(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||dy(),fy(d1,t.invTransform,n),n=d1);var r=this.originX,o=this.originY;(r||o)&&(xN[4]=r,xN[5]=o,fy(d1,n,xN),d1[4]-=r,d1[5]-=o,n=d1),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&&Hc(r,r,o),r},e.prototype.transformCoordToGlobal=function(t,n){var r=[t,n],o=this.transform;return o&&Hc(r,r,o),r},e.prototype.getLineScale=function(){var t=this.transform;return t&&CN(t[0]-1)>1e-10&&CN(t[3]-1)>1e-10?Math.sqrt(CN(t[0]*t[3]-t[2]*t[1])):1},e.prototype.copyTransform=function(t){Ylt(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,v=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-v*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]=v*s,d&&aW(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})(),c_=["x","y","originX","originY","anchorX","anchorY","rotation","scaleX","scaleY","skewX","skewY"];function Ylt(e,t){for(var n=0;n=0?parseFloat(e)/100*t:parseFloat(e):e}function iT(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+=A0(r[0],n.width),d+=A0(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 wN="__zr_normal__",EN=c_.concat(["ignore"]),Xlt=T0(c_,function(e,t){return e[t]=!0,e},{ignore:!1}),f1={},Zlt=new lo(0,0,0,0),cA=(function(){function e(t){this.id=Wve(),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=Zlt;r.layoutRect?h.copy(r.layoutRect):h.copy(this.getBoundingRect()),o||h.applyTransform(this.transform),this.calculateTextPosition?this.calculateTextPosition(f1,r,h):iT(f1,r,h),a.x=f1.x,a.y=f1.y,s=f1.align,l=f1.verticalAlign;var p=r.origin;if(p&&r.rotation!=null){var v=void 0,g=void 0;p==="center"?(v=h.width*.5,g=h.height*.5):(v=A0(p[0],h.width),g=A0(p[1],h.height)),d=!0,a.originX=-a.x+v+(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|=oc,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"&&Rh(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,uA(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||{},xn(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(Lr(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(wN,!1,t)},e.prototype.useState=function(t,n,r,o){var a=t===wN,s=this.hasState();if(!(!s&&a)){var l=this.currentStates,c=this.stateTransition;if(!(go(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){rW("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,v=this._textGuide;return p&&p.useState(t,n,r,h),v&&v.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&=~oc),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,v),k&&k.useStates(t,n,v),this._updateAnimationTargets(),this.currentStates=t.slice(),this.markRedraw(),!v&&this.__inHover&&(this._toggleHoverLayerFlag(!1),this.__dirty&=~oc)}},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=go(o,t),s=go(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 v=0;v0||o.force&&!s.length){var M=void 0,O=void 0,L=void 0;if(l){O={},v&&(M={});for(var _=0;_=0&&(o.splice(a,0,n),this._doAdd(n))}return this},t.prototype.replace=function(n,r){var o=go(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=go(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 Sr(e)?sut(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),pme),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 aut(e)}function aut(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 lut(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 uut(e,t){var n=T0(e,function(g,y){return g+(isNaN(y)?0:y)},0);if(n===0)return[];for(var r=Math.pow(10,t),o=Er(e,function(g){return(isNaN(g)?0:g)/n*r*100}),a=r*100,s=Er(o,function(g){return Math.floor(g)}),l=T0(s,function(g,y){return g+y},0),c=Er(o,function(g,y){return g-s[y]});ld&&(d=c[p],h=p);++s[h],c[h]=0,++l}return Er(s,function(g){return g/r})}function cut(e,t){var n=Math.max(wh(e),wh(t)),r=e+t;return n>pme?r:Xs(r,n)}function vme(e){var t=Math.PI*2;return(e%t+t)%t}function oT(e){return e>-Aie&&e=10&&t++,t}function mme(e,t){var n=hW(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 sT(e){var t=parseFloat(e);return t==e&&(t!==0||!Sr(e)||e.indexOf("x")<=0)?t:NaN}function hut(e){return!isNaN(sT(e))}function gme(){return Math.round(Math.random()*9)}function yme(e,t){return t===0?e:yme(t,e%t)}function Iie(e,t){return e==null?t:t==null?e:e*t/yme(e,t)}function _u(e){throw new Error(e)}function Lie(e,t,n){return(t-e)*n+e}var bme="series\0",put="\0_ec_\0";function Zl(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&&go(a,c)<0)){var d=r.getShallow(c,t);d!=null&&(s[e[l][0]]=d)}}return s}}var But=[["fill","color"],["shadowBlur"],["shadowOffsetX"],["shadowOffsetY"],["opacity"],["shadowColor"]],Nut=f_(But),Fut=(function(){function e(){}return e.prototype.getAreaStyle=function(t,n){return Nut(this,t,n)},e})(),HV=new aS(50);function jut(e){if(typeof e=="string"){var t=HV.get(e);return t&&t.image}else return e}function Cme(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,!fA(t)&&a.pending.push(s)):(t=d3.loadImage(e,Pie,Pie),t.__zrImageSrc=e,HV.put(e,t.__cachedImgObj={image:t,pending:[s]})),t}else return e;else return t}function Pie(){var e=this.__cachedImgObj;this.onload=this.onerror=this.__cachedImgObj=null;for(var t=0;t=s;c++)l-=s;var d=uc(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 Eme(e,t,n){var r=n.containerWidth,o=n.font,a=n.contentWidth;if(!r){e.textLine="",e.isTruncated=!1;return}var s=uc(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?zut(t,a,n.ascCharWidth,n.cnCharWidth):s>0?Math.floor(t.length*a/s):0;t=t.substr(0,c),s=uc(t,o)}t===""&&(t=n.placeholder),e.textLine=t,e.isTruncated=!0}function zut(e,t,n,r){for(var o=0,a=0,s=e.length;ay&&d){var S=Math.floor(y/l);h=h||v.length>S,v=v.slice(0,S)}if(e&&a&&p!=null)for(var k=wme(p,o,t.ellipsis,{minChar:t.truncateMinChar,placeholder:t.placeholder}),C={},x=0;xl&&DN(n,e.substring(l,d),t,s),DN(n,c[2],t,s,c[1]),l=LN.lastIndex}lo){var W=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=Tme(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 qut=T0(",&?/;] ".split(""),function(e,t){return e[t]=!0,e},{});function Yut(e){return Kut(e)?!!qut[e]:!0}function Tme(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+=v,d+=g,l="",h=d):(c&&(l+=c,c="",d=0),a.push(l),s.push(h),l=v,h=g)):y?(a.push(c),s.push(d),c=v,d=g):(a.push(v),s.push(g));continue}h+=g,y?(c+=v,d+=g):(c&&(l+=c,c="",d=0),l+=v)}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),gm={shadowBlur:0,shadowOffsetX:0,shadowOffsetY:0,shadowColor:"#000",opacity:1,blend:"source-over"},hA={style:{shadowBlur:!0,shadowOffsetX:!0,shadowOffsetY:!0,shadowColor:!0,opacity:!0}};gm[WV]=!0;var Mie=["z","z2","invisible"],Xut=["invisible"],cS=(function(e){Vn(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(Ox[0]=ON(o)*n+e,Ox[1]=MN(o)*r+t,$x[0]=ON(a)*n+e,$x[1]=MN(a)*r+t,d(l,Ox,$x),h(c,Ox,$x),o=o%Cv,o<0&&(o=o+Cv),a=a%Cv,a<0&&(a=a+Cv),o>a&&!s?a+=Cv:oo&&(Bx[0]=ON(g)*n+e,Bx[1]=MN(g)*r+t,d(l,Bx,l),h(c,Bx,c))}var oo={M:1,L:2,C:3,Q:4,A:5,Z:6,R:7},wv=[],Ev=[],Yd=[],Tp=[],Xd=[],Zd=[],$N=Math.min,BN=Math.max,Tv=Math.cos,Av=Math.sin,lh=Math.abs,GV=Math.PI,Hp=GV*2,NN=typeof Float32Array<"u",e4=[];function FN(e){var t=Math.round(e/GV*1e8)/1e8;return t%2*GV}function Ame(e,t){var n=FN(e[0]);n<0&&(n+=Hp);var r=n-e[0],o=e[1];o+=r,!t&&o-n>=Hp?o=n+Hp:t&&n-o>=Hp?o=n-Hp:!t&&n>o?o=n+(Hp-FN(n-o)):t&&n0&&(this._ux=lh(r/rT/t)||0,this._uy=lh(r/rT/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(oo.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(oo.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(oo.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(oo.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(),e4[0]=o,e4[1]=a,Ame(e4,s),o=e4[0],a=e4[1];var l=a-o;return this.addData(oo.A,t,n,r,r,o,l,0,s?0:1),this._ctx&&this._ctx.arc(t,n,r,o,a,s),this._xi=Tv(a)*r+t,this._yi=Av(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(oo.R,t,n,r,o),this},e.prototype.closePath=function(){this._drawPendingPt(),this.addData(oo.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)&&NN&&(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(){Yd[0]=Yd[1]=Xd[0]=Xd[1]=Number.MAX_VALUE,Tp[0]=Tp[1]=Zd[0]=Zd[1]=-Number.MAX_VALUE;var t=this.data,n=0,r=0,o=0,a=0,s;for(s=0;sr||lh(E)>o||v===n-1)&&(S=Math.sqrt(x*x+E*E),a=k,s=C);break}case oo.C:{var _=t[v++],T=t[v++],k=t[v++],C=t[v++],D=t[v++],P=t[v++];S=wlt(a,s,_,T,k,C,D,P,10),a=D,s=P;break}case oo.Q:{var _=t[v++],T=t[v++],k=t[v++],C=t[v++];S=Alt(a,s,_,T,k,C,10),a=k,s=C;break}case oo.A:var M=t[v++],O=t[v++],L=t[v++],B=t[v++],j=t[v++],W=t[v++],H=W+j;v+=1,y&&(l=Tv(j)*L+M,c=Av(j)*B+O),S=BN(L,B)*$N(Hp,Math.abs(W)),a=Tv(H)*L+M,s=Av(H)*B+O;break;case oo.R:{l=a=t[v++],c=s=t[v++];var K=t[v++],Y=t[v++];S=K*2+Y*2;break}case oo.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,v,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 oo.M:l=d=r[D++],c=h=r[D++],t.moveTo(d,h);break;case oo.L:{p=r[D++],v=r[D++];var O=lh(p-d),L=lh(v-h);if(O>o||L>a){if(g){var B=y[C++];if(k+B>x){var j=(x-k)/B;t.lineTo(d*(1-j)+p*j,h*(1-j)+v*j);break e}k+=B}t.lineTo(p,v),d=p,h=v,E=0}else{var W=O*O+L*L;W>E&&(_=p,T=v,E=W)}break}case oo.C:{var H=r[D++],K=r[D++],Y=r[D++],ne=r[D++],X=r[D++],U=r[D++];if(g){var B=y[C++];if(k+B>x){var j=(x-k)/B;eT(d,H,Y,X,j,wv),eT(h,K,ne,U,j,Ev),t.bezierCurveTo(wv[1],Ev[1],wv[2],Ev[2],wv[3],Ev[3]);break e}k+=B}t.bezierCurveTo(H,K,Y,ne,X,U),d=X,h=U;break}case oo.Q:{var H=r[D++],K=r[D++],Y=r[D++],ne=r[D++];if(g){var B=y[C++];if(k+B>x){var j=(x-k)/B;tT(d,H,Y,j,wv),tT(h,K,ne,j,Ev),t.quadraticCurveTo(wv[1],Ev[1],wv[2],Ev[2]);break e}k+=B}t.quadraticCurveTo(H,K,Y,ne),d=Y,h=ne;break}case oo.A:var q=r[D++],ee=r[D++],re=r[D++],ae=r[D++],ie=r[D++],ke=r[D++],Fe=r[D++],ge=!r[D++],_e=re>ae?re:ae,ze=lh(re-ae)>.001,Qe=ie+ke,Je=!1;if(g){var B=y[C++];k+B>x&&(Qe=ie+ke*(x-k)/B,Je=!0),k+=B}if(ze&&t.ellipse?t.ellipse(q,ee,re,ae,Fe,ie,Qe,ge):t.arc(q,ee,_e,ie,Qe,ge),Je)break e;M&&(l=Tv(ie)*re+q,c=Av(ie)*ae+ee),d=Tv(Qe)*re+q,h=Av(Qe)*ae+ee;break;case oo.R:l=d=r[D],c=h=r[D+1],p=r[D++],v=r[D++];var Te=r[D++],ve=r[D++];if(g){var B=y[C++];if(k+B>x){var be=x-k;t.moveTo(p,v),t.lineTo(p+$N(be,Te),v),be-=Te,be>0&&t.lineTo(p+Te,v+$N(be,ve)),be-=ve,be>0&&t.lineTo(p+BN(Te-be,0),v+ve),be-=Te,be>0&&t.lineTo(p,v+BN(ve-be,0));break e}k+=B}t.rect(p,v,Te,ve);break;case oo.Z:if(g){var B=y[C++];if(k+B>x){var j=(x-k)/B;t.lineTo(d*(1-j)+l*j,h*(1-j)+c*j);break e}k+=B}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=oo,e.initDefaultProps=(function(){var t=e.prototype;t._saveData=!0,t._ux=0,t._uy=0,t._pendingPtDist=0,t._version=0})(),e})();function h1(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+=t4);var v=Math.atan2(c,l);return v<0&&(v+=t4),v>=r&&v<=o||v+t4>=r&&v+t4<=o}function Iv(e,t,n,r,o,a){if(a>t&&a>r||ao?l:0}var Ap=Bm.CMD,Lv=Math.PI*2,ict=1e-4;function oct(e,t){return Math.abs(e-t)t&&d>r&&d>a&&d>l||d1&&sct(),g=Va(t,r,a,l,Rc[0]),v>1&&(y=Va(t,r,a,l,Rc[1]))),v===2?kt&&l>r&&l>a||l=0&&d<=1){for(var h=0,p=bu(t,r,a,d),v=0;vn||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>=Lv-1e-4){r=0,o=Lv;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+=Lv,o+=Lv);for(var v=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=Lv+S),(S>=r&&S<=o||S+Lv>=r&&S+Lv<=o)&&(S>Math.PI/2&&S1&&(n||(l+=Iv(c,d,h,p,r,o))),k&&(c=a[y],d=a[y+1],h=c,p=d),S){case Ap.M:h=a[y++],p=a[y++],c=h,d=p;break;case Ap.L:if(n){if(h1(c,d,a[y],a[y+1],t,r,o))return!0}else l+=Iv(c,d,a[y],a[y+1],r,o)||0;c=a[y++],d=a[y++];break;case Ap.C:if(n){if(tct(c,d,a[y++],a[y++],a[y++],a[y++],a[y],a[y+1],t,r,o))return!0}else l+=act(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 Ap.Q:if(n){if(nct(c,d,a[y++],a[y++],a[y],a[y+1],t,r,o))return!0}else l+=lct(c,d,a[y++],a[y++],a[y],a[y+1],r,o)||0;c=a[y++],d=a[y++];break;case Ap.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++]);v=Math.cos(T)*E+C,g=Math.sin(T)*_+x,k?(h=v,p=g):l+=Iv(c,d,v,g,r,o);var M=(r-C)*_/E+C;if(n){if(rct(C,x,_,T,T+D,P,t,M,o))return!0}else l+=uct(C,x,_,T,T+D,P,M,o);c=Math.cos(T+D)*E+C,d=Math.sin(T+D)*_+x;break;case Ap.R:h=c=a[y++],p=d=a[y++];var O=a[y++],L=a[y++];if(v=h+O,g=p+L,n){if(h1(h,p,v,p,t,r,o)||h1(v,p,v,g,t,r,o)||h1(v,g,h,g,t,r,o)||h1(h,g,h,p,t,r,o))return!0}else l+=Iv(v,p,v,g,r,o),l+=Iv(h,g,h,p,r,o);break;case Ap.Z:if(n){if(h1(c,d,h,p,t,r,o))return!0}else l+=Iv(c,d,h,p,r,o);c=h,d=p;break}}return!n&&!oct(d,p)&&(l+=Iv(c,d,h,p,r,o)||0),l!==0}function cct(e,t,n){return Ime(e,0,!1,t,n)}function dct(e,t,n,r){return Ime(e,t,!0,n,r)}var Lme=uo({fill:"#000",stroke:null,strokePercent:1,fillOpacity:1,strokeOpacity:1,lineDashOffset:0,lineWidth:1,lineCap:"butt",miterLimit:10,strokeNoScale:!1,strokeFirst:!1},gm),fct={style:uo({fill:!0,stroke:!0,strokePercent:!0,fillOpacity:!0,strokeOpacity:!0,lineDashOffset:!0,lineWidth:!0,miterLimit:!0},hA.style)},jN=c_.concat(["invisible","culling","z","z2","zlevel","parent"]),vo=(function(e){Vn(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?qlt:VV}else if(n)return VV}return jV},t.prototype.getInsideTextStroke=function(n){var r=this.style.fill;if(Sr(r)){var o=this.__zr,a=!!(o&&o.isDarkMode()),s=nT(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&B1)&&(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)),dct(l,c/d,n,r)))return!0}if(this.hasFill())return cct(l,n,r)}return!1},t.prototype.dirtyShape=function(){this.__dirty|=B1,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:xn(o,n),this.dirtyShape(),this},t.prototype.shapeChanged=function(){return!!(this.__dirty&B1)},t.prototype.createStyle=function(n){return lA(Lme,n)},t.prototype._innerSaveToNormal=function(n){e.prototype._innerSaveToNormal.call(this,n);var r=this._normalState;n.shape&&!r.shape&&(r.shape=xn({},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=xn({},o.shape),xn(d,r.shape)):(d=xn({},a?this.shape:o.shape),xn(d,r.shape)):c&&(d=o.shape),d)if(s){this.shape=xn({},this.shape);for(var h={},p=es(d),v=0;v0},t.prototype.hasFill=function(){var n=this.style,r=n.fill;return r!=null&&r!=="none"},t.prototype.createStyle=function(n){return lA(hct,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=dW(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})(cS);aT.prototype.type="tspan";var pct=uo({x:0,y:0},gm),vct={style:uo({x:!0,y:!0,width:!0,height:!0,sx:!0,sy:!0,sWidth:!0,sHeight:!0},hA.style)};function mct(e){return!!(e&&typeof e!="string"&&e.width&&e.height)}var j0=(function(e){Vn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.createStyle=function(n){return lA(pct,n)},t.prototype._getSize=function(n){var r=this.style,o=r[n];if(o!=null)return o;var a=mct(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 vct},t.prototype.getBoundingRect=function(){var n=this.style;return this._rect||(this._rect=new lo(n.x||0,n.y||0,this.getWidth(),this.getHeight())),this._rect},t})(cS);j0.prototype.type="image";function gct(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 K1=Math.round;function Dme(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&&(K1(r*2)===K1(o*2)&&(e.x1=e.x2=Jv(r,l,!0)),K1(a*2)===K1(s*2)&&(e.y1=e.y2=Jv(a,l,!0))),e}}function Pme(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=Jv(r,l,!0),e.y=Jv(o,l,!0),e.width=Math.max(Jv(r+a,l,!1)-e.x,a===0?0:1),e.height=Math.max(Jv(o+s,l,!1)-e.y,s===0?0:1)),e}}function Jv(e,t,n){if(!t)return e;var r=K1(e*2);return(r+K1(t))%2===0?r/2:(r+(n?1:-1))/2}var yct=(function(){function e(){this.x=0,this.y=0,this.width=0,this.height=0}return e})(),bct={},Zs=(function(e){Vn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new yct},t.prototype.buildPath=function(n,r){var o,a,s,l;if(this.subPixelOptimize){var c=Pme(bct,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?gct(n,r):n.rect(o,a,s,l)},t.prototype.isZeroArea=function(){return!this.shape.width||!this.shape.height},t})(vo);Zs.prototype.type="rect";var Fie={fill:"#000"},jie=2,_ct={style:uo({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},hA.style)},Ja=(function(e){Vn(t,e);function t(n){var r=e.call(this)||this;return r.type="text",r._children=[],r._defaultStyle=Fie,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"),W=s.calculatedLineHeight,H=0;H=0&&(H=D[W],H.align==="right");)this._placeToken(H,n,M,C,j,"right",E),O-=H.width,j-=H.width,W--;for(B+=(a-(B-k)-(x-j)-O)/2;L<=W;)H=D[L],this._placeToken(H,n,M,C,B+H.width/2,"center",E),B+=H.width,L++;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 v=!n.isLineHolder&&VN(d);v&&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=Gie(s,l,y),p-=n.height/2-y[0]-n.innerHeight/2);var S=this._getOrCreateChild(aT),k=S.createStyle();S.useStyle(k);var C=this._defaultStyle,x=!1,E=0,_=Wie("fill"in d?d.fill:"fill"in r?r.fill:(x=!0,C.fill)),T=Hie("stroke"in d?d.stroke:"stroke"in r?r.stroke:!g&&!c&&(!C.autoStroke||x)?(E=jie,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||Mm,k.opacity=vb(d.opacity,r.opacity,1),zie(k,d),T&&(k.lineWidth=vb(d.lineWidth,r.lineWidth,E),k.lineDash=mi(d.lineDash,r.lineDash),k.lineDashOffset=r.lineDashOffset||0,k.stroke=T),_&&(k.fill=_);var P=n.contentWidth,M=n.contentHeight;S.setBoundingRect(new lo(P4(k.x,P,k.textAlign),N1(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,v=c&&!p,g=n.borderRadius,y=this,S,k;if(v||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(v){var x=S.style;x.fill=c||null,x.fillOpacity=mi(n.fillOpacity,1)}else if(p){k=this._getOrCreateChild(j0),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=mi(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=vb(n.opacity,r.opacity,1)},t.makeFont=function(n){var r="";return Cct(n)&&(r=[n.fontStyle,n.fontWeight,xct(n.fontSize),n.fontFamily||"sans-serif"].join(" ")),r&&hf(r)||n.textFont||n.font},t})(cS),Sct={left:!0,right:1,center:1},kct={top:1,bottom:1,middle:1},Vie=["fontStyle","fontWeight","fontSize","fontFamily"];function xct(e){return typeof e=="string"&&(e.indexOf("px")!==-1||e.indexOf("rem")!==-1||e.indexOf("em")!==-1)?e:isNaN(+e)?eW+"px":e+"px"}function zie(e,t){for(var n=0;n=0,a=!1;if(e instanceof vo){var s=Rme(e),l=o&&s.selectFill||s.normalFill,c=o&&s.selectStroke||s.normalStroke;if(p1(l)||p1(c)){r=r||{};var d=r.style||{};d.fill==="inherit"?(a=!0,r=xn({},r),d=xn({},d),d.fill=l):!p1(d.fill)&&p1(l)?(a=!0,r=xn({},r),d=xn({},d),d.fill=mie(l)):!p1(d.stroke)&&p1(c)&&(a||(r=xn({},r),d=xn({},d)),d.stroke=mie(c)),r.style=d}}if(r&&r.z2==null){a||(r=xn({},r));var h=e.z2EmphasisLift;r.z2=e.z2+(h??Tct)}return r}function Rct(e,t,n){if(n&&n.z2==null){n=xn({},n);var r=e.z2SelectLift;n.z2=e.z2+(r??Act)}return n}function Mct(e,t,n){var r=go(e.currentStates,t)>=0,o=e.style.opacity,a=r?null:Dct(e,["opacity"],t,{opacity:1});n=n||{};var s=n.style||{};return s.opacity==null&&(n=xn({},n),s=xn({opacity:r?o:a.opacity*.1},s),n.style=s),n}function zN(e,t){var n=this.states[e];if(this.style){if(e==="emphasis")return Pct(this,e,t,n);if(e==="blur")return Mct(this,e,n);if(e==="select")return Rct(this,e,n)}return n}function Oct(e){e.stateProxy=zN;var t=e.getTextContent(),n=e.getTextGuideLine();t&&(t.stateProxy=zN),n&&(n.stateProxy=zN)}function Jie(e,t){!jme(e,t)&&!e.__highByOuter&&Qh(e,Mme)}function Qie(e,t){!jme(e,t)&&!e.__highByOuter&&Qh(e,Ome)}function uT(e,t){e.__highByOuter|=1<<(t||0),Qh(e,Mme)}function cT(e,t){!(e.__highByOuter&=~(1<<(t||0)))&&Qh(e,Ome)}function $ct(e){Qh(e,bW)}function Bme(e){Qh(e,$me)}function Nme(e){Qh(e,Ict)}function Fme(e){Qh(e,Lct)}function jme(e,t){return e.__highDownSilentOnTouch&&t.zrByTouch}function Vme(e){var t=e.getModel(),n=[],r=[];t.eachComponent(function(o,a){var s=gW(a),l=o==="series",c=l?e.getViewOfSeriesModel(a):e.getViewOfComponentModel(a);!l&&r.push(c),s.isBlured&&(c.group.traverse(function(d){$me(d)}),l&&n.push(a)),s.isBlured=!1}),At(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){zme(e,!0),Qh(e,Oct),Uct(e,t,n)}function zct(e){zme(e,!1)}function h_(e,t,n,r){r?zct(e):YV(e,t,n)}function Uct(e,t,n){var r=Xi(e);t!=null?(r.focus=t,r.blurScope=n):r.focus&&(r.focus=null)}var toe=["emphasis","blur","select"],Hct={itemStyle:"getItemStyle",lineStyle:"getLineStyle",areaStyle:"getAreaStyle"};function dT(e,t,n,r){n=n||"itemStyle";for(var o=0;o1&&(s*=UN(y),l*=UN(y));var S=(o===a?-1:1)*UN((s*s*(l*l)-s*s*(g*g)-l*l*(v*v))/(s*s*(g*g)+l*l*(v*v)))||0,k=S*s*g/l,C=S*-l*v/s,x=(e+n)/2+jx(p)*k-Fx(p)*C,E=(t+r)/2+Fx(p)*k+jx(p)*C,_=ooe([1,0],[(v-k)/s,(g-C)/l]),T=[(v-k)/s,(g-C)/l],D=[(-1*v-k)/s,(-1*g-C)/l],P=ooe(T,D);if(JV(T,D)<=-1&&(P=n4),JV(T,D)>=1&&(P=0),P<0){var M=Math.round(P/n4*1e6)/1e6;P=n4*2+M%2*n4}h.addData(d,x,E,s,l,_,P,p,a)}var Xct=/([mlvhzcqtsa])([^mlvhzcqtsa]*)/ig,Zct=/-?([0-9]*\.)?[0-9]+([eE]-?[0-9]+)?/g;function Jct(e){var t=new Bm;if(!e)return t;var n=0,r=0,o=n,a=r,s,l=Bm.CMD,c=e.match(Xct);if(!c)return t;for(var d=0;dH*H+K*K&&(M=L,O=B),{cx:M,cy:O,x0:-h,y0:-p,x1:M*(o/T-1),y1:O*(o/T-1)}}function sdt(e){var t;if(ir(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 adt(e,t){var n,r=R4(t.r,0),o=R4(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,v=!!t.clockwise,g=aoe(d-c),y=g>HN&&g%HN;if(y>vd&&(g=y),!(r>vd))e.moveTo(h,p);else if(g>HN-vd)e.moveTo(h+r*m1(c),p+r*Dv(c)),e.arc(h,p,r,c,d,!v),o>vd&&(e.moveTo(h+o*m1(d),p+o*Dv(d)),e.arc(h,p,o,d,c,v));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,O=void 0,L=void 0,B=void 0,j=void 0,W=void 0,H=void 0,K=r*m1(c),Y=r*Dv(c),ne=o*m1(d),X=o*Dv(d),U=g>vd;if(U){var q=t.cornerRadius;q&&(n=sdt(q),S=n[0],k=n[1],C=n[2],x=n[3]);var ee=aoe(r-o)/2;if(E=Jd(ee,C),_=Jd(ee,x),T=Jd(ee,S),D=Jd(ee,k),O=P=R4(E,_),L=M=R4(T,D),(P>vd||M>vd)&&(B=r*m1(d),j=r*Dv(d),W=o*m1(c),H=o*Dv(c),gvd){var ze=Jd(C,O),Qe=Jd(x,O),Je=Vx(W,H,K,Y,r,ze,v),Te=Vx(B,j,ne,X,r,Qe,v);e.moveTo(h+Je.cx+Je.x0,p+Je.cy+Je.y0),O0&&e.arc(h+Je.cx,p+Je.cy,ze,ll(Je.y0,Je.x0),ll(Je.y1,Je.x1),!v),e.arc(h,p,r,ll(Je.cy+Je.y1,Je.cx+Je.x1),ll(Te.cy+Te.y1,Te.cx+Te.x1),!v),Qe>0&&e.arc(h+Te.cx,p+Te.cy,Qe,ll(Te.y1,Te.x1),ll(Te.y0,Te.x0),!v))}else e.moveTo(h+K,p+Y),e.arc(h,p,r,c,d,!v);if(!(o>vd)||!U)e.lineTo(h+ne,p+X);else if(L>vd){var ze=Jd(S,L),Qe=Jd(k,L),Je=Vx(ne,X,B,j,o,-Qe,v),Te=Vx(K,Y,W,H,o,-ze,v);e.lineTo(h+Je.cx+Je.x0,p+Je.cy+Je.y0),L0&&e.arc(h+Je.cx,p+Je.cy,Qe,ll(Je.y0,Je.x0),ll(Je.y1,Je.x1),!v),e.arc(h,p,o,ll(Je.cy+Je.y1,Je.cx+Je.x1),ll(Te.cy+Te.y1,Te.cx+Te.x1),v),ze>0&&e.arc(h+Te.cx,p+Te.cy,ze,ll(Te.y1,Te.x1),ll(Te.y0,Te.x0),!v))}else e.lineTo(h+ne,p+X),e.arc(h,p,o,d,c,v)}e.closePath()}}}var ldt=(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})(),V0=(function(e){Vn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new ldt},t.prototype.buildPath=function(n,r){adt(n,r)},t.prototype.isZeroArea=function(){return this.shape.startAngle===this.shape.endAngle||this.shape.r===this.shape.r0},t})(vo);V0.prototype.type="sector";var udt=(function(){function e(){this.cx=0,this.cy=0,this.r=0,this.r0=0}return e})(),kW=(function(e){Vn(t,e);function t(n){return e.call(this,n)||this}return t.prototype.getDefaultShape=function(){return new udt},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})(vo);kW.prototype.type="ring";function cdt(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 v=0,g=e.length;v=2){if(r){var a=cdt(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;lRv[1]){if(l=!1,a)return l;var h=Math.abs(Rv[0]-Pv[1]),p=Math.abs(Pv[0]-Rv[1]);Math.min(h,p)>o.len()&&(h0){var p=h.duration,v=h.delay,g=h.easing,y={duration:p,delay:v||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 eu(e,t,n,r,o,a){wW("update",e,t,n,r,o,a)}function Wc(e,t,n,r,o,a){wW("enter",e,t,n,r,o,a)}function xb(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 coe(e){return!e.isGroup}function Pdt(e){return e.shape!=null}function Qme(e,t,n){if(!e||!t)return;function r(s){var l={};return s.traverse(function(c){coe(c)&&c.anid&&(l[c.anid]=c)}),l}function o(s){var l={x:s.x,y:s.y,rotation:s.rotation};return Pdt(s)&&(l.shape=xn({},s.shape)),l}var a=r(e);t.traverse(function(s){if(coe(s)&&s.anid){var l=a[s.anid];if(l){var c=o(s);s.attr(o(l)),eu(s,c,n,Xi(s).dataIndex)}}})}function Rdt(e,t){return Er(e,function(n){var r=n[0];r=vT(r,t.x),r=mT(r,t.x+t.width);var o=n[1];return o=vT(o,t.y),o=mT(o,t.y+t.height),[r,o]})}function Mdt(e,t){var n=vT(e.x,t.x),r=mT(e.x+e.width,t.x+t.width),o=vT(e.y,t.y),a=mT(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 IW(e,t,n){var r=xn({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),uo(o,n),new j0(r)):TW(e.replace("path://",""),r,n,"center")}function Odt(e,t,n,r,o){for(var a=0,s=o[o.length-1];a1)return!1;var k=WN(g,y,h,p)/v;return!(k<0||k>1)}function WN(e,t,n,r){return e*r-n*t}function $dt(e){return e<=1e-6&&e>=-1e-6}function bA(e){var t=e.itemTooltipOption,n=e.componentModel,r=e.itemName,o=Sr(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&&At(es(c),function(h){Om(l,h)||(l[h]=c[h],l.$vars.push(h))});var d=Xi(e.el);d.componentMainType=a,d.componentIndex=s,d.tooltipConfig={name:r,option:uo({content:r,encodeHTMLContent:!0,formatterParams:l},o)}}function doe(e,t){var n;e.isGroup&&(n=t(e)),n||e.traverse(t)}function _A(e,t){if(e)if(ir(e))for(var n=0;n=0&&l.push(c)}),l}}function rge(e,t){return ao(ao({},e,!0),t,!0)}const Jdt={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:". "}}}},Qdt={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 gT="ZH",LW="EN",py=LW,sE={},DW={},ige=zr.domSupported?(function(){var e=(document.documentElement.lang||navigator.language||navigator.browserLanguage||py).toUpperCase();return e.indexOf(gT)>-1?gT:py})():py;function oge(e,t){e=e.toUpperCase(),DW[e]=new xs(t),sE[e]=t}function eft(e){if(Sr(e)){var t=sE[e.toUpperCase()]||{};return e===gT||e===LW?zi(t):ao(zi(t),zi(sE[py]),!1)}else return ao(zi(e),zi(sE[py]),!1)}function tft(e){return DW[e]}function nft(){return DW[py]}oge(LW,Jdt);oge(gT,Qdt);var PW=1e3,RW=PW*60,Cb=RW*60,Fc=Cb*24,yoe=Fc*365,M4={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}"},Hx="{yyyy}-{MM}-{dd}",boe={year:"{yyyy}",month:"{yyyy}-{MM}",day:Hx,hour:Hx+" "+M4.hour,minute:Hx+" "+M4.minute,second:Hx+" "+M4.second,millisecond:M4.none},qN=["year","month","day","hour","minute","second","millisecond"],sge=["year","half-year","quarter","month","week","half-week","day","half-day","quarter-day","hour","minute","second","millisecond"];function Ip(e,t){return e+="","0000".substr(0,t-e.length)+e}function vy(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 rft(e){return e===vy(e)}function ift(e){switch(e){case"year":case"month":return"day";case"millisecond":return"millisecond";default:return"second"}}function CA(e,t,n,r){var o=Wh(e),a=o[MW(n)](),s=o[my(n)]()+1,l=Math.floor((s-1)/3)+1,c=o[wA(n)](),d=o["get"+(n?"UTC":"")+"Day"](),h=o[v_(n)](),p=(h-1)%12+1,v=o[EA(n)](),g=o[TA(n)](),y=o[AA(n)](),S=h>=12?"pm":"am",k=S.toUpperCase(),C=r instanceof xs?r:tft(r||ige)||nft(),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,Ip(a%100+"",2)).replace(/{Q}/g,l+"").replace(/{MMMM}/g,E[s-1]).replace(/{MMM}/g,_[s-1]).replace(/{MM}/g,Ip(s,2)).replace(/{M}/g,s+"").replace(/{dd}/g,Ip(c,2)).replace(/{d}/g,c+"").replace(/{eeee}/g,T[d]).replace(/{ee}/g,D[d]).replace(/{e}/g,d+"").replace(/{HH}/g,Ip(h,2)).replace(/{H}/g,h+"").replace(/{hh}/g,Ip(p+"",2)).replace(/{h}/g,p+"").replace(/{mm}/g,Ip(v,2)).replace(/{m}/g,v+"").replace(/{ss}/g,Ip(g,2)).replace(/{s}/g,g+"").replace(/{SSS}/g,Ip(y,3)).replace(/{S}/g,y+"")}function oft(e,t,n,r,o){var a=null;if(Sr(n))a=n;else if(ni(n))a=n(e.value,t,{level:e.level});else{var s=xn({},M4);if(e.level>0)for(var l=0;l=0;--l)if(c[d]){a=c[d];break}a=a||s.none}if(ir(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 CA(new Date(e.value),a,o,r)}function age(e,t){var n=Wh(e),r=n[my(t)]()+1,o=n[wA(t)](),a=n[v_(t)](),s=n[EA(t)](),l=n[TA(t)](),c=n[AA(t)](),d=c===0,h=d&&l===0,p=h&&s===0,v=p&&a===0,g=v&&o===1,y=g&&r===1;return y?"year":g?"month":v?"day":p?"hour":h?"minute":d?"second":"millisecond"}function _oe(e,t,n){var r=Ao(e)?Wh(e):e;switch(t=t||age(e,n),t){case"year":return r[MW(n)]();case"half-year":return r[my(n)]()>=6?1:0;case"quarter":return Math.floor((r[my(n)]()+1)/4);case"month":return r[my(n)]();case"day":return r[wA(n)]();case"half-day":return r[v_(n)]()/24;case"hour":return r[v_(n)]();case"minute":return r[EA(n)]();case"second":return r[TA(n)]();case"millisecond":return r[AA(n)]()}}function MW(e){return e?"getUTCFullYear":"getFullYear"}function my(e){return e?"getUTCMonth":"getMonth"}function wA(e){return e?"getUTCDate":"getDate"}function v_(e){return e?"getUTCHours":"getHours"}function EA(e){return e?"getUTCMinutes":"getMinutes"}function TA(e){return e?"getUTCSeconds":"getSeconds"}function AA(e){return e?"getUTCMilliseconds":"getMilliseconds"}function sft(e){return e?"setUTCFullYear":"setFullYear"}function lge(e){return e?"setUTCMonth":"setMonth"}function uge(e){return e?"setUTCDate":"setDate"}function cge(e){return e?"setUTCHours":"setHours"}function dge(e){return e?"setUTCMinutes":"setMinutes"}function fge(e){return e?"setUTCSeconds":"setSeconds"}function hge(e){return e?"setUTCMilliseconds":"setMilliseconds"}function pge(e){if(!hut(e))return Sr(e)?e:"-";var t=(e+"").split(".");return t[0].replace(/(\d{1,3})(?=(?:\d{3})+(?!\d))/g,"$1,")+(t.length>1?"."+t[1]:"")}function vge(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 IA=Gve;function ez(e,t,n){var r="{yyyy}-{MM}-{dd} {HH}:{mm}:{ss}";function o(h){return h&&hf(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?Wh(e):e;if(isNaN(+c)){if(l)return"-"}else return CA(c,r,n)}if(t==="ordinal")return CV(e)?o(e):Ao(e)&&a(e)?e+"":"-";var d=sT(e);return a(d)?pge(d):CV(e)?o(e):typeof e=="boolean"?e+"":"-"}var Soe=["a","b","c","d","e","f","g"],YN=function(e,t){return"{"+e+(t??"")+"}"};function mge(e,t,n){ir(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 Nm(e,t){return t=t||"transparent",Sr(e)?e:Lr(e)&&e.colorStops&&(e.colorStops[0]||{}).color||t}function koe(e,t){if(t==="_blank"||t==="blank"){var n=window.open();n.opener=null,n.location.href=e}else window.open(e,t)}var aE=At,lft=["left","right","top","bottom","width","height"],Wx=[["width","left","right"],["height","top","bottom"]];function OW(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),v=p&&p.getBoundingRect(),g,y;if(e==="horizontal"){var S=h.width+(v?-v.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+(v?-v.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 wb=OW;Ps(OW,"vertical");Ps(OW,"horizontal");function By(e,t,n){n=IA(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],v=n[1]+n[3],g=e.aspect;switch(isNaN(d)&&(d=r-l-v-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-v),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-v;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-v-a-(l||0)),isNaN(h)&&(h=o-p-s-(c||0));var y=new lo(a+n[3],s+n[0],d,h);return y.margin=n,y}function m_(e){var t=e.layoutMode||e.constructor.layoutMode;return Lr(t)?t:t?{type:t}:null}function Ny(e,t,n){var r=n&&n.ignoreSize;!ir(r)&&(r=[r,r]);var o=s(Wx[0],0),a=s(Wx[1],1);d(Wx[0],e,o),d(Wx[1],e,a);function s(h,p){var v={},g=0,y={},S=0,k=2;if(aE(h,function(E){y[E]=e[E]}),aE(h,function(E){l(t,E)&&(v[E]=y[E]=t[E]),c(v,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 v;for(var C=0;C=0;c--)l=ao(l,o[c],!0);r.defaultOption=l}return r.defaultOption},t.prototype.getReferringComponents=function(n,r){var o=n+"Index",a=n+"Id";return uS(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})(xs);xme(ho,xs);dA(ho);Xdt(ho);Zdt(ho,dft);function dft(e){var t=[];return At(ho.getClassesByMainType(e),function(n){t=t.concat(n.dependencies||n.prototype.dependencies||[])}),t=Er(t,function(n){return pf(n).main}),e!=="dataset"&&go(t,"dataset")<=0&&t.unshift("dataset"),t}var gge="";typeof navigator<"u"&&(gge=navigator.platform||"");var g1="rgba(0, 0, 0, 0.2)";const fft={darkMode:"auto",colorBy:"series",color:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientColor:["#f6efa6","#d88273","#bf444c"],aria:{decal:{decals:[{color:g1,dashArrayX:[1,0],dashArrayY:[2,5],symbolSize:1,rotation:Math.PI/6},{color:g1,symbol:"circle",dashArrayX:[[8,8],[0,8,8,0]],dashArrayY:[6,0],symbolSize:.8},{color:g1,dashArrayX:[1,0],dashArrayY:[4,3],rotation:-Math.PI/4},{color:g1,dashArrayX:[[6,6],[0,6,6,0]],dashArrayY:[6,0]},{color:g1,dashArrayX:[[1,0],[1,6]],dashArrayY:[1,0,6,0],rotation:Math.PI/4},{color:g1,symbol:"triangle",dashArrayX:[[9,9],[0,9,9,0]],dashArrayY:[7,2],symbolSize:.75}]}},textStyle:{fontFamily:gge.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 yge=xi(["tooltip","label","itemName","itemId","itemGroupId","itemChildGroupId","seriesName"]),nd="original",Mu="arrayRows",Nd="objectRows",Mf="keyedColumns",m0="typedArray",bge="unknown",Mh="column",h3="row",$a={Must:1,Might:2,Not:3},_ge=$s();function hft(e){_ge(e).datasetMap=xi()}function pft(e,t,n){var r={},o=$W(t);if(!o||!e)return r;var a=[],s=[],l=t.ecModel,c=_ge(l).datasetMap,d=o.uid+"_"+n.seriesLayoutBy,h,p;e=e.slice(),At(e,function(S,k){var C=Lr(S)?S:e[k]={name:S};C.type==="ordinal"&&h==null&&(h=k,p=y(C)),r[C.name]=[]});var v=c.get(d)||c.set(d,{categoryWayDim:p,valueWayDim:0});At(e,function(S,k){var C=S.name,x=y(S);if(h==null){var E=v.valueWayDim;g(r[C],E,x),g(s,E,x),v.valueWayDim+=x}else if(h===k)g(r[C],0,x),g(a,0,x);else{var E=v.categoryWayDim;g(r[C],E,x),g(s,E,x),v.categoryWayDim+=x}});function g(S,k,C){for(var x=0;xt)return e[r];return e[n-1]}function _ft(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:bft(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 Sft(e,t){t(e).paletteIdx=0,t(e).paletteNameMap={}}var Gx,r4,Coe,woe="\0_ec_inner",kft=1,NW=(function(e){Vn(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 xs(a),this._locale=new xs(s),this._optionManager=l},t.prototype.setOption=function(n,r,o){var a=Aoe(r);this._optionManager.setOption(n,o,a),this._resetOption(null,a)},t.prototype.resetOption=function(n,r){return this._resetOption(n,Aoe(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"?Coe(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&&At(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=xi(),d=r&&r.replaceMergeMainTypeMap;hft(this),At(n,function(p,v){p!=null&&(ho.hasClass(v)?v&&(l.push(v),c.set(v,!0)):o[v]=o[v]==null?zi(p):ao(o[v],p,!0))}),d&&d.each(function(p,v){ho.hasClass(v)&&!c.get(v)&&(l.push(v),c.set(v,!0))}),ho.topologicalTravel(l,ho.getAllClassMainTypes(),h,this);function h(p){var v=yft(this,p,Zl(n[p])),g=a.get(p),y=g?d&&d.get(p)?"replaceMerge":"normalMerge":"replaceAll",S=mut(g,v,y);xut(S,p,ho),o[p]=null,a.set(p,null),s.set(p,0);var k=[],C=[],x=0,E;At(S,function(_,T){var D=_.existing,P=_.newOption;if(!P)D&&(D.mergeOption({},this),D.optionUpdated({},!1));else{var M=p==="series",O=ho.getClass(p,_.keyInfo.subType,!M);if(!O)return;if(p==="tooltip"){if(E)return;E=!0}if(D&&D.constructor===O)D.name=_.keyInfo.name,D.mergeOption(P,this),D.optionUpdated(P,!1);else{var L=xn({componentIndex:T},_.keyInfo);D=new O(P,this,this,L),xn(D,L),_.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"&&Gx(this)}this._seriesIndices||Gx(this)},t.prototype.getOption=function(){var n=zi(this.option);return At(n,function(r,o){if(ho.hasClass(o)){for(var a=Zl(r),s=a.length,l=!1,c=s-1;c>=0;c--)a[c]&&!d_(a[c])?l=!0:(a[c]=null,!l&&s--);a.length=s,n[o]=a}}),delete n[woe],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 Dft(e,t){return e.join(",")===t.join(",")}var cd=At,g_=Lr,Ioe=["areaStyle","lineStyle","nodeStyle","linkStyle","chordStyle","label","labelLine"];function ZN(e){var t=e&&e.itemStyle;if(t)for(var n=0,r=Ioe.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"&&v>=0&&x>0||c==="samesign"&&v<=0&&x<0){v=cut(v,x),S=x;break}}}return r[0]=v,r[1]=S,r})})}var DA=(function(){function e(t){this.data=t.data||(t.sourceFormat===Mf?{}:[]),this.sourceFormat=t.sourceFormat||bge,this.seriesLayoutBy=t.seriesLayoutBy||Mh,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};$oe=(t={},t[Mu+"_"+Mh]={pure:!0,appendData:a},t[Mu+"_"+h3]={pure:!0,appendData:function(){throw new Error('Do not support appendData when set seriesLayoutBy: "row".')}},t[Nd]={pure:!0,appendData:a},t[Mf]={pure:!0,appendData:function(s){var l=this._data;At(s,function(c,d){for(var h=l[d]||(l[d]=[]),p=0;p<(c||[]).length;p++)h.push(c[p])})}},t[nd]={appendData:a},t[m0]={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 Fy(this.getData(n),t)},e.prototype.formatTooltip=function(t,n,r){},e})();function joe(e){var t,n;return Lr(e)?e.type&&(n=e):t=e,{text:t,frag:n}}function Eb(e){return new Yft(e)}var Yft=(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 v=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(v!=null?this._dueIndex+v: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})(),Zft=(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 lE(t,n)},e})();function Jft(e,t){var n=new Zft,r=e.data,o=n.sourceFormat=e.sourceFormat,a=e.startIndex,s="";e.seriesLayoutBy!==Mh&&_u(s);var l=[],c={},d=e.dimensionsDefine;if(d)At(d,function(S,k){var C=S.name,x={index:k,name:C,displayName:S.displayName};if(l.push(x),C!=null){var E="";Om(c,C)&&_u(E),c[C]=x}});else for(var h=0;h65535?sht:aht}function b1(){return[1/0,-1/0]}function lht(e){var t=e.constructor;return t===Array?e.slice():new t(e)}function Uoe(e,t,n,r,o){var a=Oge[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=Er(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<=v||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<=v||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<=v||isNaN(x))&&(c[d++]=P)}else for(var C=0;Ct[L][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,v,g=new(y1(this._rawCount))(Math.min((Math.ceil(s/c)+2)*2,s));g[l++]=d;for(var y=1;yh&&(h=p,v=_)}B>0&&Bl&&(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),v[g++]=x}return a._count=g,a._indices=v,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 lE(n[a],this._dimensions[a])}eF={arrayRows:t,objectRows:function(n,r,o,a){return lE(n[r],this._dimensions[a])},keyedColumns:t,original:function(n,r,o,a){var s=n&&(n.value==null?n:n.value);return lE(s instanceof Array?s[a]:s,this._dimensions[a])},typedArray:function(n,r,o,a){return n[a]}}})(),e})(),uht=(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(Kx(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=Ru(l)?m0:nd,a=[];var p=this._getSourceMetaRawOption()||{},v=d&&d.metaRawOption||{},g=mi(p.seriesLayoutBy,v.seriesLayoutBy)||null,y=mi(p.sourceHeader,v.sourceHeader),S=mi(p.dimensions,v.dimensions),k=g!==v.seriesLayoutBy||!!y!=!!v.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&&Hoe(a)}var s,l=[],c=[];return At(t,function(d){d.prepareSource();var h=d.getSource(o||0),p="";o!=null&&!h&&Hoe(p),l.push(h),c.push(d._getVersionSign())}),r?s=iht(r,l,{datasetIndex:n.componentIndex}):o!=null&&(s=[Vft(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 At(e.blocks,function(o){var a=Fge(o);a>=t&&(t=a+ +(r&&(!a||rz(o)&&!o.noHeader)))}),t}return 0}function hht(e,t,n,r){var o=t.noHeader,a=vht(Fge(t)),s=[],l=t.blocks||[];Hh(!l||ir(l)),l=l||[];var c=e.orderMode;if(t.sortBlocks&&c){l=l.slice();var d={valueAsc:"asc",valueDesc:"desc"};if(Om(d,c)){var h=new Xft(d[c],null);l.sort(function(S,k){return h.evaluate(S.sortParam,k.sortParam)})}else c==="seriesDesc"&&l.reverse()}At(l,function(S,k){var C=t.valueFormatter,x=Nge(S)(C?xn(xn({},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 v=ez(t.header,"ordinal",e.useUTC),g=Bge(r,e.renderMode).nameStyle,y=$ge(r);return e.renderMode==="richText"?jge(e,v,g)+a.richText+p:iz(r,'
'+yu(v)+"
"+p,n)}function pht(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 _=ir(_)?_:[_],Er(_,function(T,D){return ez(T,ir(g)?g[D]:g,d)})};if(!(a&&s)){var p=l?"":e.markupStyleCreator.makeTooltipMarker(t.markerType,t.markerColor||"#333",o),v=a?"":ez(c,"ordinal",d),g=t.valueType,y=s?[]:h(t.value,t.dataIndex),S=!l||!a,k=!l&&a,C=Bge(r,o),x=C.nameStyle,E=C.valueStyle;return o==="richText"?(l?"":p)+(a?"":jge(e,v,x))+(s?"":yht(e,y,S,k,E)):iz(r,(l?"":p)+(a?"":mht(v,!l,x))+(s?"":ght(y,S,k,E)),n)}}function Woe(e,t,n,r,o,a){if(e){var s=Nge(e),l={useUTC:o,renderMode:n,orderMode:r,markupStyleCreator:t,valueFormatter:e.valueFormatter};return s(l,e,0,a)}}function vht(e){return{html:dht[e],richText:fht[e]}}function iz(e,t,n){var r='
',o="margin: "+n+"px 0 0",a=$ge(e);return'
'+t+r+"
"}function mht(e,t,n){var r=t?"margin-left:2px":"";return''+yu(e)+""}function ght(e,t,n,r){var o=n?"10px":"20px",a=t?"float:right;margin-left:"+o:"";return e=ir(e)?e:[e],''+Er(e,function(s){return yu(s)}).join("  ")+""}function jge(e,t,n){return e.markupStyleCreator.wrapRichTextStyle(t,n)}function yht(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(ir(t)?t.join(" "):t,a)}function bht(e,t){var n=e.getData().getItemVisual(t,"style"),r=n[e.visualDrawType];return Nm(r)}function Vge(e,t){var n=e.get("padding");return n??(t==="richText"?[8,10]:10)}var tF=(function(){function e(){this.richTextStyles={},this._nextStyleNameId=gme()}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=aft({color:n,type:t,renderMode:r,markerId:o});return Sr(a)?a:(this.richTextStyles[o]=a.style,a.content)},e.prototype.wrapRichTextStyle=function(t,n){var r={};ir(n)?At(n,function(a){return xn(r,a)}):xn(r,n);var o=this._generateStyleName();return this.richTextStyles[o]=r,"{"+o+"|"+t+"}"},e})();function _ht(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=ir(l),d=bht(t,n),h,p,v,g;if(s>1||c&&!s){var y=Sht(l,t,n,a,d);h=y.inlineValues,p=y.inlineValueTypes,v=y.blocks,g=y.inlineValues[0]}else if(s){var S=o.getDimensionInfo(a[0]);g=h=Fy(o,n,a[0]),p=S.type}else g=h=c?l[0]:l;var k=pW(t),C=k&&t.name||"",x=o.getName(n),E=r?C:x;return y_("section",{header:C,noHeader:r||!k,sortParam:g,blocks:[y_("nameValue",{markerType:"item",markerColor:d,name:E,noName:!hf(E),value:h,valueType:p,dataIndex:n})].concat(v||[])})}function Sht(e,t,n,r,o){var a=t.getData(),s=T0(e,function(p,v,g){var y=a.getDimensionInfo(g);return p=p||y&&y.tooltip!==!1&&y.displayName!=null},!1),l=[],c=[],d=[];r.length?At(r,function(p){h(Fy(a,n,p),p)}):At(e,h);function h(p,v){var g=a.getDimensionInfo(v);!g||g.otherDims.tooltip===!1||(s?d.push(y_("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 Lp=$s();function qx(e,t){return e.getName(t)||e.getId(t)}var kht="__universalTransitionEnabled",Md=(function(e){Vn(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=Eb({count:Cht,reset:wht}),this.dataTask.context={model:this},this.mergeDefaultAndTheme(n,o);var a=Lp(this).sourceManager=new uht(this);a.prepareSource();var s=this.getInitialData(n,o);Koe(s,this),this.dataTask.context.data=s,Lp(this).dataBeforeProcessed=s,Goe(this),this._initSelectedMapFromData(s)},t.prototype.mergeDefaultAndTheme=function(n,r){var o=m_(this),a=o?LA(n):{},s=this.subType;ho.hasClass(s)&&(s+="Series"),ao(n,r.getTheme().get(this.subType)),ao(n,this.getDefaultOption()),UV(n,"label",["show"]),this.fillDataTextStyle(n.data),o&&Ny(n,a,o)},t.prototype.mergeOption=function(n,r){n=ao(this.option,n,!0),this.fillDataTextStyle(n.data);var o=m_(this);o&&Ny(this.option,n,o);var a=Lp(this).sourceManager;a.dirty(),a.prepareSource();var s=this.getInitialData(n,r);Koe(s,this),this.dataTask.dirty(),this.dataTask.context.data=s,Lp(this).dataBeforeProcessed=s,Goe(this),this._initSelectedMapFromData(s)},t.prototype.fillDataTextStyle=function(n){if(n&&!Ru(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=BW.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[qx(a,n)])&&!a.getItemModel(n).get(["select","disabled"])},t.prototype.isUniversalTransitionEnabled=function(){if(this[kht])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"){Lr(s.selectedMap)||(s.selectedMap={});for(var d=s.selectedMap,h=0;h0&&this._innerSelect(n,r)}},t.registerClass=function(n){return ho.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})(ho);Pf(Md,qft);Pf(Md,BW);xme(Md,ho);function Goe(e){var t=e.name;pW(e)||(e.name=xht(e)||t)}function xht(e){var t=e.getRawData(),n=t.mapDimensionsAll("seriesName"),r=[];return At(n,function(o){var a=t.getDimensionInfo(o);a.displayName&&r.push(a.displayName)}),r.join(" ")}function Cht(e){return e.model.getRawData().count()}function wht(e){var t=e.model;return t.setData(t.getRawData().cloneShallow()),Eht}function Eht(e,t){t.outputData&&e.end>t.outputData.count()&&t.model.getRawData().cloneShallow(t.outputData)}function Koe(e,t){At(Wat(e.CHANGABLE_METHODS,e.DOWNSAMPLE_METHODS),function(n){e.wrapMethod(n,Ps(Tht,t))})}function Tht(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 Od=(function(){function e(){this.group=new Za,this.uid=xA("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})();mW(Od);dA(Od);function UW(){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 zge=$s(),Aht=UW(),Gc=(function(){function e(){this.group=new Za,this.uid=xA("viewChart"),this.renderTask=Eb({plan:Iht,reset:Lht}),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&&Yoe(a,o,"emphasis")},e.prototype.downplay=function(t,n,r,o){var a=t.getData(o&&o.dataType);a&&Yoe(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){_A(this.group,t)},e.markUpdateMethod=function(t,n){zge(t).updateMethod=n},e.protoInitialize=(function(){var t=e.prototype;t.type="chart"})(),e})();function qoe(e,t,n){e&&XV(e)&&(t==="emphasis"?uT:cT)(e,n)}function Yoe(e,t,n){var r=$m(e,t),o=t&&t.highlightKey!=null?Wct(t.highlightKey):null;r!=null?At(Zl(r),function(a){qoe(e.getItemGraphicEl(a),n,o)}):e.eachItemGraphicEl(function(a){qoe(a,n,o)})}mW(Gc);dA(Gc);function Iht(e){return Aht(e.model)}function Lht(e){var t=e.model,n=e.ecModel,r=e.api,o=e.payload,a=t.pipelineContext.progressiveRender,s=e.view,l=o&&zge(o).updateMethod,c=a?"incrementalPrepareRender":l&&s[l]?l:"render";return c!=="render"&&s[c](t,n,r,o),Dht[c]}var Dht={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)}}},yT="\0__throttleOriginMethod",Xoe="\0__throttleRate",Zoe="\0__throttleType";function RA(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 v=function(){for(var g=[],y=0;y=0?p():s=setTimeout(p,-l),o=r};return v.clear=function(){s&&(clearTimeout(s),s=null)},v.debounceNextCall=function(g){h=g},v}function Uge(e,t,n,r){var o=e[t];if(o){var a=o[yT]||o,s=o[Zoe],l=o[Xoe];if(l!==n||s!==r){if(n==null||!r)return e[t]=a;o=e[t]=RA(a,n,r==="debounce"),o[yT]=a,o[Zoe]=r,o[Xoe]=n}return o}}function sz(e,t){var n=e[t];n&&n[yT]&&(n.clear&&n.clear(),e[t]=n[yT])}var Joe=$s(),Qoe={itemStyle:f_(nge,!0),lineStyle:f_(tge,!0)},Pht={lineStyle:"stroke",itemStyle:"fill"};function Hge(e,t){var n=e.visualStyleMapper||Qoe[t];return n||(console.warn("Unknown style type '"+t+"'."),Qoe.itemStyle)}function Wge(e,t){var n=e.visualDrawType||Pht[t];return n||(console.warn("Unknown style type '"+t+"'."),"fill")}var Rht={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=e.getModel(r),a=Hge(e,r),s=a(o),l=o.getShallow("decal");l&&(n.setVisual("decal",l),l.dirty=!0);var c=Wge(e,r),d=s[c],h=ni(d)?d:null,p=s.fill==="auto"||s.stroke==="auto";if(!s[c]||h||p){var v=e.getColorFromPalette(e.name,null,t.getSeriesCount());s[c]||(s[c]=v,n.setVisual("colorFromPalette",!0)),s.fill=s.fill==="auto"||ni(s.fill)?v:s.fill,s.stroke=s.stroke==="auto"||ni(s.stroke)?v: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=xn({},s);k[c]=h(S),g.setItemVisual(y,"style",k)}}}},o4=new xs,Mht={createOnAllSeries:!0,performRawSeries:!0,reset:function(e,t){if(!(e.ignoreStyleOnData||t.isSeriesFiltered(e))){var n=e.getData(),r=e.visualStyleAccessPath||"itemStyle",o=Hge(e,r),a=n.getVisual("drawType");return{dataEach:n.hasItemOption?function(s,l){var c=s.getRawDataItem(l);if(c&&c[r]){o4.option=c[r];var d=o(o4),h=s.ensureUniqueItemVisual(l,"style");xn(h,d),o4.option.decal&&(s.setItemVisual(l,"decal",o4.option.decal),o4.option.decal.dirty=!0),a in d&&s.setItemVisual(l,"colorFromPalette",!1)}}:null}}}},Oht={performRawSeries:!0,overallReset:function(e){var t=xi();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)),Joe(n).scope=a}}),e.eachSeries(function(n){if(!(n.isColorBySeries()||e.isSeriesFiltered(n))){var r=n.getRawData(),o={},a=n.getData(),s=Joe(n).scope,l=n.visualStyleAccessPath||"itemStyle",c=Wge(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 v=a.ensureUniqueItemVisual(h,"style"),g=r.getName(d)||d+"",y=r.count();v[c]=n.getColorFromPalette(g,s,y)}})}})}},Yx=Math.PI;function $ht(e,t){t=t||{},uo(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 yA({shape:{startAngle:-Yx/2,endAngle:-Yx/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:Yx*3/2}).start("circularInOut"),s.animateShape(!0).when(1e3,{startAngle:Yx*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 Gge=(function(){function e(t,n,r,o){this._stageTaskMap=xi(),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=xi();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;At(this._allHandlers,function(o){var a=t.get(o.uid)||t.set(o.uid,{}),s="";Hh(!(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;At(t,function(c,d){if(!(o.visualType&&o.visualType!==c.visualType)){var h=s._stageTaskMap.get(c.uid),p=h.seriesTaskMap,v=h.overallTask;if(v){var g,y=v.agentStubMap;y.each(function(k){l(o,k)&&(k.dirty(),g=!0)}),g&&v.dirty(),s.updatePayload(v,r);var S=s.getPerformArgs(v,o.block);y.each(function(k){k.perform(S)}),v.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=xi(),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 v=p.uid,g=l.set(v,s&&s.get(v)||Eb({plan:Vht,reset:zht,count:Hht}));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||Eb({reset:Bht});s.context={ecModel:r,api:o,overallReset:t.overallReset,scheduler:a};var l=s.agentStubMap,c=s.agentStubMap=xi(),d=t.seriesType,h=t.getTargetSeries,p=!0,v=!1,g="";Hh(!t.createOnAllSeries,g),d?r.eachRawSeriesByType(d,y):h?h(r,o).each(y):(p=!1,At(r.getSeries(),y));function y(S){var k=S.uid,C=c.set(k,l&&l.get(k)||(v=!0,Eb({reset:Nht,onDirty:jht})));C.context={model:S,overallProgress:p},C.agent=s,C.__block=p,a._pipe(S,C)}v&&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 ni(t)&&(t={overallReset:t,seriesType:Wht(t)}),t.uid=xA("stageHandler"),n&&(t.visualType=n),t},e})();function Bht(e){e.overallReset(e.ecModel,e.api,e.payload)}function Nht(e){return e.overallProgress&&Fht}function Fht(){this.agent.dirty(),this.getDownstream().dirty()}function jht(){this.agent&&this.agent.dirty()}function Vht(e){return e.plan?e.plan(e.model,e.ecModel,e.api,e.payload):null}function zht(e){e.useClearVisual&&e.data.clearAllVisual();var t=e.resetDefines=Zl(e.reset(e.model,e.ecModel,e.api,e.payload));return t.length>1?Er(t,function(n,r){return Kge(r)}):Uht}var Uht=Kge(0);function Kge(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-v.length){var y=d.slice(0,g);y!=="data"&&(n.mainType=y,n[v.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,v,g,y){return p[g]==null||v[y||g]===p[g]}},e.prototype.afterTrigger=function(){this.eventInfo=null},e})(),az=["symbol","symbolSize","symbolRotate","symbolOffset"],rse=az.concat(["symbolKeepAspect"]),qht={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&&Qv(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"?hpt(e,t,n):fpt(e,t,n),o=t.colorStops,a=0;a0)?null:e==="dashed"?[4*t,2*t]:e==="dotted"?[t]:Ao(e)?[e]:ir(e)?e:null}function Jge(e){var t=e.style,n=t.lineDash&&t.lineWidth>0&&vpt(t.lineDash,t.lineWidth),r=t.lineDashOffset;if(n){var o=t.strokeNoScale&&e.getLineScale?e.getLineScale():1;o&&o!==1&&(n=Er(n,function(a){return a/o}),r/=o)}return[n,r]}var mpt=new Bm(!0);function _T(e){var t=e.stroke;return!(t==null||t==="none"||!(e.lineWidth>0))}function ise(e){return typeof e=="string"&&e!=="none"}function ST(e){var t=e.fill;return t!=null&&t!=="none"}function ose(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 sse(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=Cme(t.image,t.__image,n);if(fA(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)*Gat),a.scaleSelf(t.scaleX||1,t.scaleY||1),o.setTransform(a)}return o}}function gpt(e,t,n,r){var o,a=_T(n),s=ST(n),l=n.strokePercent,c=l<1,d=!t.path;(!t.silent||c)&&d&&t.createPathProxy();var h=t.path||mpt,p=t.__dirty;if(!r){var v=n.fill,g=n.stroke,y=s&&!!v.colorStops,S=a&&!!g.colorStops,k=s&&!!v.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,v,D):t.__canvasFillGradient,t.__canvasFillGradient=x),S&&(E=p?uz(e,g,D):t.__canvasStrokeGradient,t.__canvasStrokeGradient=E),k&&(_=p||!t.__canvasFillPattern?cz(e,v,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,O;e.setLineDash&&n.lineDash&&(o=Jge(t),M=o[0],O=o[1]);var L=!0;(d||p&B1)&&(h.setDPR(e.dpr),c?h.setContext(null):(h.setContext(e),L=!1),h.reset(),t.buildPath(h,t.shape,r),h.toStatic(),t.pathUpdated()),L&&h.rebuildPath(e,c?l:1),M&&(e.setLineDash(M),e.lineDashOffset=O),r||(n.strokeFirst?(a&&sse(e,n),s&&ose(e,n)):(s&&ose(e,n),a&&sse(e,n))),M&&e.setLineDash([])}function ypt(e,t,n){var r=t.__image=Cme(n.image,t.__image,t,t.onload);if(!(!r||!fA(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,v=l-h;e.drawImage(r,d,h,p,v,o,a,s,l)}else e.drawImage(r,o,a,s,l)}}function bpt(e,t,n){var r,o=n.text;if(o!=null&&(o+=""),o){e.font=n.font||Mm,e.textAlign=n.textAlign,e.textBaseline=n.textBaseline;var a=void 0,s=void 0;e.setLineDash&&n.lineDash&&(r=Jge(t),a=r[0],s=r[1]),a&&(e.setLineDash(a),e.lineDashOffset=s),n.strokeFirst?(_T(n)&&e.strokeText(o,n.x,n.y),ST(n)&&e.fillText(o,n.x,n.y)):(ST(n)&&e.fillText(o,n.x,n.y),_T(n)&&e.strokeText(o,n.x,n.y)),a&&e.setLineDash([])}}var ase=["shadowBlur","shadowOffsetX","shadowOffsetY"],lse=[["lineCap","butt"],["lineJoin","miter"],["miterLimit",10]];function Qge(e,t,n,r,o){var a=!1;if(!r&&(n=n||{},t===n))return!1;if(r||t.opacity!==n.opacity){Su(e,o),a=!0;var s=Math.max(Math.min(t.opacity,1),0);e.globalAlpha=isNaN(s)?gm.opacity:s}(r||t.blend!==n.blend)&&(a||(Su(e,o),a=!0),e.globalCompositeOperation=t.blend||gm.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[ul]){if(this._disposed){this.id;return}var a,s,l;if(Lr(r)&&(o=r.lazyUpdate,a=r.silent,s=r.replaceMerge,l=r.transition,r=r.notMerge),this[ul]=!0,!this._model||r){var c=new Tft(this._api),d=this._theme,h=this._model=new NW;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[du]={silent:a,updateParams:p},this[ul]=!1,this.getZr().wakeUp();else{try{S1(this),Dp.update.call(this,null,p)}catch(v){throw this[du]=null,this[ul]=!1,v}this._ssr||this._zr.flush(),this[du]=null,this[ul]=!1,s4.call(this,a),a4.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||zr.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(zr.svgSupported){var n=this._zr,r=n.storage.getDisplayList();return At(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;At(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 At(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(xse[o]){var c=l,d=l,h=-l,p=-l,v=[],g=n&&n.pixelRatio||this.getDevicePixelRatio();At(Ab,function(E,_){if(E.group===o){var T=r?E.getZr().painter.getSvgDom().innerHTML:E.renderToCanvas(zi(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),v.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=d3.createCanvas(),C=Tie(k,{renderer:r?"svg":"canvas"});if(C.resize({width:y,height:S}),r){var x="";return At(v,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}})),At(v,function(E){var _=new j0({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 sF(this,"convertToPixel",n,r)},t.prototype.convertFromPixel=function(n,r){return sF(this,"convertFromPixel",n,r)},t.prototype.containPixel=function(n,r){if(this._disposed){this.id;return}var o=this._model,a,s=IN(o,n);return At(s,function(l,c){c.indexOf("Models")>=0&&At(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=IN(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?Xht(l,c,r):Zht(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;At(Hpt,function(r){var o=function(a){var s=n.getModel(),l=a.target,c,d=r==="globalout";if(d?c={}:l&&$4(l,function(y){var S=Xi(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=xn({},S.eventData),!0},!0),c){var h=c.componentType,p=c.componentIndex;(h==="markLine"||h==="markPoint"||h==="markArea")&&(h="series",p=c.seriesIndex);var v=h&&p!=null&&s.getComponent(h,p),g=v&&n[v.mainType==="series"?"_chartsMap":"_componentsMap"][v.__viewId];c.event=a,c.type=r,n._$eventProcessor.eventInfo={targetEl:l,packedEvent:c,model:v,view:g},n.trigger(r,c)}};o.zrEventfulCallAtLast=!0,n._zr.on(r,o,n)}),At(Tb,function(r,o){n._messageCenter.on(o,function(a){this.trigger(o,a)},n)}),At(["selectchanged"],function(r){n._messageCenter.on(r,function(o){this.trigger(r,o)},n)}),Qht(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&&Sme(this.getDom(),GW,"");var r=this,o=r._api,a=r._model;At(r._componentsViews,function(s){s.dispose(a,o)}),At(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 Ab[r.id]},t.prototype.resize=function(n){if(!this[ul]){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[du]&&(a==null&&(a=this[du].silent),o=!0,this[du]=null),this[ul]=!0;try{o&&S1(this),Dp.update.call(this,{type:"resize",animation:xn({duration:0},n&&n.animation)})}catch(s){throw this[ul]=!1,s}this[ul]=!1,s4.call(this,a),a4.call(this,a)}}},t.prototype.showLoading=function(n,r){if(this._disposed){this.id;return}if(Lr(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=xn({},n);return r.type=Tb[n.type],r},t.prototype.dispatchAction=function(n,r){if(this._disposed){this.id;return}if(Lr(r)||(r={silent:!!r}),!!kT[n.type]&&this._model){if(this[ul]){this._pendingActions.push(n);return}var o=r.silent;lF.call(this,n,o);var a=r.flush;a?this._zr.flush():a!==!1&&zr.browser.weChat&&this._throttledZrFlush(),s4.call(this,o),a4.call(this,o)}},t.prototype.updateLabelLayout=function(){yd.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(){S1=function(p){var v=p._scheduler;v.restorePipelines(p._model),v.prepareStageTasks(),oF(p,!0),oF(p,!1),v.plan()},oF=function(p,v){for(var g=p._model,y=p._scheduler,S=v?p._componentsViews:p._chartsViews,k=v?p._componentsMap:p._chartsMap,C=p._zr,x=p._api,E=0;Ev.get("hoverLayerThreshold")&&!zr.node&&!zr.worker&&v.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,v){var g=p.get("blendMode")||null;v.eachRendered(function(y){y.isGroup||(y.style.blend=g)})}function l(p,v){if(!p.preventAutoZ){var g=p.get("z")||0,y=p.get("zlevel")||0;v.eachRendered(function(S){return c(S,g,y,-1/0),!0})}}function c(p,v,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;v.eachRendered(function(C){if(C.states&&C.states.emphasis){if(xb(C))return;if(C instanceof vo&&Gct(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)}})}Sse=function(p){return new((function(v){Vn(g,v);function g(){return v!==null&&v.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){uT(y,S),wc(p)},g.prototype.leaveEmphasis=function(y,S){cT(y,S),wc(p)},g.prototype.enterBlur=function(y){$ct(y),wc(p)},g.prototype.leaveBlur=function(y){Bme(y),wc(p)},g.prototype.enterSelect=function(y){Nme(y),wc(p)},g.prototype.leaveSelect=function(y){Fme(y),wc(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})(xge))(p)},p1e=function(p){function v(g,y){for(var S=0;S=0)){Cse.push(n);var a=Gge.wrapStageHandler(n,o);a.__prio=t,a.__raw=n,e.push(a)}}function _1e(e,t){pz[e]=t}function Jpt(e,t,n){var r=Ipt("registerMap");r&&r(e,t,n)}var Qpt=rht;ng(HW,Rht);ng(MA,Mht);ng(MA,Oht);ng(HW,qht);ng(MA,Yht);ng(l1e,Tpt);y1e(wge);b1e(Ppt,Fft);_1e("default",$ht);p3({type:ym,event:ym,update:ym},Tu);p3({type:iE,event:iE,update:iE},Tu);p3({type:_b,event:_b,update:_b},Tu);p3({type:oE,event:oE,update:oE},Tu);p3({type:Sb,event:Sb,update:Sb},Tu);g1e("light",Ght);g1e("dark",Xge);function l4(e){return e==null?0:e.length||1}function wse(e){return e}var e0t=(function(){function e(t,n,r,o,a,s){this._old=t,this._new=n,this._oldKeyGetter=r||wse,this._newKeyGetter=o||wse,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&&v===1)this._updateManyToOne&&this._updateManyToOne(h,d),o[c]=null;else if(p===1&&v>1)this._updateOneToMany&&this._updateOneToMany(h,d),o[c]=null;else if(p===1&&v===1)this._update&&this._update(h,d),o[c]=null;else if(p>1&&v>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 u4=Lr,Pp=Er,a0t=typeof Int32Array>"u"?Array:Int32Array,l0t="e\0\0",Ese=-1,u0t=["hasItemOption","_nameList","_idList","_invertedIndicesMap","_dimSummary","userOutput","_rawData","_dimValueGetter","_nameDimIdx","_idDimIdx","_nameRepeatCount"],c0t=["_approximateExtent"],Tse,tC,c4,d4,dF,f4,fF,E1e=(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;k1e(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===nd;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),ir(a)?a=a.slice():u4(a)&&(a=xn({},a)),o[n]=a),a},e.prototype.setItemVisual=function(t,n,r){var o=this._itemVisuals[t]||{};this._itemVisuals[t]=o,u4(n)?xn(o,n):o[n]=r},e.prototype.clearAllVisual=function(){this._visual={},this._itemVisuals=[]},e.prototype.setLayout=function(t,n){u4(t)?xn(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?xn(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;Ect(r,this.dataType,t,n),this._graphicEls[t]=n},e.prototype.getItemGraphicEl=function(t){return this._graphicEls[t]},e.prototype.eachItemGraphicEl=function(t,n){At(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:Pp(this.dimensions,this._getDimInfo,this),this.hostModel)),dF(t,this),t._store=this._store,t},e.prototype.wrapMethod=function(t,n){var r=this[t];ni(r)&&(this.__wrappedMethods=this.__wrappedMethods||[],this.__wrappedMethods.push(t),this[t]=function(){var o=r.apply(this,arguments);return n.apply(this,[o].concat(iW(arguments)))})},e.internalField=(function(){Tse=function(t){var n=t._invertedIndicesMap;At(n,function(r,o){var a=t._dimInfos[o],s=a.ordinalMeta,l=t._store;if(s){r=n[o]=new a0t(s.categories.length);for(var c=0;c1&&(c+="__ec__"+h),o[n]=c}}})(),e})();function T1e(e,t){jW(e)||(e=Ege(e)),t=t||{};var n=t.coordDimensions||[],r=t.dimensionsDefine||e.dimensionsDefine||[],o=xi(),a=[],s=f0t(e,n,r,t.dimensionsCount),l=t.canOmitUnusedDimensions&&w1e(s),c=r===e.dimensionsDefine,d=c?C1e(e):x1e(r),h=t.encodeDefine;!h&&t.encodeDefaulter&&(h=t.encodeDefaulter(e,s));for(var p=xi(h),v=new Mge(s),g=0;g0&&(r.name=o+(a-1)),a++,t.set(o,a)}}function f0t(e,t,n,r){var o=Math.max(e.dimensionsDetectedCount||1,t.length,n.length,r||0);return At(t,function(a){var s;Lr(a)&&(s=a.dimsDef)&&(o=Math.max(o,s.length))}),o}function h0t(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 p0t=(function(){function e(t){this.coordSysDims=[],this.axisMap=xi(),this.categoryAxisMap=xi(),this.coordSysName=t}return e})();function v0t(e){var t=e.get("coordinateSystem"),n=new p0t(t),r=m0t[t];if(r)return r(e,n,n.axisMap,n.categoryAxisMap),n}var m0t={cartesian2d:function(e,t,n,r){var o=e.getReferringComponents("xAxis",Td).models[0],a=e.getReferringComponents("yAxis",Td).models[0];t.coordSysDims=["x","y"],n.set("x",o),n.set("y",a),k1(o)&&(r.set("x",o),t.firstCategoryDimIndex=0),k1(a)&&(r.set("y",a),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=1))},singleAxis:function(e,t,n,r){var o=e.getReferringComponents("singleAxis",Td).models[0];t.coordSysDims=["single"],n.set("single",o),k1(o)&&(r.set("single",o),t.firstCategoryDimIndex=0)},polar:function(e,t,n,r){var o=e.getReferringComponents("polar",Td).models[0],a=o.findAxisModel("radiusAxis"),s=o.findAxisModel("angleAxis");t.coordSysDims=["radius","angle"],n.set("radius",a),n.set("angle",s),k1(a)&&(r.set("radius",a),t.firstCategoryDimIndex=0),k1(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();At(a.parallelAxisIndex,function(l,c){var d=o.getComponent("parallelAxis",l),h=s[c];n.set(h,d),k1(d)&&(r.set(h,d),t.firstCategoryDimIndex==null&&(t.firstCategoryDimIndex=c))})}};function k1(e){return e.get("type")==="category"}function g0t(e,t,n){n=n||{};var r=n.byIndex,o=n.stackedCoordDimension,a,s,l;y0t(t)?a=t:(s=t.schema,a=s.dimensions,l=t.store);var c=!!(e&&e.get("stack")),d,h,p,v;if(At(a,function(x,E){Sr(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,v="__\0ecstackedover_"+e.id,d&&(d.createInvertedIndices=!0);var g=h.coordDim,y=h.type,S=0;At(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:v,coordDim:v,coordDimIndex:S+1,type:y,isExtraCoord:!0,isCalculationCoord:!0,storeDimIndex:a.length+1};s?(l&&(k.storeDimIndex=l.ensureCalculationDimension(v,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:v,stackResultDimension:p}}function y0t(e){return!k1e(e.schema)}function Vy(e,t){return!!t&&t===e.getCalculationInfo("stackedDimension")}function b0t(e,t){return Vy(e,t)?e.getCalculationInfo("stackResultDimension"):t}function _0t(e,t){var n=e.get("coordinateSystem"),r=FW.get(n),o;return t&&t.coordSysDims&&(o=Er(t.coordSysDims,function(a){var s={name:a},l=t.axisMap.get(a);if(l){var c=l.get("type");s.type=r0t(c)}return s})),o||(o=r&&(r.getDimensionsInfo?r.getDimensionsInfo():r.dimensions.slice())||["x","y"]),o}function S0t(e,t,n){var r,o;return n&&At(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 YW(e,t,n){n=n||{};var r=t.getSourceManager(),o,a=!1;o=r.getSource(),a=o.sourceFormat===nd;var s=v0t(t),l=_0t(t,s),c=n.useEncodeDefaulter,d=ni(c)?c:c?Ps(pft,l,t):null,h={coordDimensions:l,generateCoord:n.generateCoord,encodeDefine:t.getEncode(),encodeDefaulter:d,canOmitUnusedDimensions:!a},p=T1e(o,h),v=S0t(p.dimensions,n.createInvertedIndices,s),g=a?null:r.getSharedDataStore(p),y=g0t(t,{schema:p,store:g}),S=new E1e(p,t);S.setCalculationInfo(y);var k=v!=null&&k0t(o)?function(C,x,E,_){return _===v?E:this.defaultDimValueGetter(C,x,E,_)}:null;return S.hasItemOption=!1,S.initData(a?o:g,null,k),S}function k0t(e){if(e.sourceFormat===nd){var t=x0t(e.data||[]);return!ir(lS(t))}}function x0t(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})();dA(Of);var C0t=0,vz=(function(){function e(t){this.categories=t.categories||[],this._needCollect=t.needCollect,this._deduplication=t.deduplication,this.uid=++C0t}return e.createByAxisModel=function(t){var n=t.option,r=n.data,o=r&&Er(r,w0t);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(!Sr(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=xi(this.categories))},e})();function w0t(e){return Lr(e)&&e.value!=null?e.value:e+""}function mz(e){return e.type==="interval"||e.type==="log"}function E0t(e,t,n,r){var o={},a=e[1]-e[0],s=o.interval=mme(a/t);n!=null&&sr&&(s=o.interval=r);var l=o.intervalPrecision=A1e(s),c=o.niceTickExtent=[Xs(Math.ceil(e[0]/s)*s,l),Xs(Math.floor(e[1]/s)*s,l)];return T0t(c,e),o}function hF(e){var t=Math.pow(10,hW(e)),n=e/t;return n?n===2?n=3:n===3?n=5:n*=2:n=1,Xs(n*t)}function A1e(e){return wh(e)+2}function Ase(e,t,n){e[t]=Math.max(Math.min(e[t],n[1]),n[0])}function T0t(e,t){!isFinite(e[0])&&(e[0]=t[0]),!isFinite(e[1])&&(e[1]=t[1]),Ase(e,0,t),Ase(e,1,t),e[0]>e[1]&&(e[0]=e[1])}function OA(e,t){return e>=t[0]&&e<=t[1]}function $A(e,t){return t[1]===t[0]?.5:(e-t[0])/(t[1]-t[0])}function BA(e,t){return e*(t[1]-t[0])+t[0]}var XW=(function(e){Vn(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({})),ir(o)&&(o=new vz({categories:Er(o,function(a){return Lr(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:Sr(n)?this._ordinalMeta.getOrdinal(n):Math.round(n)},t.prototype.contain=function(n){return n=this.parse(n),OA(n,this._extent)&&this._ordinalMeta.categories[n]!=null},t.prototype.normalize=function(n){return n=this._getTickNumber(this.parse(n)),$A(n,this._extent)},t.prototype.scale=function(n){return n=Math.round(BA(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})(Of);Of.registerClass(XW);var Bv=Xs,v3=(function(e){Vn(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 OA(n,this._extent)},t.prototype.normalize=function(n){return $A(n,this._extent)},t.prototype.scale=function(n){return BA(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=A1e(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:Bv(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 P1e(e){var t=L0t(e),n=[];return At(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(),v=Math.abs(p[1]-p[0]);l=d?h/v*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")||(M1e(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:ZW(a),stackId:L1e(r)})}),D0t(n)}function D0t(e){var t={};At(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 v=r.barMinWidth;v&&(c[d].minWidth=v);var g=r.barGap;g!=null&&(l.gap=g);var y=r.barCategoryGap;y!=null&&(l.categoryGap=y)});var n={};return At(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,v=r.autoWidthCount,g=(p-d)/(v+(v-1)*h);g=Math.max(g,0),At(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*_,v--}else{var _=g;x&&x<_&&(_=Math.min(x,p)),E&&E>_&&(_=E),_!==g&&(C.width=_,p-=_+h*_,v--)}}),g=(p-d)/(v+(v-1)*h),g=Math.max(g,0);var y=0,S;At(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;At(a,function(C,x){n[o][x]=n[o][x]||{bandWidth:s,offset:k,width:C.width},k+=C.width*(1+h)})}),n}function P0t(e,t,n){if(e&&t){var r=e[ZW(t)];return r}}function R0t(e,t){var n=D1e(e,t),r=P1e(n);At(n,function(o){var a=o.getData(),s=o.coordinateSystem,l=s.getBaseAxis(),c=L1e(o),d=r[ZW(l)][c],h=d.offset,p=d.width;a.setLayout({bandWidth:d.bandWidth,offset:h,size:p})})}function M0t(e){return{seriesType:e,plan:UW(),reset:function(t){if(R1e(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=Vy(n,d)&&!!n.getCalculationInfo("stackedOnSeries"),v=a.isHorizontal(),g=O0t(o,a),y=M1e(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),O=r.master.getRect(),L=v?O.width:O.height,B,j=_.getStore(),W=0;(B=E.next())!=null;){var H=j.get(p?k:s,B),K=j.get(l,B),Y=g,ne=void 0;p&&(ne=+H-j.get(s,B));var X=void 0,U=void 0,q=void 0,ee=void 0;if(v){var re=r.dataToPoint([H,K]);if(p){var ae=r.dataToPoint([ne,K]);Y=ae[0]}X=Y,U=re[1]+x,q=re[0]-Y,ee=C,Math.abs(q)0?n:1:n))}var $0t=function(e,t,n,r){for(;n>>1;e[o][1]o&&(this._approxInterval=o);var l=nC.length,c=Math.min($0t(nC,this._approxInterval,0,l),l-1);this._interval=nC[c][1],this._minLevelUnit=nC[Math.max(c-1,0)][0]},t.prototype.parse=function(n){return Ao(n)?n:+Wh(n)},t.prototype.contain=function(n){return OA(this.parse(n),this._extent)},t.prototype.normalize=function(n){return $A(this.parse(n),this._extent)},t.prototype.scale=function(n){return BA(n,this._extent)},t.type="time",t})(v3),nC=[["second",PW],["minute",RW],["hour",Cb],["quarter-day",Cb*6],["half-day",Cb*12],["day",Fc*1.2],["half-week",Fc*3.5],["week",Fc*7],["month",Fc*31],["quarter",Fc*95],["half-year",yoe/2],["year",yoe]];function B0t(e,t,n,r){var o=Wh(t),a=Wh(n),s=function(y){return _oe(o,y,r)===_oe(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")},v=function(){return p()&&s("second")},g=function(){return v()&&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 v();case"millisecond":return g()}}function N0t(e,t){return e/=Fc,e>16?16:e>7.5?7:e>3.5?4:e>1.5?2:1}function F0t(e){var t=30*Fc;return e/=t,e>6?6:e>3?3:e>2?2:1}function j0t(e){return e/=Cb,e>12?12:e>6?6:e>3.5?4:e>2?2:1}function Ise(e,t){return e/=t?RW:PW,e>30?30:e>20?20:e>15?15:e>10?10:e>5?5:e>2?2:1}function V0t(e){return mme(e)}function z0t(e,t,n){var r=new Date(e);switch(vy(t)){case"year":case"month":r[lge(n)](0);case"day":r[uge(n)](1);case"hour":r[cge(n)](0);case"minute":r[dge(n)](0);case"second":r[fge(n)](0),r[hge(n)](0)}return r.getTime()}function U0t(e,t,n,r){var o=1e4,a=sge,s=0;function l(L,B,j,W,H,K,Y){for(var ne=new Date(B),X=B,U=ne[W]();X1&&K===0&&j.unshift({value:j[0].value-X})}}for(var K=0;K=r[0]&&x<=r[1]&&p++)}var E=(r[1]-r[0])/t;if(p>E*1.5&&v>E/1.5||(d.push(k),p>E||e===a[g]))break}h=[]}}}for(var _=ja(Er(d,function(L){return ja(L,function(B){return B.value>=r[0]&&B.value<=r[1]&&!B.notAdd})}),function(L){return L.length>0}),T=[],D=_.length-1,g=0;g<_.length;++g)for(var P=_[g],M=0;M0;)a*=10;var l=[Xs(G0t(r[0]/a)*a),Xs(W0t(r[1]/a)*a)];this._interval=a,this._niceExtent=l}},t.prototype.calcNiceExtent=function(n){Ib.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=dd(n)/dd(this.base),OA(n,this._extent)},t.prototype.normalize=function(n){return n=dd(n)/dd(this.base),$A(n,this._extent)},t.prototype.scale=function(n){return n=BA(n,this._extent),rC(this.base,n)},t.type="log",t})(Of),$1e=JW.prototype;$1e.getMinorTicks=Ib.getMinorTicks;$1e.getLabel=Ib.getLabel;function iC(e,t){return H0t(e,wh(t))}Of.registerClass(JW);var K0t=(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 v=this._determinedMin,g=this._determinedMax;return v!=null&&(l=v,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[Y0t[t]]=n},e.prototype.setDeterminedMinMax=function(t,n){var r=q0t[t];this[r]=n},e.prototype.freeze=function(){this.frozen=!0},e})(),q0t={min:"_determinedMin",max:"_determinedMax"},Y0t={min:"_dataMin",max:"_dataMax"};function X0t(e,t,n){var r=e.rawExtentInfo;return r||(r=new K0t(e,t,n),e.rawExtentInfo=r,r)}function oC(e,t){return t==null?null:X8(t)?NaN:e.parse(t)}function B1e(e,t){var n=e.type,r=X0t(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=D1e("bar",s),c=!1;if(At(l,function(p){c=c||p.getBaseAxis()===t.axis}),c){var d=P1e(l),h=Z0t(o,a,t,d);o=h.min,a=h.max}}return{extent:[o,a],fixMin:r.minFixed,fixMax:r.maxFixed}}function Z0t(e,t,n,r){var o=n.axis.getExtent(),a=Math.abs(o[1]-o[0]),s=P0t(r,n.axis);if(s===void 0)return{min:e,max:t};var l=1/0;At(s,function(g){l=Math.min(g.offset,l)});var c=-1/0;At(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,v=h/p-h;return t+=v*(c/d),e-=v*(l/d),{min:e,max:t}}function Dse(e,t){var n=t,r=B1e(e,n),o=r.extent,a=n.get("splitNumber");e instanceof JW&&(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 J0t(e,t){if(t=t||e.get("type"),t)switch(t){case"category":return new XW({ordinalMeta:e.getOrdinalMeta?e.getOrdinalMeta():e.getCategories(),extent:[1/0,-1/0]});case"time":return new O1e({locale:e.ecModel.getLocaleModel(),useUTC:e.ecModel.get("useUTC")});default:return new(Of.getClass(t)||v3)}}function Q0t(e){var t=e.scale.getExtent(),n=t[0],r=t[1];return!(n>0&&r>0||n<0&&r<0)}function m3(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):Sr(t)?(function(r){return function(o){var a=e.scale.getLabel(o),s=r.replace("{value}",a??"");return s}})(t):ni(t)?(function(r){return function(o,a){return n!=null&&(a=o.value-n),r(QW(e,o),a,o.level!=null?{level:o.level}:null)}})(t):function(r){return e.scale.getLabel(r)}}function QW(e,t){return e.type==="category"?e.scale.getLabel(t):t.value}function evt(e){var t=e.model,n=e.scale;if(!(!t.get(["axisLabel","show"])||n.isBlank())){var r,o,a=n.getExtent();n instanceof XW?o=n.count():(r=n.getTicks(),o=r.length);var s=e.getLabelModel(),l=m3(e),c,d=1;o>40&&(d=Math.ceil(o/40));for(var h=0;h=0||(Pse.push(e),ni(e)&&(e={install:e}),e.install(ivt))}var S_=$s();function F1e(e,t){var n=Er(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 ovt(e){var t=e.getLabelModel().get("customValues");if(t){var n=m3(e),r=e.scale.getExtent(),o=F1e(e,t),a=ja(o,function(s){return s>=r[0]&&s<=r[1]});return{labels:Er(a,function(s){var l={value:s};return{formattedLabel:n(l),rawLabel:e.scale.getLabel(l),tickValue:s}})}}return e.type==="category"?avt(e):uvt(e)}function svt(e,t){var n=e.getTickModel().get("customValues");if(n){var r=e.scale.getExtent(),o=F1e(e,n);return{ticks:ja(o,function(a){return a>=r[0]&&a<=r[1]})}}return e.type==="category"?lvt(e,t):{ticks:Er(e.scale.getTicks(),function(a){return a.value})}}function avt(e){var t=e.getLabelModel(),n=j1e(e,t);return!t.get("show")||e.scale.isBlank()?{labels:[],labelCategoryInterval:n.labelCategoryInterval}:n}function j1e(e,t){var n=V1e(e,"labels"),r=eG(t),o=z1e(n,r);if(o)return o;var a,s;return ni(r)?a=W1e(e,r):(s=r==="auto"?cvt(e):r,a=H1e(e,s)),U1e(n,r,{labels:a,labelCategoryInterval:s})}function lvt(e,t){var n=V1e(e,"ticks"),r=eG(t),o=z1e(n,r);if(o)return o;var a,s;if((!t.get("show")||e.scale.isBlank())&&(a=[]),ni(r))a=W1e(e,r,!0);else if(r==="auto"){var l=j1e(e,e.getLabelModel());s=l.labelCategoryInterval,a=Er(l.labels,function(c){return c.tickValue})}else s=r,a=H1e(e,s,!0);return U1e(n,r,{ticks:a,tickCategoryInterval:s})}function uvt(e){var t=e.scale.getTicks(),n=m3(e);return{labels:Er(t,function(r,o){return{level:r.level,formattedLabel:n(r,o),rawLabel:e.scale.getLabel(r),tickValue:r.value}})}}function V1e(e,t){return S_(e)[t]||(S_(e)[t]=[])}function z1e(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)),v=0,g=0;c<=a[1];c+=l){var y=0,S=0,k=dW(n({value:c}),t.font,"center","top");y=k.width*1.3,S=k.height*1.3,v=Math.max(v,y,7),g=Math.max(g,S,7)}var C=v/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))),_=S_(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 fvt(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 H1e(e,t,n){var r=m3(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=N1e(e),v=s.get("showMinLabel")||p,g=s.get("showMaxLabel")||p;v&&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 W1e(e,t,n){var r=e.scale,o=m3(e),a=[];return At(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 Rse=[0,1],hvt=(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 lut(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(),Mse(r,o.count())),zV(t,Rse,r,n)},e.prototype.coordToData=function(t,n){var r=this._extent,o=this.scale;this.onBand&&o.type==="ordinal"&&(r=r.slice(),Mse(r,o.count()));var a=zV(t,r,Rse,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=svt(this,n),o=r.ticks,a=Er(o,function(l){return{coord:this.dataToCoord(this.scale.type==="ordinal"?this.scale.getRawOrdinalNumber(l):l),tickValue:l}},this),s=n.get("alignWithLabel");return pvt(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=Er(r,function(a){return Er(a,function(s){return{coord:this.dataToCoord(s),tickValue:s}},this)},this);return o},e.prototype.getViewLabels=function(){return ovt(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 dvt(this)},e})();function Mse(e,t){var n=e[1]-e[0],r=t,o=n/r/2;e[0]+=o,e[1]-=o}function pvt(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;At(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];v(t[0].coord,a[0])&&(r?t[0].coord=a[0]:t.shift()),r&&v(a[0],t[0].coord)&&t.unshift({coord:a[0]}),v(a[1],s.coord)&&(r?s.coord=a[1]:t.pop()),r&&v(s.coord,a[1])&&t.push({coord:a[1]});function v(g,y){return g=Xs(g),y=Xs(y),p?g>y:g0){t=t/180*Math.PI,o0.fromArray(e[0]),ys.fromArray(e[1]),Na.fromArray(e[2]),Wr.sub(s0,o0,ys),Wr.sub(cf,Na,ys);var n=s0.len(),r=cf.len();if(!(n<.001||r<.001)){s0.scale(1/n),cf.scale(1/r);var o=s0.dot(cf),a=Math.cos(t);if(a1&&Wr.copy(Vl,Na),Vl.toArray(e[1])}}}}function mvt(e,t,n){if(n<=180&&n>0){n=n/180*Math.PI,o0.fromArray(e[0]),ys.fromArray(e[1]),Na.fromArray(e[2]),Wr.sub(s0,ys,o0),Wr.sub(cf,Na,ys);var r=s0.len(),o=cf.len();if(!(r<.001||o<.001)){s0.scale(1/r),cf.scale(1/o);var a=s0.dot(t),s=Math.cos(n);if(a=c)Wr.copy(Vl,Na);else{Vl.scaleAndAdd(cf,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?Wr.copy(Vl,ys):p>1&&Wr.copy(Vl,Na)}Vl.toArray(e[1])}}}}function pF(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 gvt(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=lN([],r[1],r[0],s/o),c=lN([],r[1],r[2],s/a),d=lN([],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(O*M,0,s);var L=O+D;L<0&&_(-L*M,1)}else _(-D*M,1)}}function E(D,P,M){D!==0&&(d=!0);for(var O=P;O0)for(var L=0;L0;L--){var H=M[L-1]*W;E(-H,L,s)}}}function T(D){var P=D<0?-1:1;D=Math.abs(D);for(var M=Math.ceil(D/(s-1)),O=0;O0?E(M,0,O+1):E(-M,s-O-1,s),D-=M,D<=0)return}return d}function kvt(e,t,n,r){return Svt(e,"y","height",t,n)}function xvt(e){var t=[];e.sort(function(S,k){return k.priority-S.priority});var n=new lo(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}}H.prevElClipPaths&&C.restore()};if(x)if(x.length===0)M=k.__endIndex;else for(var L=g.dpr,B=0;B0&&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?sC:0),this._needsManuallyCompositing),h.__builtin__||rW("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&oc&&!o.__inHover&&(h.__dirty=!0,h.incremental&&h.__drawIndex<0&&(h.__drawIndex=c))}n(c),this.eachBuiltinLayer(function(p,v){!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,At(this._layers,function(n){n.setUnpainted()})},e.prototype.configLayer=function(t,n){if(n){var r=this._layerConfig;r[t]?ao(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})(Md);function tG(e,t){var n=e.mapDimensionsAll("defaultedLabel"),r=n.length;if(r===1){var o=Fy(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 nG=(function(e){Vn(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=jy(n,-1,-1,2,2,null,s);l.attr({z2:100,culling:!0,scaleX:a[0]/2,scaleY:a[1]/2}),l.drift=Ivt,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(){uT(this.childAt(0))},t.prototype.downplay=function(){cT(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 v=this.childAt(0);v.silent=!1;var g={scaleX:c[0]/2,scaleY:c[1]/2};h?v.attr(g):eu(v,g,l,r),EW(v)}if(this._updateCommon(n,r,c,o,a),d){var v=this.childAt(0);if(!h){var g={scaleX:this._sizeX,scaleY:this._sizeY,style:{opacity:v.style.opacity}};v.scaleX=v.scaleY=0,v.style.opacity=0,Wc(v,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,v,g,y,S,k,C;if(a&&(d=a.emphasisItemStyle,h=a.blurItemStyle,p=a.selectItemStyle,v=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(),v=E.get("focus"),g=E.get("blurScope"),y=E.get("disabled"),S=hS(x),k=E.getShallow("scale"),C=x.getShallow("cursor")}var _=n.getItemVisual(r,"symbolRotate");l.attr("rotation",(_||0)*Math.PI/180||0);var T=Zge(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 j0){var M=l.style;l.useStyle(xn({image:M.image,x:M.x,y:M.y,width:M.width,height:M.height},D))}else l.__isEmptyBrush?l.useStyle(xn({},D)):l.useStyle(D),l.style.decal=null,l.setColor(P,s&&s.symbolInnerColor),l.style.strokeNoScale=!0;var O=n.getItemVisual(r,"liftZ"),L=this._z2;O!=null?L==null&&(this._z2=l.z2,l.z2+=O):L!=null&&(l.z2=L,this._z2=null);var B=s&&s.useNameLabel;fS(l,S,{labelFetcher:c,labelDataIndex:r,defaultText:j,inheritColor:P,defaultOpacity:D.opacity});function j(K){return B?n.getName(K):tG(n,K)}this._sizeX=o[0]/2,this._sizeY=o[1]/2;var W=l.ensureState("emphasis");W.style=d,l.ensureState("select").style=p,l.ensureState("blur").style=h;var H=k==null||k===!0?Math.max(1.1,3/this._sizeY):isFinite(k)&&k>0?+k:1;W.scaleX=this._sizeX*H,W.scaleY=this._sizeY*H,this.setSymbolScale(1),h_(this,v,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=Xi(this).dataIndex,l=o&&o.animation;if(this.silent=a.silent=!0,o&&o.fadeLabel){var c=a.getTextContent();c&&hT(c,{style:{opacity:0}},r,{dataIndex:s,removeOpt:l,cb:function(){a.removeTextContent()}})}else a.removeTextContent();hT(a,{style:{opacity:0},scaleX:0,scaleY:0},r,{dataIndex:s,cb:n,removeOpt:l})},t.getSymbolSize=function(n,r){return dpt(n.getItemVisual(r,"symbolSize"))},t})(Za);function Ivt(e,t){this.parent.drift(e,t)}function mF(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 Bse(e){return e!=null&&!Lr(e)&&(e={isIgnore:e}),e||{}}function Nse(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:hS(t),cursorStyle:t.get("cursor")}}var Lvt=(function(){function e(t){this.group=new Za,this._SymbolCtor=t||nG}return e.prototype.updateData=function(t,n){this._progressiveEls=null,n=Bse(n);var r=this.group,o=t.hostModel,a=this._data,s=this._SymbolCtor,l=n.disableAnimation,c=Nse(t),d={disableAnimation:l},h=n.getSymbolPoint||function(p){return t.getItemLayout(p)};a||r.removeAll(),t.diff(a).add(function(p){var v=h(p);if(mF(t,v,p,n)){var g=new s(t,p,c,d);g.setPosition(v),t.setItemGraphicEl(p,g),r.add(g)}}).update(function(p,v){var g=a.getItemGraphicEl(v),y=h(p);if(!mF(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):eu(g,C,o)}r.add(g),t.setItemGraphicEl(p,g)}).remove(function(p){var v=a.getItemGraphicEl(p);v&&v.fadeOut(function(){r.remove(v)},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=Nse(t),this._data=null,this.group.removeAll()},e.prototype.incrementalUpdate=function(t,n,r){this._progressiveEls=[],r=Bse(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 X1e(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 Pvt(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 Rvt(e,t,n,r,o,a,s,l){for(var c=Pvt(e,t),d=[],h=[],p=[],v=[],g=[],y=[],S=[],k=Y1e(o,t,s),C=e.getLayout("points")||[],x=t.getLayout("points")||[],E=0;E=o||S<0)break;if(bm(C,x)){if(c){S+=a;continue}break}if(S===n)e[a>0?"moveTo":"lineTo"](C,x),p=C,v=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||bm(D,P))g=C,y=x;else{L=D-d,B=P-h;var H=C-d,K=D-C,Y=x-h,ne=P-x,X=void 0,U=void 0;if(l==="x"){X=Math.abs(H),U=Math.abs(K);var q=L>0?1:-1;g=C-q*X*s,y=x,j=C+q*U*s,W=x}else if(l==="y"){X=Math.abs(Y),U=Math.abs(ne);var ee=B>0?1:-1;g=C,y=x-ee*X*s,j=C,W=x+ee*U*s}else X=Math.sqrt(H*H+Y*Y),U=Math.sqrt(K*K+ne*ne),O=U/(U+X),g=C-L*s*(1-O),y=x-B*s*(1-O),j=C+L*s*O,W=x+B*s*O,j=Rp(j,Mp(D,C)),W=Rp(W,Mp(P,x)),j=Mp(j,Rp(D,C)),W=Mp(W,Rp(P,x)),L=j-C,B=W-x,g=C-L*X/U,y=x-B*X/U,g=Rp(g,Mp(d,C)),y=Rp(y,Mp(h,x)),g=Mp(g,Rp(d,C)),y=Mp(y,Rp(h,x)),L=C-g,B=x-y,j=C+L*U/X,W=x+B*U/X}e.bezierCurveTo(p,v,g,y,C,x),p=j,v=W}else e.lineTo(C,x)}d=C,h=x,S+=a}return k}var Z1e=(function(){function e(){this.smooth=0,this.smoothConstraint=!0}return e})(),Mvt=(function(e){Vn(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 Z1e},t.prototype.buildPath=function(n,r){var o=r.points,a=0,s=o.length/2;if(r.connectNulls){for(;s>0&&bm(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?Q8(l,g,S,C,n,h):Q8(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})(vo),Ovt=(function(e){Vn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t})(Z1e),$vt=(function(e){Vn(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 Ovt},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&&bm(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 jvt(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=Er(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 v=Fvt(d,o==="x"?n.getWidth():n.getHeight()),g=v.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=v[0].coord-y,k=v[g-1].coord+y,C=k-S;if(C<.001)return"transparent";At(v,function(E){E.offset=(E.coord-S)/C}),v.push({offset:g?v[g-1].offset:.5,color:p[1]||"transparent"}),v.unshift({offset:g?v[0].offset:.5,color:p[0]||"transparent"});var x=new Yme(0,0,0,0,v,!0);return x[o]=S,x[o+"2"]=k,x}}}function Vvt(e,t,n){var r=e.get("showAllSymbol"),o=r==="auto";if(!(r&&!o)){var a=n.getAxesByScale("ordinal")[0];if(a&&!(o&&zvt(a,t))){var s=t.mapDimension(a.dim),l={};return At(a.getViewLabels(),function(c){var d=a.scale.getRawOrdinalNumber(c.tickValue);l[d]=1}),function(c){return!l.hasOwnProperty(t.get(s,c))}}}}function zvt(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 Uvt(e,t){return isNaN(e)||isNaN(t)}function Hvt(e){for(var t=e.length/2;t>0&&Uvt(e[t*2-2],e[t*2-1]);t--);return t-1}function Use(e,t){return[e[t*2],e[t*2+1]]}function Wvt(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 eye(e){if(e.get(["endLabel","show"]))return!0;for(var t=0;t0&&n.get(["emphasis","lineStyle","width"])==="bolder"){var U=y.getState("emphasis").style;U.lineWidth=+y.style.lineWidth+1}Xi(y).seriesIndex=n.seriesIndex,h_(y,Y,ne,X);var q=zse(n.get("smooth")),ee=n.get("smoothMonotone");if(y.setShape({smooth:q,smoothMonotone:ee,connectNulls:P}),S){var re=l.getCalculationInfo("stackedOnSeries"),ae=0;S.useStyle(uo(d.getAreaStyle(),{fill:j,opacity:.7,lineJoin:"bevel",decal:l.getVisual("style").decal})),re&&(ae=zse(re.get("smooth"))),S.setShape({smooth:q,stackedOnSmooth:ae,smoothMonotone:ee,connectNulls:P}),dT(S,n,"areaStyle"),Xi(S).seriesIndex=n.seriesIndex,h_(S,Y,ne,X)}var ie=this._changePolyState;l.eachItemGraphicEl(function(ke){ke&&(ke.onHoverStateChange=ie)}),this._polyline.onHoverStateChange=ie,this._data=l,this._coordSys=a,this._stackedOnPoints=T,this._points=h,this._step=L,this._valueOrigin=E,n.get("triggerLineEvent")&&(this.packEventData(n,y),S&&this.packEventData(n,S))},t.prototype.packEventData=function(n,r){Xi(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=$m(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 v=n.get("zlevel")||0,g=n.get("z")||0;d=new nG(s,l),d.x=h,d.y=p,d.setZ(v,g);var y=d.getSymbolPath().getTextContent();y&&(y.zlevel=v,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 Gc.prototype.highlight.call(this,n,r,o,a)},t.prototype.downplay=function(n,r,o,a){var s=n.getData(),l=$m(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 Gc.prototype.downplay.call(this,n,r,o,a)},t.prototype._changePolyState=function(n){var r=this._polygon;Zie(this._polyline,n),r&&Zie(r,n)},t.prototype._newPolyline=function(n){var r=this._polyline;return r&&this._lineGroup.remove(r),r=new Mvt({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 $vt({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");ni(h)&&(h=h(null));var p=d.get("animationDelay")||0,v=ni(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=ni(p)?p(y):h*P+v,O=S.getSymbolPath(),L=O.getTextContent();S.attr({scaleX:0,scaleY:0}),S.animateTo({scaleX:1,scaleY:1},{duration:200,setToFinal:!0,delay:M}),L&&L.animateFrom({style:{opacity:0}},{duration:300,delay:M}),O.disableLabelAnimation=!0}})},t.prototype._initOrUpdateEndLabel=function(n,r,o){var a=n.getModel("endLabel");if(eye(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=Hvt(c);h>=0&&(fS(l,hS(n,"endLabel"),{inheritColor:o,labelFetcher:n,labelDataIndex:h,defaultText:function(p,v,g){return g!=null?q1e(s,g):tG(s,p)},enableTextSetter:!0},Gvt(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"),v=o.hostModel,g=v.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=Wvt(p,_,P),O=M.range,L=O[1]-O[0],B=void 0;if(L>=1){if(L>1&&!g){var j=Use(p,O[0]);d.attr({x:j[0]+T,y:j[1]+D}),s&&(B=v.getRawValue(O[0]))}else{var j=h.getPointOn(_,P);j&&d.attr({x:j[0]+T,y:j[1]+D});var W=v.getRawValue(O[0]),H=v.getRawValue(O[1]);s&&(B=Aut(o,y,W,H,M.t))}a.lastFrameIndex=O[0]}else{var K=n===1||a.lastFrameIndex>0?O[0]:0,j=Use(p,K);s&&(B=v.getRawValue(K)),d.attr({x:j[0]+T,y:j[1]+D})}if(s){var Y=kA(d);typeof Y.setLabelText=="function"&&Y.setLabelText(B)}}},t.prototype._doUpdateAnimation=function(n,r,o,a,s,l,c){var d=this._polyline,h=this._polygon,p=n.hostModel,v=Rvt(this._data,n,this._stackedOnPoints,r,this._coordSys,o,this._valueOrigin),g=v.current,y=v.stackedOnCurrent,S=v.next,k=v.stackedOnNext;if(s&&(y=Op(v.stackedOnCurrent,v.current,o,s,c),g=Op(v.current,null,o,s,c),k=Op(v.stackedOnNext,v.next,o,s,c),S=Op(v.next,null,o,s,c)),Vse(g,S)>3e3||h&&Vse(y,k)>3e3){d.stopAnimation(),d.setShape({points:S}),h&&(h.stopAnimation(),h.setShape({points:S,stackedOnPoints:k}));return}d.shape.__points=v.current,d.shape.points=g;var C={shape:{points:S}};v.current!==g&&(C.shape.__points=v.next),d.stopAnimation(),eu(d,C,p),h&&(h.setShape({points:g,stackedOnPoints:y}),h.stopAnimation(),eu(h,{shape:{stackedOnPoints:k}},p),d.shape.points!==h.shape.points&&(h.shape.points=d.shape.points));for(var x=[],E=v.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(),v=Math.abs(h[1]-h[0])*(p||1),g=Math.round(l/v);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;Sr(a)?y=Yvt[a]:ni(a)&&(y=a),y&&t.setData(o.downSample(o.mapDimension(d.dim),1/g,y,Xvt))}}}}}function nye(e){e.registerChartView(Kvt),e.registerSeriesModel(Avt),e.registerLayout(qvt("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,tye("line"))}var yz=(function(e){Vn(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 YW(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)At(a.getAxes(),function(v,g){if(v.type==="category"&&r!=null){var y=v.getTicksCoords(),S=v.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]=v.toGlobalCoord(v.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]=v.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})(Md);Md.registerClass(yz);var Zvt=(function(e){Vn(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 YW(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=rge(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),Jvt=(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})(),Hse=(function(e){Vn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="sausage",r}return t.prototype.getDefaultShape=function(){return new Jvt},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,v=r.clockwise,g=Math.PI*2,y=v?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){pT(a,n,Xi(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})(Gc),Wse={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=yF(t.x,e.x),l=bF(t.x+t.width,o),c=yF(t.y,e.y),d=bF(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=bF(t.r,e.r),a=yF(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}},Gse={cartesian2d:function(e,t,n,r,o,a,s,l,c){var d=new Zs({shape:xn({},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?Hse:V0,h=new d({shape:r,z2:1});h.name="item";var p=rye(o);if(h.calculateTextPosition=Qvt(p,{isRoundCap:d===Hse}),a){var v=h.shape,g=o?"r":"endAngle",y={};v[g]=o?r.r0:r.startAngle,y[g]=r[g],(l?eu:Wc)(h,{shape:y},a)}return h}};function rmt(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 Kse(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?eu:Wc)(n,{shape:c},t,o,null);var h=t?e.baseAxis.model:null;(s?eu:Wc)(n,{shape:d},h,o)}function qse(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 smt(e){return e.startAngle!=null&&e.endAngle!=null&&e.startAngle===e.endAngle}function rye(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 Xse(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=B4(r.getModel("itemStyle"),h,!0);xn(h,p),e.setShape(h)}}else{var d=r.get(["itemStyle","borderRadius"])||0;e.setShape("r",d)}e.useStyle(c);var v=r.getShallow("cursor");v&&e.attr("cursor",v);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=hS(r);fS(e,y,{labelFetcher:a,labelDataIndex:n,defaultText:tG(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,emt(e,k==="outside"?g:k,rye(s),r.get(["label","rotate"]))}zdt(S,y,a.getRawValue(n),function(x){return q1e(t,x)});var C=r.getModel(["emphasis"]);h_(e,C.get("focus"),C.get("blurScope"),C.get("disabled")),dT(e,r),smt(o)&&(e.style.fill="none",e.style.stroke="none",At(e.states,function(x){x.style&&(x.style.fill=x.style.stroke="none")}))}function amt(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 lmt=(function(){function e(){}return e})(),Zse=(function(e){Vn(t,e);function t(n){var r=e.call(this,n)||this;return r.type="largeBar",r}return t.prototype.getDefaultShape=function(){return new lmt},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 umt(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 iye(e,t,n){if(rG(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 cmt(e,t,n){var r=e.type==="polar"?V0:Zs;return new r({shape:iye(t,n,e),silent:!0,z2:0})}function oye(e){e.registerChartView(nmt),e.registerSeriesModel(Zvt),e.registerLayout(e.PRIORITY.VISUAL.LAYOUT,Ps(R0t,"bar")),e.registerLayout(e.PRIORITY.VISUAL.PROGRESSIVE_LAYOUT,M0t("bar")),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,tye("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 eae=Math.PI*2,cC=Math.PI/180;function sye(e,t){return By(e.getBoxLayoutParams(),{width:t.getWidth(),height:t.getHeight()})}function aye(e,t){var n=sye(e,t),r=e.get("center"),o=e.get("radius");ir(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,v=e.coordinateSystem;if(v){var g=v.dataToPoint(r);h=g[0]||0,p=g[1]||0}else ir(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 dmt(e,t,n){t.eachSeriesByType(e,function(r){var o=r.getData(),a=o.mapDimension("value"),s=sye(r,n),l=aye(r,n),c=l.cx,d=l.cy,h=l.r,p=l.r0,v=-r.get("startAngle")*cC,g=r.get("endAngle"),y=r.get("padAngle")*cC;g=g==="auto"?v-eae:-g*cC;var S=r.get("minAngle")*cC,k=S+y,C=0;o.each(a,function(ne){!isNaN(ne)&&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,O=[v,g],L=M*y/2;Ame(O,!_),v=O[0],g=O[1];var B=lye(r);B.startAngle=v,B.endAngle=g,B.clockwise=_;var j=Math.abs(g-v),W=j,H=0,K=v;if(o.setLayout({viewRect:s,r:h}),o.each(a,function(ne,X){var U;if(isNaN(ne)){o.setItemLayout(X,{angle:NaN,startAngle:NaN,endAngle:NaN,clockwise:_,cx:c,cy:d,r0:p,r:T?NaN:h});return}T!=="area"?U=x===0&&D?E:ne*E:U=j/C,UU?(ee=K+M*U/2,re=ee):(ee=K+L,re=q-L),o.setItemLayout(X,{angle:U,startAngle:ee,endAngle:re,clockwise:_,cx:c,cy:d,r0:p,r:T?zV(ne,P,[p,h]):h}),K=q}),Wn?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 _F(e){return e.position==="center"}function vmt(e){var t=e.getData(),n=[],r,o,a=!1,s=(e.get("minShowLabelAngle")||0)*hmt,l=t.getLayout("viewRect"),c=t.getLayout("r"),d=l.width,h=l.x,p=l.y,v=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,O=P.getTextContent(),L=P.getTextGuideLine(),B=t.getItemModel(D),j=B.getModel("label"),W=j.get("position")||B.get(["emphasis","label","position"]),H=j.get("distanceToLabelLine"),K=j.get("alignTo"),Y=Jo(j.get("edgeDistance"),d),ne=j.get("bleedMargin"),X=B.getModel("labelLine"),U=X.get("length");U=Jo(U,d);var q=X.get("length2");if(q=Jo(q,d),Math.abs(M.endAngle-M.startAngle)0?"right":"left":re>0?"left":"right"}var Me=Math.PI,He=0,Xe=j.get("rotate");if(Ao(Xe))He=Xe*(Me/180);else if(W==="center")He=0;else if(Xe==="radial"||Xe===!0){var rt=re<0?-ee+Me:-ee;He=rt}else if(Xe==="tangential"&&W!=="outside"&&W!=="outer"){var ft=Math.atan2(re,ae);ft<0&&(ft=Me*2+ft);var lt=ae>0;lt&&(ft=Me+ft),He=ft-Me}if(a=!!He,O.x=ie,O.y=ke,O.rotation=He,O.setStyle({verticalAlign:"middle"}),_e){O.setStyle({align:ge});var Wt=O.states.select;Wt&&(Wt.x+=O.x,Wt.y+=O.y)}else{var Et=O.getBoundingRect().clone();Et.applyTransform(O.getComputedTransform());var St=(O.style.margin||0)+2.1;Et.y-=St/2,Et.height+=St,n.push({label:O,labelLine:L,position:W,len:U,len2:q,minTurnAngle:X.get("minTurnAngle"),maxSurfaceAngle:X.get("maxSurfaceAngle"),surfaceNormal:new Wr(re,ae),linePoints:Fe,textAlign:ge,labelDistance:H,labelAlignTo:K,edgeDistance:Y,bleedMargin:ne,rect:Et,unconstrainedWidth:Et.width,labelStyleWidth:O.style.width})}P.setTextConfig({inside:_e})}}),!a&&e.get("avoidLabelOverlap")&&pmt(n,r,o,c,d,v,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})(Gc);function ymt(e,t,n){t=ir(t)&&{coordDimensions:t}||xn({encodeDefine:e.getEncode()},t);var r=e.getSource(),o=T1e(r,t).dimensions,a=new E1e(o,e);return a.initData(r,n),a}var bmt=(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})(),_mt=$s(),Smt=(function(e){Vn(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 bmt(Mo(this.getData,this),Mo(this.getRawData,this)),this._defaultLabelLine(n)},t.prototype.mergeOption=function(){e.prototype.mergeOption.apply(this,arguments)},t.prototype.getInitialData=function(){return ymt(this,{coordDimensions:["value"],encodeDefaulter:Ps(vft,this)})},t.prototype.getDataParams=function(n){var r=this.getData(),o=_mt(r),a=o.seats;if(!a){var s=[];r.each(r.mapDimension("value"),function(c){s.push(c)}),a=o.seats=uut(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})(Md);function kmt(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!(Ao(s)&&!isNaN(s)&&s<0)})}}}function cye(e){e.registerChartView(gmt),e.registerSeriesModel(Smt),Jht("pie",e.registerAction),e.registerLayout(Ps(dmt,"pie")),e.registerProcessor(fmt("pie")),e.registerProcessor(kmt("pie"))}var xmt=(function(e){Vn(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})(ho),bz=(function(e){Vn(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.getCoordSysModel=function(){return this.getReferringComponents("grid",Td).models[0]},t.type="cartesian2dAxis",t})(ho);Pf(bz,rvt);var dye={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)"]}}},Cmt=ao({boundaryGap:!0,deduplication:null,splitLine:{show:!1},axisTick:{alignWithLabel:!1,interval:"auto"},axisLabel:{interval:"auto"}},dye),iG=ao({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}}},dye),wmt=ao({splitNumber:6,axisLabel:{showMinLabel:!1,showMaxLabel:!1,rich:{primary:{fontWeight:"bold"}}},splitLine:{show:!1}},iG),Emt=uo({logBase:10},iG);const Tmt={category:Cmt,value:iG,time:wmt,log:Emt};var Amt={value:1,category:1,time:1,log:1};function nae(e,t,n,r){At(Amt,function(o,a){var s=ao(ao({},Tmt[a],!0),r,!0),l=(function(c){Vn(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 v=m_(this),g=v?LA(h):{},y=p.getTheme();ao(h,y.get(a+"Axis")),ao(h,this.getDefaultOption()),h.type=rae(h),v&&Ny(h,g,v)},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",rae)}function rae(e){return e.type||(e.data?"category":"value")}var Imt=(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 Er(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 iae(e){return e.type==="interval"||e.type==="time"}var Lmt=(function(e){Vn(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(!(!iae(n)||!iae(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,v=s[0]-o[0]*h,g=s[1]-a[0]*p,y=this._transform=[h,0,0,p,v,g];this._invTransform=lW([],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 lo(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 Hc(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 Hc(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 lo(a,s,l,c)},t})(Imt),Dmt=(function(e){Vn(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})(hvt);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],v={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[v.onZero]=Math.max(Math.min(S,y[1]),y[0])}a.position=[d==="y"?y[v[c]]:p[0],d==="x"?y[v[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[v[l]]-y[v.onZero]:0,t.get(["axisTick","inside"])&&(a.tickDirection=-a.tickDirection),u_(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 oae(e){return e.get("coordinateSystem")==="cartesian2d"}function sae(e){var t={xAxisModel:null,yAxisModel:null};return At(t,function(n,r){var o=r.replace(/Model$/,""),a=e.getReferringComponents(o,Td).models[0];t[r]=a}),t}var SF=Math.log;function Pmt(e,t,n){var r=v3.prototype,o=r.getTicks.call(n),a=r.getTicks.call(n,!0),s=o.length-1,l=r.getInterval.call(n),c=B1e(e,t),d=c.extent,h=c.fixMin,p=c.fixMax;if(e.type==="log"){var v=SF(e.base);d=[SF(d[0])/v,SF(d[1])/v]}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=hF(y),S=d[1]-y*s;else{var C=e.getTicks().length-1;C>s&&(y=hF(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 Rmt=(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 v=+c[p],g=s[v],y=g.model,S=g.scale;mz(S)&&y.get("alignTicks")&&y.get("interval")==null?h.push(g):(Dse(S,y),mz(S)&&(l=g))}h.length&&(l||(l=h.pop(),Dse(l.scale,l.model)),At(h,function(k){Pmt(k.scale,k.model,l.scale)}))}}o(r.x),o(r.y);var a={};At(r.x,function(s){aae(r,"y",s,a)}),At(r.y,function(s){aae(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=By(o,{width:n.getWidth(),height:n.getHeight()});this._rect=s;var l=this._axesList;c(),a&&(At(l,function(d){if(!d.model.get(["axisLabel","inside"])){var h=evt(d);if(h){var p=d.isHorizontal()?"height":"width",v=d.model.get(["axisLabel","margin"]);s[p]-=h[p]+v,d.position==="top"?s.y+=h.height+v:d.position==="left"&&(s.x+=h.width+v)}}}),c()),At(this._coordsList,function(d){d.calcAffineTransform()});function c(){At(l,function(d){var h=d.isHorizontal(),p=h?[0,s.width]:[0,s.height],v=d.inverse?1:0;d.setExtent(p[v],p[1-v]),Mmt(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]}Lr(t)&&(n=t.yAxisIndex,t=t.xAxisIndex);for(var o=0,a=this._coordsList;o0?"top":"bottom",a="center"):oT(o-a0)?(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})(),uae={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&&(Hc(l,l,s),Hc(c,c,s));var h=xn({lineCap:"round"},t.getModel(["axisLine","lineStyle"]).getLineStyle()),p=new I0({shape:{x1:l[0],y1:l[1],x2:c[0],y2:c[1]},style:h,strokeContainThreshold:e.strokeContainThreshold||5,silent:!0,z2:1});p_(p.shape,p.style.lineWidth),p.anid="line",n.add(p);var v=t.get(["axisLine","symbol"]);if(v!=null){var g=t.get(["axisLine","symbolSize"]);Sr(v)&&(v=[v,v]),(Sr(g)||Ao(g))&&(g=[g,g]);var y=Zge(t.get(["axisLine","symbolOffset"])||0,g),S=g[0],k=g[1];At([{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(v[x]!=="none"&&v[x]!=null){var E=jy(v[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=Bmt(n,r,t,e),a=Fmt(n,r,t,e);if($mt(t,a,o),Nmt(n,r,t,e.tickDirection),t.get(["axisLabel","hideOverlap"])){var s=_vt(Er(a,function(l){return{label:l,priority:l.z2,defaultAttr:{ignore:l.ignore}}}));xvt(s)}},axisName:function(e,t,n,r){var o=u_(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,dae(a)?e.labelOffset+s*c:0],v,g=t.get("nameRotate");g!=null&&(g=g*a0/180);var y;dae(a)?v=g0.innerTextLayout(e.rotation,g??e.rotation,s):(v=Omt(e.rotation,a,g||0,d),y=e.axisNameAvailableWidth,y!=null&&(y=Math.abs(y/Math.sin(v.rotation)),!isFinite(y)&&(y=null)));var S=l.getFont(),k=t.get("nameTruncate",!0)||{},C=k.ellipsis,x=u_(e.nameTruncateMaxWidth,k.maxWidth,y),E=new Ja({x:p[0],y:p[1],rotation:v.rotation,silent:g0.isLabelSilent(t),style:L0(l,{text:o,font:S,overflow:"truncate",width:x,ellipsis:C,fill:l.getTextColor()||t.get(["axisLine","lineStyle","color"]),align:l.get("align")||v.textAlign,verticalAlign:l.get("verticalAlign")||v.textVerticalAlign}),z2:1});if(bA({el:E,componentModel:t,itemName:o}),E.__fullText=o,E.anid="name",t.get("triggerEvent")){var _=g0.makeAxisEventDataBase(t);_.targetType="axisName",_.name=o,Xi(E).eventData=_}r.add(E),E.updateTransform(),n.add(E),E.decomposeTransform()}}};function Omt(e,t,n,r){var o=vme(n-e),a,s,l=r[0]>r[1],c=t==="start"&&!l||t!=="start"&&l;return oT(o-a0/2)?(s=c?"bottom":"top",a="center"):oT(o-a0*1.5)?(s=c?"top":"bottom",a="center"):(s="middle",oa0/2?a=c?"left":"right":a=c?"right":"left"),{rotation:o,textAlign:a,textVerticalAlign:s}}function $mt(e,t,n){if(!N1e(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],v=n[n.length-2];r===!1?(Ec(a),Ec(d)):cae(a,s)&&(r?(Ec(s),Ec(h)):(Ec(a),Ec(d))),o===!1?(Ec(l),Ec(p)):cae(c,l)&&(o?(Ec(c),Ec(v)):(Ec(l),Ec(p)))}}function Ec(e){e&&(e.ignore=!0)}function cae(e,t){var n=e&&e.getBoundingRect().clone(),r=t&&t.getBoundingRect().clone();if(!(!n||!r)){var o=sW([]);return aW(o,o,-e.rotation),n.applyTransform(fy([],o,e.getLocalTransform())),r.applyTransform(fy([],o,t.getLocalTransform())),n.intersect(r)}}function dae(e){return e==="middle"||e==="center"}function fye(e,t,n,r,o){for(var a=[],s=[],l=[],c=0;c=0||e===t}function Wmt(e){var t=oG(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=oG(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=Kv(t).pointerEl=new Bdt[a.type](pae(n.pointer));t.add(s)}},e.prototype.createLabelEl=function(t,n,r,o){if(n.label){var a=Kv(t).labelEl=new Ja(pae(n.label));t.add(a),mae(a,o)}},e.prototype.updatePointerEl=function(t,n,r){var o=Kv(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=Kv(t).labelEl;a&&(a.setStyle(n.label.style),r(a,{x:n.label.x,y:n.label.y}),mae(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=IW(a.get("icon"),{cursor:"move",draggable:!0,onmousemove:function(d){Zve(d.event)},onmousedown:CF(this._onHandleDragMove,this,0,0),drift:CF(this._onHandleDragMove,this),ondragend:CF(this._onHandleDragEnd,this)}),r.add(o)),gae(o,n,!1),o.setStyle(a.getItemStyle(null,["color","borderColor","borderWidth","opacity","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY"]));var c=a.get("size");ir(c)||(c=[c,c]),o.scaleX=c[0]/2,o.scaleY=c[1]/2,Uge(this,"_doDispatchAxisPointer",a.get("throttle")||0,"fixRate"),this._moveHandleToValue(t,l)}},e.prototype._moveHandleToValue=function(t,n){vae(this._axisPointerModel,!n&&this._moveAnimation,this._handle,wF(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(wF(r),[t,n],this._axisModel,this._axisPointerModel);this._payloadInfo=o,r.stopAnimation(),r.attr(wF(o)),Kv(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 vae(e,t,n,r){mye(Kv(n).lastProp,r)||(Kv(n).lastProp=r,t?eu(n,r,e):(n.stopAnimation(),n.attr(r)))}function mye(e,t){if(Lr(e)&&Lr(t)){var n=!0;return At(t,function(r,o){n=n&&mye(e[o],r)}),!!n}else return e===t}function mae(e,t){e[t.get(["label","show"])?"show":"hide"]()}function wF(e){return{x:e.x||0,y:e.y||0,rotation:e.rotation||0}}function gae(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 ngt(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 rgt(e,t,n,r,o){var a=n.get("value"),s=gye(a,t.axis,t.ecModel,n.get("seriesDataIndices"),{precision:n.get(["label","precision"]),formatter:n.get(["label","formatter"])}),l=n.getModel("label"),c=IA(l.get("padding")||0),d=l.getFont(),h=dW(s,d),p=o.position,v=h.width+c[1]+c[3],g=h.height+c[0]+c[2],y=o.align;y==="right"&&(p[0]-=v),y==="center"&&(p[0]-=v/2);var S=o.verticalAlign;S==="bottom"&&(p[1]-=g),S==="middle"&&(p[1]-=g/2),igt(p,v,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:L0(l,{text:s,font:d,fill:l.getTextColor(),padding:c,backgroundColor:k}),z2:10}}function igt(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 gye(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:QW(t,{value:e}),axisDimension:t.dim,axisIndex:t.index,seriesData:[]};At(r,function(c){var d=n.getSeriesByIndex(c.seriesIndex),h=c.dataIndexInside,p=d&&d.getDataParams(h);p&&l.seriesData.push(p)}),Sr(s)?a=s.replace("{value}",a):ni(s)&&(a=s(l))}return a}function yye(e,t,n){var r=dy();return aW(r,r,n.rotation),DV(r,r,n.position),AW([e.dataToCoord(t),(n.labelOffset||0)+(n.labelDirection||1)*(n.labelMargin||0)],r)}function ogt(e,t,n,r,o,a){var s=g0.innerTextLayout(n.rotation,0,n.labelDirection);n.labelMargin=o.get(["label","margin"]),rgt(t,r,o,a,{position:yye(r.axis,e,n),align:s.textAlign,verticalAlign:s.textVerticalAlign})}function sgt(e,t,n){return n=n||0,{x1:e[n],y1:e[1-n],x2:t[n],y2:t[1-n]}}function agt(e,t,n){return n=n||0,{x:e[n],y:e[1-n],width:t[n],height:t[1-n]}}var lgt=(function(e){Vn(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=yae(c,l).getOtherAxis(l).getGlobalExtent(),p=l.toGlobalCoord(l.dataToCoord(r,!0));if(d&&d!=="none"){var v=ngt(a),g=ugt[d](l,p,h);g.style=v,n.graphicKey=g.type,n.pointer=g}var y=Sz(c.model,o);ogt(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=yye(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=yae(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 v=(d[1]+d[0])/2,g=[v,v];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})(tgt);function yae(e,t){var n={};return n[t.dim+"AxisIndex"]=t.index,e.getCartesian(n)}var ugt={line:function(e,t,n){var r=sgt([t,n[0]],[t,n[1]],bae(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:agt([t-r/2,n[0]],[r,o],bae(e))}}};function bae(e){return e.dim==="x"?0:1}var cgt=(function(e){Vn(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})(ho),Th=$s(),dgt=At;function bye(e,t,n){if(!zr.node){var r=t.getZr();Th(r).records||(Th(r).records={}),fgt(r,t);var o=Th(r).records[e]||(Th(r).records[e]={});o.handler=n}}function fgt(e,t){if(Th(e).initialized)return;Th(e).initialized=!0,n("click",Ps(_ae,"click")),n("mousemove",Ps(_ae,"mousemove")),n("globalout",pgt);function n(r,o){e.on(r,function(a){var s=vgt(t);dgt(Th(e).records,function(l){l&&o(l,a,s.dispatchAction)}),hgt(s.pendings,t)})}}function hgt(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 pgt(e,t,n){e.handler("leave",null,n)}function _ae(e,t,n,r){t.handler(e,n,r)}function vgt(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(!zr.node){var n=t.getZr(),r=(Th(n).records||{})[e];r&&(Th(n).records[e]=null)}}var mgt=(function(e){Vn(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";bye("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})(Od);function _ye(e,t){var n=[],r=e.seriesIndex,o;if(r==null||!(o=t.getSeriesByIndex(r)))return{point:[]};var a=o.getData(),s=$m(a,e);if(s==null||s<0||ir(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,v=d.dim,g=p==="x"||p==="radius"?1:0,y=a.mapDimension(v),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(Er(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 Sae=$s();function ggt(e,t,n){var r=e.currTrigger,o=[e.x,e.y],a=e,s=e.dispatchAction||Mo(n.dispatchAction,n),l=t.getComponent("axisPointer").coordSysAxesInfo;if(l){cE(o)&&(o=_ye({seriesIndex:a.seriesIndex,dataIndex:a.dataIndex},t).point);var c=cE(o),d=a.axesInfo,h=l.axesInfo,p=r==="leave"||cE(o),v={},g={},y={list:[],map:{}},S={showPointer:Ps(bgt,g),showTooltip:Ps(_gt,y)};At(l.coordSysMap,function(C,x){var E=c||C.containPoint(o);At(l.coordSysAxesInfo[x],function(_,T){var D=_.axis,P=Cgt(d,_);if(!p&&E&&(!d||P)){var M=P&&P.value;M==null&&!c&&(M=D.pointToData(o)),M!=null&&kae(_,M,S,!1,v)}})});var k={};return At(h,function(C,x){var E=C.linkGroup;E&&!g[x]&&At(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,xae(_),xae(C)))),k[C.key]=P}})}),At(k,function(C,x){kae(h[x],C,S,!0,v)}),Sgt(g,h,v),kgt(y,o,e,s),xgt(h,s,n),v}}function kae(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=ygt(t,e),l=s.payloadBatch,c=s.snapToValue;l[0]&&o.seriesIndex==null&&xn(o,l[0]),!r&&e.snap&&a.containData(c)&&c!=null&&(t=c),n.showPointer(e,t,l),n.showTooltip(e,s,c)}}function ygt(e,t){var n=t.axis,r=n.dim,o=e,a=[],s=Number.MAX_VALUE,l=-1;return At(t.seriesModels,function(c,d){var h=c.getData().mapDimensionsAll(r),p,v;if(c.getAxisTooltipData){var g=c.getAxisTooltipData(h,e,n);v=g.dataIndices,p=g.nestestValue}else{if(v=c.getData().indicesOfNearest(h[0],e,n.type==="category"?.5:null),!v.length)return;p=c.getData().get(h[0],v[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),At(v,function(k){a.push({seriesIndex:c.seriesIndex,dataIndexInside:k,dataIndex:c.getData().getRawIndex(k)})}))}}),{payloadBatch:a,snapToValue:o}}function bgt(e,t,n,r){e[t.key]={value:n,payloadBatch:r}}function _gt(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=k_(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 Sgt(e,t,n){var r=n.axesInfo=[];At(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 kgt(e,t,n,r){if(cE(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 xgt(e,t,n){var r=n.getZr(),o="axisPointerLastHighlights",a=Sae(r)[o]||{},s=Sae(r)[o]={};At(e,function(d,h){var p=d.axisPointerModel.option;p.status==="show"&&d.triggerEmphasis&&At(p.seriesDataIndices,function(v){var g=v.seriesIndex+" | "+v.dataIndex;s[g]=v})});var l=[],c=[];At(a,function(d,h){!s[h]&&c.push(d)}),At(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 Cgt(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 xae(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 cE(e){return!e||e[0]==null||isNaN(e[0])||e[1]==null||isNaN(e[1])}function Sye(e){hye.registerAxisPointerClass("CartesianAxisPointer",lgt),e.registerComponentModel(cgt),e.registerComponentView(mgt),e.registerPreprocessor(function(t){if(t){(!t.axisPointer||t.axisPointer.length===0)&&(t.axisPointer={});var n=t.axisPointer.link;n&&!ir(n)&&(t.axisPointer.link=[n])}}),e.registerProcessor(e.PRIORITY.PROCESSOR.STATISTIC,function(t,n){t.getComponent("axisPointer").coordSysAxesInfo=jmt(t,n)}),e.registerAction({type:"updateAxisPointer",event:"updateAxisPointer",update:":updateAxisPointer"},ggt)}function kye(e){Gh(egt),Gh(Sye)}function wgt(e,t){var n=IA(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 Egt=(function(e){Vn(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})(ho);function xye(e){var t=e.get("confine");return t!=null?!!t:e.get("renderMode")==="richText"}function Cye(e){if(zr.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,v=p*Math.abs(Math.cos(h))+p*Math.abs(Math.sin(h)),g=Math.round(((v-Math.SQRT2*o)/2+Math.SQRT2*o-(v-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 Rgt(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+=zr.transformSupported?","+sG+r:",left"+r+",top"+r),Igt+":"+o}function Cae(e,t,n){var r=e.toFixed(0)+"px",o=t.toFixed(0)+"px";if(!zr.transformSupported)return n?"top:"+o+";left:"+r+";":[["top",o],["left",r]];var a=zr.transform3dSupported,s="translate"+(a?"3d":"")+"("+r+","+o+(a?",0":"")+")";return n?"top:0;left:0;"+sG+":"+s+";":[["top",0],["left",0],[wye,s]]}function Mgt(e){var t=[],n=e.get("fontSize"),r=e.getTextColor();r&&t.push("color:"+r),t.push("font:"+e.getFont());var o=mi(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),At(["decoration","align"],function(d){var h=e.get(d);h&&t.push("text-"+d+":"+h)}),t.join(";")}function Ogt(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=Vge(e,"html"),v=c+"px "+d+"px "+s+"px "+l;return r.push("box-shadow:"+v),t&&o&&r.push(Rgt(o,n)),a&&r.push("background-color:"+a),At(["width","color","radius"],function(g){var y="border-"+g,S=vge(y),k=e.get(S);k!=null&&r.push(y+":"+k+(g==="color"?"":"px"))}),r.push(Mgt(h)),p!=null&&r.push("padding:"+IA(p).join("px ")+"px"),r.join(";")+";"}function wae(e,t,n,r,o){var a=t&&t.painter;if(n){var s=a&&a.getViewportRoot();s&&tlt(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 $gt=(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,zr.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&&(Sr(a)?document.querySelector(a):l_(a)?a:ni(a)&&a(t.getDom()));wae(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();Lc(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=Agt(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=Lgt+Ogt(t,!this._firstShow,this._longHide)+Cae(a[0],a[1],!0)+("border-color:"+Nm(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(Sr(a)&&r.get("trigger")==="item"&&!xye(r)&&(l=Pgt(r,o,a)),Sr(t))s.innerHTML=t+l;else if(t){s.innerHTML="",ir(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||zr.node||!o.getDom())){var s=Aae(a,o);this._ticket="";var l=a.dataByCoordSys,c=Ugt(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=Ngt;h.x=a.x,h.y=a.y,h.update(),Xi(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=_ye(a,r),v=p.point[0],g=p.point[1];v!=null&&g!=null&&this._tryShow({offsetX:v,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(Aae(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=h4([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=Xi(o);if(l.ssrType==="legend")return;this._lastDataByCoordSys=null;var c,d;$4(o,function(h){if(Xi(h).dataIndex!=null)return c=h,!0;if(Xi(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=Mo(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=h4([r.tooltipOption],a),c=this._renderMode,d=[],h=y_("section",{blocks:[],noHeader:!0}),p=[],v=new tF;At(n,function(x){At(x.dataByAxis,function(E){var _=o.getComponent(E.axisDim+"Axis",E.axisIndex),T=E.value;if(!(!_||T==null)){var D=gye(T,_.axis,o,E.seriesDataIndices,E.valueLabelOpt),P=y_("section",{header:D,noHeader:!hf(D),sortBlocks:!0,blocks:[]});h.blocks.push(P),At(E.seriesDataIndices,function(M){var O=o.getSeriesByIndex(M.seriesIndex),L=M.dataIndexInside,B=O.getDataParams(L);if(!(B.dataIndex<0)){B.axisDim=E.axisDim,B.axisIndex=E.axisIndex,B.axisType=E.axisType,B.axisId=E.axisId,B.axisValue=QW(_.axis,{value:T}),B.axisValueLabel=D,B.marker=v.makeTooltipMarker("item",Nm(B.color),c);var j=joe(O.formatTooltip(L,!0,null)),W=j.frag;if(W){var H=h4([O],a).get("valueFormatter");P.blocks.push(H?xn({valueFormatter:H},W):W)}j.text&&p.push(j.text),d.push(B)}})}})}),h.blocks.reverse(),p.reverse();var g=r.position,y=l.get("order"),S=Woe(h,v,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,v)})},t.prototype._showSeriesItemTooltip=function(n,r,o){var a=this._ecModel,s=Xi(r),l=s.seriesIndex,c=a.getSeriesByIndex(l),d=s.dataModel||c,h=s.dataIndex,p=s.dataType,v=d.getData(p),g=this._renderMode,y=n.positionDefault,S=h4([v.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 tF;C.marker=x.makeTooltipMarker("item",Nm(C.color),g);var E=joe(d.formatTooltip(h,!1,p)),_=S.get("order"),T=S.get("valueFormatter"),D=E.frag,P=D?Woe(T?xn({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:v.getRawIndex(h),seriesIndex:l,from:this.uid})}},t.prototype._showComponentItemTooltip=function(n,r,o){var a=this._renderMode==="html",s=Xi(r),l=s.tooltipConfig,c=l.option||{},d=c.encodeHTMLContent;if(Sr(c)){var h=c;c={content:h,formatter:h},d=!0}d&&a&&c.content&&(c=zi(c),c.content=yu(c.content));var p=[c],v=this._ecModel.getComponent(s.componentMainType,s.componentIndex);v&&p.push(v),p.push({formatter:c.content});var g=n.positionDefault,y=h4(p,this._tooltipModel,g?{position:g}:null),S=y.get("content"),k=Math.random()+"",C=new tF;this._showOrMove(y,function(){var x=zi(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 v=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(v)if(Sr(v)){var k=n.ecModel.get("useUTC"),C=ir(o)?o[0]:o,x=C&&C.axisType&&C.axisType.indexOf("time")>=0;g=v,x&&(g=CA(C.axisValue,g,k)),g=mge(g,o,!0)}else if(ni(v)){var E=Mo(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=v(o,a,E)}else g=v;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"||ir(r))return{color:a||(this._renderMode==="html"?"#fff":"none")};if(!ir(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(),v=n.get("align"),g=n.get("verticalAlign"),y=c&&c.getBoundingRect().clone();if(c&&y.applyTransform(c.transform),ni(r)&&(r=r([o,a],l,s.el,y,{viewSize:[d,h],contentSize:p.slice()})),ir(r))o=Jo(r[0],d),a=Jo(r[1],h);else if(Lr(r)){var S=r;S.width=p[0],S.height=p[1];var k=By(S,{width:d,height:h});o=k.x,a=k.y,v=null,g=null}else if(Sr(r)&&c){var C=zgt(r,y,p,n.get("borderWidth"));o=C[0],a=C[1]}else{var C=jgt(o,a,s,d,h,v?null:20,g?null:20);o=C[0],a=C[1]}if(v&&(o-=Iae(v)?p[0]/2:v==="right"?p[0]:0),g&&(a-=Iae(g)?p[1]/2:g==="bottom"?p[1]:0),xye(n)){var C=Vgt(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&&At(o,function(l,c){var d=l.dataByAxis||[],h=n[c]||{},p=h.dataByAxis||[];s=s&&d.length===p.length,s&&At(d,function(v,g){var y=p[g]||{},S=v.seriesDataIndices||[],k=y.seriesDataIndices||[];s=s&&v.value===y.value&&v.axisType===y.axisType&&v.axisId===y.axisId&&S.length===k.length,s&&At(S,function(C,x){var E=k[x];s=s&&C.seriesIndex===E.seriesIndex&&C.dataIndex===E.dataIndex}),a&&At(v.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){zr.node||!r.getDom()||(sz(this,"_updatePosition"),this._tooltipContent.dispose(),Cz("itemTooltip",r))},t.type="tooltip",t})(Od);function h4(e,t,n){var r=t.ecModel,o;n?(o=new xs(n,r,r),o=new xs(t.option,o,r)):o=t;for(var a=e.length-1;a>=0;a--){var s=e[a];s&&(s instanceof xs&&(s=s.get("tooltip",!0)),Sr(s)&&(s={formatter:s}),s&&(o=new xs(s,o,r)))}return o}function Aae(e,t){return e.dispatchAction||Mo(t.dispatchAction,t)}function jgt(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 Vgt(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 zgt(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 Iae(e){return e==="center"||e==="middle"}function Ugt(e,t,n){var r=vW(e).queryOptionMap,o=r.keys()[0];if(!(!o||o==="series")){var a=uS(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=Xi(d).tooltipConfig;if(h&&h.name===e.name)return c=d,!0}),c)return{componentMainType:o,componentIndex:s.componentIndex,el:c}}}}function Tye(e){Gh(Sye),e.registerComponentModel(Egt),e.registerComponentView(Fgt),e.registerAction({type:"showTip",event:"showTip",update:"tooltip:manuallyShowTip"},Tu),e.registerAction({type:"hideTip",event:"hideTip",update:"tooltip:manuallyHideTip"},Tu)}var Hgt=(function(e){Vn(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})(ho),Wgt=(function(e){Vn(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=mi(n.get("textBaseline"),n.get("textVerticalAlign")),h=new Ja({style:L0(s,{text:n.get("text"),fill:s.getTextColor()},{disableBox:!0}),z2:10}),p=h.getBoundingRect(),v=n.get("subtext"),g=new Ja({style:L0(l,{text:v,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(){koe(y,"_"+n.get("target"))}),S&&g.on("click",function(){koe(S,"_"+n.get("subtarget"))}),Xi(h).eventData=Xi(g).eventData=k?{componentType:"title",componentIndex:n.componentIndex}:null,a.add(h),v&&a.add(g);var C=a.getBoundingRect(),x=n.getBoxLayoutParams();x.width=C.width,x.height=C.height;var E=By(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})(Od);function Aye(e){e.registerComponentModel(Hgt),e.registerComponentView(Wgt)}var Ggt=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){Vn(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"]),ir(r)&&At(r,function(a,s){Sr(a)&&(a={type:a}),r[s]=ao(a,Ggt(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})(ho),x1=Ps,Ez=At,dC=Za,Iye=(function(e){Vn(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 dC),this.group.add(this._selectorGroup=new dC),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()},v=n.get("padding"),g=By(h,p,v),y=this.layoutInner(n,s,g,a,c,d),S=By(uo({width:y.width,height:y.height},h),p,v);this.group.x=S.x-y.x,this.group.y=S.y-y.y,this.group.markRedraw(),this.group.add(this._backgroundEl=wgt(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=xi(),p=r.get("selectedMode"),v=[];o.eachRawSeries(function(g){!g.get("legendHoverLink")&&v.push(g.id)}),Ez(r.getData(),function(g,y){var S=g.get("name");if(!this.newlineDisabled&&(S===""||S===` `)){var k=new dC;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",x1(Lae,S,null,a,v)).on("mouseover",x1(Tz,C.name,null,a,v)).on("mouseout",x1(Az,C.name,null,a,v)),o.ssr&&D.eachChild(function(P){var M=Xi(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 O=M.indexOfName(S),L=M.getItemVisual(O,"style"),B=M.getItemVisual(O,"legendIcon"),j=Rh(L.fill);j&&j[3]===0&&(j[3]=.2,L=xn(xn({},L),{fill:uA(j,"rgba")}));var W=this._createItem(P,S,y,g,r,n,{},L,B,p,a);W.on("click",x1(Lae,null,S,a,v)).on("mouseover",x1(Tz,null,S,a,v)).on("mouseout",x1(Az,null,S,a,v)),o.ssr&&W.eachChild(function(H){var K=Xi(H);K.seriesIndex=P.seriesIndex,K.dataIndex=y,K.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 v=r.getModel("selectorLabel"),g=r.getModel(["emphasis","selectorLabel"]);fS(p,{normal:v,emphasis:g},{defaultText:d.title}),YV(p)})},t.prototype._createItem=function(n,r,o,a,s,l,c,d,h,p,v){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 _=Kgt(h,a,c,d,g,k,v),T=new dC,D=a.getModel("textStyle");if(ni(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(qgt({itemWidth:y,itemHeight:S,icon:h,iconRotate:P,itemStyle:_.itemStyle,symbolKeepAspect:x}))}var M=l==="left"?y+5:-5,O=l,L=s.get("formatter"),B=r;Sr(L)&&L?B=L.replace("{name}",r??""):ni(L)&&(B=L(r));var j=k?D.getTextColor():a.get("inactiveColor");T.add(new Ja({style:L0(D,{text:B,x:M,y:S/2,fill:j,align:O,verticalAlign:"middle"},{inheritColor:j})}));var W=new Zs({shape:T.getBoundingRect(),style:{fill:"transparent"}}),H=a.getModel("tooltip");return H.get("show")&&bA({el:W,componentModel:s,itemName:r,itemTooltipOption:H.option}),T.add(W),T.eachChild(function(K){K.silent=!0}),W.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();wb(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){wb("horizontal",d,n.get("selectorItemGap",!0));var v=d.getBoundingRect(),g=[-v.x,-v.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]+=v[k]+y,g[1-S]+=h[C]/2-v[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+v[k],E[C]=Math.max(h[C],v[C]),E[x]=Math.min(0,v[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})(Od);function Kgt(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 v=t.getModel("lineStyle"),g=v.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=v.get("inactiveColor"),g.lineWidth=v.get("inactiveWidth")}return{itemStyle:d,lineStyle:g}}function qgt(e){var t=e.icon||"roundRect",n=jy(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 Lae(e,t,n,r){Az(e,t,n,r),n.dispatchAction({type:"legendToggleSelect",name:e??t}),Tz(e,t,n,r)}function Lye(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=mi(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),v.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 v.eachChild(function(M){M.attr({invisible:!0,silent:!0})});var P=this._getPageInfo(n);return P.pageIndex!=null&&eu(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;At(["pagePrev","pageNext"],function(h){var p=h+"DataIndex",v=r[p]!=null,g=o.childOfName(h);g&&(g.setStyle("fill",v?n.get("pageIconColor",!0):n.get("pageIconInactiveColor",!0)),g.cursor=v?"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",Sr(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=EF[s],c=TF[s],d=this._findTargetItemIndex(r),h=o.children(),p=h[d],v=h.length,g=v?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<=v;++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})(Iye);function Qgt(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 e1t(e){Gh(Dye),e.registerComponentModel(Zgt),e.registerComponentView(Jgt),Qgt(e)}function Pye(e){Gh(Dye),Gh(e1t)}const t1t=["getWidth","getHeight","getDom","getOption","resize","dispatchAction","convertToPixel","convertFromPixel","containPixel","getDataURL","getConnectedDataURL","appendData","clear","isDisposed","dispose"];function n1t(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 t1t.forEach(o=>{r[o]=t(o)}),r}return n()}function r1t(e,t,n){Rt([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:v=100,onResize:g}=p;let y=!1;const S=()=>{o.resize(),g?.()},k=v?RA(S,v):S;c=new ResizeObserver(()=>{!y&&(y=!0,r.offsetWidth===d&&r.offsetHeight===h)||k()}),c.observe(r)}l(()=>{c&&(c.disconnect(),c=null)})})}const i1t={autoresize:[Boolean,Object]},o1t=/^on[^a-z]/,Rye=e=>o1t.test(e);function s1t(e){const t={};for(const n in e)Rye(n)||(t[n]=e[n]);return t}function dE(e,t){const n=Bo(e)?et(e):e;return n&&typeof n=="object"&&"value"in n?n.value||t:n||t}const a1t="ecLoadingOptions";function l1t(e,t,n){const r=On(a1t,{}),o=F(()=>({...dE(r,{}),...n?.value}));Os(()=>{const a=e.value;a&&(t.value?a.showLoading(o.value):a.hideLoading())})}const u1t={loading:Boolean,loadingOptions:Object};let v4=null;const Mye="x-vue-echarts";function c1t(){if(v4!=null)return v4;if(typeof HTMLElement>"u"||typeof customElements>"u")return v4=!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);")(Mye)}catch{return v4=!1}return v4=!0}document.head.appendChild(document.createElement("style")).textContent=`x-vue-echarts{display:block;width:100%;height:100%;min-width:0} `;const d1t=c1t(),f1t="ecTheme",h1t="ecInitOptions",p1t="ecUpdateOptions",Mae=/(^&?~?!?)native:/;var Oye=Se({name:"echarts",props:{option:Object,theme:{type:[Object,String]},initOptions:Object,updateOptions:Object,group:String,manualUpdate:Boolean,...i1t,...u1t},emits:{},inheritAttrs:!1,setup(e,{attrs:t}){const n=d0(),r=d0(),o=d0(),a=On(f1t,null),s=On(h1t,null),l=On(p1t,null),{autoresize:c,manualUpdate:d,loading:h,loadingOptions:p}=nn(e),v=F(()=>o.value||e.option||null),g=F(()=>e.theme||dE(a,{})),y=F(()=>e.initOptions||dE(s,{})),S=F(()=>e.updateOptions||dE(l,{})),k=F(()=>s1t(t)),C={},x=_o().proxy.$listeners,E={};x?Object.keys(x).forEach(O=>{Mae.test(O)?C[O.replace(Mae,"$1")]=x[O]:E[O]=x[O]}):Object.keys(t).filter(O=>Rye(O)).forEach(O=>{let L=O.charAt(2).toLowerCase()+O.slice(3);if(L.indexOf("native:")===0){const B=`on${L.charAt(7).toUpperCase()}${L.slice(8)}`;C[B]=t[O];return}L.substring(L.length-4)==="Once"&&(L=`~${L.substring(0,L.length-4)}`),E[L]=t[O]});function _(O){if(!n.value)return;const L=r.value=Gpt(n.value,g.value,y.value);e.group&&(L.group=e.group),Object.keys(E).forEach(W=>{let H=E[W];if(!H)return;let K=W.toLowerCase();K.charAt(0)==="~"&&(K=K.substring(1),H.__once__=!0);let Y=L;if(K.indexOf("zr:")===0&&(Y=L.getZr(),K=K.substring(3)),H.__once__){delete H.__once__;const ne=H;H=(...X)=>{ne(...X),Y.off(K,H)}}Y.on(K,H)});function B(){L&&!L.isDisposed()&&L.resize()}function j(){const W=O||v.value;W&&L.setOption(W,S.value)}c.value?Cn(()=>{B(),j()}):j()}function T(O,L){e.manualUpdate&&(o.value=O),r.value?r.value.setOption(O,L||{}):_(O)}function D(){r.value&&(r.value.dispose(),r.value=void 0)}let P=null;Rt(d,O=>{typeof P=="function"&&(P(),P=null),O||(P=Rt(()=>e.option,(L,B)=>{L&&(r.value?r.value.setOption(L,{notMerge:L!==B,...S.value}):_())},{deep:!0}))},{immediate:!0}),Rt([g,y],()=>{D(),_()},{deep:!0}),Os(()=>{e.group&&r.value&&(r.value.group=e.group)});const M=n1t(r);return l1t(r,h,p),r1t(r,c,n),bn(()=>{_()}),Io(()=>{d1t&&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(Mye,e)}});const Cu={WATCH_HISTORY:"drplayer_watch_history",DAILY_STATS:"drplayer_daily_stats"},$ye=()=>new Date().toISOString().split("T")[0],v1t=()=>{const e=new Date;return e.setDate(e.getDate()-1),e.toISOString().split("T")[0]},m1t=()=>{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},Ef=(e,t={})=>{try{const n=localStorage.getItem(e);return n?JSON.parse(n):t}catch(n){return console.error("获取存储数据失败:",n),t}},wT=(e,t)=>{try{localStorage.setItem(e,JSON.stringify(t))}catch(n){console.error("保存存储数据失败:",n)}},Bye=e=>{const t=$ye(),n=new Date().toISOString(),r=Ef(Cu.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),wT(Cu.WATCH_HISTORY,r),aG(t),o},aG=e=>{const t=Ef(Cu.DAILY_STATS,{}),n=Ef(Cu.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()},wT(Cu.DAILY_STATS,t)},Nye=()=>{const e=$ye(),t=Ef(Cu.DAILY_STATS,{});return t[e]?t[e]:(aG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},Fye=()=>{const e=v1t(),t=Ef(Cu.DAILY_STATS,{});return t[e]?t[e]:(aG(e),t[e]||{date:e,watchCount:0,totalWatchTime:0})},g1t=()=>{const e=m1t(),t=Ef(Cu.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}})},y1t=()=>{const e=Nye(),t=Fye();if(t.watchCount===0)return e.watchCount>0?100:0;const n=(e.watchCount-t.watchCount)/t.watchCount*100;return Math.round(n)},b1t=(e=50)=>Ef(Cu.WATCH_HISTORY,[]).sort((n,r)=>new Date(r.timestamp)-new Date(n.timestamp)).slice(0,e),_1t=(e=10)=>{const t=Ef(Cu.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)},S1t=(e=30)=>{const t=new Date;t.setDate(t.getDate()-e);const n=t.toISOString().split("T")[0],o=Ef(Cu.WATCH_HISTORY,[]).filter(l=>l.date>=n);wT(Cu.WATCH_HISTORY,o);const a=Ef(Cu.DAILY_STATS,{}),s={};Object.keys(a).forEach(l=>{l>=n&&(s[l]=a[l])}),wT(Cu.DAILY_STATS,s),console.log(`清理了 ${e} 天前的数据`)},k1t=()=>{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:"🎉"}}),Vye=()=>({critical:{label:"紧急",color:"#f53f3f",priority:4},major:{label:"重要",color:"#ff7d00",priority:3},minor:{label:"一般",color:"#165dff",priority:2},trivial:{label:"轻微",color:"#86909c",priority:1}}),x1t=()=>Nc.sort((e,t)=>new Date(t.date)-new Date(e.date)),C1t=e=>Nc.filter(t=>t.type===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),w1t=e=>Nc.filter(t=>t.importance===e).sort((t,n)=>new Date(n.date)-new Date(t.date)),E1t=(e=5)=>Nc.sort((t,n)=>new Date(n.date)-new Date(t.date)).slice(0,e),T1t=(e,t)=>{const n=new Date(e),r=new Date(t);return Nc.filter(o=>{const a=new Date(o.date);return a>=n&&a<=r}).sort((o,a)=>new Date(a.date)-new Date(o.date))},A1t=e=>{const t=e.toLowerCase();return Nc.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))},I1t=()=>{const e=jye(),t=Vye(),n={};Object.keys(e).forEach(a=>{n[a]=Nc.filter(s=>s.type===a).length});const r={};Object.keys(t).forEach(a=>{r[a]=Nc.filter(s=>s.importance===a).length});const o={};return Nc.forEach(a=>{const s=a.date.substring(0,7);o[s]=(o[s]||0)+1}),{total:Nc.length,byType:n,byImportance:r,byMonth:o,latestVersion:Nc[0]?.version||"v1.0.0",latestDate:Nc[0]?.date||new Date().toISOString().split("T")[0]}},L1t=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"})},D1t=(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(aRi,R1t=e=>Ri[e]||[],M1t=(e=12)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),O1t=(e=8)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(n=>n.trending).sort((n,r)=>r.hotScore-n.hotScore).slice(0,e),$1t=(e,t=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.category===e).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),B1t=(e,t=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].filter(r=>r.tags.includes(e)).sort((r,o)=>o.hotScore-r.hotScore).slice(0,t),N1t=e=>{const t=e.toLowerCase();return[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.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)},F1t=()=>NA.sort((e,t)=>t.count-e.count),j1t=(e=10)=>NA.sort((t,n)=>n.count-t.count).slice(0,e),V1t=(e=5)=>NA.filter(t=>t.trend==="up").sort((t,n)=>n.count-t.count).slice(0,e),z1t=(e=[],t=8)=>{const n=U1t();return[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.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)},U1t=e=>({types:{电视剧:3,动漫:2,电影:2,小说:1},categories:{科幻:3,悬疑:2,热血:2,剧情:1},tags:{国产:2,日本:1,热血:2,科幻:3}}),H1t=()=>{const e=[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels],t={};Object.keys(Ri).forEach(a=>{t[a]=Ri[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:NA.length}},W1t=(e=6)=>[...Ri.movies,...Ri.tvShows,...Ri.anime,...Ri.novels].sort(()=>.5-Math.random()).slice(0,e),g4={getAllRecommendations:P1t,getRecommendationsByType:R1t,getHotRecommendations:M1t,getTrendingRecommendations:O1t,getRecommendationsByCategory:$1t,getRecommendationsByTag:B1t,searchRecommendations:N1t,getAllKeywords:F1t,getHotKeywords:j1t,getTrendingUpKeywords:V1t,getPersonalizedRecommendations:z1t,getRecommendationStats:H1t,getRandomRecommendations:W1t},FA=tg("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||{}}}),G1t="识别动作的路由ID或专项动作指令,必须。字符型。",K1t="动作的类型。input(单项输入)/edit(单项多行编辑)/multiInput(少于5个的多项输入)/multiInputX(增强的多项输入)/menu(单项选择)/select(多项选择)/msgbox(消息弹窗)等。字符型。",q1t="弹出窗口是否允许触摸窗口外时取消窗口。逻辑型。",Y1t="标题。字符型。",X1t="宽度。整型。",Z1t="高度。整型。",J1t="文本消息内容。字符型。",Q1t="msgbox类动作的简单html消息内容。字符型。",eyt="input、multiInput、multiInputX类动作的帮助说明内容,在窗口右上角显示帮助图标,点击显示帮助说明,可支持简易的HTML内容。支持的HTML标签,b(加粗)、i(斜体)、u(下划线)、strike(删除线)、em(强调)、strong(加强强调)、p(段落)、div(分区)、br(换行)、font(颜色/大小/字体)、h1~h6(标题层级)、small(小号字体)、tt(打字机字体)、blockquote(引用块)。",tyt="按键的数量。0-无按键,1-取消,2-确定/取消, 3-确定/取消/重置。整型。",nyt="图片URL。字符型。",ryt="图片高度。整型。",iyt="是否检测图片的点击坐标输入。逻辑型。",oyt="生成二维码的URL。字符型。",syt="二维码的大小。整型。",ayt="超时时间(秒)。超时自动关闭窗口。整型。",lyt="T4源的动作网络访问超时时间(秒)。",uyt="输入确认后,窗口是否保持。逻辑型。",cyt="窗口弹出时自动发送的初始化动作指令。字符型。",dyt="窗口弹出时自动发送的初始化指令值。字符型。",fyt="按窗口的取消键时发送的取消动作指令。字符型。",hyt="按窗口的取消键时发送的取消动作指令值。字符型。",pyt="单项输入的输入提示,单项输入时必须。字符型。",vyt="单项输入的初始化值。字符型。",myt="单项输入的预定义选项,用于常见值的快速选择输入。各选项间用“,”分隔,选项值可使用“名称:=值”方式。字符型。",gyt=`多项输入的项目定义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。`,yyt="设置窗口背景暗化效果,用于调整背景的暗化程度(透明度)。其值范围为0.0到1.0。",byt="底部对齐和底边距。整型。",_yt="单项选择或多项选择窗口的列数。整型。",Syt=`单项选择或多项选择的选项定义JSON数组。每个选项使用一个JSON对象进行定义。 [#name]:选项名称。 [#action]:选项动作值。 [#selected]:选项默认是否已选。多项选择是可用。`,kyt=`源内搜索。 [#skey]:目标源key,可选,未设置或为空则使用当前源。 [#name]:搜索分类名称。 [#tid]:使用分类ID传递的搜索值。 [#flag]:列表视图参数。 [#folder]:多个分类切换搜索的配置,设置此项则忽略name、tid和flag。folder可多项合并设置为一个字符,各项间使用“#”分隔,每项中的name、tid和flag使用“$”分隔。floder也可使用JSON数组,每项分别设置name、tid和flag。`,xyt=`跳转到指定站源解析详情页播放。 [#skey]:目标源key。 [#ids]:传递给详情页的视频ids。`,Cyt=`跳转到KTV播放器播放指定链接。 [#name]:歌名。 [#id]:歌曲的直链。`,wyt="刷新当前分类的列表。无其它参数。",Eyt="把返回的内容复制到剪贴板。content:复制的内容",Tyt=`保持窗口不关闭。 [#msg]:更新窗口里的文本消息内容。 [#reset]:窗口中的输入项目内容是否清空。`,Ayt={使用帮助:`本帮助。长按则分项选择查看。 系统多数功能按键和选项,短按和长按有不同的功能。 [#影图根目录]:安全起见,影图的根目录为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:G1t,type:K1t,canceledOnTouchOutside:q1t,title:Y1t,width:X1t,height:Z1t,msg:J1t,htmlMsg:Q1t,help:eyt,button:tyt,imageUrl:nyt,imageHeight:ryt,imageClickCoord:iyt,qrcode:oyt,qrcodeSize:syt,timeout:ayt,httpTimeout:lyt,keep:uyt,initAction:cyt,initValue:dyt,cancelAction:fyt,cancelValue:hyt,tip:pyt,value:vyt,selectData:myt,input:gyt,dimAmount:yyt,bottom:byt,column:_yt,option:Syt,单项输入:`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__:kyt,__detail__:xyt,__ktvplayer__:Cyt,__refresh_list__:wyt,__copy__:Eyt,__keep__:Tyt,图片坐标示例:`获取在图片点击的位置坐标用于验证输入的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'  }`},Iyt={class:"action-doc-card"},Lyt={class:"card-title"},Dyt={class:"card-content"},Pyt={class:"overview-section"},Ryt={class:"overview-item"},Myt={class:"overview-value"},Oyt={class:"overview-item"},$yt={class:"overview-value"},Byt={class:"overview-item"},Nyt={class:"overview-value"},Fyt={key:0,class:"quick-nav"},jyt={key:1,class:"expanded-content"},Vyt={class:"section",id:"basic-concepts"},zyt={class:"section-title"},Uyt={class:"concept-grid"},Hyt={class:"concept-title"},Wyt={class:"concept-desc"},Gyt={class:"section",id:"action-types"},Kyt={class:"section-title"},qyt={class:"action-types-grid"},Yyt={class:"action-type-header"},Xyt={class:"action-type-code"},Zyt={class:"action-type-desc"},Jyt={key:0,class:"action-type-usage"},Qyt={class:"section",id:"special-actions"},e3t={class:"section-title"},t3t={class:"special-actions-list"},n3t={class:"special-action-header"},r3t={class:"action-id"},i3t={class:"action-name"},o3t={class:"special-action-desc"},s3t={key:0,class:"special-action-params"},a3t={class:"section",id:"config-params"},l3t={class:"section-title"},u3t={class:"params-grid"},c3t={class:"param-header"},d3t={class:"param-name"},f3t={class:"param-desc"},h3t={class:"section",id:"examples"},p3t={class:"section-title"},v3t={class:"code-block"},m3t={class:"code-block"},g3t={class:"code-block"},y3t={__name:"ActionDocCard",setup(e){const t=fe(!1),n=fe(Ayt),r=()=>{t.value=!t.value},o=k=>{t.value=!0,setTimeout(()=>{const C=document.getElementById(k);C&&C.scrollIntoView({behavior:"smooth"})},100)};bn(()=>{});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"]}]),v=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=Ie("a-button"),E=Ie("a-tag"),_=Ie("a-card"),T=Ie("a-tab-pane"),D=Ie("a-tabs");return z(),Q("div",Iyt,[$(_,{bordered:!1,class:"card-container","body-style":{padding:"20px"}},{title:de(()=>[I("div",Lyt,[$(et(nA),{class:"title-icon"}),C[0]||(C[0]=I("span",null,"Action 动作指令文档",-1))])]),extra:de(()=>[$(x,{type:"text",size:"small",onClick:r,class:"expand-btn"},{default:de(()=>[t.value?Le("",!0):(z(),qe(et(Zh),{key:0})),t.value?(z(),qe(et(J_),{key:1})):Le("",!0),Ue(" "+je(t.value?"收起":"展开"),1)]),_:1})]),default:de(()=>[I("div",Dyt,[I("div",Pyt,[I("div",Ryt,[C[1]||(C[1]=I("div",{class:"overview-label"},"总条目数",-1)),I("div",Myt,je(a.value),1)]),I("div",Oyt,[C[2]||(C[2]=I("div",{class:"overview-label"},"动作类型",-1)),I("div",$yt,je(s.value.length),1)]),I("div",Byt,[C[3]||(C[3]=I("div",{class:"overview-label"},"专项动作",-1)),I("div",Nyt,je(l.value.length),1)])]),t.value?Le("",!0):(z(),Q("div",Fyt,[(z(!0),Q(Bt,null,vn(c.value,P=>(z(),qe(E,{key:P.key,color:P.color,class:"nav-tag",onClick:M=>o(P.key)},{default:de(()=>[Ue(je(P.name),1)]),_:2},1032,["color","onClick"]))),128))])),t.value?(z(),Q("div",jyt,[I("div",Vyt,[I("h3",zyt,[$(et(Pc),{class:"section-icon"}),C[4]||(C[4]=Ue(" 基础概念 ",-1))]),I("div",Uyt,[(z(!0),Q(Bt,null,vn(d.value,P=>(z(),Q("div",{class:"concept-item",key:P.key},[I("div",Hyt,je(P.title),1),I("div",Wyt,je(P.description),1)]))),128))])]),I("div",Gyt,[I("h3",Kyt,[$(et(Df),{class:"section-icon"}),C[5]||(C[5]=Ue(" 动作类型 ",-1))]),I("div",qyt,[(z(!0),Q(Bt,null,vn(h.value,P=>(z(),qe(_,{key:P.key,size:"small",class:"action-type-card",hoverable:!0},{default:de(()=>[I("div",Yyt,[$(E,{color:P.color},{default:de(()=>[Ue(je(P.name),1)]),_:2},1032,["color"]),I("span",Xyt,je(P.type),1)]),I("div",Zyt,je(P.description),1),P.usage?(z(),Q("div",Jyt,[C[6]||(C[6]=I("strong",null,"用途:",-1)),Ue(je(P.usage),1)])):Le("",!0)]),_:2},1024))),128))])]),I("div",Qyt,[I("h3",e3t,[$(et(tA),{class:"section-icon"}),C[7]||(C[7]=Ue(" 专项动作 ",-1))]),I("div",t3t,[(z(!0),Q(Bt,null,vn(p.value,P=>(z(),Q("div",{key:P.key,class:"special-action-item"},[I("div",n3t,[I("code",r3t,je(P.actionId),1),I("span",i3t,je(P.name),1)]),I("div",o3t,je(P.description),1),P.params?(z(),Q("div",s3t,[C[8]||(C[8]=I("strong",null,"参数:",-1)),(z(!0),Q(Bt,null,vn(P.params,M=>(z(),Q("span",{key:M,class:"param-tag"},je(M),1))),128))])):Le("",!0)]))),128))])]),I("div",a3t,[I("h3",l3t,[$(et(E0),{class:"section-icon"}),C[9]||(C[9]=Ue(" 配置参数 ",-1))]),I("div",u3t,[(z(!0),Q(Bt,null,vn(v.value,P=>(z(),Q("div",{key:P.key,class:"param-item"},[I("div",c3t,[I("code",d3t,je(P.name),1),$(E,{size:"small",color:P.typeColor},{default:de(()=>[Ue(je(P.type),1)]),_:2},1032,["color"])]),I("div",f3t,je(P.description),1)]))),128))])]),I("div",h3t,[I("h3",p3t,[$(et(kve),{class:"section-icon"}),C[10]||(C[10]=Ue(" 示例代码 ",-1))]),$(D,{type:"card",class:"example-tabs"},{default:de(()=>[$(T,{key:"basic",title:"基础动作"},{default:de(()=>[I("pre",v3t,je(g.value),1)]),_:1}),$(T,{key:"input",title:"单项输入"},{default:de(()=>[I("pre",m3t,je(y.value),1)]),_:1}),$(T,{key:"multi",title:"多项输入"},{default:de(()=>[I("pre",g3t,je(S.value),1)]),_:1})]),_:1})])])):Le("",!0)])]),_:1})])}}},b3t=kr(y3t,[["__scopeId","data-v-d143db2b"]]),_3t={class:"home-container"},S3t={class:"dashboard-header"},k3t={class:"header-content"},x3t={class:"welcome-section"},C3t={class:"dashboard-title"},w3t={class:"quick-stats"},E3t={class:"stat-item"},T3t={class:"stat-value"},A3t={class:"stat-item"},I3t={class:"stat-value"},L3t={class:"stat-item"},D3t={class:"dashboard-content"},P3t={class:"content-grid"},R3t={class:"dashboard-card watch-stats-card"},M3t={class:"card-header"},O3t={class:"card-title"},$3t={class:"card-content"},B3t={class:"dashboard-card update-log-card"},N3t={class:"card-header"},F3t={class:"card-title"},j3t={class:"card-content"},V3t={class:"timeline-content"},z3t={class:"timeline-header"},U3t={class:"version-tag"},H3t={class:"update-date"},W3t={class:"update-title"},G3t={class:"update-description"},K3t={class:"update-changes"},q3t={key:0,class:"more-changes"},Y3t={class:"dashboard-card recommend-card"},X3t={class:"card-header"},Z3t={class:"card-title"},J3t={class:"card-content"},Q3t={class:"recommend-grid"},e2t=["onClick"],t2t={class:"recommend-poster"},n2t={class:"recommend-overlay"},r2t={key:0,class:"trending-badge"},i2t={class:"recommend-info"},o2t={class:"recommend-title"},s2t={class:"recommend-meta"},a2t={class:"recommend-rating"},l2t={class:"recommend-tags"},u2t={class:"dashboard-card keywords-card"},c2t={class:"card-header"},d2t={class:"card-title"},f2t={class:"card-content"},h2t={class:"keywords-list"},p2t=["onClick"],v2t={class:"keyword-content"},m2t={class:"keyword-text"},g2t={class:"keyword-meta"},y2t={class:"keyword-count"},b2t={class:"dashboard-card system-status-card"},_2t={class:"card-header"},S2t={class:"card-title"},k2t={class:"card-content"},x2t={class:"status-grid"},C2t={class:"status-item"},w2t={class:"status-icon online"},E2t={class:"status-item"},T2t={class:"status-icon online"},A2t={class:"status-item"},I2t={class:"status-icon warning"},L2t={class:"status-item"},D2t={class:"status-icon online"},P2t={class:"update-log-modal"},R2t={class:"timeline-content"},M2t={class:"timeline-header"},O2t={class:"version-tag"},$2t={class:"update-date"},B2t={class:"update-title"},N2t={class:"update-description"},F2t={class:"update-changes"},j2t={class:"keywords-modal"},V2t={class:"keywords-list"},z2t=["onClick"],U2t={class:"keyword-content"},H2t={class:"keyword-text"},W2t={class:"keyword-meta"},G2t={class:"keyword-count"},K2t={__name:"Home",setup(e){Gh([K1e,oye,nye,cye,kye,Tye,Pye,Aye]);const t=FA(),n=x5(),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([]),v=fe([]),g=F(()=>{const X=c.value.map(q=>q.count),U=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 ee=q[0];return`${ee.name}
${ee.seriesName}: ${ee.value}集`}},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",data:U,axisLabel:{color:"#86909C"}},yAxis:{type:"value",axisLabel:{color:"#86909C"}},series:[{name:"观看集数",type:"bar",data:X,itemStyle:{color:"#165DFF"},barWidth:"60%"}]}}),y=X=>m4.getUpdateTypeConfig()[X]?.color||"#86909c",S=()=>m4.getUpdateTypeConfig(),k=X=>({feature:"green",improvement:"blue",optimization:"orange",security:"red",bugfix:"purple",release:"gold"})[X]||"gray",C=X=>({电影:"#4A90E2",电视剧:"#50C878",动漫:"#FF6B6B",小说:"#9B59B6"})[X]||"#86909C",x=X=>({电影:"blue",电视剧:"green",动漫:"orange",小说:"purple"})[X]||"gray",E=X=>m4.formatDate(X),_=X=>X>=1e4?(X/1e4).toFixed(1)+"w":X>=1e3?(X/1e3).toFixed(1)+"k":X.toString(),T=()=>{console.log("更新统计图表:",o.value)},D=()=>{switch(a.value){case"hot":p.value=g4.getHotRecommendations(8);break;case"trending":p.value=g4.getTrendingRecommendations(8);break;case"random":p.value=g4.getRandomRecommendations(8);break}},P=X=>{console.log("点击推荐内容:",X)},M=X=>{console.log("点击热搜关键词:",X)},O=fe(!1),L=fe(!1),B=fe([]),j=fe([]),W=()=>{B.value=m4.getAllUpdateLogs(),O.value=!0},H=()=>{j.value=g4.getAllKeywords(),L.value=!0},K=()=>{O.value=!1},Y=()=>{L.value=!1},ne=()=>{s.value=fC.getTodayStats(),l.value=fC.getYesterdayStats(),c.value=fC.getWeekStats(),d.value=fC.calculateGrowthRate(),h.value=m4.getRecentUpdateLogs(4),D(),v.value=g4.getHotKeywords(8)};return bn(()=>{if(n.query._restoreSearch==="true"){const U=t.getPageState("search");if(U&&U.keyword&&!t.isStateExpired("search")){console.log("Home页面恢复搜索状态:",U),r.replace({name:"Video",query:{_restoreSearch:"true"}});return}const q={...n.query};delete q._restoreSearch,r.replace({query:q})}ne(),console.log("主页看板加载完成")}),(X,U)=>{const q=Ie("a-option"),ee=Ie("a-select"),re=Ie("a-link"),ae=Ie("a-tag"),ie=Ie("a-timeline-item"),ke=Ie("a-timeline"),Fe=Ie("a-modal");return z(),Q(Bt,null,[I("div",_3t,[I("div",S3t,[I("div",k3t,[I("div",x3t,[I("h1",C3t,[$(et(c3),{class:"title-icon"}),U[4]||(U[4]=Ue(" 数据看板 ",-1))]),U[5]||(U[5]=I("p",{class:"dashboard-subtitle"},"欢迎回来,今天也要愉快地追剧哦~",-1))]),I("div",w3t,[I("div",E3t,[I("div",T3t,je(s.value.watchCount),1),U[6]||(U[6]=I("div",{class:"stat-label"},"今日观看",-1))]),I("div",A3t,[I("div",I3t,je(Math.round(s.value.totalWatchTime/60)),1),U[7]||(U[7]=I("div",{class:"stat-label"},"总时长(分钟)",-1))]),I("div",L3t,[I("div",{class:ue(["stat-value",{positive:d.value>0,negative:d.value<0}])},je(d.value>0?"+":"")+je(d.value)+"% ",3),U[8]||(U[8]=I("div",{class:"stat-label"},"增长率",-1))])])])]),I("div",D3t,[I("div",P3t,[I("div",R3t,[I("div",M3t,[I("h3",O3t,[$(et(Dve),{class:"card-icon"}),U[9]||(U[9]=Ue(" 最近观看统计 ",-1))]),$(ee,{modelValue:o.value,"onUpdate:modelValue":U[0]||(U[0]=ge=>o.value=ge),size:"small",style:{width:"100px"},onChange:T},{default:de(()=>[$(q,{value:"week"},{default:de(()=>[...U[10]||(U[10]=[Ue("本周",-1)])]),_:1}),$(q,{value:"month"},{default:de(()=>[...U[11]||(U[11]=[Ue("本月",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",$3t,[$(et(Oye),{class:"chart",option:g.value},null,8,["option"])])]),I("div",B3t,[I("div",N3t,[I("h3",F3t,[$(et(My),{class:"card-icon"}),U[12]||(U[12]=Ue(" 更新日志 ",-1))]),$(re,{onClick:W,size:"small"},{default:de(()=>[...U[13]||(U[13]=[Ue("查看全部",-1)])]),_:1})]),I("div",j3t,[$(ke,null,{default:de(()=>[(z(!0),Q(Bt,null,vn(h.value,ge=>(z(),qe(ie,{key:ge.id,"dot-color":y(ge.type)},{default:de(()=>[I("div",V3t,[I("div",z3t,[I("span",U3t,je(ge.version),1),I("span",H3t,je(E(ge.date)),1)]),I("h4",W3t,je(ge.title),1),I("p",G3t,je(ge.description),1),I("div",K3t,[(z(!0),Q(Bt,null,vn(ge.changes.slice(0,2),(_e,ze)=>(z(),qe(ae,{key:ze,size:"small",color:k(ge.type)},{default:de(()=>[Ue(je(_e),1)]),_:2},1032,["color"]))),128)),ge.changes.length>2?(z(),Q("span",q3t," +"+je(ge.changes.length-2)+"项更新 ",1)):Le("",!0)])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),I("div",Y3t,[I("div",X3t,[I("h3",Z3t,[$(et(Q5),{class:"card-icon"}),U[14]||(U[14]=Ue(" 猜你喜欢 ",-1))]),$(ee,{modelValue:a.value,"onUpdate:modelValue":U[1]||(U[1]=ge=>a.value=ge),size:"small",style:{width:"80px"},onChange:D},{default:de(()=>[$(q,{value:"hot"},{default:de(()=>[...U[15]||(U[15]=[Ue("热门",-1)])]),_:1}),$(q,{value:"trending"},{default:de(()=>[...U[16]||(U[16]=[Ue("趋势",-1)])]),_:1}),$(q,{value:"random"},{default:de(()=>[...U[17]||(U[17]=[Ue("随机",-1)])]),_:1})]),_:1},8,["modelValue"])]),I("div",J3t,[I("div",Q3t,[(z(!0),Q(Bt,null,vn(p.value,ge=>(z(),Q("div",{key:ge.id,class:"recommend-item",onClick:_e=>P(ge)},[I("div",t2t,[I("div",{class:"poster-placeholder",style:Ge({backgroundColor:C(ge.type)})},je(ge.title.substring(0,2)),5),I("div",n2t,[$(et(qa),{class:"play-icon"})]),ge.trending?(z(),Q("div",r2t," 🔥 热门 ")):Le("",!0)]),I("div",i2t,[I("h4",o2t,je(ge.title),1),I("div",s2t,[$(ae,{size:"small",color:x(ge.type)},{default:de(()=>[Ue(je(ge.type),1)]),_:2},1032,["color"]),I("span",a2t,[$(et($H)),Ue(" "+je(ge.rating),1)])]),I("div",l2t,[(z(!0),Q(Bt,null,vn(ge.tags.slice(0,2),_e=>(z(),qe(ae,{key:_e,size:"mini",color:"gray"},{default:de(()=>[Ue(je(_e),1)]),_:2},1024))),128))])])],8,e2t))),128))])])]),I("div",u2t,[I("div",c2t,[I("h3",d2t,[$(et(Rve),{class:"card-icon"}),U[18]||(U[18]=Ue(" 热搜关键词 ",-1))]),$(re,{onClick:H,size:"small"},{default:de(()=>[...U[19]||(U[19]=[Ue("更多",-1)])]),_:1})]),I("div",f2t,[I("div",h2t,[(z(!0),Q(Bt,null,vn(v.value,(ge,_e)=>(z(),Q("div",{key:ge.keyword,class:"keyword-item",onClick:ze=>M(ge)},[I("div",{class:ue(["keyword-rank",{"top-three":_e<3}])},je(_e+1),3),I("div",v2t,[I("span",m2t,je(ge.keyword),1),I("div",g2t,[I("span",y2t,je(_(ge.count)),1),I("span",{class:ue(["keyword-trend",ge.trend])},[ge.trend==="up"?(z(),qe(et(yV),{key:0})):ge.trend==="down"?(z(),qe(et(gV),{key:1})):(z(),qe(et(Rm),{key:2}))],2)])])],8,p2t))),128))])])]),I("div",b2t,[I("div",_2t,[I("h3",S2t,[$(et(JH),{class:"card-icon"}),U[20]||(U[20]=Ue(" 系统状态 ",-1))])]),I("div",k2t,[I("div",x2t,[I("div",C2t,[I("div",w2t,[$(et(nc))]),U[21]||(U[21]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"播放服务"),I("div",{class:"status-value"},"正常")],-1))]),I("div",E2t,[I("div",T2t,[$(et(nc))]),U[22]||(U[22]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"数据同步"),I("div",{class:"status-value"},"正常")],-1))]),I("div",A2t,[I("div",I2t,[$(et(Sd))]),U[23]||(U[23]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"存储空间"),I("div",{class:"status-value"},"85%")],-1))]),I("div",L2t,[I("div",D2t,[$(et(nc))]),U[24]||(U[24]=I("div",{class:"status-info"},[I("div",{class:"status-label"},"网络连接"),I("div",{class:"status-value"},"良好")],-1))])])])]),$(b3t)])])]),$(Fe,{visible:O.value,"onUpdate:visible":U[2]||(U[2]=ge=>O.value=ge),title:"更新日志",width:"800px",footer:!1,onCancel:K},{default:de(()=>[I("div",P2t,[$(ke,null,{default:de(()=>[(z(!0),Q(Bt,null,vn(B.value,ge=>(z(),qe(ie,{key:ge.id,"dot-color":y(ge.type)},{default:de(()=>[I("div",R2t,[I("div",M2t,[I("span",O2t,je(ge.version),1),I("span",$2t,je(E(ge.date)),1),$(ae,{size:"small",color:k(ge.type),class:"type-tag"},{default:de(()=>[Ue(je(S()[ge.type]?.label||ge.type),1)]),_:2},1032,["color"])]),I("h4",B2t,je(ge.title),1),I("p",N2t,je(ge.description),1),I("div",F2t,[(z(!0),Q(Bt,null,vn(ge.changes,(_e,ze)=>(z(),qe(ae,{key:ze,size:"small",color:k(ge.type),class:"change-tag"},{default:de(()=>[Ue(je(_e),1)]),_:2},1032,["color"]))),128))])])]),_:2},1032,["dot-color"]))),128))]),_:1})])]),_:1},8,["visible"]),$(Fe,{visible:L.value,"onUpdate:visible":U[3]||(U[3]=ge=>L.value=ge),title:"热搜关键词",width:"600px",footer:!1,onCancel:Y},{default:de(()=>[I("div",j2t,[I("div",V2t,[(z(!0),Q(Bt,null,vn(j.value,(ge,_e)=>(z(),Q("div",{key:ge.keyword,class:"keyword-item",onClick:ze=>M(ge)},[I("div",{class:ue(["keyword-rank",{"top-three":_e<3}])},je(_e+1),3),I("div",U2t,[I("span",H2t,je(ge.keyword),1),I("div",W2t,[I("span",G2t,je(_(ge.count)),1),I("span",{class:ue(["keyword-trend",ge.trend])},[ge.trend==="up"?(z(),qe(et(yV),{key:0})):ge.trend==="down"?(z(),qe(et(gV),{key:1})):(z(),qe(et(Rm),{key:2}))],2)])])],8,z2t))),128))])])]),_:1},8,["visible"])],64)}}},q2t=kr(K2t,[["__scopeId","data-v-217d9b8b"]]),Y2t={class:"tag-container"},X2t={class:"search-section"},Z2t={class:"search-row"},J2t={class:"source-count"},Q2t={class:"sources-section"},e4t={key:0,class:"empty-state"},t4t={key:1,class:"button-container"},n4t={class:"source-info"},r4t={class:"source-name"},i4t={key:0,class:"current-icon"},o4t={class:"dialog-footer"},s4t={class:"footer-left"},a4t={class:"footer-right"},l4t={__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},v=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=()=>{Cn(()=>{if(s.value&&s.value.length>0){const E=s.value[0];E&&E.scrollIntoView({behavior:"smooth",block:"center",inline:"nearest"})}})};return Rt(()=>n.visible,E=>{E&&n.currentSiteKey&&setTimeout(()=>{x()},100)}),Rt(v,()=>{n.visible&&n.currentSiteKey&&o.value.trim()!==""&&v.value.some(_=>_.key===n.currentSiteKey)&&setTimeout(()=>{x()},50)}),(E,_)=>{const T=Ie("a-button"),D=Ie("a-modal"),P=Ie("a-input");return z(),Q(Bt,null,[$(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(()=>[I("div",Y2t,[$(T,{type:"secondary",class:"tag-item",onClick:_[0]||(_[0]=M=>p("全部"))},{default:de(()=>[..._[4]||(_[4]=[Ue(" 全部 ",-1)])]),_:1}),(z(!0),Q(Bt,null,vn(h.value,(M,O)=>(z(),qe(T,{key:O,type:"secondary",class:"tag-item",onClick:L=>p(M)},{default:de(()=>[Ue(je(M),1)]),_:2},1032,["onClick"]))),128))])]),_:1},8,["visible","title","width"]),$(D,{visible:e.visible,title:e.title,width:g.value,class:"change_rule_dialog","append-to-body":"","on-before-cancel":S},{footer:de(()=>[I("div",o4t,[I("div",s4t,[$(T,{type:"outline",status:"danger",onClick:S},{default:de(()=>[$(et(Ed)),_[7]||(_[7]=Ue(" 清除缓存 ",-1))]),_:1})]),I("div",a4t,[$(T,{onClick:C},{default:de(()=>[..._[8]||(_[8]=[Ue("取消",-1)])]),_:1}),$(T,{type:"primary",onClick:k,disabled:!a.value.new_site.key},{default:de(()=>[..._[9]||(_[9]=[Ue(" 确认换源 ",-1)])]),_:1},8,["disabled"])])])]),default:de(()=>[I("div",X2t,[I("div",Z2t,[$(P,{modelValue:o.value,"onUpdate:modelValue":_[2]||(_[2]=M=>o.value=M),placeholder:"搜索数据源名称...",class:"site_filter_input","allow-clear":""},{prefix:de(()=>[$(et(Lm))]),_:1},8,["modelValue"]),$(T,{type:"primary",status:"success",class:"tag-button",onClick:_[3]||(_[3]=M=>l.value=!0)},{default:de(()=>[..._[5]||(_[5]=[Ue(" TAG ",-1)])]),_:1})]),I("div",J2t," 共 "+je(v.value.length)+" 个可用数据源 ",1)]),I("div",Q2t,[v.value.length===0?(z(),Q("div",e4t,[$(et(aH)),_[6]||(_[6]=I("p",null,"未找到匹配的数据源",-1))])):(z(),Q("div",t4t,[(z(!0),Q(Bt,null,vn(v.value,(M,O)=>(z(),Q("div",{key:M.key||O,ref_for:!0,ref:M.key===e.currentSiteKey?"currentSourceRef":null,class:ue(["btn-item",{selected:a.value.new_site.key===M.key,"current-source":M.key===e.currentSiteKey}])},[$(T,{type:"primary",status:a.value.new_site.key===M.key?"success":"primary",size:"medium",onClick:L=>y(M),class:ue(["source-button",{"current-source-button":M.key===e.currentSiteKey}])},{default:de(()=>[I("div",n4t,[I("div",r4t,je(M.name),1),M.key===e.currentSiteKey?(z(),Q("div",i4t,[$(et(Yh))])):Le("",!0)])]),_:2},1032,["status","onClick","class"])],2))),128))]))])]),_:1},8,["visible","title","width"])],64)}}},u4t=kr(l4t,[["__scopeId","data-v-105ac4df"]]),c4t="modulepreload",d4t=function(e){return"/apps/drplayer/"+e},Oae={},Fd=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(v=>({status:"fulfilled",value:v}),v=>({status:"rejected",reason:v}))))};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=d4t(h),h in Oae)return;Oae[h]=!0;const p=h.endsWith(".css"),v=p?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${h}"]${v}`))return;const g=document.createElement("link");if(g.rel=p?"stylesheet":c4t,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)})},f4t={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.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)),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 Rt(()=>e.visible,p=>{p?(t("open"),o(),Cn(()=>{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()}},h4t={key:1,class:"action-dialog-header"},p4t={class:"action-dialog-title"},v4t={key:2,class:"action-dialog-footer"};function m4t(e,t,n,r,o,a){return z(),qe(qm,{to:"body"},[$(Cs,{name:"action-mask",appear:""},{default:de(()=>[n.visible?(z(),Q("div",{key:0,class:ue(["action-mask modal-backdrop",{closing:r.isClosing}]),style:Ge({"--dim-amount":n.dimAmount}),onClick:t[2]||(t[2]=(...s)=>r.handleMaskClick&&r.handleMaskClick(...s))},[$(Cs,{name:"action-dialog",appear:""},{default:de(()=>[n.visible&&!r.isClosing?(z(),Q("div",{key:0,class:ue(["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]=I("div",{class:"action-dialog-bg gradient-primary"},null,-1)),n.showClose?(z(),Q("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]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)])])):Le("",!0),n.title||e.$slots.header?(z(),Q("div",h4t,[vt(e.$slots,"header",{},()=>[I("h3",p4t,je(n.title),1)],!0)])):Le("",!0),I("div",{class:"action-dialog-content",style:Ge(r.contentStyle)},[vt(e.$slots,"default",{},void 0,!0)],4),e.$slots.footer?(z(),Q("div",v4t,[vt(e.$slots,"footer",{},void 0,!0)])):Le("",!0)],6)):Le("",!0)]),_:3})],6)):Le("",!0)]),_:3})])}const ep=kr(f4t,[["render",m4t],["__scopeId","data-v-36eb5ad8"]]),Ei={INPUT:"input",EDIT:"edit",MULTI_INPUT:"multiInput",MULTI_INPUT_X:"multiInputX",MENU:"menu",SELECT:"select",MSGBOX:"msgbox",WEBVIEW:"webview",HELP:"help",SPECIAL:"special"},Ah={PARSE_ERROR:"PARSE_ERROR",VALIDATION_ERROR:"VALIDATION_ERROR",NETWORK_ERROR:"NETWORK_ERROR",TIMEOUT_ERROR:"TIMEOUT_ERROR",USER_CANCEL:"USER_CANCEL"},vi={OK_CANCEL:0,OK_ONLY:1,CANCEL_ONLY:2,CUSTOM:3},Kc=e=>e==null?vi.OK_CANCEL:Object.values(vi).includes(e)?e:vi.CUSTOM,Ih=(e,t,n=null)=>({type:e,message:t,details:n}),lG=e=>{try{return typeof e=="string"?JSON.parse(e):e&&typeof e=="object"&&e.config?e.config:e}catch(t){throw Ih(Ah.PARSE_ERROR,"无法解析Action配置",t)}},zye=e=>!e||typeof e!="object"?!1:!!(e.actionId==="__copy__"&&e.content||e.actionId&&e.actionId.startsWith("__")&&e.actionId.endsWith("__")),g4t=e=>{if(e.actionId==="__copy__"){if(!e.content)throw Ih(Ah.VALIDATION_ERROR,"剪贴板操作必须包含content字段");return!0}if(e.actionId&&e.actionId.startsWith("__")&&e.actionId.endsWith("__"))return!0;throw Ih(Ah.VALIDATION_ERROR,`未知的专项动作类型: ${e.actionId}`)},Uye=e=>{if(!e||typeof e!="object")throw Ih(Ah.VALIDATION_ERROR,"Action配置必须是一个对象");if(!e.actionId)throw Ih(Ah.VALIDATION_ERROR,"actionId是必需的");if(console.log("config:",e),zye(e))return g4t(e);if(!e.type)throw Ih(Ah.VALIDATION_ERROR,"type字段是必需的(除非是专项动作)");if(!Object.values(Ei).includes(e.type))throw Ih(Ah.VALIDATION_ERROR,`不支持的Action类型: ${e.type}`);return!0},l0=e=>{if(!e)return[];try{if(e.match(/^\[(?:folder|calendar|file|image)\]$/)){const t=e.slice(1,-1).toLowerCase();return[{name:{calendar:"📅 选择日期",file:"📄 选择文件",folder:"📁 选择文件夹",image:"🖼️ 选择图片"}[t]||e,value:e}]}if(e.startsWith("[")&&e.includes("]")){const t=e.indexOf("]"),n=e.substring(1,t),r=e.substring(t+1);return r?r.split(",").map(o=>{const a=o.trim();return{name:a,value:a}}).filter(o=>o.name):[{name:n,value:e}]}if(e.startsWith("[")&&e.endsWith("]")||e.startsWith("{")&&e.endsWith("}"))try{return JSON.parse(e)}catch{}return 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),[]}},Hye=(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)}`},Wye=(e,t)=>{let n;return function(...o){const a=()=>{clearTimeout(n),e(...o)};clearTimeout(n),n=setTimeout(a,t)}};function Gye(e,t){return function(){return e.apply(t,arguments)}}const{toString:y4t}=Object.prototype,{getPrototypeOf:uG}=Object,{iterator:jA,toStringTag:Kye}=Symbol,VA=(e=>t=>{const n=y4t.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),jd=e=>(e=e.toLowerCase(),t=>VA(t)===e),zA=e=>t=>typeof t===e,{isArray:g3}=Array,zy=zA("undefined");function pS(e){return e!==null&&!zy(e)&&e.constructor!==null&&!zy(e.constructor)&&Au(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const qye=jd("ArrayBuffer");function b4t(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&qye(e.buffer),t}const _4t=zA("string"),Au=zA("function"),Yye=zA("number"),vS=e=>e!==null&&typeof e=="object",S4t=e=>e===!0||e===!1,fE=e=>{if(VA(e)!=="object")return!1;const t=uG(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Kye in e)&&!(jA in e)},k4t=e=>{if(!vS(e)||pS(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},x4t=jd("Date"),C4t=jd("File"),w4t=jd("Blob"),E4t=jd("FileList"),T4t=e=>vS(e)&&Au(e.pipe),A4t=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Au(e.append)&&((t=VA(e))==="formdata"||t==="object"&&Au(e.toString)&&e.toString()==="[object FormData]"))},I4t=jd("URLSearchParams"),[L4t,D4t,P4t,R4t]=["ReadableStream","Request","Response","Headers"].map(jd),M4t=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mS(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),g3(e))for(r=0,o=e.length;r0;)if(o=n[r],t===o.toLowerCase())return o;return null}const tm=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Zye=e=>!zy(e)&&e!==tm;function Iz(){const{caseless:e,skipUndefined:t}=Zye(this)&&this||{},n={},r=(o,a)=>{const s=e&&Xye(n,a)||a;fE(n[s])&&fE(o)?n[s]=Iz(n[s],o):fE(o)?n[s]=Iz({},o):g3(o)?n[s]=o.slice():(!t||!zy(o))&&(n[s]=o)};for(let o=0,a=arguments.length;o(mS(t,(o,a)=>{n&&Au(o)?e[a]=Gye(o,n):e[a]=o},{allOwnKeys:r}),e),$4t=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),B4t=(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)},N4t=(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&&uG(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},F4t=(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},j4t=e=>{if(!e)return null;if(g3(e))return e;let t=e.length;if(!Yye(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},V4t=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&uG(Uint8Array)),z4t=(e,t)=>{const r=(e&&e[jA]).call(e);let o;for(;(o=r.next())&&!o.done;){const a=o.value;t.call(e,a[0],a[1])}},U4t=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},H4t=jd("HTMLFormElement"),W4t=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),$ae=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),G4t=jd("RegExp"),Jye=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};mS(n,(o,a)=>{let s;(s=t(o,a,e))!==!1&&(r[a]=s||o)}),Object.defineProperties(e,r)},K4t=e=>{Jye(e,(t,n)=>{if(Au(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Au(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+"'")})}})},q4t=(e,t)=>{const n={},r=o=>{o.forEach(a=>{n[a]=!0})};return g3(e)?r(e):r(String(e).split(t)),n},Y4t=()=>{},X4t=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Z4t(e){return!!(e&&Au(e.append)&&e[Kye]==="FormData"&&e[jA])}const J4t=e=>{const t=new Array(10),n=(r,o)=>{if(vS(r)){if(t.indexOf(r)>=0)return;if(pS(r))return r;if(!("toJSON"in r)){t[o]=r;const a=g3(r)?[]:{};return mS(r,(s,l)=>{const c=n(s,o+1);!zy(c)&&(a[l]=c)}),t[o]=void 0,a}}return r};return n(e,0)},Q4t=jd("AsyncFunction"),ebt=e=>e&&(vS(e)||Au(e))&&Au(e.then)&&Au(e.catch),Qye=((e,t)=>e?setImmediate:t?((n,r)=>(tm.addEventListener("message",({source:o,data:a})=>{o===tm&&a===n&&r.length&&r.shift()()},!1),o=>{r.push(o),tm.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Au(tm.postMessage)),tbt=typeof queueMicrotask<"u"?queueMicrotask.bind(tm):typeof process<"u"&&process.nextTick||Qye,nbt=e=>e!=null&&Au(e[jA]),en={isArray:g3,isArrayBuffer:qye,isBuffer:pS,isFormData:A4t,isArrayBufferView:b4t,isString:_4t,isNumber:Yye,isBoolean:S4t,isObject:vS,isPlainObject:fE,isEmptyObject:k4t,isReadableStream:L4t,isRequest:D4t,isResponse:P4t,isHeaders:R4t,isUndefined:zy,isDate:x4t,isFile:C4t,isBlob:w4t,isRegExp:G4t,isFunction:Au,isStream:T4t,isURLSearchParams:I4t,isTypedArray:V4t,isFileList:E4t,forEach:mS,merge:Iz,extend:O4t,trim:M4t,stripBOM:$4t,inherits:B4t,toFlatObject:N4t,kindOf:VA,kindOfTest:jd,endsWith:F4t,toArray:j4t,forEachEntry:z4t,matchAll:U4t,isHTMLForm:H4t,hasOwnProperty:$ae,hasOwnProp:$ae,reduceDescriptors:Jye,freezeMethods:K4t,toObjectSet:q4t,toCamelCase:W4t,noop:Y4t,toFiniteNumber:X4t,findKey:Xye,global:tm,isContextDefined:Zye,isSpecCompliantForm:Z4t,toJSONObject:J4t,isAsyncFn:Q4t,isThenable:ebt,setImmediate:Qye,asap:tbt,isIterable:nbt};function ti(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)}en.inherits(ti,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:en.toJSONObject(this.config),code:this.code,status:this.status}}});const e3e=ti.prototype,t3e={};["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=>{t3e[e]={value:e}});Object.defineProperties(ti,t3e);Object.defineProperty(e3e,"isAxiosError",{value:!0});ti.from=(e,t,n,r,o,a)=>{const s=Object.create(e3e);en.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 ti.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 rbt=null;function Lz(e){return en.isPlainObject(e)||en.isArray(e)}function n3e(e){return en.endsWith(e,"[]")?e.slice(0,-2):e}function Bae(e,t,n){return e?e.concat(t).map(function(o,a){return o=n3e(o),!n&&a?"["+o+"]":o}).join(n?".":""):t}function ibt(e){return en.isArray(e)&&!e.some(Lz)}const obt=en.toFlatObject(en,{},null,function(t){return/^is[A-Z]/.test(t)});function UA(e,t,n){if(!en.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=en.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,k){return!en.isUndefined(k[S])});const r=n.metaTokens,o=n.visitor||h,a=n.dots,s=n.indexes,c=(n.Blob||typeof Blob<"u"&&Blob)&&en.isSpecCompliantForm(t);if(!en.isFunction(o))throw new TypeError("visitor must be a function");function d(y){if(y===null)return"";if(en.isDate(y))return y.toISOString();if(en.isBoolean(y))return y.toString();if(!c&&en.isBlob(y))throw new ti("Blob is not supported. Use a Buffer instead.");return en.isArrayBuffer(y)||en.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(en.endsWith(S,"{}"))S=r?S:S.slice(0,-2),y=JSON.stringify(y);else if(en.isArray(y)&&ibt(y)||(en.isFileList(y)||en.endsWith(S,"[]"))&&(C=en.toArray(y)))return S=n3e(S),C.forEach(function(E,_){!(en.isUndefined(E)||E===null)&&t.append(s===!0?Bae([S],_,a):s===null?S:S+"[]",d(E))}),!1}return Lz(y)?!0:(t.append(Bae(k,S,a),d(y)),!1)}const p=[],v=Object.assign(obt,{defaultVisitor:h,convertValue:d,isVisitable:Lz});function g(y,S){if(!en.isUndefined(y)){if(p.indexOf(y)!==-1)throw Error("Circular reference detected in "+S.join("."));p.push(y),en.forEach(y,function(C,x){(!(en.isUndefined(C)||C===null)&&o.call(t,C,en.isString(x)?x.trim():x,S,v))===!0&&g(C,S?S.concat(x):[x])}),p.pop()}}if(!en.isObject(e))throw new TypeError("data must be an object");return g(e),t}function Nae(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function cG(e,t){this._pairs=[],e&&UA(e,this,t)}const r3e=cG.prototype;r3e.append=function(t,n){this._pairs.push([t,n])};r3e.toString=function(t){const n=t?function(r){return t.call(this,r,Nae)}:Nae;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function sbt(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function i3e(e,t,n){if(!t)return e;const r=n&&n.encode||sbt;en.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(o?a=o(t,n):a=en.isURLSearchParams(t)?t.toString():new cG(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class Fae{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){en.forEach(this.handlers,function(r){r!==null&&t(r)})}}const o3e={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},abt=typeof URLSearchParams<"u"?URLSearchParams:cG,lbt=typeof FormData<"u"?FormData:null,ubt=typeof Blob<"u"?Blob:null,cbt={isBrowser:!0,classes:{URLSearchParams:abt,FormData:lbt,Blob:ubt},protocols:["http","https","file","blob","url","data"]},dG=typeof window<"u"&&typeof document<"u",Dz=typeof navigator=="object"&&navigator||void 0,dbt=dG&&(!Dz||["ReactNative","NativeScript","NS"].indexOf(Dz.product)<0),fbt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",hbt=dG&&window.location.href||"http://localhost",pbt=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:dG,hasStandardBrowserEnv:dbt,hasStandardBrowserWebWorkerEnv:fbt,navigator:Dz,origin:hbt},Symbol.toStringTag,{value:"Module"})),Sl={...pbt,...cbt};function vbt(e,t){return UA(e,new Sl.classes.URLSearchParams,{visitor:function(n,r,o,a){return Sl.isNode&&en.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)},...t})}function mbt(e){return en.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function gbt(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r=n.length;return s=!s&&en.isArray(o)?o.length:s,c?(en.hasOwnProp(o,s)?o[s]=[o[s],r]:o[s]=r,!l):((!o[s]||!en.isObject(o[s]))&&(o[s]=[]),t(n,r,o[s],a)&&en.isArray(o[s])&&(o[s]=gbt(o[s])),!l)}if(en.isFormData(e)&&en.isFunction(e.entries)){const n={};return en.forEachEntry(e,(r,o)=>{t(mbt(r),o,n,0)}),n}return null}function ybt(e,t,n){if(en.isString(e))try{return(t||JSON.parse)(e),en.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const gS={transitional:o3e,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,a=en.isObject(t);if(a&&en.isHTMLForm(t)&&(t=new FormData(t)),en.isFormData(t))return o?JSON.stringify(s3e(t)):t;if(en.isArrayBuffer(t)||en.isBuffer(t)||en.isStream(t)||en.isFile(t)||en.isBlob(t)||en.isReadableStream(t))return t;if(en.isArrayBufferView(t))return t.buffer;if(en.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 vbt(t,this.formSerializer).toString();if((l=en.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=this.env&&this.env.FormData;return UA(l?{"files[]":t}:t,c&&new c,this.formSerializer)}}return a||o?(n.setContentType("application/json",!1),ybt(t)):t}],transformResponse:[function(t){const n=this.transitional||gS.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(en.isResponse(t)||en.isReadableStream(t))return t;if(t&&en.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"?ti.from(l,ti.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:Sl.classes.FormData,Blob:Sl.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};en.forEach(["delete","get","head","post","put","patch"],e=>{gS.headers[e]={}});const bbt=en.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"]),_bt=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]&&bbt[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},jae=Symbol("internals");function y4(e){return e&&String(e).trim().toLowerCase()}function hE(e){return e===!1||e==null?e:en.isArray(e)?e.map(hE):String(e)}function Sbt(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 kbt=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function AF(e,t,n,r,o){if(en.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!en.isString(t)){if(en.isString(r))return t.indexOf(r)!==-1;if(en.isRegExp(r))return r.test(t)}}function xbt(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Cbt(e,t){const n=en.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 Iu=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function a(l,c,d){const h=y4(c);if(!h)throw new Error("header name must be a non-empty string");const p=en.findKey(o,h);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||c]=hE(l))}const s=(l,c)=>en.forEach(l,(d,h)=>a(d,h,c));if(en.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(en.isString(t)&&(t=t.trim())&&!kbt(t))s(_bt(t),n);else if(en.isObject(t)&&en.isIterable(t)){let l={},c,d;for(const h of t){if(!en.isArray(h))throw TypeError("Object iterator must return a key-value pair");l[d=h[0]]=(c=l[d])?en.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=y4(t),t){const r=en.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return Sbt(o);if(en.isFunction(n))return n.call(this,o,r);if(en.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=y4(t),t){const r=en.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||AF(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function a(s){if(s=y4(s),s){const l=en.findKey(r,s);l&&(!n||AF(r,r[l],l,n))&&(delete r[l],o=!0)}}return en.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||AF(this,this[a],a,t,!0))&&(delete this[a],o=!0)}return o}normalize(t){const n=this,r={};return en.forEach(this,(o,a)=>{const s=en.findKey(r,a);if(s){n[s]=hE(o),delete n[a];return}const l=t?xbt(a):String(a).trim();l!==a&&delete n[a],n[l]=hE(o),r[l]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return en.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&en.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[jae]=this[jae]={accessors:{}}).accessors,o=this.prototype;function a(s){const l=y4(s);r[l]||(Cbt(o,s),r[l]=!0)}return en.isArray(t)?t.forEach(a):a(t),this}};Iu.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);en.reduceDescriptors(Iu.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});en.freezeMethods(Iu);function IF(e,t){const n=this||gS,r=t||n,o=Iu.from(r.headers);let a=r.data;return en.forEach(e,function(l){a=l.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function a3e(e){return!!(e&&e.__CANCEL__)}function y3(e,t,n){ti.call(this,e??"canceled",ti.ERR_CANCELED,t,n),this.name="CanceledError"}en.inherits(y3,ti,{__CANCEL__:!0});function l3e(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ti("Request failed with status code "+n.status,[ti.ERR_BAD_REQUEST,ti.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function wbt(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ebt(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,v=0;for(;p!==o;)v+=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 ET=(e,t,n=3)=>{let r=0;const o=Ebt(50,250);return Tbt(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)},Vae=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},zae=e=>(...t)=>en.asap(()=>e(...t)),Abt=Sl.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Sl.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Sl.origin),Sl.navigator&&/(msie|trident)/i.test(Sl.navigator.userAgent)):()=>!0,Ibt=Sl.hasStandardBrowserEnv?{write(e,t,n,r,o,a){const s=[e+"="+encodeURIComponent(t)];en.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),en.isString(r)&&s.push("path="+r),en.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 Lbt(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Dbt(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function u3e(e,t,n){let r=!Lbt(t);return e&&(r||n==!1)?Dbt(e,t):t}const Uae=e=>e instanceof Iu?{...e}:e;function Fm(e,t){t=t||{};const n={};function r(d,h,p,v){return en.isPlainObject(d)&&en.isPlainObject(h)?en.merge.call({caseless:v},d,h):en.isPlainObject(h)?en.merge({},h):en.isArray(h)?h.slice():h}function o(d,h,p,v){if(en.isUndefined(h)){if(!en.isUndefined(d))return r(void 0,d,p,v)}else return r(d,h,p,v)}function a(d,h){if(!en.isUndefined(h))return r(void 0,h)}function s(d,h){if(en.isUndefined(h)){if(!en.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(Uae(d),Uae(h),p,!0)};return en.forEach(Object.keys({...e,...t}),function(h){const p=c[h]||o,v=p(e[h],t[h],h);en.isUndefined(v)&&p!==l||(n[h]=v)}),n}const c3e=e=>{const t=Fm({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:s,auth:l}=t;if(t.headers=s=Iu.from(s),t.url=i3e(u3e(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),l&&s.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?unescape(encodeURIComponent(l.password)):""))),en.isFormData(n)){if(Sl.hasStandardBrowserEnv||Sl.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if(en.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(Sl.hasStandardBrowserEnv&&(r&&en.isFunction(r)&&(r=r(t)),r||r!==!1&&Abt(t.url))){const c=o&&a&&Ibt.read(a);c&&s.set(o,c)}return t},Pbt=typeof XMLHttpRequest<"u",Rbt=Pbt&&function(e){return new Promise(function(n,r){const o=c3e(e);let a=o.data;const s=Iu.from(o.headers).normalize();let{responseType:l,onUploadProgress:c,onDownloadProgress:d}=o,h,p,v,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=Iu.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};l3e(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 ti("Request aborted",ti.ECONNABORTED,e,k)),k=null)},k.onerror=function(_){const T=_&&_.message?_.message:"Network Error",D=new ti(T,ti.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||o3e;o.timeoutErrorMessage&&(_=o.timeoutErrorMessage),r(new ti(_,T.clarifyTimeoutError?ti.ETIMEDOUT:ti.ECONNABORTED,e,k)),k=null},a===void 0&&s.setContentType(null),"setRequestHeader"in k&&en.forEach(s.toJSON(),function(_,T){k.setRequestHeader(T,_)}),en.isUndefined(o.withCredentials)||(k.withCredentials=!!o.withCredentials),l&&l!=="json"&&(k.responseType=o.responseType),d&&([v,y]=ET(d,!0),k.addEventListener("progress",v)),c&&k.upload&&([p,g]=ET(c),k.upload.addEventListener("progress",p),k.upload.addEventListener("loadend",g)),(o.cancelToken||o.signal)&&(h=E=>{k&&(r(!E||E.type?new y3(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=wbt(o.url);if(x&&Sl.protocols.indexOf(x)===-1){r(new ti("Unsupported protocol "+x+":",ti.ERR_BAD_REQUEST,e));return}k.send(a||null)})},Mbt=(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 ti?h:new y3(h instanceof Error?h.message:h))}};let s=t&&setTimeout(()=>{s=null,a(new ti(`timeout ${t} of ms exceeded`,ti.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=()=>en.asap(l),c}},Obt=function*(e,t){let n=e.byteLength;if(n{const o=$bt(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 v=a+=p;n(v)}c.enqueue(new Uint8Array(h))}catch(d){throw l(d),d}},cancel(c){return l(c),o.return()}},{highWaterMark:2})},Wae=64*1024,{isFunction:hC}=en,d3e=(({fetch:e,Request:t,Response:n})=>({fetch:e,Request:t,Response:n}))(en.global),{ReadableStream:Gae,TextEncoder:Kae}=en.global,qae=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Nbt=e=>{const{fetch:t,Request:n,Response:r}=Object.assign({},d3e,e),o=hC(t),a=hC(n),s=hC(r);if(!o)return!1;const l=o&&hC(Gae),c=o&&(typeof Kae=="function"?(y=>S=>y.encode(S))(new Kae):async y=>new Uint8Array(await new n(y).arrayBuffer())),d=a&&l&&qae(()=>{let y=!1;const S=new n(Sl.origin,{body:new Gae,method:"POST",get duplex(){return y=!0,"half"}}).headers.has("Content-Type");return y&&!S}),h=s&&l&&qae(()=>en.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 ti(`Response type '${y}' is not supported`,ti.ERR_NOT_SUPPORT,k)})});const v=async y=>{if(y==null)return 0;if(en.isBlob(y))return y.size;if(en.isSpecCompliantForm(y))return(await new n(Sl.origin,{method:"POST",body:y}).arrayBuffer()).byteLength;if(en.isArrayBufferView(y)||en.isArrayBuffer(y))return y.byteLength;if(en.isURLSearchParams(y)&&(y=y+""),en.isString(y))return(await c(y)).byteLength},g=async(y,S)=>{const k=en.toFiniteNumber(y.getContentLength());return k??v(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:O="same-origin",fetchOptions:L}=c3e(y);P=P?(P+"").toLowerCase():"text";let B=Mbt([x,E&&E.toAbortSignal()],_),j=null;const W=B&&B.unsubscribe&&(()=>{B.unsubscribe()});let H;try{if(D&&d&&k!=="get"&&k!=="head"&&(H=await g(M,C))!==0){let q=new n(S,{method:"POST",body:C,duplex:"half"}),ee;if(en.isFormData(C)&&(ee=q.headers.get("content-type"))&&M.setContentType(ee),q.body){const[re,ae]=Vae(H,ET(zae(D)));C=Hae(q.body,Wae,re,ae)}}en.isString(O)||(O=O?"include":"omit");const K=a&&"credentials"in n.prototype,Y={...L,signal:B,method:k.toUpperCase(),headers:M.normalize().toJSON(),body:C,duplex:"half",credentials:K?O:void 0};j=a&&new n(S,Y);let ne=await(a?t(j,L):t(S,Y));const X=h&&(P==="stream"||P==="response");if(h&&(T||X&&W)){const q={};["status","statusText","headers"].forEach(ie=>{q[ie]=ne[ie]});const ee=en.toFiniteNumber(ne.headers.get("content-length")),[re,ae]=T&&Vae(ee,ET(zae(T),!0))||[];ne=new r(Hae(ne.body,Wae,re,()=>{ae&&ae(),W&&W()}),q)}P=P||"text";let U=await p[en.findKey(p,P)||"text"](ne,y);return!X&&W&&W(),await new Promise((q,ee)=>{l3e(q,ee,{data:U,headers:Iu.from(ne.headers),status:ne.status,statusText:ne.statusText,config:y,request:j})})}catch(K){throw W&&W(),K&&K.name==="TypeError"&&/Load failed|fetch/i.test(K.message)?Object.assign(new ti("Network Error",ti.ERR_NETWORK,y,j),{cause:K.cause||K}):ti.from(K,K&&K.code,y,j)}}},Fbt=new Map,f3e=e=>{let t=en.merge.call({skipUndefined:!0},d3e,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=Fbt;for(;l--;)c=a[l],d=h.get(c),d===void 0&&h.set(c,d=l?new Map:Nbt(t)),h=d;return d};f3e();const Pz={http:rbt,xhr:Rbt,fetch:{get:f3e}};en.forEach(Pz,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Yae=e=>`- ${e}`,jbt=e=>en.isFunction(e)||e===null||e===!1,h3e={getAdapter:(e,t)=>{e=en.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(Yae).join(` `):" "+Yae(s[0]):"as no adapter specified";throw new ti("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return o},adapters:Pz};function LF(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new y3(null,e)}function Xae(e){return LF(e),e.headers=Iu.from(e.headers),e.data=IF.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),h3e.getAdapter(e.adapter||gS.adapter,e)(e).then(function(r){return LF(e),r.data=IF.call(e,e.transformResponse,r),r.headers=Iu.from(r.headers),r},function(r){return a3e(r)||(LF(e),r&&r.response&&(r.response.data=IF.call(e,e.transformResponse,r.response),r.response.headers=Iu.from(r.response.headers))),Promise.reject(r)})}const p3e="1.12.0",HA={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{HA[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Zae={};HA.transitional=function(t,n,r){function o(a,s){return"[Axios v"+p3e+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,l)=>{if(t===!1)throw new ti(o(s," has been removed"+(n?" in "+n:"")),ti.ERR_DEPRECATED);return n&&!Zae[s]&&(Zae[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}};HA.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function Vbt(e,t,n){if(typeof e!="object")throw new ti("options must be an object",ti.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 ti("option "+a+" must be "+c,ti.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ti("Unknown option "+a,ti.ERR_BAD_OPTION)}}const pE={assertOptions:Vbt,validators:HA},Qd=pE.validators;let _m=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Fae,response:new Fae}}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=Fm(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:a}=n;r!==void 0&&pE.assertOptions(r,{silentJSONParsing:Qd.transitional(Qd.boolean),forcedJSONParsing:Qd.transitional(Qd.boolean),clarifyTimeoutError:Qd.transitional(Qd.boolean)},!1),o!=null&&(en.isFunction(o)?n.paramsSerializer={serialize:o}:pE.assertOptions(o,{encode:Qd.function,serialize:Qd.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),pE.assertOptions(n,{baseUrl:Qd.spelling("baseURL"),withXsrfToken:Qd.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&en.merge(a.common,a[n.method]);a&&en.forEach(["delete","get","head","post","put","patch","common"],y=>{delete a[y]}),n.headers=Iu.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,v;if(!c){const y=[Xae.bind(this),void 0];for(y.unshift(...l),y.push(...d),v=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 y3(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 v3e(function(o){t=o}),cancel:t}}};function Ubt(e){return function(n){return e.apply(null,n)}}function Hbt(e){return en.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 m3e(e){const t=new _m(e),n=Gye(_m.prototype.request,t);return en.extend(n,_m.prototype,t,{allOwnKeys:!0}),en.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return m3e(Fm(e,o))},n}const co=m3e(gS);co.Axios=_m;co.CanceledError=y3;co.CancelToken=zbt;co.isCancel=a3e;co.VERSION=p3e;co.toFormData=UA;co.AxiosError=ti;co.Cancel=co.CanceledError;co.all=function(t){return Promise.all(t)};co.spread=Ubt;co.isAxiosError=Hbt;co.mergeConfig=Fm;co.AxiosHeaders=Iu;co.formToJSON=e=>s3e(en.isHTMLForm(e)?new FormData(e):e);co.getAdapter=h3e.getAdapter;co.HttpStatusCode=Rz;co.default=co;const{Axios:Wbt,AxiosError:Gbt,CanceledError:Kbt,isCancel:qbt,CancelToken:Ybt,VERSION:Xbt,all:Zbt,Cancel:Jbt,isAxiosError:Qbt,spread:e_t,toFormData:t_t,AxiosHeaders:n_t,HttpStatusCode:r_t,formToJSON:i_t,getAdapter:o_t,mergeConfig:s_t}=co,fG=Object.freeze(Object.defineProperty({__proto__:null,Axios:Wbt,AxiosError:Gbt,AxiosHeaders:n_t,Cancel:Jbt,CancelToken:Ybt,CanceledError:Kbt,HttpStatusCode:r_t,VERSION:Xbt,all:Zbt,default:co,formToJSON:i_t,getAdapter:o_t,isAxiosError:Qbt,isCancel:qbt,mergeConfig:s_t,spread:e_t,toFormData:t_t},Symbol.toStringTag,{value:"Module"})),a_t=()=>{try{return(JSON.parse(localStorage.getItem("addressSettings")||"{}").apiTimeout||30)*1e3}catch(e){return console.warn("Failed to get API timeout from settings, using default:",e),3e4}},hG=()=>{try{const t=JSON.parse(localStorage.getItem("addressSettings")||"{}").apiTimeout||30;return Math.max(t*3,100)*1e3}catch(e){return console.warn("Failed to get Action timeout from settings, using default:",e),1e5}},y0={BASE_URL:"http://localhost:5707",get TIMEOUT(){return a_t()},HEADERS:{"Content-Type":"application/json",Accept:"application/json"}},pG={MODULE:"/api",PROXY:"/proxy",PARSE:"/parse"},WA={PLAY:"play",CATEGORY:"category",DETAIL:"detail",ACTION:"action"},l_t={SUCCESS:200},g3e={DEFAULT_PAGE:1},vG=co.create({baseURL:y0.BASE_URL,timeout:y0.TIMEOUT,headers:y0.HEADERS});vG.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)));vG.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!==l_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 GA=async(e,t={})=>{try{return await vG({url:e,...t})}catch(n){throw console.error("API Request Failed:",n.message),n}},z0=(e,t={})=>GA(e,{method:"GET",params:t}),y3e=(e,t={})=>GA(e,{method:"POST",data:t}),u_t=(e,t={})=>GA(e,{method:"PUT",data:t}),c_t=(e,t={})=>GA(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}},pC=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解析] 未知类型,返回空对象"),{}},D0=e=>{const t=encodeURIComponent(e);return`${pG.MODULE}/${t}`},b3=async(e,t={})=>{try{return(await co.get(e,{params:t,timeout:y0.TIMEOUT,headers:{Accept:"application/json"}})).data}catch(n){throw console.error("直接API调用失败:",n),n}},d_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?b3(o,a):z0(D0(e),a)},q1=async(e,t)=>{const{t:n,pg:r=g3e.DEFAULT_PAGE,ext:o,extend:a,apiUrl:s}=t,l={ac:WA.CATEGORY,t:n,pg:r};o&&(l.ext=o);const c=ua(a);return c&&(l.extend=c),s?b3(s,l):z0(D0(e),l)},f_t=async(e,t)=>{const{ids:n,extend:r,apiUrl:o}=t,a={ac:WA.DETAIL,ids:n},s=ua(r);return s&&(a.extend=s),o?b3(o,a):z0(D0(e),a)},b3e=async(e,t)=>{const{play:n,flag:r,extend:o,apiUrl:a}=t,s={ac:WA.PLAY,play:n};r&&(s.flag=r);const l=ua(o);return l&&(s.extend=l),a?b3(a,s):z0(D0(e),s)},h_t=async(e,t)=>{try{console.log("T4播放解析请求:",{module:e,params:t});const n=await b3e(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=pC(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=pC(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=pC(n.headers||n.header),o.needSniff=!0,o.qualities=[],o.hasMultipleQualities=!1,o.message="需要嗅探才能播放,尽情期待"):(o.url=n.url||n.play_url||n,o.headers=pC(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||"未知错误")}}},p_t=async(e,t)=>{const{wd:n,pg:r=g3e.DEFAULT_PAGE,extend:o,apiUrl:a}=t,s={wd:n,pg:r},l=ua(o);return l&&(s.extend=l),a?b3(a,s):z0(D0(e),s)},yS=async(e,t)=>{const{action:n,extend:r,apiUrl:o,...a}=t,s={ac:WA.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 co.get(o,{timeout:y0.TIMEOUT,headers:{Accept:"application/json"}});return console.log("API响应 (GET):",d.data),d.data}else{const d=await co.post(o,s,{timeout:y0.TIMEOUT,headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}});return console.log("API响应 (POST):",d.data),d.data}console.log("使用代理方式调用:",D0(e),s);const c=await y3e(D0(e),s);return console.log("代理响应:",c),c},v_t=async(e,t,n)=>{const r={refresh:"1"},o=ua(t);return o&&(r.extend=o),n?b3(n,r):z0(D0(e),r)},m_t=Ym(()=>Fd(()=>Promise.resolve().then(()=>j6t),void 0)),g_t=Ym(()=>Fd(()=>Promise.resolve().then(()=>ext),void 0)),y_t=Ym(()=>Fd(()=>Promise.resolve().then(()=>eCt),void 0)),b_t=Ym(()=>Fd(()=>Promise.resolve().then(()=>WCt),void 0)),__t=Ym(()=>Fd(()=>Promise.resolve().then(()=>ywt),void 0)),S_t=Ym(()=>Fd(()=>Promise.resolve().then(()=>EEt),void 0)),k_t={name:"ActionRenderer",components:{ActionDialog:ep,InputAction:m_t,MultiInputAction:g_t,MenuAction:y_t,MsgBoxAction:b_t,WebViewAction:__t,HelpAction:S_t},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={[Ei.INPUT]:"InputAction",[Ei.EDIT]:"InputAction",[Ei.MULTI_INPUT]:"MultiInputAction",[Ei.MULTI_INPUT_X]:"MultiInputAction",[Ei.MENU]:"MenuAction",[Ei.SELECT]:"MenuAction",[Ei.MSGBOX]:"MsgBoxAction",[Ei.WEBVIEW]:"WebViewAction",[Ei.HELP]:"HelpAction"},l=F(()=>{if(!n.value)return console.log("ActionRenderer currentComponent: parsedConfig.value 为空"),null;const T=s[n.value.type]||null;return console.log("ActionRenderer currentComponent:",{type:n.value.type,component:T,parsedConfig:n.value}),T}),c=async T=>{try{if(console.log("ActionRenderer parseConfig 开始解析:",T),!T){n.value=null;return}const D=lG(T);if(console.log("ActionRenderer parseConfig 解析后的配置:",D),Uye(D),zye(D)){console.log("检测到特殊动作,立即执行:",D),await d(D);return}n.value=D,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(D){console.error("解析Action配置失败:",D),r.value=D,n.value=null}},d=async T=>{const{actionId:D}=T;switch(D){case"__self_search__":if(console.log("🚀 [ActionRenderer DEBUG] 处理__self_search__专项动作"),console.log("🚀 [ActionRenderer DEBUG] actionData:",JSON.stringify(T,null,2)),!T.tid){console.error("🚀 [ActionRenderer ERROR] 源内搜索参数不完整:缺少tid"),Kn("源内搜索参数不完整:缺少tid","error"),v();break}const P={tid:T.tid,type_id:T.tid,name:T.name,type_name:T.name||`搜索: ${T.tid}`,isSpecialCategory:!0,actionData:T};console.log("🚀 [ActionRenderer DEBUG] 构造的 specialCategory:",JSON.stringify(P,null,2)),console.log("🚀 [ActionRenderer DEBUG] 即将触发 special-action 事件"),Kn(T.msg||"执行源内搜索","info"),t("special-action","__self_search__",P),console.log("🚀 [ActionRenderer DEBUG] special-action 事件已触发,关闭组件"),v();break;case"__detail__":Kn("跳转到详情页","info"),t("special-action","detail",T),v();break;case"__ktvplayer__":Kn("启动KTV播放","info"),t("special-action","ktv-player",T),v();break;case"__refresh_list__":Kn("刷新列表","info"),t("special-action","refresh-list",T),v();break;case"__copy__":if(T.content)try{await navigator.clipboard.writeText(T.content),Kn("已复制到剪切板","success")}catch{Kn("复制失败","error")}v();break;case"__keep__":T.msg&&Kn(T.msg,"info"),T.reset&&(n.value=null);break;default:Kn(`未知的专项动作: ${D}`,"warning"),v();break}},h=async T=>{if(n.value)try{o.value=!0;const D={action:n.value.actionId,value:typeof T=="object"?JSON.stringify(T):T};e.extend&&(D.extend=e.extend),e.apiUrl&&(D.apiUrl=e.apiUrl),console.log("ActionRenderer准备调用T4接口:",{module:e.module,actionData:D,apiUrl:e.apiUrl});let P=null;if(e.module?(P=await x(e.module,D),console.log("T4接口返回结果:",P)):(P=await t("action",n.value.actionId,T),console.log("父组件处理结果:",P)),P){if(typeof P=="string")try{P=JSON.parse(P)}catch{Kn(P,"success"),t("success",T),v();return}if(typeof P=="object"){if(console.log("处理API返回的对象结果:",P),P.error)throw Ih(Ah.NETWORK_ERROR,P.error);if(P.toast&&Kn(P.toast,"success"),(P.message||P.msg)&&Kn(P.message||P.msg,"success"),P.action){console.log("检测到动态action,重新解析:",P.action),await c(P.action);return}if(P.actionId){console.log("检测到专项动作:",P.actionId),await d(P);return}if(P.code!==void 0)if(P.code===0||P.code===200){if(P.data&&typeof P.data=="object"){const M={...P.data};if(M.action||M.actionId){if(console.log("在data字段中检测到action:",M),M.action){await c(M.action);return}if(M.actionId){await d(M);return}}}Kn(P.message||P.msg||"操作成功","success")}else throw Ih(Ah.NETWORK_ERROR,P.message||P.msg||`操作失败,错误码: ${P.code}`)}}t("success",T),v()}catch(D){console.error("执行Action失败:",D),r.value=D,Kn(D.message||"操作失败","error")}finally{o.value=!1}},p=()=>{v()},v=()=>{a.value=!1,n.value=null,t("close")},g=async(T,D)=>{if(typeof T=="object"&&T.type){console.log("ActionRenderer接收到新的动作配置:",T),a.value=!1,await new Promise(P=>setTimeout(P,100)),await c(T);return}await h({action:T,value:D})},y=()=>{r.value=null},S=(T,D)=>{console.log("🔗 [ActionRenderer DEBUG] 接收到子组件的 special-action 事件"),console.log("🔗 [ActionRenderer DEBUG] actionType:",T),console.log("🔗 [ActionRenderer DEBUG] actionData:",JSON.stringify(D,null,2)),console.log("🔗 [ActionRenderer DEBUG] 向父组件传递 special-action 事件"),t("special-action",T,D),v()};Rt(()=>e.actionData,async T=>{await c(T)},{immediate:!0}),Rt(()=>e.visible,T=>{a.value=T});const k=async T=>{T&&await c(T),a.value=!0},C=()=>{a.value=!1},x=async(T,D)=>{try{return o.value=!0,await t("action",T,D)}catch(P){throw r.value=P,P}finally{o.value=!1}};return{parsedConfig:n,currentComponent:l,error:r,isLoading:o,isVisible:a,handleSubmit:h,handleCancel:p,handleClose:v,handleAction:g,handleToast:(T,D="success")=>{Kn(T,D)},handleReset:()=>{console.log("InputAction触发重置事件")},handleSpecialActionFromChild:S,clearError:y,show:k,hide:C,executeAction:x}}},x_t={class:"action-renderer"},C_t={class:"action-error"},w_t={key:0};function E_t(e,t,n,r,o,a){const s=Ie("ActionDialog");return z(),Q("div",x_t,[r.parsedConfig?(z(),qe(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"])):Le("",!0),r.error?(z(),qe(s,{key:1,visible:!!r.error,title:"错误",width:"400",onClose:r.clearError},{footer:de(()=>[I("button",{class:"action-button action-button-primary",onClick:t[0]||(t[0]=(...l)=>r.clearError&&r.clearError(...l))}," 确定 ")]),default:de(()=>[I("div",C_t,[I("p",null,[I("strong",null,je(r.error.type),1)]),I("p",null,je(r.error.message),1),r.error.details?(z(),Q("pre",w_t,je(JSON.stringify(r.error.details,null,2)),1)):Le("",!0)])]),_:1},8,["visible","onClose"])):Le("",!0),r.isLoading?(z(),qe(s,{key:2,visible:r.isLoading,title:"处理中",width:"300","show-close":!1},{default:de(()=>[...t[1]||(t[1]=[I("div",{class:"action-loading"}," 正在处理,请稍候... ",-1)])]),_:1},8,["visible"])):Le("",!0)])}const _3=kr(k_t,[["render",E_t],["__scopeId","data-v-3c8cada7"]]),KA=(e,t="")=>{const n=`${pG.PROXY}/${e}`;return t?`${n}/${t}`:n},T_t=async(e,t="",n={})=>{const r=KA(e,t);return z0(r,n)},A_t=async(e,t="",n={})=>{const r=KA(e,t);return y3e(r,n)},I_t=async(e,t="",n={})=>{const r=KA(e,t);return u_t(r,n)},L_t=async(e,t="",n={})=>{const r=KA(e,t);return c_t(r,n)},D_t=async(e,t="",n={})=>{const{method:r="GET",params:o,data:a}=n;switch(r.toUpperCase()){case"GET":return T_t(e,t,o);case"POST":return A_t(e,t,a);case"PUT":return I_t(e,t,a);case"DELETE":return L_t(e,t,o);default:throw new Error(`不支持的请求方法: ${r}`)}};var vE={exports:{}};function P_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 mE={exports:{}};const R_t={},M_t=Object.freeze(Object.defineProperty({__proto__:null,default:R_t},Symbol.toStringTag,{value:"Module"})),O_t=Z_(M_t);var $_t=mE.exports,Jae;function Ni(){return Jae||(Jae=1,(function(e,t){(function(n,r){e.exports=r()})($_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 aw<"u"&&aw.crypto&&(a=aw.crypto),!a&&typeof P_t=="function")try{a=O_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 O=0;O>>2]=_[O>>>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=v.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=v.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,O=D/M;x?O=r.ceil(O):O=r.max((O|0)-this._minBufferSize,0);var L=O*P,B=r.min(L*4,D);if(L){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})})(yE)),yE.exports}var bE={exports:{}},j_t=bE.exports,tle;function V_t(){return tle||(tle=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(j_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=[],v=0;v>>2]>>>16-v%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=[],v=0;v>>2]>>>16-v%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})})(bE)),bE.exports}var _E={exports:{}},z_t=_E.exports,nle;function rg(){return nle||(nle=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(z_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 v=[],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(;v.length%4;)v.push(E);return v.join("")},parse:function(c){var d=c.length,h=this._map,p=this._reverseMap;if(!p){p=this._reverseMap=[];for(var v=0;v>>6-g%4*2,k=y|S;p[v>>>2]|=k<<24-v%4*8,v++}return a.create(p,v)}})(),n.enc.Base64})})(_E)),_E.exports}var SE={exports:{}},U_t=SE.exports,rle;function H_t(){return rle||(rle=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(U_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,v=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 _=v.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,v=this._reverseMap;if(!v){v=this._reverseMap=[];for(var g=0;g>>6-g%4*2,k=y|S;p[v>>>2]|=k<<24-v%4*8,v++}return a.create(p,v)}})(),n.enc.Base64url})})(SE)),SE.exports}var kE={exports:{}},W_t=kE.exports,ile;function ig(){return ile||(ile=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(W_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],O=S[k+4],L=S[k+5],B=S[k+6],j=S[k+7],W=S[k+8],H=S[k+9],K=S[k+10],Y=S[k+11],ne=S[k+12],X=S[k+13],U=S[k+14],q=S[k+15],ee=_[0],re=_[1],ae=_[2],ie=_[3];ee=p(ee,re,ae,ie,T,7,d[0]),ie=p(ie,ee,re,ae,D,12,d[1]),ae=p(ae,ie,ee,re,P,17,d[2]),re=p(re,ae,ie,ee,M,22,d[3]),ee=p(ee,re,ae,ie,O,7,d[4]),ie=p(ie,ee,re,ae,L,12,d[5]),ae=p(ae,ie,ee,re,B,17,d[6]),re=p(re,ae,ie,ee,j,22,d[7]),ee=p(ee,re,ae,ie,W,7,d[8]),ie=p(ie,ee,re,ae,H,12,d[9]),ae=p(ae,ie,ee,re,K,17,d[10]),re=p(re,ae,ie,ee,Y,22,d[11]),ee=p(ee,re,ae,ie,ne,7,d[12]),ie=p(ie,ee,re,ae,X,12,d[13]),ae=p(ae,ie,ee,re,U,17,d[14]),re=p(re,ae,ie,ee,q,22,d[15]),ee=v(ee,re,ae,ie,D,5,d[16]),ie=v(ie,ee,re,ae,B,9,d[17]),ae=v(ae,ie,ee,re,Y,14,d[18]),re=v(re,ae,ie,ee,T,20,d[19]),ee=v(ee,re,ae,ie,L,5,d[20]),ie=v(ie,ee,re,ae,K,9,d[21]),ae=v(ae,ie,ee,re,q,14,d[22]),re=v(re,ae,ie,ee,O,20,d[23]),ee=v(ee,re,ae,ie,H,5,d[24]),ie=v(ie,ee,re,ae,U,9,d[25]),ae=v(ae,ie,ee,re,M,14,d[26]),re=v(re,ae,ie,ee,W,20,d[27]),ee=v(ee,re,ae,ie,X,5,d[28]),ie=v(ie,ee,re,ae,P,9,d[29]),ae=v(ae,ie,ee,re,j,14,d[30]),re=v(re,ae,ie,ee,ne,20,d[31]),ee=g(ee,re,ae,ie,L,4,d[32]),ie=g(ie,ee,re,ae,W,11,d[33]),ae=g(ae,ie,ee,re,Y,16,d[34]),re=g(re,ae,ie,ee,U,23,d[35]),ee=g(ee,re,ae,ie,D,4,d[36]),ie=g(ie,ee,re,ae,O,11,d[37]),ae=g(ae,ie,ee,re,j,16,d[38]),re=g(re,ae,ie,ee,K,23,d[39]),ee=g(ee,re,ae,ie,X,4,d[40]),ie=g(ie,ee,re,ae,T,11,d[41]),ae=g(ae,ie,ee,re,M,16,d[42]),re=g(re,ae,ie,ee,B,23,d[43]),ee=g(ee,re,ae,ie,H,4,d[44]),ie=g(ie,ee,re,ae,ne,11,d[45]),ae=g(ae,ie,ee,re,q,16,d[46]),re=g(re,ae,ie,ee,P,23,d[47]),ee=y(ee,re,ae,ie,T,6,d[48]),ie=y(ie,ee,re,ae,j,10,d[49]),ae=y(ae,ie,ee,re,U,15,d[50]),re=y(re,ae,ie,ee,L,21,d[51]),ee=y(ee,re,ae,ie,ne,6,d[52]),ie=y(ie,ee,re,ae,M,10,d[53]),ae=y(ae,ie,ee,re,K,15,d[54]),re=y(re,ae,ie,ee,D,21,d[55]),ee=y(ee,re,ae,ie,W,6,d[56]),ie=y(ie,ee,re,ae,q,10,d[57]),ae=y(ae,ie,ee,re,B,15,d[58]),re=y(re,ae,ie,ee,X,21,d[59]),ee=y(ee,re,ae,ie,O,6,d[60]),ie=y(ie,ee,re,ae,Y,10,d[61]),ae=y(ae,ie,ee,re,P,15,d[62]),re=y(re,ae,ie,ee,H,21,d[63]),_[0]=_[0]+ee|0,_[1]=_[1]+re|0,_[2]=_[2]+ae|0,_[3]=_[3]+ie|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 v(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})})(kE)),kE.exports}var xE={exports:{}},G_t=xE.exports,ole;function _3e(){return ole||(ole=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(G_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 v=this._hash.words,g=v[0],y=v[1],S=v[2],k=v[3],C=v[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=_}v[0]=v[0]+g|0,v[1]=v[1]+y|0,v[2]=v[2]+S|0,v[3]=v[3]+k|0,v[4]=v[4]+C|0},_doFinalize:function(){var h=this._data,p=h.words,v=this._nDataBytes*8,g=h.sigBytes*8;return p[g>>>5]|=128<<24-g%32,p[(g+64>>>9<<4)+14]=Math.floor(v/4294967296),p[(g+64>>>9<<4)+15]=v,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})})(xE)),xE.exports}var CE={exports:{}},K_t=CE.exports,sle;function mG(){return sle||(sle=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(K_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=[],v=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 O=p[M-15],L=(O<<25|O>>>7)^(O<<14|O>>>18)^O>>>3,B=p[M-2],j=(B<<15|B>>>17)^(B<<13|B>>>19)^B>>>10;p[M]=L+p[M-7]+j+p[M-16]}var W=_&T^~_&D,H=k&C^k&x^C&x,K=(k<<30|k>>>2)^(k<<19|k>>>13)^(k<<10|k>>>22),Y=(_<<26|_>>>6)^(_<<21|_>>>11)^(_<<7|_>>>25),ne=P+Y+W+h[M]+p[M],X=K+H;P=D,D=T,T=_,_=E+ne|0,E=x,x=C,C=k,k=ne+X|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(v),o.HmacSHA256=l._createHmacHelper(v)})(Math),n.SHA256})})(CE)),CE.exports}var wE={exports:{}},q_t=wE.exports,ale;function Y_t(){return ale||(ale=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),mG())})(q_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})})(wE)),wE.exports}var EE={exports:{}},X_t=EE.exports,lle;function S3e(){return lle||(lle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),qA())})(X_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)],v=[];(function(){for(var y=0;y<80;y++)v[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],O=C.high,L=C.low,B=x.high,j=x.low,W=E.high,H=E.low,K=_.high,Y=_.low,ne=T.high,X=T.low,U=D.high,q=D.low,ee=P.high,re=P.low,ae=M.high,ie=M.low,ke=O,Fe=L,ge=B,_e=j,ze=W,Qe=H,Je=K,Te=Y,ve=ne,be=X,Me=U,He=q,Xe=ee,rt=re,ft=ae,lt=ie,Et=0;Et<80;Et++){var St,Wt,Tt=v[Et];if(Et<16)Wt=Tt.high=y[S+Et*2]|0,St=Tt.low=y[S+Et*2+1]|0;else{var Mt=v[Et-15],sn=Mt.high,ct=Mt.low,Ne=(sn>>>1|ct<<31)^(sn>>>8|ct<<24)^sn>>>7,De=(ct>>>1|sn<<31)^(ct>>>8|sn<<24)^(ct>>>7|sn<<25),Oe=v[Et-2],Ye=Oe.high,dt=Oe.low,Dt=(Ye>>>19|dt<<13)^(Ye<<3|dt>>>29)^Ye>>>6,pt=(dt>>>19|Ye<<13)^(dt<<3|Ye>>>29)^(dt>>>6|Ye<<26),$e=v[Et-7],Ct=$e.high,Zt=$e.low,tn=v[Et-16],Ft=tn.high,rn=tn.low;St=De+Zt,Wt=Ne+Ct+(St>>>0>>0?1:0),St=St+pt,Wt=Wt+Dt+(St>>>0>>0?1:0),St=St+rn,Wt=Wt+Ft+(St>>>0>>0?1:0),Tt.high=Wt,Tt.low=St}var Qn=ve&Me^~ve&Xe,mr=be&He^~be&rt,yi=ke&ge^ke&ze^ge&ze,Kt=Fe&_e^Fe&Qe^_e&Qe,st=(ke>>>28|Fe<<4)^(ke<<30|Fe>>>2)^(ke<<25|Fe>>>7),zt=(Fe>>>28|ke<<4)^(Fe<<30|ke>>>2)^(Fe<<25|ke>>>7),fn=(ve>>>14|be<<18)^(ve>>>18|be<<14)^(ve<<23|be>>>9),on=(be>>>14|ve<<18)^(be>>>18|ve<<14)^(be<<23|ve>>>9),pn=p[Et],er=pn.high,Kr=pn.low,wt=lt+on,Gt=ft+fn+(wt>>>0>>0?1:0),wt=wt+mr,Gt=Gt+Qn+(wt>>>0>>0?1:0),wt=wt+Kr,Gt=Gt+er+(wt>>>0>>0?1:0),wt=wt+St,Gt=Gt+Wt+(wt>>>0>>0?1:0),hn=zt+Kt,gn=st+yi+(hn>>>0>>0?1:0);ft=Xe,lt=rt,Xe=Me,rt=He,Me=ve,He=be,be=Te+wt|0,ve=Je+Gt+(be>>>0>>0?1:0)|0,Je=ze,Te=Qe,ze=ge,Qe=_e,ge=ke,_e=Fe,Fe=wt+hn|0,ke=Gt+gn+(Fe>>>0>>0?1:0)|0}L=C.low=L+Fe,C.high=O+ke+(L>>>0>>0?1:0),j=x.low=j+_e,x.high=B+ge+(j>>>0<_e>>>0?1:0),H=E.low=H+Qe,E.high=W+ze+(H>>>0>>0?1:0),Y=_.low=Y+Te,_.high=K+Je+(Y>>>0>>0?1:0),X=T.low=X+be,T.high=ne+ve+(X>>>0>>0?1:0),q=D.low=q+He,D.high=U+Me+(q>>>0>>0?1:0),re=P.low=re+rt,P.high=ee+Xe+(re>>>0>>0?1:0),ie=M.low=ie+lt,M.high=ae+ft+(ie>>>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})})(EE)),EE.exports}var TE={exports:{}},Z_t=TE.exports,ule;function J_t(){return ule||(ule=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),qA(),S3e())})(Z_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})})(TE)),TE.exports}var AE={exports:{}},Q_t=AE.exports,cle;function eSt(){return cle||(cle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),qA())})(Q_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=[],v=[],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++)v[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,O=0;O<7;O++){if(T&1){var L=(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 O=0;O<5;O++){for(var L=0,B=0,j=0;j<5;j++){var P=x[O+5*j];L^=P.high,B^=P.low}var W=y[O];W.high=L,W.low=B}for(var O=0;O<5;O++)for(var H=y[(O+4)%5],K=y[(O+1)%5],Y=K.high,ne=K.low,L=H.high^(Y<<1|ne>>>31),B=H.low^(ne<<1|Y>>>31),j=0;j<5;j++){var P=x[O+5*j];P.high^=L,P.low^=B}for(var X=1;X<25;X++){var L,B,P=x[X],U=P.high,q=P.low,ee=p[X];ee<32?(L=U<>>32-ee,B=q<>>32-ee):(L=q<>>64-ee,B=U<>>64-ee);var re=y[v[X]];re.high=L,re.low=B}var ae=y[0],ie=x[0];ae.high=ie.high,ae.low=ie.low;for(var O=0;O<5;O++)for(var j=0;j<5;j++){var X=O+5*j,P=x[X],ke=y[X],Fe=y[(O+1)%5+5*j],ge=y[(O+2)%5+5*j];P.high=ke.high^~Fe.high&ge.high,P.low=ke.low^~Fe.low&ge.low}var P=x[0],_e=g[M];P.high^=_e.high,P.low^=_e.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|(L<<24|L>>>8)&4278255360,B=(B<<8|B>>>24)&16711935|(B<<24|B>>>8)&4278255360,P.push(B),P.push(L)}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})})(AE)),AE.exports}var IE={exports:{}},tSt=IE.exports,dle;function nSt(){return dle||(dle=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(tSt,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]),v=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 O=P+M,L=D[O];D[O]=(L<<8|L>>>24)&16711935|(L<<24|L>>>8)&4278255360}var B=this._hash.words,j=g.words,W=y.words,H=d.words,K=h.words,Y=p.words,ne=v.words,X,U,q,ee,re,ae,ie,ke,Fe,ge;ae=X=B[0],ie=U=B[1],ke=q=B[2],Fe=ee=B[3],ge=re=B[4];for(var _e,M=0;M<80;M+=1)_e=X+D[P+H[M]]|0,M<16?_e+=k(U,q,ee)+j[0]:M<32?_e+=C(U,q,ee)+j[1]:M<48?_e+=x(U,q,ee)+j[2]:M<64?_e+=E(U,q,ee)+j[3]:_e+=_(U,q,ee)+j[4],_e=_e|0,_e=T(_e,Y[M]),_e=_e+re|0,X=re,re=ee,ee=T(q,10),q=U,U=_e,_e=ae+D[P+K[M]]|0,M<16?_e+=_(ie,ke,Fe)+W[0]:M<32?_e+=E(ie,ke,Fe)+W[1]:M<48?_e+=x(ie,ke,Fe)+W[2]:M<64?_e+=C(ie,ke,Fe)+W[3]:_e+=k(ie,ke,Fe)+W[4],_e=_e|0,_e=T(_e,ne[M]),_e=_e+ge|0,ae=ge,ge=Fe,Fe=T(ke,10),ke=ie,ie=_e;_e=B[1]+q+Fe|0,B[1]=B[2]+ee+ge|0,B[2]=B[3]+re+ae|0,B[3]=B[4]+X+ie|0,B[4]=B[0]+U+ke|0,B[0]=_e},_doFinalize:function(){var D=this._data,P=D.words,M=this._nDataBytes*8,O=D.sigBytes*8;P[O>>>5]|=128<<24-O%32,P[(O+64>>>9<<4)+14]=(M<<8|M>>>24)&16711935|(M<<24|M>>>8)&4278255360,D.sigBytes=(P.length+1)*4,this._process();for(var L=this._hash,B=L.words,j=0;j<5;j++){var W=B[j];B[j]=(W<<8|W>>>24)&16711935|(W<<24|W>>>8)&4278255360}return L},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})})(IE)),IE.exports}var LE={exports:{}},rSt=LE.exports,fle;function gG(){return fle||(fle=1,(function(e,t){(function(n,r){e.exports=r(Ni())})(rSt,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,v=p*4;h.sigBytes>v&&(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;L.sigBytes-=B}};a.BlockCipher=g.extend({cfg:g.cfg.extend({mode:k,padding:x}),reset:function(){var L;g.reset.call(this);var B=this.cfg,j=B.iv,W=B.mode;this._xformMode==this._ENC_XFORM_MODE?L=W.createEncryptor:(L=W.createDecryptor,this._minBufferSize=1),this._mode&&this._mode.__creator==L?this._mode.init(this,j&&j.words):(this._mode=L.call(W,this,j&&j.words),this._mode.__creator=L)},_doProcessBlock:function(L,B){this._mode.processBlock(L,B)},_doFinalize:function(){var L,B=this.cfg.padding;return this._xformMode==this._ENC_XFORM_MODE?(B.pad(this._data,this.blockSize),L=this._process(!0)):(L=this._process(!0),B.unpad(L)),L},blockSize:128/32});var E=a.CipherParams=s.extend({init:function(L){this.mixIn(L)},toString:function(L){return(L||this.formatter).stringify(this)}}),_=o.format={},T=_.OpenSSL={stringify:function(L){var B,j=L.ciphertext,W=L.salt;return W?B=l.create([1398893684,1701076831]).concat(W).concat(j):B=j,B.toString(h)},parse:function(L){var B,j=h.parse(L),W=j.words;return W[0]==1398893684&&W[1]==1701076831&&(B=l.create(W.slice(2,4)),W.splice(0,4),j.sigBytes-=16),E.create({ciphertext:j,salt:B})}},D=a.SerializableCipher=s.extend({cfg:s.extend({format:T}),encrypt:function(L,B,j,W){W=this.cfg.extend(W);var H=L.createEncryptor(j,W),K=H.finalize(B),Y=H.cfg;return E.create({ciphertext:K,key:j,iv:Y.iv,algorithm:L,mode:Y.mode,padding:Y.padding,blockSize:L.blockSize,formatter:W.format})},decrypt:function(L,B,j,W){W=this.cfg.extend(W),B=this._parse(B,W.format);var H=L.createDecryptor(j,W).finalize(B.ciphertext);return H},_parse:function(L,B){return typeof L=="string"?B.parse(L,this):L}}),P=o.kdf={},M=P.OpenSSL={execute:function(L,B,j,W,H){if(W||(W=l.random(64/8)),H)var K=v.create({keySize:B+j,hasher:H}).compute(L,W);else var K=v.create({keySize:B+j}).compute(L,W);var Y=l.create(K.words.slice(B),j*4);return K.sigBytes=B*4,E.create({key:K,iv:Y,salt:W})}},O=a.PasswordBasedCipher=D.extend({cfg:D.cfg.extend({kdf:M}),encrypt:function(L,B,j,W){W=this.cfg.extend(W);var H=W.kdf.execute(j,L.keySize,L.ivSize,W.salt,W.hasher);W.iv=H.iv;var K=D.encrypt.call(this,L,B,H.key,W);return K.mixIn(H),K},decrypt:function(L,B,j,W){W=this.cfg.extend(W),B=this._parse(B,W.format);var H=W.kdf.execute(j,L.keySize,L.ivSize,B.salt,W.hasher);W.iv=H.iv;var K=D.decrypt.call(this,L,B,H.key,W);return K}})})()})})(RE)),RE.exports}var ME={exports:{}},lSt=ME.exports,mle;function uSt(){return mle||(mle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(lSt,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,v=this._counter;p&&(v=this._counter=p.slice(0),this._iv=void 0),a(v);var g=v.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})})(FE)),FE.exports}var jE={exports:{}},_St=jE.exports,kle;function SSt(){return kle||(kle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(_St,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})})(jE)),jE.exports}var VE={exports:{}},kSt=VE.exports,xle;function xSt(){return xle||(xle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(kSt,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})})(VE)),VE.exports}var zE={exports:{}},CSt=zE.exports,Cle;function wSt(){return Cle||(Cle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(CSt,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})})(zE)),zE.exports}var UE={exports:{}},ESt=UE.exports,wle;function TSt(){return wle||(wle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(ESt,function(n){return n.pad.NoPadding={pad:function(){},unpad:function(){}},n.pad.NoPadding})})(UE)),UE.exports}var HE={exports:{}},ASt=HE.exports,Ele;function ISt(){return Ele||(Ele=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),Ea())})(ASt,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})})(HE)),HE.exports}var WE={exports:{}},LSt=WE.exports,Tle;function DSt(){return Tle||(Tle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(LSt,function(n){return(function(){var r=n,o=r.lib,a=o.BlockCipher,s=r.algo,l=[],c=[],d=[],h=[],p=[],v=[],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],O=E[M],L=E[O],B=E[P]*257^P*16843008;d[T]=B<<24|B>>>8,h[T]=B<<16|B>>>16,p[T]=B<<8|B>>>24,v[T]=B;var B=L*16843009^O*65537^M*257^T*16843008;g[P]=B<<24|B>>>8,y[P]=B<<16|B>>>16,S[P]=B<<8|B>>>24,k[P]=B,T?(T=M^E[E[E[L^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,O=this._keySchedule=[],L=0;L6&&L%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[L/D|0]<<24),O[L]=O[L-D]^E);for(var B=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,v,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,O,L){for(var B=this._nRounds,j=E[_]^T[0],W=E[_+1]^T[1],H=E[_+2]^T[2],K=E[_+3]^T[3],Y=4,ne=1;ne>>24]^P[W>>>16&255]^M[H>>>8&255]^O[K&255]^T[Y++],U=D[W>>>24]^P[H>>>16&255]^M[K>>>8&255]^O[j&255]^T[Y++],q=D[H>>>24]^P[K>>>16&255]^M[j>>>8&255]^O[W&255]^T[Y++],ee=D[K>>>24]^P[j>>>16&255]^M[W>>>8&255]^O[H&255]^T[Y++];j=X,W=U,H=q,K=ee}var X=(L[j>>>24]<<24|L[W>>>16&255]<<16|L[H>>>8&255]<<8|L[K&255])^T[Y++],U=(L[W>>>24]<<24|L[H>>>16&255]<<16|L[K>>>8&255]<<8|L[j&255])^T[Y++],q=(L[H>>>24]<<24|L[K>>>16&255]<<16|L[j>>>8&255]<<8|L[W&255])^T[Y++],ee=(L[K>>>24]<<24|L[j>>>16&255]<<16|L[W>>>8&255]<<8|L[H&255])^T[Y++];E[_]=X,E[_+1]=U,E[_+2]=q,E[_+3]=ee},keySize:256/32});r.AES=a._createHelper(x)})(),n.AES})})(WE)),WE.exports}var GE={exports:{}},PSt=GE.exports,Ale;function RSt(){return Ale||(Ale=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(PSt,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}],v=[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]=[],O=h[P],_=0;_<24;_++)M[_/6|0]|=E[(d[_]-1+O)%28]<<31-_%6,M[4+(_/6|0)]|=E[28+(d[_+24]-1+O)%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 L=this._invSubKeys=[],_=0;_<16;_++)L[_]=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,O=0;O<8;O++)M|=p[O][((P^T[O])&v[O])>>>0];this._lBlock=P,this._rBlock=D^M}var L=this._lBlock;this._lBlock=this._rBlock,this._rBlock=L,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})})(GE)),GE.exports}var KE={exports:{}},MSt=KE.exports,Ile;function OSt(){return Ile||(Ile=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(MSt,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,v=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%v,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,v=this._j,g=0,y=0;y<4;y++){p=(p+1)%256,v=(v+h[p])%256;var S=h[p];h[p]=h[v],h[v]=S,g|=h[(h[p]+h[v])%256]<<24-y*8}return this._i=p,this._j=v,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})})(KE)),KE.exports}var qE={exports:{}},$St=qE.exports,Lle;function BSt(){return Lle||(Lle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})($St,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 v=this._key.words,g=this.cfg.iv,y=0;y<4;y++)v[y]=(v[y]<<8|v[y]>>>24)&16711935|(v[y]<<24|v[y]>>>8)&4278255360;var S=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],k=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[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(v,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,v[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var v=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=v[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}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.Rabbit=a._createHelper(h)})(),n.Rabbit})})(qE)),qE.exports}var YE={exports:{}},NSt=YE.exports,Dle;function FSt(){return Dle||(Dle=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(NSt,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 v=this._key.words,g=this.cfg.iv,y=this._X=[v[0],v[3]<<16|v[2]>>>16,v[1],v[0]<<16|v[3]>>>16,v[2],v[1]<<16|v[0]>>>16,v[3],v[2]<<16|v[1]>>>16],S=this._C=[v[2]<<16|v[2]>>>16,v[0]&4294901760|v[1]&65535,v[3]<<16|v[3]>>>16,v[1]&4294901760|v[2]&65535,v[0]<<16|v[0]>>>16,v[2]&4294901760|v[3]&65535,v[1]<<16|v[1]>>>16,v[3]&4294901760|v[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(v,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,v[g+S]^=l[S]},blockSize:128/32,ivSize:64/32});function p(){for(var v=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=v[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}v[0]=d[0]+(d[7]<<16|d[7]>>>16)+(d[6]<<16|d[6]>>>16)|0,v[1]=d[1]+(d[0]<<8|d[0]>>>24)+d[7]|0,v[2]=d[2]+(d[1]<<16|d[1]>>>16)+(d[0]<<16|d[0]>>>16)|0,v[3]=d[3]+(d[2]<<8|d[2]>>>24)+d[1]|0,v[4]=d[4]+(d[3]<<16|d[3]>>>16)+(d[2]<<16|d[2]>>>16)|0,v[5]=d[5]+(d[4]<<8|d[4]>>>24)+d[3]|0,v[6]=d[6]+(d[5]<<16|d[5]>>>16)+(d[4]<<16|d[4]>>>16)|0,v[7]=d[7]+(d[6]<<8|d[6]>>>24)+d[5]|0}r.RabbitLegacy=a._createHelper(h)})(),n.RabbitLegacy})})(YE)),YE.exports}var XE={exports:{}},jSt=XE.exports,Ple;function VSt(){return Ple||(Ple=1,(function(e,t){(function(n,r,o){e.exports=r(Ni(),rg(),ig(),U0(),Ea())})(jSt,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 v(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;PMle.enc.Base64.stringify(Mle.enc.Utf8.parse(e)),WSt=e=>{if(!e||typeof e!="object")return"";try{const t=JSON.stringify(e);return Mz(t)}catch(t){return console.error("筛选条件编码失败:",t),""}},$p=e=>!e||typeof e!="string"||e.trim().length===0||e.length>100?!1:!/[\x00-\x1F\x7F]/.test(e),GSt=e=>{if(!e||typeof e!="string")return!1;const t=e.trim();return t.length===0||t==="no_data"?!1:e.length<=1024},KSt={NORMAL:"normal"},qSt=()=>({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:KSt.NORMAL}),YSt=()=>({page:1,pageSize:20,total:0,totalPages:0,hasNext:!1,hasPrev:!1}),XSt=()=>({key:"",name:"",type:0,api:"",searchable:1,quickSearch:1,filterable:1,order:0,ext:"",more:null});class ZSt{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 co.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 D_t(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=XSt();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{gl.getConfigStatus().hasConfigUrl&&await this.loadSitesFromConfig()}catch(t){console.error("从配置服务初始化失败:",t)}}async loadSitesFromConfig(t=!1){try{const n=await gl.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 gl.getConfigStatus()}async setConfigUrl(t){try{const n=await gl.setConfigUrl(t);return n&&await this.loadSitesFromConfig(!0),n}catch(n){throw console.error("设置配置地址失败:",n),n}}getConfigUrl(){return gl.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 _s=new JSt,QSt={name:"InputAction",components:{ActionDialog:ep},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=el(),r=fe(null),o=fe(null),a=fe(""),s=fe(""),l=fe(null),c=fe(0),d=fe(null),h=fe(!1),p=fe(""),v=fe(e.config.msg||""),g=F(()=>e.config.type==="edit"||e.config.multiLine>1),y=F(()=>{const{inputType:ge=0}=e.config;return{0:"text",1:"password",2:"number",3:"email",4:"url"}[ge]||"text"}),S=F(()=>l0(e.config.selectData||"")),k=F(()=>e.config.qrcode?Hye(e.config.qrcode,e.config.qrcodeSize):""),C=F(()=>{const ge=Kc(e.config.button);return ge===vi.OK_CANCEL||ge===vi.OK_ONLY||ge===vi.CUSTOM}),x=F(()=>{const ge=Kc(e.config.button);return ge===vi.OK_CANCEL||ge===vi.CANCEL_ONLY||ge===vi.CUSTOM}),E=F(()=>Kc(e.config.button)===vi.CUSTOM),_=F(()=>!!s.value),T=F(()=>!(_.value||e.config.required&&!a.value.trim())),D=Wye(ge=>{if(s.value="",e.config.required&&!ge.trim())return s.value="此字段为必填项",!1;if(e.config.validation)try{if(!new RegExp(e.config.validation).test(ge))return s.value="输入格式不正确",!1}catch(_e){console.warn("验证正则表达式错误:",_e)}if(y.value==="email"&&ge&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(ge))return s.value="请输入有效的邮箱地址",!1;if(y.value==="url"&&ge)try{new URL(ge)}catch{return s.value="请输入有效的URL地址",!1}return!0},300),P=ge=>{const _e=ge.target.value;a.value=_e,D(_e)},M=async()=>{if(!T.value)return;const ge={};e.config.imageClickCoord&&l.value&&(ge.imageCoords=l.value);const _e=a.value;if(ge[e.config.id||"value"]=_e,e.config.actionId)try{console.log("111:",e.config.actionId);const ze=await Fe(e.config.actionId,_e);if(console.log("222:",typeof ze),typeof ze=="string"){Kn(ze,"success"),t("close");return}if(ze&&ze.action){const Qe=ze.action,Je=ze.toast;switch(Je&&Kn(Je,"success"),Qe.actionId){case"__keep__":Qe.msg&&(v.value=Qe.msg),Qe.reset&&(a.value="",s.value="",t("reset"));return;case"__detail__":console.log("详情页跳转:",Qe),await O(Qe),t("close");return;case"__copy__":await L(Qe,Je),t("close");return;case"__self_search__":await B(Qe),t("close");return;case"__refresh_list__":await j(Qe),t("close");return;case"__ktvplayer__":await W(Qe),t("close");return;default:if(Qe.type){console.log("检测到普通动作,触发新的ActionRenderer:",Qe),t("action",Qe);return}else console.warn("未知的专项动作:",Qe.actionId);break}}}catch(ze){console.error("确认按钮T4接口调用失败:",ze),Kn("操作失败,请重试","error");return}t("submit",ge)},O=async ge=>{try{const{skey:_e,ids:ze}=ge;if(!_e||!ze){Kn("详情页跳转参数不完整","error");return}const Qe=_s.getSiteByKey(_e);if(!Qe){Kn(`未找到站源: ${_e}`,"error");return}console.log("跳转到详情页:",{skey:_e,ids:ze,site:Qe.name}),console.log("site:",Qe),n.push({name:"VideoDetail",params:{id:ze},query:{tempSiteName:Qe.name,tempSiteApi:Qe.api,tempSiteKey:Qe.key,tempSiteExt:Qe.ext,fromSpecialAction:"true",actionType:"__detail__",sourcePic:""}}),Kn(`正在加载 ${Qe.name} 的详情...`,"info")}catch(_e){console.error("详情页跳转失败:",_e),Kn("详情页跳转失败","error")}},L=async(ge,_e)=>{try{const{content:ze}=ge;if(!ze){Kn("没有可复制的内容","error");return}await navigator.clipboard.writeText(ze),_e||Kn("已复制到剪切板","success")}catch(ze){console.error("复制失败:",ze),Kn("复制失败","error")}},B=async ge=>{try{const{skey:_e,name:ze,tid:Qe,flag:Je,folder:Te}=ge,ve={name:ze||"搜索",tid:Qe||"",flag:Je||"",folder:Te||""};if(_e){const be=_s.getSiteByKey(_e);be&&(_s.setCurrentSite(_e),Kn(`已切换到 ${be.name}`,"info"))}console.log("执行源内搜索:",ve),Kn("正在执行源内搜索...","info"),console.log("📝 [InputAction DEBUG] 即将触发 special-action 事件"),console.log("📝 [InputAction DEBUG] 事件参数:",{actionType:"__self_search__",eventData:{tid:ve.tid,name:ve.name,type_id:ve.tid,type_name:ve.name,actionData:ve}}),t("special-action","__self_search__",{tid:ve.tid,name:ve.name,type_id:ve.tid,type_name:ve.name,actionData:ve}),console.log("📝 [InputAction DEBUG] special-action 事件已触发")}catch(_e){console.error("源内搜索失败:",_e),Kn("源内搜索失败","error")}},j=async ge=>{try{console.log("执行刷新列表:",ge);const ze=n.currentRoute.value.name;switch(ze){case"Video":window.dispatchEvent(new CustomEvent("refreshVideoList",{detail:{...ge,type:"video"}}));break;case"Live":window.dispatchEvent(new CustomEvent("refreshLiveList",{detail:{...ge,type:"live"}}));break;case"Collection":window.dispatchEvent(new CustomEvent("refreshCollectionList",{detail:{...ge,type:"collection"}}));break;case"History":window.dispatchEvent(new CustomEvent("refreshHistoryList",{detail:{...ge,type:"history"}}));break;case"BookGallery":window.dispatchEvent(new CustomEvent("refreshBookList",{detail:{...ge,type:"book"}}));break;default:window.dispatchEvent(new CustomEvent("refreshList",{detail:{...ge,routeName:ze}}));break}ge.type&&window.dispatchEvent(new CustomEvent(`refresh${ge.type}List`,{detail:ge})),Kn("列表刷新中...","info"),setTimeout(()=>{Kn("列表已刷新","success")},500)}catch(_e){console.error("刷新列表失败:",_e),Kn("刷新列表失败","error")}},W=async ge=>{try{const{name:_e,id:ze,url:Qe,type:Je="ktv"}=ge;if(!_e||!ze){Kn("KTV播放参数不完整","error");return}console.log("启动KTV播放:",{name:_e,id:ze,url:Qe,type:Je});const Te={title:_e,videoId:ze,playUrl:Qe||ze,playType:Je,isKtv:!0,showLyrics:!0,enableKaraokeMode:!0,fromAction:"__ktvplayer__"};try{n.push({name:"KtvPlayer",params:{id:ze},query:{title:_e,url:Qe||ze,type:Je,mode:"ktv"}}),Kn(`正在启动KTV播放: ${_e}`,"success")}catch{console.log("KTV专用页面不存在,使用通用播放器"),window.dispatchEvent(new CustomEvent("startKtvPlay",{detail:Te})),n.push({name:"VideoPlayer",params:{id:ze},query:{title:_e,url:Qe||ze,type:Je,ktvMode:"true",showLyrics:"true",fromAction:"__ktvplayer__"}}),Kn(`正在播放: ${_e}`,"success")}}catch(_e){console.error("KTV播放失败:",_e),Kn("KTV播放失败","error")}},H=async()=>{if(e.config.cancelAction&&e.config.cancelValue!==void 0)try{await Fe(e.config.cancelAction,e.config.cancelValue)}catch(ge){console.error("取消按钮T4接口调用失败:",ge)}t("cancel"),t("close")},K=()=>{a.value="",s.value="",r.value&&r.value.focus()},Y=()=>{p.value=a.value,h.value=!0,Cn(()=>{o.value&&o.value.focus()})},ne=()=>{h.value=!1},X=()=>{a.value=p.value,h.value=!1,P({target:{value:p.value}})},U=ge=>{if(!e.config.imageClickCoord)return;const _e=ge.target.getBoundingClientRect(),ze=Math.round(ge.clientX-_e.left),Qe=Math.round(ge.clientY-_e.top);l.value={x:ze,y:Qe};const Je=`${ze},${Qe}`;a.value.trim()?a.value=`${a.value}-${Je}`:a.value=Je,D(a.value)},q=ge=>{a.value=ge.value,D(ge.value),e.config.onlyQuickSelect&&Cn(()=>{M()})},ee=()=>{console.log("图片加载成功")},re=()=>{console.error("图片加载失败")},ae=()=>{console.error("二维码生成失败")},ie=()=>{!e.config.timeout||e.config.timeout<=0||(c.value=e.config.timeout,d.value=setInterval(()=>{c.value--,c.value<=0&&(clearInterval(d.value),H())},1e3))},ke=()=>{d.value&&(clearInterval(d.value),d.value=null),c.value=0},Fe=async(ge,_e)=>{if(!e.module&&!e.apiUrl)return console.warn("未提供module或apiUrl,无法调用T4接口"),null;const ze={},Qe=e.config.id||"value";ze[Qe]=_e;const Je={action:ge,value:JSON.stringify(ze)};e.extend&&e.extend.ext&&(Je.extend=e.extend.ext),e.apiUrl&&(Je.apiUrl=e.apiUrl),console.log("InputAction调用T4接口:",{module:e.module,actionData:Je,apiUrl:e.apiUrl});let Te=null;return e.module?(console.log("调用模块:",e.module),Te=await yS(e.module,Je)):e.apiUrl&&(console.log("直接调用API:",e.apiUrl),Te=(await(await Fd(async()=>{const{default:Me}=await Promise.resolve().then(()=>fG);return{default:Me}},void 0)).default.post(e.apiUrl,Je,{timeout:hG(),headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).data),console.log("T4接口返回结果:",Te),Te};return Rt(()=>e.config,ge=>{a.value=ge.value||"",s.value="",l.value=null,ge.timeout?ie():ke()},{immediate:!0}),Rt(()=>e.visible,ge=>{ge?(Cn(()=>{r.value&&r.value.focus()}),ie()):ke()}),bn(()=>{e.visible&&r.value&&r.value.focus()}),gi(()=>{ke()}),{inputRef:r,inputValue:a,errorMessage:s,imageCoords:l,timeLeft:c,currentMessage:v,isMultiLine:g,inputType:y,quickSelectOptions:S,qrcodeUrl:k,showOkButton:C,showCancelButton:x,showResetButton:E,hasError:_,isValid:T,handleInput:P,handleSubmit:M,handleCancel:H,handleReset:K,handleImageClick:U,selectQuickOption:q,onImageLoad:ee,onImageError:re,onQrcodeError:ae,textEditorRef:o,showTextEditor:h,editorText:p,openTextEditor:Y,closeTextEditor:ne,saveEditorText:X}}},e6t={class:"input-action-modern"},t6t={key:0,class:"message-section"},n6t={class:"message-content"},r6t={class:"message-text"},i6t={key:1,class:"media-section"},o6t={class:"image-container"},s6t=["src"],a6t={key:0,class:"coords-display"},l6t={class:"coords-value"},u6t={key:2,class:"media-section"},c6t={class:"qrcode-container"},d6t={class:"qrcode-wrapper"},f6t=["src","alt"],h6t={class:"qrcode-text"},p6t={key:3,class:"input-section"},v6t={key:0,class:"quick-select"},m6t={class:"quick-select-options"},g6t={class:"input-group"},y6t={key:0,class:"input-label"},b6t={key:1,class:"input-container"},_6t={class:"input-wrapper-modern"},S6t=["type","placeholder"],k6t={class:"input-actions"},x6t={key:2,class:"textarea-container"},C6t={class:"textarea-wrapper-modern"},w6t=["placeholder","rows"],E6t={class:"input-status"},T6t={key:0,class:"error-message"},A6t={key:1,class:"help-message"},I6t={key:2,class:"char-count"},L6t={key:4,class:"timeout-section"},D6t={class:"timeout-indicator"},P6t={class:"timeout-text"},R6t={class:"timeout-progress"},M6t={class:"modern-footer"},O6t=["disabled"],$6t={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},B6t={class:"text-editor"},N6t={class:"modern-footer"};function F6t(e,t,n,r,o,a){const s=Ie("a-tag"),l=Ie("ActionDialog");return z(),Q(Bt,null,[$(l,{visible:n.visible,title:n.config.title,width:n.config.width||420,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleCancel,onToast:t[14]||(t[14]=(c,d)=>e.emit("toast",c,d)),onReset:t[15]||(t[15]=()=>e.emit("reset"))},{footer:de(()=>[I("div",M6t,[r.showCancelButton?(z(),Q("button",{key:0,class:"btn-modern btn-secondary",onClick:t[11]||(t[11]=(...c)=>r.handleCancel&&r.handleCancel(...c))},[...t[26]||(t[26]=[I("span",null,"取消",-1)])])):Le("",!0),r.showResetButton?(z(),Q("button",{key:1,class:"btn-modern btn-secondary",onClick:t[12]||(t[12]=(...c)=>r.handleReset&&r.handleReset(...c))},[...t[27]||(t[27]=[I("span",null,"重置",-1)])])):Le("",!0),r.showOkButton?(z(),Q("button",{key:2,class:ue(["btn-modern btn-primary",{disabled:!r.isValid}]),disabled:!r.isValid,onClick:t[13]||(t[13]=(...c)=>r.handleSubmit&&r.handleSubmit(...c))},[t[29]||(t[29]=I("span",null,"确定",-1)),r.isValid?(z(),Q("svg",$6t,[...t[28]||(t[28]=[I("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])])):Le("",!0)],10,O6t)):Le("",!0)])]),default:de(()=>[I("div",e6t,[n.config.msg?(z(),Q("div",t6t,[I("div",n6t,[t[19]||(t[19]=I("div",{class:"message-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])],-1)),I("p",r6t,je(r.currentMessage),1)])])):Le("",!0),n.config.imageUrl?(z(),Q("div",i6t,[I("div",o6t,[I("img",{src:n.config.imageUrl,style:Ge({height:n.config.imageHeight?`${n.config.imageHeight}px`:"auto"}),class:ue(["action-image-modern",{clickable:n.config.imageClickCoord}]),onClick:t[0]||(t[0]=(...c)=>r.handleImageClick&&r.handleImageClick(...c)),onLoad:t[1]||(t[1]=(...c)=>r.onImageLoad&&r.onImageLoad(...c)),onError:t[2]||(t[2]=(...c)=>r.onImageError&&r.onImageError(...c))},null,46,s6t),r.imageCoords?(z(),Q("div",a6t,[t[20]||(t[20]=I("span",{class:"coords-label"},"点击坐标:",-1)),I("span",l6t,je(r.imageCoords.x)+", "+je(r.imageCoords.y),1)])):Le("",!0)])])):Le("",!0),n.config.qrcode?(z(),Q("div",u6t,[I("div",c6t,[I("div",d6t,[I("img",{src:r.qrcodeUrl,alt:n.config.qrcode,class:"qrcode-image",onError:t[3]||(t[3]=(...c)=>r.onQrcodeError&&r.onQrcodeError(...c))},null,40,f6t)]),I("p",h6t,je(n.config.qrcode),1)])])):Le("",!0),n.config.qrcode?Le("",!0):(z(),Q("div",p6t,[r.quickSelectOptions.length>0?(z(),Q("div",v6t,[I("div",m6t,[(z(!0),Q(Bt,null,vn(r.quickSelectOptions,c=>(z(),qe(s,{key:c.value,class:"quick-select-tag",onClick:d=>r.selectQuickOption(c)},{default:de(()=>[Ue(je(c.name),1)]),_:2},1032,["onClick"]))),128))])])):Le("",!0),I("div",g6t,[n.config.tip?(z(),Q("label",y6t,je(n.config.tip),1)):Le("",!0),r.isMultiLine?(z(),Q("div",x6t,[I("div",C6t,[Ai(I("textarea",{ref:"inputRef","onUpdate:modelValue":t[8]||(t[8]=c=>r.inputValue=c),placeholder:n.config.tip||"请输入内容...",rows:n.config.multiLine||4,class:ue(["textarea-field-modern",{error:r.hasError,success:!r.hasError&&r.inputValue.length>0}]),onInput:t[9]||(t[9]=(...c)=>r.handleInput&&r.handleInput(...c))},null,42,w6t),[[Ql,r.inputValue]]),I("button",{class:"expand-btn textarea-expand",onClick:t[10]||(t[10]=(...c)=>r.openTextEditor&&r.openTextEditor(...c)),title:"打开大文本编辑器"},[...t[22]||(t[22]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])])])])):(z(),Q("div",b6t,[I("div",_6t,[Ai(I("input",{ref:"inputRef","onUpdate:modelValue":t[4]||(t[4]=c=>r.inputValue=c),type:r.inputType,placeholder:n.config.tip||"请输入内容...",class:ue(["input-field-modern",{error:r.hasError,success:!r.hasError&&r.inputValue.length>0}]),onKeyup:t[5]||(t[5]=Ch((...c)=>r.handleSubmit&&r.handleSubmit(...c),["enter"])),onInput:t[6]||(t[6]=(...c)=>r.handleInput&&r.handleInput(...c))},null,42,S6t),[[_5,r.inputValue]]),I("div",k6t,[I("button",{class:"expand-btn",onClick:t[7]||(t[7]=(...c)=>r.openTextEditor&&r.openTextEditor(...c)),title:"打开大文本编辑器"},[...t[21]||(t[21]=[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])])])])])),I("div",E6t,[r.errorMessage?(z(),Q("div",T6t,[t[23]||(t[23]=I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293-1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})],-1)),I("span",null,je(r.errorMessage),1)])):n.config.help?(z(),Q("div",A6t,[t[24]||(t[24]=I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-3a1 1 0 00-.867.5 1 1 0 11-1.731-1A3 3 0 0113 8a3.001 3.001 0 01-2 2.83V11a1 1 0 11-2 0v-1a1 1 0 011-1 1 1 0 100-2zm0 8a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"})],-1)),I("span",null,je(n.config.help),1)])):Le("",!0),r.inputValue.length>0?(z(),Q("div",I6t,je(r.inputValue.length)+" 字符 ",1)):Le("",!0)])])])),n.config.timeout&&r.timeLeft>0?(z(),Q("div",L6t,[I("div",D6t,[t[25]||(t[25]=I("div",{class:"timeout-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z","clip-rule":"evenodd"})])],-1)),I("span",P6t,je(r.timeLeft)+"秒后自动关闭",1),I("div",R6t,[I("div",{class:"timeout-progress-bar",style:Ge({width:`${r.timeLeft/n.config.timeout*100}%`})},null,4)])])])):Le("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"]),$(l,{visible:r.showTextEditor,title:"大文本编辑器",width:800,onClose:r.closeTextEditor},{footer:de(()=>[I("div",N6t,[I("button",{class:"btn-modern btn-secondary",onClick:t[17]||(t[17]=(...c)=>r.closeTextEditor&&r.closeTextEditor(...c))}," 取消 "),I("button",{class:"btn-modern btn-primary",onClick:t[18]||(t[18]=(...c)=>r.saveEditorText&&r.saveEditorText(...c))}," 确定 ")])]),default:de(()=>[I("div",B6t,[Ai(I("textarea",{ref:"textEditorRef","onUpdate:modelValue":t[16]||(t[16]=c=>r.editorText=c),class:"text-editor-textarea",placeholder:"请输入文本内容..."},null,512),[[Ql,r.editorText]])])]),_:1},8,["visible","onClose"])],64)}const k3e=kr(QSt,[["render",F6t],["__scopeId","data-v-5ccea77c"]]),j6t=Object.freeze(Object.defineProperty({__proto__:null,default:k3e},Symbol.toStringTag,{value:"Module"})),V6t={name:"MultiInputAction",components:{ActionDialog:ep,DatePicker:s0e,"a-radio":Pm,"a-radio-group":ib,"a-checkbox":Uc,"a-checkbox-group":tb},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=el(),r=fe([]),o=fe([]),a=fe([]),s=fe(0),l=fe(null),c=fe(e.config.msg||""),d=fe(null),h=fe(!1),p=fe(""),v=fe(-1),g=fe(!1),y=fe(-1),S=fe(""),k=fe(!1),C=fe(-1),x=fe([]),E=fe(""),_=fe([]),T=fe(!1),D=fe(4),P=fe(!1),M=fe(""),O=F(()=>e.config.type==="multiInputEnhanced"),L=F(()=>{const Kt=Kc(e.config.button);return Kt===vi.OK_CANCEL||Kt===vi.OK_ONLY||Kt===vi.CUSTOM}),B=F(()=>{const Kt=Kc(e.config.button);return Kt===vi.OK_CANCEL||Kt===vi.CANCEL_ONLY||Kt===vi.CUSTOM}),j=F(()=>Kc(e.config.button)===vi.CUSTOM),W=F(()=>{if(o.value.some(Kt=>Kt))return!1;for(let Kt=0;Kt{const Kt=e.config.input||[];a.value=Array.isArray(Kt)?Kt:[Kt],r.value=a.value.map(st=>st.value||""),o.value=a.value.map(()=>"")},K=Kt=>{const{inputType:st=0}=Kt;return{0:"text",1:"password",2:"number",3:"email",4:"url"}[st]||"text"},Y=Kt=>{const st=a.value[Kt],zt=r.value[Kt];if(o.value[Kt]="",st.required&&(!zt||!zt.trim()))return o.value[Kt]=`${st.name||"此字段"}为必填项`,!1;if(st.validation&&zt)try{if(!new RegExp(st.validation).test(zt))return o.value[Kt]=`${st.name||"输入"}格式不正确`,!1}catch(on){console.warn("验证正则表达式错误:",on)}const fn=K(st);if(fn==="email"&&zt&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(zt))return o.value[Kt]="请输入有效的邮箱地址",!1;if(fn==="url"&&zt)try{new URL(zt)}catch{return o.value[Kt]="请输入有效的URL地址",!1}return!0},ne=Wye(Kt=>{Y(Kt)},300),X=async(Kt,st)=>{if(!e.module&&!e.apiUrl)return console.warn("未提供module或apiUrl,无法调用T4接口"),null;try{const zt={action:Kt,value:JSON.stringify(st)};return e.extend&&e.extend.ext&&(zt.extend=e.extend.ext),e.apiUrl&&(zt.apiUrl=e.apiUrl),console.log("InputAction调用T4接口:",{module:e.module,actionData:zt,apiUrl:e.apiUrl}),await yS(e.module,zt)}catch(zt){throw console.error("T4接口调用失败:",zt),zt}},U=async Kt=>{try{const{skey:st,ids:zt}=Kt;if(!st||!zt){Kn("详情页跳转参数不完整","error");return}const fn=_s.getSiteByKey(st);if(!fn){Kn(`未找到站源: ${st}`,"error");return}n.push({name:"VideoDetail",params:{id:zt},query:{tempSiteName:fn.name,tempSiteApi:fn.api,tempSiteKey:fn.key,tempSiteExt:fn.ext,fromSpecialAction:"true",actionType:"__detail__",sourcePic:""}}),Kn(`正在加载 ${fn.name} 的详情...`,"info")}catch(st){console.error("详情页跳转失败:",st),Kn("详情页跳转失败","error")}},q=async(Kt,st)=>{try{const{content:zt}=Kt;if(!zt){Kn("没有可复制的内容","error");return}await navigator.clipboard.writeText(zt),st||Kn("已复制到剪切板","success")}catch(zt){console.error("复制失败:",zt),Kn("复制失败","error")}},ee=async Kt=>{try{const{skey:st,name:zt,tid:fn,flag:on,folder:pn}=Kt,er={name:zt||"搜索",tid:fn||"",flag:on||"",folder:pn||""};if(st){const Kr=_s.getSiteByKey(st);Kr&&(_s.setCurrentSite(st),Kn(`已切换到 ${Kr.name}`,"info"))}console.log("执行源内搜索:",er),Kn("正在执行源内搜索...","info"),t("special-action","__self_search__",{tid:er.tid,name:er.name,type_id:er.tid,type_name:er.name,actionData:er})}catch(st){console.error("源内搜索失败:",st),Kn("源内搜索失败","error")}},re=async Kt=>{try{switch(console.log("执行刷新列表:",Kt),n.currentRoute.value.name){case"Video":window.dispatchEvent(new CustomEvent("refreshVideoList",{detail:Kt})),Kn("视频列表已刷新","success");break;case"Live":window.dispatchEvent(new CustomEvent("refreshLiveList",{detail:Kt})),Kn("直播列表已刷新","success");break;default:Kn("列表已刷新","success");break}}catch(st){console.error("刷新列表失败:",st),Kn("刷新列表失败","error")}},ae=async Kt=>{try{console.log("执行KTV播放:",Kt),Kn("正在启动KTV播放...","info")}catch(st){console.error("KTV播放失败:",st),Kn("KTV播放失败","error")}},ie=(Kt,st)=>{const zt=st.target.value;r.value[Kt]=zt,ne(Kt)},ke=(Kt,st)=>{r.value[Kt]=st,Y(Kt)},Fe=async()=>{let Kt=!0;for(let zt=0;zt{const on=zt.id||zt.name||`input_${fn}`;st[on]=r.value[fn]}),e.config.actionId)try{console.log("多输入框T4接口调用:",e.config.actionId,st);const zt=await X(e.config.actionId,st);if(typeof zt=="string"){Kn(zt,"success"),t("close");return}if(zt&&zt.action){const fn=zt.action,on=zt.toast;switch(on&&Kn(on,"success"),fn.actionId){case"__keep__":fn.msg&&(c.value=fn.msg),fn.reset&&(r.value=r.value.map(()=>""),o.value=o.value.map(()=>""),t("reset"));return;case"__detail__":await U(fn),t("close");return;case"__copy__":await q(fn,on),t("close");return;case"__self_search__":await ee(fn),t("close");return;case"__refresh_list__":await re(fn),t("close");return;case"__ktvplayer__":await ae(fn),t("close");return;default:if(fn.type){console.log("检测到普通动作,触发新的ActionRenderer:",fn),t("action",fn);return}else console.warn("未知的专项动作:",fn.actionId);break}}}catch(zt){console.error("多输入框T4接口调用失败:",zt),Kn("操作失败,请重试","error");return}t("submit",st)},ge=()=>{t("cancel"),t("close")},_e=()=>{r.value=r.value.map(()=>""),o.value=o.value.map(()=>""),t("reset")},ze=Kt=>{v.value=Kt,p.value=r.value[Kt]||"",h.value=!0,Cn(()=>{d.value&&d.value.focus()})},Qe=()=>{h.value=!1,v.value=-1},Je=()=>{v.value>=0&&(r.value[v.value]=p.value,ie(v.value,{target:{value:p.value}})),h.value=!1,v.value=-1},Te=Kt=>l0(Kt),ve=Kt=>{if(!Kt.selectData)return null;const st=l0(Kt.selectData);for(const zt of st)if(zt.value&&zt.value.startsWith("[")&&zt.value.endsWith("]")){const fn=zt.value.slice(1,-1).toLowerCase();if(["calendar","file","folder","image"].includes(fn))return fn}return null},be=Kt=>({calendar:"选择日期",file:"选择文件",folder:"选择文件夹",image:"选择图片"})[Kt]||"特殊输入",Me=(Kt,st)=>{switch(st){case"calendar":Oe(Kt);break;case"file":$e(Kt);break;case"folder":Ct(Kt);break;case"image":Zt(Kt);break;default:console.warn("未知的特殊输入类型:",st)}},He=Kt=>{const st=a.value[Kt];if(st.selectData){if(C.value=Kt,x.value=l0(st.selectData),T.value=st.multiSelect===!0,D.value=st.selectColumn||4,T.value){const zt=r.value[Kt]||"";_.value=zt?zt.split(",").map(fn=>fn.trim()).filter(fn=>fn):[]}else E.value=r.value[Kt]||"";k.value=!0}},Xe=Kt=>{C.value>=0&&(r.value[C.value]=Kt.value,Y(C.value)),k.value=!1,C.value=-1,x.value=[]},rt=Kt=>{C.value>=0&&(r.value[C.value]=Kt,Y(C.value))},ft=()=>{k.value=!1,C.value=-1,x.value=[],E.value=""},lt=()=>{_.value=x.value.map(Kt=>Kt.value)},Et=()=>{_.value=[]},St=()=>{const Kt=x.value.map(st=>st.value);_.value=Kt.filter(st=>!_.value.includes(st))},Wt=()=>{C.value>=0&&(T.value?r.value[C.value]=_.value.join(","):r.value[C.value]=_.value[0]||"",Y(C.value)),k.value=!1,C.value=-1,x.value=[],_.value=[],T.value=!1},Tt=Kt=>Kt&&Kt.startsWith("[")&&Kt.endsWith("]"),Mt=Kt=>{if(Tt(Kt.value)){const st=Kt.value.slice(1,-1).toLowerCase();return{calendar:"📅 选择日期",file:"📄 选择文件",folder:"📁 选择文件夹",image:"🖼️ 选择图片"}[st]||Kt.name}return Kt.name},sn=Kt=>Te(Kt).some(zt=>!Tt(zt.value)),ct=Kt=>Te(Kt).filter(zt=>!Tt(zt.value)),Ne=(Kt,st)=>{if(st.value.startsWith("[")&&st.value.endsWith("]"))switch(st.value.slice(1,-1).toLowerCase()){case"calendar":Oe(Kt);break;case"file":$e(Kt);break;case"folder":Ct(Kt);break;case"image":Zt(Kt);break;default:r.value[Kt]=st.value;break}else r.value[Kt]=st.value;Y(Kt)},De=(Kt,st)=>r.value[Kt]===st.value,Oe=Kt=>{y.value=Kt,g.value=!0},Ye=Kt=>{Kt&&y.value>=0&&(r.value[y.value]=Kt,Y(y.value)),g.value=!1,y.value=-1},dt=()=>{g.value=!1,y.value=-1},Dt=Kt=>{M.value=Kt,P.value=!0},pt=()=>{P.value=!1,M.value=""},$e=Kt=>{const st=document.createElement("input");st.type="file",st.style.position="absolute",st.style.left="-9999px",document.body.appendChild(st),st.addEventListener("change",zt=>{zt.target.files&&zt.target.files[0]&&(r.value[Kt]=zt.target.files[0].name,Y(Kt)),document.body.removeChild(st)}),st.click()},Ct=Kt=>{const st=document.createElement("input");st.type="file",st.webkitdirectory=!0,st.multiple=!0,st.style.position="absolute",st.style.left="-9999px",st.style.opacity="0",document.body.appendChild(st),st.addEventListener("change",zt=>{if(zt.target.files&&zt.target.files.length>0){const fn=zt.target.files[0],on=fn.webkitRelativePath;if(on){const pn=on.split("/")[0];r.value[Kt]=pn}else{const pn=fn.name,er=pn.substring(0,pn.lastIndexOf("."))||pn;r.value[Kt]=er}Y(Kt)}document.body.removeChild(st)}),st.addEventListener("cancel",()=>{document.body.removeChild(st)}),st.click()},Zt=Kt=>{const st=document.createElement("input");st.type="file",st.accept="image/*",st.style.position="absolute",st.style.left="-9999px",document.body.appendChild(st),st.addEventListener("change",zt=>{if(zt.target.files&&zt.target.files[0]){const fn=zt.target.files[0],on=new FileReader;on.onload=pn=>{r.value[Kt]=pn.target.result,Y(Kt)},on.readAsDataURL(fn)}document.body.removeChild(st)}),st.click()},tn=()=>{const Kt={id:`dynamic_${Date.now()}`,name:`输入项 ${a.value.length+1}`,tip:"请输入内容",required:!1};a.value.push(Kt),r.value.push(""),o.value.push("")},Ft=Kt=>{a.value.length<=1||(a.value.splice(Kt,1),r.value.splice(Kt,1),o.value.splice(Kt,1))},rn=()=>{r.value=r.value.map(()=>""),o.value=o.value.map(()=>"")},Qn=()=>{a.value.forEach((Kt,st)=>{Kt.example?r.value[st]=Kt.example:r.value[st]=`示例${st+1}`}),a.value.forEach((Kt,st)=>{Y(st)})},mr=()=>{!e.config.timeout||e.config.timeout<=0||(s.value=e.config.timeout,l.value=setInterval(()=>{s.value--,s.value<=0&&(clearInterval(l.value),ge())},1e3))},yi=()=>{l.value&&(clearInterval(l.value),l.value=null),s.value=0};return Rt(()=>e.config,Kt=>{H(),c.value=Kt.msg||"",Kt.timeout?mr():yi()},{immediate:!0}),Rt(()=>e.visible,Kt=>{Kt?mr():yi()}),bn(()=>{H()}),gi(()=>{yi()}),{inputValues:r,inputErrors:o,inputItems:a,timeLeft:s,currentMessage:c,isEnhanced:O,showOkButton:L,showCancelButton:B,showResetButton:j,isValid:W,getInputType:K,validateInput:Y,handleInputChange:ie,handleDateChange:ke,handleSubmit:Fe,handleCancel:ge,handleReset:_e,selectQuickOption:Ne,handleDateSelect:Oe,handleFileSelect:$e,handleFolderSelect:Ct,handleImageSelect:Zt,addInputItem:tn,removeInputItem:Ft,clearAll:rn,fillExample:Qn,parseSelectData:l0,getSelectOptions:Te,isSpecialSelector:Tt,getOptionDisplayName:Mt,getSpecialInputType:ve,getSpecialInputTitle:be,handleSpecialInput:Me,hasNonSpecialOptions:sn,getNonSpecialOptions:ct,showTextEditor:h,textEditorRef:d,editorText:p,openTextEditor:ze,closeTextEditor:Qe,saveEditorText:Je,showDatePicker:g,selectedDate:S,handleDateConfirm:Ye,handleDateCancel:dt,showSelectOptions:k,currentSelectOptions:x,selectedRadioValue:E,openSelectOptions:He,selectOption:Xe,handleRadioChange:rt,confirmRadioSelection:ft,isOptionSelected:De,selectedCheckboxValues:_,isMultiSelectMode:T,currentSelectColumn:D,selectAll:lt,clearSelection:Et,invertSelection:St,confirmMultiSelection:Wt,showHelpDialog:P,helpContent:M,showHelpPopup:Dt,closeHelpDialog:pt}}},z6t={class:"multi-input-action-modern"},U6t={key:0,class:"message-section"},H6t={class:"message-content"},W6t={class:"message-text"},G6t={key:1,class:"media-section"},K6t={class:"image-container"},q6t=["src"],Y6t={class:"inputs-section"},X6t={class:"inputs-container"},Z6t={key:0,class:"input-label-container"},J6t={class:"input-label"},Q6t={key:0,class:"required-indicator"},ekt=["onClick"],tkt={class:"input-group"},nkt={key:0,class:"quick-select"},rkt={class:"quick-select-options"},ikt=["onClick"],okt={key:1,class:"input-container"},skt={class:"input-wrapper-modern"},akt={key:2,class:"input-container"},lkt={class:"input-wrapper-modern"},ukt=["onUpdate:modelValue","type","placeholder","readonly","onInput","onBlur"],ckt={class:"input-actions"},dkt=["onClick","title"],fkt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},hkt={key:1,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},pkt={key:2,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},vkt={key:3,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},mkt=["onClick"],gkt=["onClick"],ykt={key:3,class:"textarea-container"},bkt={class:"textarea-wrapper-modern"},_kt=["onUpdate:modelValue","placeholder","rows","readonly","onInput","onBlur"],Skt=["onClick","title"],kkt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},xkt={key:1,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},Ckt={key:2,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},wkt={key:3,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},Ekt=["onClick"],Tkt={class:"input-status"},Akt={key:0,class:"error-message"},Ikt={key:1,class:"char-count"},Lkt=["onClick"],Dkt={key:2,class:"enhanced-section"},Pkt={class:"enhanced-controls"},Rkt={key:1,class:"batch-controls"},Mkt={key:3,class:"timeout-section"},Okt={class:"timeout-indicator"},$kt={class:"timeout-text"},Bkt={class:"timeout-progress"},Nkt={class:"modern-footer"},Fkt=["disabled"],jkt={key:0,width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},Vkt={class:"text-editor"},zkt={class:"modern-footer"},Ukt={class:"date-picker-container"},Hkt={class:"modern-footer"},Wkt=["innerHTML"],Gkt={class:"modern-footer"},Kkt={class:"select-options-content"},qkt={key:0,class:"radio-container"},Ykt={key:1,class:"multiselect-container"},Xkt={class:"multiselect-main"},Zkt={class:"multiselect-actions"},Jkt={class:"modern-footer"};function Qkt(e,t,n,r,o,a){const s=Ie("DatePicker"),l=Ie("ActionDialog"),c=Ie("a-radio"),d=Ie("a-radio-group"),h=Ie("a-checkbox"),p=Ie("a-checkbox-group");return z(),Q(Bt,null,[$(l,{visible:n.visible,title:n.config.title,width:n.config.width||600,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleCancel,onToast:t[6]||(t[6]=(v,g)=>e.emit("toast",v,g)),onReset:t[7]||(t[7]=()=>e.emit("reset"))},{footer:de(()=>[I("div",Nkt,[r.showCancelButton?(z(),Q("button",{key:0,class:"btn-modern btn-secondary",onClick:t[3]||(t[3]=(...v)=>r.handleCancel&&r.handleCancel(...v))},[...t[41]||(t[41]=[I("span",null,"取消",-1)])])):Le("",!0),r.showResetButton?(z(),Q("button",{key:1,class:"btn-modern btn-secondary",onClick:t[4]||(t[4]=(...v)=>r.handleReset&&r.handleReset(...v))},[...t[42]||(t[42]=[I("span",null,"重置",-1)])])):Le("",!0),r.showOkButton?(z(),Q("button",{key:2,class:ue(["btn-modern btn-primary",{disabled:!r.isValid}]),disabled:!r.isValid,onClick:t[5]||(t[5]=(...v)=>r.handleSubmit&&r.handleSubmit(...v))},[t[44]||(t[44]=I("span",null,"确定",-1)),r.isValid?(z(),Q("svg",jkt,[...t[43]||(t[43]=[I("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"},null,-1)])])):Le("",!0)],10,Fkt)):Le("",!0)])]),default:de(()=>[I("div",z6t,[n.config.msg?(z(),Q("div",U6t,[I("div",H6t,[t[23]||(t[23]=I("div",{class:"message-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a1 1 0 000 2v3a1 1 0 001 1h1a1 1 0 100-2v-3a1 1 0 00-1-1H9z","clip-rule":"evenodd"})])],-1)),I("p",W6t,je(r.currentMessage),1)])])):Le("",!0),n.config.imageUrl?(z(),Q("div",G6t,[I("div",K6t,[I("img",{src:n.config.imageUrl,style:Ge({height:n.config.imageHeight?`${n.config.imageHeight}px`:"auto"}),class:"action-image-modern",alt:"配置图片"},null,12,q6t)])])):Le("",!0),I("div",Y6t,[I("div",X6t,[(z(!0),Q(Bt,null,vn(r.inputItems,(v,g)=>(z(),Q("div",{key:v.id||g,class:"input-item"},[v.name?(z(),Q("div",Z6t,[I("label",J6t,[Ue(je(v.name)+" ",1),v.required?(z(),Q("span",Q6t,"*")):Le("",!0),v.help?(z(),Q("button",{key:1,class:"help-button",onClick:y=>r.showHelpPopup(v.help),title:"查看帮助信息"}," ? ",8,ekt)):Le("",!0)])])):Le("",!0),I("div",tkt,[v.selectData&&r.hasNonSpecialOptions(v.selectData)&&!v.multiSelect?(z(),Q("div",nkt,[I("div",rkt,[(z(!0),Q(Bt,null,vn(r.getNonSpecialOptions(v.selectData),y=>(z(),Q("button",{key:y.value,class:ue(["quick-select-tag",{selected:r.isOptionSelected(g,y)}]),onClick:S=>r.selectQuickOption(g,y)},je(y.name),11,ikt))),128))])])):Le("",!0),(!v.multiLine||v.multiLine<=1)&&!v.onlyQuickSelect&&v.selectData==="[calendar]"&&v.inputType===0?(z(),Q("div",okt,[I("div",skt,[$(s,{modelValue:r.inputValues[g],"onUpdate:modelValue":y=>r.inputValues[g]=y,placeholder:v.tip||v.name,class:ue(["date-picker-modern",{error:r.inputErrors[g],success:!r.inputErrors[g]&&r.inputValues[g]&&v.required}]),style:{width:"100%"},format:"YYYY-MM-DD",onChange:y=>r.handleDateChange(g,y)},null,8,["modelValue","onUpdate:modelValue","placeholder","class","onChange"])])])):(!v.multiLine||v.multiLine<=1)&&!v.onlyQuickSelect?(z(),Q("div",akt,[I("div",lkt,[Ai(I("input",{"onUpdate:modelValue":y=>r.inputValues[g]=y,type:r.getInputType(v),placeholder:v.tip||v.name,class:ue(["input-field-modern",{error:r.inputErrors[g],success:!r.inputErrors[g]&&r.inputValues[g]&&v.required}]),readonly:v.inputType===0,onInput:y=>r.handleInputChange(g,y),onBlur:y=>r.validateInput(g)},null,42,ukt),[[_5,r.inputValues[g]]]),I("div",ckt,[r.getSpecialInputType(v)?(z(),Q("button",{key:0,class:ue(["special-input-btn",`special-${r.getSpecialInputType(v)}`]),onClick:y=>r.handleSpecialInput(g,r.getSpecialInputType(v)),title:r.getSpecialInputTitle(r.getSpecialInputType(v))},[r.getSpecialInputType(v)==="calendar"?(z(),Q("svg",fkt,[...t[24]||(t[24]=[I("path",{d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zM4 7h12v9H4V7z"},null,-1)])])):r.getSpecialInputType(v)==="file"?(z(),Q("svg",hkt,[...t[25]||(t[25]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm0 2h12v10H4V5z"},null,-1)])])):r.getSpecialInputType(v)==="folder"?(z(),Q("svg",pkt,[...t[26]||(t[26]=[I("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"},null,-1)])])):r.getSpecialInputType(v)==="image"?(z(),Q("svg",vkt,[...t[27]||(t[27]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z"},null,-1)])])):Le("",!0)],10,dkt)):v.inputType===0&&v.selectData?(z(),Q("button",{key:1,class:"expand-options-btn",onClick:y=>r.openSelectOptions(g),title:"展开选项"},[...t[28]||(t[28]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M7 10l5 5 5-5z"})],-1)])],8,mkt)):(z(),Q("button",{key:2,class:"expand-btn",onClick:y=>r.openTextEditor(g),title:"打开大文本编辑器"},[...t[29]||(t[29]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])],8,gkt))])])])):v.onlyQuickSelect?Le("",!0):(z(),Q("div",ykt,[I("div",bkt,[Ai(I("textarea",{"onUpdate:modelValue":y=>r.inputValues[g]=y,placeholder:v.tip||v.name,rows:Math.min(v.multiLine||3,4),class:ue(["textarea-field-modern",{error:r.inputErrors[g],success:!r.inputErrors[g]&&r.inputValues[g]&&v.required}]),readonly:v.inputType===0,onInput:y=>r.handleInputChange(g,y),onBlur:y=>r.validateInput(g)},null,42,_kt),[[Ql,r.inputValues[g]]]),r.getSpecialInputType(v)?(z(),Q("button",{key:0,class:ue(["special-input-btn textarea-expand",`special-${r.getSpecialInputType(v)}`]),onClick:y=>r.handleSpecialInput(g,r.getSpecialInputType(v)),title:r.getSpecialInputTitle(r.getSpecialInputType(v))},[r.getSpecialInputType(v)==="calendar"?(z(),Q("svg",kkt,[...t[30]||(t[30]=[I("path",{d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zM4 7h12v9H4V7z"},null,-1)])])):r.getSpecialInputType(v)==="file"?(z(),Q("svg",xkt,[...t[31]||(t[31]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm0 2h12v10H4V5z"},null,-1)])])):r.getSpecialInputType(v)==="folder"?(z(),Q("svg",Ckt,[...t[32]||(t[32]=[I("path",{d:"M2 6a2 2 0 012-2h5l2 2h5a2 2 0 012 2v6a2 2 0 01-2 2H4a2 2 0 01-2-2V6z"},null,-1)])])):r.getSpecialInputType(v)==="image"?(z(),Q("svg",wkt,[...t[33]||(t[33]=[I("path",{d:"M4 3a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V5a2 2 0 00-2-2H4zm12 12H4l4-8 3 6 2-4 3 6z"},null,-1)])])):Le("",!0)],10,Skt)):(z(),Q("button",{key:1,class:"expand-btn textarea-expand",onClick:y=>r.openTextEditor(g),title:"打开大文本编辑器"},[...t[34]||(t[34]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M21 3H3c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H3V5h18v14zM5 7h14v2H5zm0 4h14v2H5zm0 4h10v2H5z"})],-1)])],8,Ekt))])])),I("div",Tkt,[r.inputErrors[g]?(z(),Q("div",Akt,[t[35]||(t[35]=I("svg",{width:"14",height:"14",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293-1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z","clip-rule":"evenodd"})],-1)),I("span",null,je(r.inputErrors[g]),1)])):Le("",!0),r.inputValues[g]&&r.inputValues[g].length>0?(z(),Q("div",Ikt,je(r.inputValues[g].length)+" 字符 ",1)):Le("",!0)])]),r.isEnhanced&&r.inputItems.length>1?(z(),Q("button",{key:1,class:"remove-btn",onClick:y=>r.removeInputItem(g),title:"删除此项"},[...t[36]||(t[36]=[I("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M18 6L6 18",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M6 6l12 12",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)])],8,Lkt)):Le("",!0)]))),128))])]),r.isEnhanced?(z(),Q("div",Dkt,[I("div",Pkt,[n.config.allowAdd?(z(),Q("button",{key:0,class:"btn-modern btn-secondary",onClick:t[0]||(t[0]=(...v)=>r.addInputItem&&r.addInputItem(...v))},[...t[37]||(t[37]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"12",y1:"5",x2:"12",y2:"19",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"5",y1:"12",x2:"19",y2:"12",stroke:"currentColor","stroke-width":"2"})],-1),Ue(" 添加项目 ",-1)])])):Le("",!0),n.config.allowBatch?(z(),Q("div",Rkt,[I("button",{class:"btn-modern btn-secondary",onClick:t[1]||(t[1]=(...v)=>r.clearAll&&r.clearAll(...v))},[...t[38]||(t[38]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("polyline",{points:"3,6 5,6 21,6",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"m19,6v14a2,2 0 0,1 -2,2H7a2,2 0 0,1 -2,-2V6m3,0V4a2,2 0 0,1 2,-2h4a2,2 0 0,1 2,2v2",stroke:"currentColor","stroke-width":"2"})],-1),Ue(" 清空全部 ",-1)])]),I("button",{class:"btn-modern btn-secondary",onClick:t[2]||(t[2]=(...v)=>r.fillExample&&r.fillExample(...v))},[...t[39]||(t[39]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"14,2 14,8 20,8",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"16",y1:"13",x2:"8",y2:"13",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"16",y1:"17",x2:"8",y2:"17",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"10,9 9,9 8,9",stroke:"currentColor","stroke-width":"2"})],-1),Ue(" 填充示例 ",-1)])])])):Le("",!0)])])):Le("",!0),n.config.timeout&&r.timeLeft>0?(z(),Q("div",Mkt,[I("div",Okt,[t[40]||(t[40]=I("div",{class:"timeout-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 20 20",fill:"currentColor"},[I("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm1-12a1 1 0 10-2 0v4a1 1 0 00.293.707l2.828 2.829a1 1 0 101.415-1.415L11 9.586V6z","clip-rule":"evenodd"})])],-1)),I("span",$kt,je(r.timeLeft)+"秒后自动关闭",1),I("div",Bkt,[I("div",{class:"timeout-progress-bar",style:Ge({width:`${r.timeLeft/n.config.timeout*100}%`})},null,4)])])])):Le("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"]),$(l,{visible:r.showTextEditor,title:"大文本编辑器",width:800,onClose:r.closeTextEditor},{footer:de(()=>[I("div",zkt,[I("button",{class:"btn-modern btn-secondary",onClick:t[9]||(t[9]=(...v)=>r.closeTextEditor&&r.closeTextEditor(...v))}," 取消 "),I("button",{class:"btn-modern btn-primary",onClick:t[10]||(t[10]=(...v)=>r.saveEditorText&&r.saveEditorText(...v))}," 确定 ")])]),default:de(()=>[I("div",Vkt,[Ai(I("textarea",{ref:"textEditorRef","onUpdate:modelValue":t[8]||(t[8]=v=>r.editorText=v),class:"text-editor-textarea",placeholder:"请输入文本内容..."},null,512),[[Ql,r.editorText]])])]),_:1},8,["visible","onClose"]),$(l,{visible:r.showDatePicker,title:"选择日期",width:400,onClose:r.handleDateCancel},{footer:de(()=>[I("div",Hkt,[I("button",{class:"btn-modern btn-secondary",onClick:t[12]||(t[12]=(...v)=>r.handleDateCancel&&r.handleDateCancel(...v))}," 取消 ")])]),default:de(()=>[I("div",Ukt,[$(s,{modelValue:r.selectedDate,"onUpdate:modelValue":t[11]||(t[11]=v=>r.selectedDate=v),style:{width:"100%"},placeholder:"请选择日期",format:"YYYY-MM-DD",onChange:r.handleDateConfirm},null,8,["modelValue","onChange"])])]),_:1},8,["visible","onClose"]),$(l,{visible:r.showHelpDialog,title:"帮助信息",width:500,onClose:r.closeHelpDialog},{footer:de(()=>[I("div",Gkt,[I("button",{class:"btn-modern btn-primary",onClick:t[13]||(t[13]=(...v)=>r.closeHelpDialog&&r.closeHelpDialog(...v))}," 确定 ")])]),default:de(()=>[I("div",{class:"help-content",innerHTML:r.helpContent},null,8,Wkt)]),_:1},8,["visible","onClose"]),$(l,{visible:r.showSelectOptions,title:r.isMultiSelectMode?"请选择字母":"请选择",width:r.isMultiSelectMode?r.currentSelectColumn*160+200:400,onClose:t[22]||(t[22]=v=>r.showSelectOptions=!1)},yo({default:de(()=>[I("div",Kkt,[r.isMultiSelectMode?(z(),Q("div",Ykt,[I("div",Xkt,[$(p,{modelValue:r.selectedCheckboxValues,"onUpdate:modelValue":t[15]||(t[15]=v=>r.selectedCheckboxValues=v),class:"checkbox-grid",style:Ge({gridTemplateColumns:`repeat(${r.currentSelectColumn}, 1fr)`})},{default:de(()=>[(z(!0),Q(Bt,null,vn(r.currentSelectOptions,v=>(z(),qe(h,{key:v.value,value:v.value,class:"checkbox-option-item"},{default:de(()=>[Ue(je(v.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","style"])]),I("div",Zkt,[I("button",{class:"btn-modern btn-secondary btn-small",onClick:t[16]||(t[16]=(...v)=>r.selectAll&&r.selectAll(...v))}," 全选 "),I("button",{class:"btn-modern btn-secondary btn-small",onClick:t[17]||(t[17]=(...v)=>r.clearSelection&&r.clearSelection(...v))}," 全清 "),I("button",{class:"btn-modern btn-secondary btn-small",onClick:t[18]||(t[18]=(...v)=>r.invertSelection&&r.invertSelection(...v))}," 反选 "),I("button",{class:"btn-modern btn-primary btn-small",onClick:t[19]||(t[19]=(...v)=>r.confirmMultiSelection&&r.confirmMultiSelection(...v))}," 确定 ")])])):(z(),Q("div",qkt,[$(d,{modelValue:r.selectedRadioValue,"onUpdate:modelValue":t[14]||(t[14]=v=>r.selectedRadioValue=v),onChange:r.handleRadioChange,direction:"vertical",class:"radio-options-list"},{default:de(()=>[(z(!0),Q(Bt,null,vn(r.currentSelectOptions,v=>(z(),qe(c,{key:v.value,value:v.value,class:"radio-option-item"},{default:de(()=>[Ue(je(v.name),1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue","onChange"])]))])]),_:2},[r.isMultiSelectMode?void 0:{name:"footer",fn:de(()=>[I("div",Jkt,[I("button",{class:"btn-modern btn-secondary",onClick:t[20]||(t[20]=v=>r.showSelectOptions=!1)}," 取消 "),I("button",{class:"btn-modern btn-primary",onClick:t[21]||(t[21]=(...v)=>r.confirmRadioSelection&&r.confirmRadioSelection(...v))}," 确认 ")])]),key:"0"}]),1032,["visible","title","width"])],64)}const x3e=kr(V6t,[["render",Qkt],["__scopeId","data-v-94c32ec1"]]),ext=Object.freeze(Object.defineProperty({__proto__:null,default:x3e},Symbol.toStringTag,{value:"Module"})),txt={name:"MenuAction",components:{ActionDialog:ep},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=el(),r=fe([]),o=fe(""),a=fe(0),s=fe(null),l=F(()=>e.config.type==="select"||e.config.type==="multiSelect"),c=F(()=>{let Y=[];if(e.config.option?(Y=Array.isArray(e.config.option)?e.config.option:[e.config.option],Y=Y.map(ne=>{if(typeof ne=="string"){const[X,U]=ne.split("$");return{name:X||ne,action:U||ne,value:U||ne}}return{name:ne.name||ne.title||ne.label,action:ne.action||ne.value,value:ne.action||ne.value,description:ne.description}})):e.config.selectData&&(Y=l0(e.config.selectData)),o.value){const ne=o.value.toLowerCase();Y=Y.filter(X=>X.name.toLowerCase().includes(ne)||X.description&&X.description.toLowerCase().includes(ne))}return Y}),d=F(()=>{const Y=Kc(e.config.button),ne=Y===vi.OK_CANCEL||Y===vi.OK_ONLY;return!l.value&&e.config.autoSubmit?!1:ne}),h=F(()=>{const Y=Kc(e.config.button);return Y===vi.OK_CANCEL||Y===vi.CANCEL_ONLY}),p=F(()=>l.value?r.value.length>0:r.value.length===1),v=Y=>r.value.some(ne=>ne.value===Y.value),g=(Y,ne)=>{Y.disabled||(l.value?v(Y)?y(Y):r.value.push(Y):(r.value=[Y],e.config.autoSubmit&&P()))},y=Y=>{const ne=r.value.findIndex(X=>X.value===Y.value);ne>-1&&r.value.splice(ne,1)},S=()=>{r.value=[...c.value]},k=()=>{r.value=[]},C=()=>{const Y=new Set(r.value.map(ne=>ne.value));r.value=c.value.filter(ne=>!Y.has(ne.value))},x=()=>{},E=(Y,ne,X)=>{X.stopPropagation(),!Y.disabled&&(v(Y)?y(Y):r.value.push(Y))},_=(Y,ne,X)=>{X.stopPropagation(),!Y.disabled&&(r.value=[Y],e.config.autoSubmit&&P())},T=Y=>/[\u{1F600}-\u{1F64F}]|[\u{1F300}-\u{1F5FF}]|[\u{1F680}-\u{1F6FF}]|[\u{1F1E0}-\u{1F1FF}]|[\u{2600}-\u{26FF}]|[\u{2700}-\u{27BF}]/u.test(Y),D=async(Y,ne)=>{if(!e.module&&!e.apiUrl)return console.warn("未提供module或apiUrl,无法调用T4接口"),null;const X={action:Y,value:ne};e.extend&&e.extend.ext&&(X.extend=e.extend.ext),e.apiUrl&&(X.apiUrl=e.apiUrl),console.log("MenuAction调用T4接口:",{module:e.module,actionData:X,apiUrl:e.apiUrl});let U=null;return e.module?(console.log("调用模块:",e.module),U=await yS(e.module,X)):e.apiUrl&&(console.log("直接调用API:",e.apiUrl),U=(await(await Fd(async()=>{const{default:re}=await Promise.resolve().then(()=>fG);return{default:re}},void 0)).default.post(e.apiUrl,X,{timeout:hG(),headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).data),console.log("T4接口返回结果:",U),U},P=async()=>{if(!p.value)return;const Y={};let ne="";if(l.value){Y.selectedValues=r.value.map(U=>U.value),Y.selectedOptions=r.value;const X=c.value.map(U=>({name:U.name,action:U.value,selected:r.value.some(q=>q.value===U.value)}));ne=JSON.stringify(X),console.log("多选菜单T4接口数据格式:",X)}else{const X=r.value[0];Y.selectedValue=X.value,ne=X.value,Y.selectedOption=X}if(e.config.actionId)try{console.log("菜单选择T4接口调用:",e.config.actionId,ne);const X=await D(e.config.actionId,ne);if(typeof X=="string"){Kn(X,"success"),t("close");return}if(X&&X.action){const U=X.action,q=X.toast;switch(q&&Kn(q,"success"),U.actionId){case"__keep__":U.msg&&console.log("保持弹窗打开,更新消息:",U.msg),U.reset&&(r.value=[],o.value="");return;case"__close__":U.msg&&Kn(U.msg,"info"),t("close");return;case"__detail__":console.log("详情页跳转:",U),await M(U),t("close");return;case"__copy__":await O(U,q),t("close");return;case"__self_search__":await L(U),t("close");return;case"__refresh_list__":await B(U),t("close");return;case"__ktvplayer__":await j(U),t("close");return;default:if(U.type){console.log("检测到普通动作,触发新的ActionRenderer:",U),t("action",U);return}else console.warn("未知的专项动作:",U.actionId);break}}}catch(X){console.error("菜单选择T4接口调用失败:",X),Kn("操作失败,请重试","error");return}t("submit",Y)},M=async Y=>{try{console.log("执行详情页跳转:",Y),Y.url?await n.push(Y.url):Y.route?await n.push(Y.route):(console.warn("详情页跳转缺少URL或路由信息"),Kn("跳转失败:缺少目标地址","error"))}catch(ne){console.error("详情页跳转失败:",ne),Kn("跳转失败","error")}},O=async(Y,ne)=>{try{const X=Y.content||Y.text||Y.value||"";if(!X){console.warn("复制内容为空"),Kn("复制失败:内容为空","error");return}await navigator.clipboard.writeText(X),console.log("复制成功:",X);const U=Y.msg||ne?.msg||"复制成功";Kn(U,"success")}catch(X){console.error("复制失败:",X),Kn("复制失败","error")}},L=async Y=>{try{console.log("执行源内搜索:",Y);const ne={keyword:Y.keyword||Y.query||"",siteKey:Y.skey||Y.siteKey||"",...Y.params};ne.siteKey&&window.dispatchEvent(new CustomEvent("switchSite",{detail:{siteKey:ne.siteKey}})),t("special-action",{type:"self-search",data:ne}),Kn("开始搜索...","info")}catch(ne){console.error("源内搜索失败:",ne),Kn("搜索失败","error")}},B=async Y=>{try{switch(console.log("执行刷新列表:",Y),n.currentRoute.value.name){case"Video":window.dispatchEvent(new CustomEvent("refreshVideoList",{detail:Y})),Kn("视频列表已刷新","success");break;case"Live":window.dispatchEvent(new CustomEvent("refreshLiveList",{detail:Y})),Kn("直播列表已刷新","success");break;default:Kn("列表已刷新","success");break}}catch(ne){console.error("刷新列表失败:",ne),Kn("刷新列表失败","error")}},j=async Y=>{try{console.log("执行KTV播放:",Y);const ne=Y.url||Y.playUrl||"",X=Y.title||Y.name||"KTV播放";if(!ne){console.warn("KTV播放缺少播放地址"),Kn("播放失败:缺少播放地址","error");return}const U={name:"KtvPlayer",query:{url:ne,title:X,...Y.params}};try{await n.push(U)}catch{console.log("KTV播放器路由不存在,使用通用播放器"),await n.push({name:"VideoPlayer",query:{url:ne,title:X,type:"ktv",...Y.params}})}Kn("正在打开KTV播放器...","info")}catch(ne){console.error("KTV播放失败:",ne),Kn("播放失败","error")}},W=()=>{t("cancel"),t("close")},H=()=>{!e.config.timeout||e.config.timeout<=0||(a.value=e.config.timeout,s.value=setInterval(()=>{a.value--,a.value<=0&&(clearInterval(s.value),W())},1e3))},K=()=>{s.value&&(clearInterval(s.value),s.value=null),a.value=0};return Rt(()=>e.config,Y=>{if(r.value=[],o.value="",Y.defaultValue){const ne=l0(Y.selectData||""),X=Array.isArray(Y.defaultValue)?Y.defaultValue:[Y.defaultValue];r.value=ne.filter(U=>X.includes(U.value))}Y.timeout?H():K()},{immediate:!0}),Rt(()=>e.visible,Y=>{Y?H():K()}),bn(()=>{if(e.config.defaultValue){const Y=l0(e.config.selectData||""),ne=Array.isArray(e.config.defaultValue)?e.config.defaultValue:[e.config.defaultValue];r.value=Y.filter(X=>ne.includes(X.value))}}),gi(()=>{K()}),{selectedOptions:r,searchKeyword:o,timeLeft:a,isMultiSelect:l,menuOptions:c,showOkButton:d,showCancelButton:h,isValid:p,isSelected:v,isEmoji:T,handleOptionClick:g,handleCheckboxClick:E,handleRadioClick:_,removeSelection:y,selectAll:S,clearAll:k,invertSelection:C,handleSearch:x,handleSubmit:P,handleCancel:W}}},nxt={class:"menu-action-modern"},rxt={key:0,class:"message-section"},ixt={class:"message-content glass-effect"},oxt={class:"message-text"},sxt={key:1,class:"media-section"},axt={class:"media-container glass-effect"},lxt=["src"],uxt={key:2,class:"search-section"},cxt={class:"search-container"},dxt={class:"menu-section"},fxt={class:"menu-layout"},hxt={class:"menu-options-container"},pxt=["onClick"],vxt={key:0,class:"option-icon-container"},mxt=["src"],gxt=["innerHTML"],yxt=["innerHTML"],bxt={key:3,class:"option-icon-emoji"},_xt={class:"option-content"},Sxt={class:"option-title"},kxt={key:0,class:"option-description"},xxt={class:"option-selector"},Cxt={key:0,class:"checkbox-modern"},wxt=["id","checked","onChange"],Ext=["onClick"],Txt={class:"checkbox-indicator"},Axt={key:0,width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"3"},Ixt={key:1,class:"radio-modern"},Lxt=["id","checked","onChange"],Dxt=["onClick"],Pxt={class:"radio-indicator"},Rxt={key:0,class:"radio-dot"},Mxt={key:0,class:"quick-actions-column"},Oxt={class:"quick-actions-container"},$xt={class:"quick-actions-buttons"},Bxt=["disabled"],Nxt=["disabled"],Fxt=["disabled"],jxt={key:3,class:"selected-section"},Vxt={class:"selected-container glass-effect"},zxt={class:"selected-header"},Uxt={class:"selected-count"},Hxt={class:"selected-items-grid"},Wxt=["onClick"],Gxt={class:"selected-item-name"},Kxt={key:4,class:"timeout-section"},qxt={class:"timeout-container"},Yxt={class:"timeout-text"},Xxt={class:"timeout-progress"},Zxt={class:"modern-footer"},Jxt=["disabled"];function Qxt(e,t,n,r,o,a){const s=Ie("ActionDialog");return z(),qe(s,{visible:n.visible,title:n.config.title,width:n.config.width||720,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleCancel,onToast:t[7]||(t[7]=l=>e.$emit("toast",l)),onReset:t[8]||(t[8]=l=>e.$emit("reset",l))},{footer:de(()=>[I("div",Zxt,[r.showCancelButton?(z(),Q("button",{key:0,class:"btn-modern btn-secondary",onClick:t[5]||(t[5]=(...l)=>r.handleCancel&&r.handleCancel(...l))},[...t[21]||(t[21]=[I("span",null,"取消",-1)])])):Le("",!0),r.showOkButton?(z(),Q("button",{key:1,class:"btn-modern btn-primary",disabled:!r.isValid,onClick:t[6]||(t[6]=(...l)=>r.handleSubmit&&r.handleSubmit(...l))},[...t[22]||(t[22]=[I("span",null,"确定",-1)])],8,Jxt)):Le("",!0)])]),default:de(()=>[I("div",nxt,[n.config.msg?(z(),Q("div",rxt,[I("div",ixt,[t[9]||(t[9]=I("div",{class:"message-bg gradient-primary"},null,-1)),I("div",oxt,je(n.config.msg),1)])])):Le("",!0),n.config.imageUrl?(z(),Q("div",sxt,[I("div",axt,[t[10]||(t[10]=I("div",{class:"media-bg gradient-secondary"},null,-1)),I("img",{src:n.config.imageUrl,style:Ge({height:n.config.imageHeight?`${n.config.imageHeight}px`:"auto"}),class:"media-image",alt:"Action Image"},null,12,lxt)])])):Le("",!0),n.config.searchable?(z(),Q("div",uxt,[I("div",cxt,[t[11]||(t[11]=I("div",{class:"search-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"11",cy:"11",r:"8"}),I("path",{d:"m21 21-4.35-4.35"})])],-1)),Ai(I("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>r.searchKeyword=l),type:"text",placeholder:"搜索选项...",class:"search-input",onInput:t[1]||(t[1]=(...l)=>r.handleSearch&&r.handleSearch(...l))},null,544),[[Ql,r.searchKeyword]])])])):Le("",!0),I("div",dxt,[I("div",fxt,[I("div",hxt,[(z(!0),Q(Bt,null,vn(r.menuOptions,(l,c)=>(z(),Q("div",{key:l.value||c,class:ue(["menu-option-card",{selected:r.isSelected(l),disabled:l.disabled,"has-description":l.description}]),onClick:d=>r.handleOptionClick(l,c)},[l.icon?(z(),Q("div",vxt,[l.icon.startsWith("http")?(z(),Q("img",{key:0,src:l.icon,alt:"",class:"option-icon-image"},null,8,mxt)):l.icon.includes("r.handleCheckboxClick(l,c,d),class:"checkbox-input"},null,40,wxt),I("label",{class:"checkbox-label",onClick:d=>r.handleCheckboxClick(l,c,d)},[I("div",Txt,[r.isSelected(l)?(z(),Q("svg",Axt,[...t[12]||(t[12]=[I("polyline",{points:"20,6 9,17 4,12"},null,-1)])])):Le("",!0)])],8,Ext)])):(z(),Q("div",Ixt,[I("input",{type:"radio",id:`menu-radio-${c}`,name:"menu-radio-group",checked:r.isSelected(l),onChange:d=>r.handleRadioClick(l,c,d),class:"radio-input"},null,40,Lxt),I("label",{class:"radio-label",onClick:d=>r.handleRadioClick(l,c,d)},[I("div",Pxt,[r.isSelected(l)?(z(),Q("div",Rxt)):Le("",!0)])],8,Dxt)]))])],10,pxt))),128))]),r.isMultiSelect?(z(),Q("div",Mxt,[I("div",Oxt,[t[16]||(t[16]=I("div",{class:"quick-actions-title"},"快捷操作",-1)),I("div",$xt,[I("button",{class:"quick-action-btn",onClick:t[2]||(t[2]=(...l)=>r.selectAll&&r.selectAll(...l)),disabled:r.selectedOptions.length===r.menuOptions.length,title:"选择所有选项"},[...t[13]||(t[13]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"9,11 12,14 22,4"}),I("path",{d:"m21,3-6.5,6.5L11,6"})],-1),I("span",null,"全选",-1)])],8,Bxt),I("button",{class:"quick-action-btn",onClick:t[3]||(t[3]=(...l)=>r.clearAll&&r.clearAll(...l)),disabled:r.selectedOptions.length===0,title:"清除所有选择"},[...t[14]||(t[14]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),I("line",{x1:"9",y1:"9",x2:"15",y2:"15"})],-1),I("span",null,"全清",-1)])],8,Nxt),I("button",{class:"quick-action-btn",onClick:t[4]||(t[4]=(...l)=>r.invertSelection&&r.invertSelection(...l)),disabled:r.menuOptions.length===0,title:"反转当前选择"},[...t[15]||(t[15]=[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"}),I("rect",{x:"8",y:"2",width:"8",height:"4",rx:"1",ry:"1"}),I("path",{d:"m9 14 2 2 4-4"})],-1),I("span",null,"反选",-1)])],8,Fxt)])])])):Le("",!0)])]),r.isMultiSelect&&r.selectedOptions.length>0?(z(),Q("div",jxt,[I("div",Vxt,[t[19]||(t[19]=I("div",{class:"selected-bg gradient-tertiary"},null,-1)),I("div",zxt,[t[17]||(t[17]=I("div",{class:"selected-title"},"已选择项目",-1)),I("div",Uxt,je(r.selectedOptions.length),1)]),I("div",Hxt,[(z(!0),Q(Bt,null,vn(r.selectedOptions,l=>(z(),Q("div",{key:l.value,class:"selected-item-tag",onClick:c=>r.removeSelection(l)},[I("span",Gxt,je(l.name),1),t[18]||(t[18]=I("div",{class:"selected-item-remove"},[I("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})])],-1))],8,Wxt))),128))])])])):Le("",!0),n.config.timeout&&r.timeLeft>0?(z(),Q("div",Kxt,[I("div",qxt,[t[20]||(t[20]=I("div",{class:"timeout-icon"},[I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("polyline",{points:"12,6 12,12 16,14"})])],-1)),I("div",Yxt,je(r.timeLeft)+"秒后自动关闭",1),I("div",Xxt,[I("div",{class:"timeout-progress-bar",style:Ge({width:`${r.timeLeft/n.config.timeout*100}%`})},null,4)])])])):Le("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const C3e=kr(txt,[["render",Qxt],["__scopeId","data-v-36a9fec1"]]),eCt=Object.freeze(Object.defineProperty({__proto__:null,default:C3e},Symbol.toStringTag,{value:"Module"})),tCt={name:"MsgBoxAction",components:{ActionDialog:ep},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=fe(0),r=fe(null),o=fe(0),a=fe(null),s=F(()=>e.config.icon!==!1&&e.config.type!=="plain"),l=F(()=>({info:"info",success:"success",warning:"warning",error:"error",question:"question"})[e.config.type]||"info"),c=F(()=>({info:"ℹ",success:"✓",warning:"⚠",error:"✕",question:"?"})[e.config.type]||"ℹ"),d=F(()=>e.config.qrcode?Hye(e.config.qrcode,e.config.qrcodeSize):""),h=F(()=>{const O=Kc(e.config.button);return O===vi.OK_CANCEL||O===vi.OK_ONLY}),p=F(()=>{const O=Kc(e.config.button);return O===vi.OK_CANCEL||O===vi.CANCEL_ONLY}),v=F(()=>e.config.progressText?e.config.progressText.replace("{percent}",Math.round(o.value)):`${Math.round(o.value)}%`),g=F(()=>!e.config.timeout||e.config.timeout<=0?0:(e.config.timeout-n.value)/e.config.timeout*100),y=O=>O?/<[^>]+>/.test(O)?O:O.replace(/\n/g,"
").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`(.*?)`/g,"$1"):"",S=()=>{t("submit",{action:"ok"})},k=()=>{t("cancel"),t("close")},C=()=>{t("close")},x=()=>{console.log("图片加载成功")},E=()=>{console.error("图片加载失败")},_=()=>{console.error("二维码生成失败")},T=()=>{!e.config.timeout||e.config.timeout<=0||(n.value=e.config.timeout,r.value=setInterval(()=>{n.value--,n.value<=0&&(clearInterval(r.value),k())},1e3))},D=()=>{r.value&&(clearInterval(r.value),r.value=null),n.value=0},P=()=>{if(!e.config.showProgress)return;const O=e.config.progressDuration||5e3,L=50,B=100/O*L;o.value=0,a.value=setInterval(()=>{o.value+=B,o.value>=100&&(o.value=100,clearInterval(a.value),e.config.onProgressComplete&&S())},L)},M=()=>{a.value&&(clearInterval(a.value),a.value=null),o.value=0};return Rt(()=>e.config,O=>{D(),M(),O.timeout&&T(),O.showProgress&&P()},{immediate:!0}),Rt(()=>e.visible,O=>{O?(e.config.timeout&&T(),e.config.showProgress&&P()):(D(),M())}),bn(()=>{e.visible&&(e.config.timeout&&T(),e.config.showProgress&&P())}),gi(()=>{D(),M()}),{timeLeft:n,progressPercent:o,showIcon:s,iconType:l,iconSymbol:c,qrcodeUrl:d,showOkButton:h,showCancelButton:p,progressText:v,timeoutPercent:g,formatMessage:y,handleOk:S,handleCancel:k,handleClose:C,onImageLoad:x,onImageError:E,onQrcodeError:_}}},nCt={class:"msgbox-action-modern"},rCt={key:0,class:"icon-section"},iCt={class:"icon-wrapper"},oCt={key:0,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},sCt={key:1,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},aCt={key:2,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},lCt={key:3,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},uCt={key:4,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},cCt={key:5,width:"32",height:"32",viewBox:"0 0 24 24",fill:"currentColor"},dCt={class:"content-section"},fCt={key:0,class:"message-container glass-effect"},hCt={class:"message-content"},pCt=["innerHTML"],vCt={key:1,class:"detail-container glass-effect"},mCt={class:"detail-content"},gCt=["innerHTML"],yCt={key:2,class:"media-section"},bCt={class:"image-container glass-effect"},_Ct=["src"],SCt={key:3,class:"media-section"},kCt={class:"qrcode-container glass-effect"},xCt={class:"qrcode-content"},CCt=["src","alt"],wCt={class:"qrcode-text"},ECt={key:4,class:"progress-section"},TCt={class:"progress-container glass-effect"},ACt={class:"progress-content"},ICt={class:"progress-bar-modern"},LCt={class:"progress-track"},DCt={class:"progress-text-modern"},PCt={key:5,class:"list-section"},RCt={class:"list-container glass-effect"},MCt={class:"list-content"},OCt={class:"list-items"},$Ct={class:"item-text"},BCt={key:6,class:"timeout-section"},NCt={class:"timeout-container glass-effect"},FCt={class:"timeout-content"},jCt={class:"timeout-info"},VCt={class:"timeout-text"},zCt={class:"timeout-progress-modern"},UCt={class:"modern-footer"};function HCt(e,t,n,r,o,a){const s=Ie("ActionDialog");return z(),qe(s,{visible:n.visible,title:n.config.title,width:n.config.width||480,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleClose,onToast:t[5]||(t[5]=(l,c)=>e.emit("toast",l,c)),onReset:t[6]||(t[6]=()=>e.emit("reset"))},{footer:de(()=>[I("div",UCt,[r.showCancelButton?(z(),Q("button",{key:0,class:"btn-modern btn-secondary",onClick:t[3]||(t[3]=(...l)=>r.handleCancel&&r.handleCancel(...l))},[t[27]||(t[27]=I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})],-1)),I("span",null,je(n.config.cancelText||"取消"),1)])):Le("",!0),r.showOkButton?(z(),Q("button",{key:1,class:"btn-modern btn-primary",onClick:t[4]||(t[4]=(...l)=>r.handleOk&&r.handleOk(...l))},[I("span",null,je(n.config.okText||"确定"),1),t[28]||(t[28]=I("svg",{width:"16",height:"16",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})],-1))])):Le("",!0)])]),default:de(()=>[I("div",nCt,[r.showIcon?(z(),Q("div",rCt,[I("div",{class:ue(["icon-container glass-effect",r.iconType])},[I("div",{class:ue(["icon-bg",`gradient-${r.iconType}`])},null,2),I("div",iCt,[r.iconType==="info"?(z(),Q("svg",oCt,[...t[7]||(t[7]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},null,-1)])])):r.iconType==="success"?(z(),Q("svg",sCt,[...t[8]||(t[8]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"},null,-1)])])):r.iconType==="warning"?(z(),Q("svg",aCt,[...t[9]||(t[9]=[I("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"},null,-1)])])):r.iconType==="error"?(z(),Q("svg",lCt,[...t[10]||(t[10]=[I("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"},null,-1)])])):r.iconType==="question"?(z(),Q("svg",uCt,[...t[11]||(t[11]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z"},null,-1)])])):(z(),Q("svg",cCt,[...t[12]||(t[12]=[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 15h-2v-6h2v6zm0-8h-2V7h2v2z"},null,-1)])]))])],2)])):Le("",!0),I("div",dCt,[n.config.msg||n.config.htmlMsg?(z(),Q("div",fCt,[t[14]||(t[14]=I("div",{class:"message-bg gradient-primary"},null,-1)),I("div",hCt,[t[13]||(t[13]=I("div",{class:"message-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v12c0 1.1.9 2 2 2h4l4 4 4-4h4c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z"})])],-1)),I("div",{class:"message-text",innerHTML:r.formatMessage(n.config.htmlMsg||n.config.msg)},null,8,pCt)])])):Le("",!0),n.config.detail?(z(),Q("div",vCt,[t[16]||(t[16]=I("div",{class:"detail-bg gradient-secondary"},null,-1)),I("div",mCt,[t[15]||(t[15]=I("div",{class:"detail-icon"},[I("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M14 2H6c-1.1 0-2 .9-2 2v16c0 1.1.89 2 2 2h12c1.11 0 2-.9 2-2V8l-6-6zm4 18H6V4h7v5h5v11z"})])],-1)),I("div",{class:"detail-text",innerHTML:r.formatMessage(n.config.detail)},null,8,gCt)])])):Le("",!0),n.config.imageUrl?(z(),Q("div",yCt,[I("div",bCt,[t[17]||(t[17]=I("div",{class:"image-bg gradient-accent"},null,-1)),I("img",{src:n.config.imageUrl,style:Ge({height:n.config.imageHeight?`${n.config.imageHeight}px`:"200px"}),class:"action-image-modern",onLoad:t[0]||(t[0]=(...l)=>r.onImageLoad&&r.onImageLoad(...l)),onError:t[1]||(t[1]=(...l)=>r.onImageError&&r.onImageError(...l))},null,44,_Ct)])])):Le("",!0),n.config.qrcode?(z(),Q("div",SCt,[I("div",kCt,[t[19]||(t[19]=I("div",{class:"qrcode-bg gradient-accent"},null,-1)),I("div",xCt,[t[18]||(t[18]=I("div",{class:"qrcode-header"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M3 11h8V3H3v8zm2-6h4v4H5V5zM3 21h8v-8H3v8zm2-6h4v4H5v-4zM13 3v8h8V3h-8zm6 6h-4V5h4v4zM19 13h2v2h-2zM13 13h2v2h-2zM15 15h2v2h-2zM13 17h2v2h-2zM15 19h2v2h-2zM17 17h2v2h-2zM17 13h2v2h-2zM19 15h2v2h-2z"})]),I("span",{class:"qrcode-label"},"二维码")],-1)),I("img",{src:r.qrcodeUrl,alt:n.config.qrcode,class:"qrcode-image",onError:t[2]||(t[2]=(...l)=>r.onQrcodeError&&r.onQrcodeError(...l))},null,40,CCt),I("div",wCt,je(n.config.qrcode),1)])])])):Le("",!0),n.config.showProgress?(z(),Q("div",ECt,[I("div",TCt,[t[21]||(t[21]=I("div",{class:"progress-bg gradient-primary"},null,-1)),I("div",ACt,[t[20]||(t[20]=I("div",{class:"progress-header"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})]),I("span",{class:"progress-label"},"进度")],-1)),I("div",ICt,[I("div",LCt,[I("div",{class:"progress-fill-modern",style:Ge({width:`${r.progressPercent}%`})},null,4)])]),I("div",DCt,je(r.progressText),1)])])])):Le("",!0),n.config.list&&n.config.list.length>0?(z(),Q("div",PCt,[I("div",RCt,[t[24]||(t[24]=I("div",{class:"list-bg gradient-secondary"},null,-1)),I("div",MCt,[t[23]||(t[23]=I("div",{class:"list-header"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M3 13h2v-2H3v2zm0 4h2v-2H3v2zm0-8h2V7H3v2zm4 4h14v-2H7v2zm0 4h14v-2H7v2zM7 7v2h14V7H7z"})]),I("span",{class:"list-label"},"详细信息")],-1)),I("ul",OCt,[(z(!0),Q(Bt,null,vn(n.config.list,(l,c)=>(z(),Q("li",{key:c,class:"list-item"},[t[22]||(t[22]=I("div",{class:"item-marker"},null,-1)),I("span",$Ct,je(l),1)]))),128))])])])])):Le("",!0),n.config.timeout&&r.timeLeft>0?(z(),Q("div",BCt,[I("div",NCt,[t[26]||(t[26]=I("div",{class:"timeout-bg gradient-warning"},null,-1)),I("div",FCt,[t[25]||(t[25]=I("div",{class:"timeout-icon"},[I("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"currentColor"},[I("path",{d:"M15 1H9v2h6V1zm-4 13h2V8h-2v6zm8.03-6.61l1.42-1.42c-.43-.51-.9-.99-1.41-1.41l-1.42 1.42C16.07 4.74 14.12 4 12 4c-4.97 0-9 4.03-9 9s4.02 9 9 9 9-4.03 9-9c0-2.12-.74-4.07-1.97-5.61zM12 20c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"})])],-1)),I("div",jCt,[I("span",VCt,je(r.timeLeft)+"秒后自动关闭",1),I("div",zCt,[I("div",{class:"timeout-fill-modern",style:Ge({width:`${r.timeoutPercent}%`})},null,4)])])])])])):Le("",!0)])])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const w3e=kr(tCt,[["render",HCt],["__scopeId","data-v-55d966d0"]]),WCt=Object.freeze(Object.defineProperty({__proto__:null,default:w3e},Symbol.toStringTag,{value:"Module"})),GCt={name:"WebViewAction",components:{ActionDialog:ep},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["submit","cancel","close","action","toast","reset","special-action"],setup(e,{emit:t}){const n=fe(null),r=fe(""),o=fe(!0),a=fe(0),s=fe(!1),l=fe(""),c=fe(!1),d=fe(!1),h=fe(!1),p=fe(0),v=fe(null),g=fe(null),y=F(()=>e.config.showToolbar!==!1),S=F(()=>r.value||e.config.url||"about:blank"),k=F(()=>{const q=r.value||e.config.url||"";return q.length>50?q.substring(0,47)+"...":q}),C=F(()=>{const{sandbox:q="allow-scripts allow-same-origin allow-forms allow-popups"}=e.config;return q}),x=F(()=>{const q=Kc(e.config.button);return q===vi.OK_CANCEL||q===vi.OK_ONLY}),E=F(()=>{const q=Kc(e.config.button);return q===vi.OK_CANCEL||q===vi.CANCEL_ONLY}),_=()=>{r.value&&(o.value=!0,s.value=!1,a.value=0,W())},T=()=>{try{n.value&&n.value.contentWindow&&n.value.contentWindow.history.back()}catch(q){console.warn("无法执行后退操作:",q)}},D=()=>{try{n.value&&n.value.contentWindow&&n.value.contentWindow.history.forward()}catch(q){console.warn("无法执行前进操作:",q)}},P=()=>{o.value=!0,s.value=!1,a.value=0,n.value&&(n.value.src=n.value.src),W()},M=()=>{h.value=!h.value},O=()=>{console.log("开发者工具功能需要在 Electron 环境中实现")},L=()=>{o.value=!1,s.value=!1,a.value=100,H(),j();try{n.value&&n.value.contentWindow&&(r.value=n.value.contentWindow.location.href)}catch(q){console.warn("无法获取iframe URL:",q)}},B=q=>{o.value=!1,s.value=!0,l.value=q.message||"页面加载失败",H()},j=()=>{try{if(n.value&&n.value.contentWindow){const q=n.value.contentWindow.history;c.value=q.length>1,d.value=!1}}catch{c.value=!1,d.value=!1}},W=()=>{a.value=0,g.value=setInterval(()=>{a.value<90&&(a.value+=Math.random()*10)},200)},H=()=>{g.value&&(clearInterval(g.value),g.value=null),setTimeout(()=>{a.value=100},100)},K=()=>{const q={url:r.value,action:"ok"};try{n.value&&n.value.contentWindow&&(q.title=n.value.contentWindow.document.title)}catch{}t("submit",q)},Y=()=>{t("cancel"),t("close")},ne=()=>{t("close")},X=()=>{!e.config.timeout||e.config.timeout<=0||(p.value=e.config.timeout,v.value=setInterval(()=>{p.value--,p.value<=0&&(clearInterval(v.value),Y())},1e3))},U=()=>{v.value&&(clearInterval(v.value),v.value=null),p.value=0};return Rt(()=>e.config,q=>{r.value=q.url||"",o.value=!0,s.value=!1,a.value=0,q.url&&Cn(()=>{W()}),q.timeout?X():U()},{immediate:!0}),Rt(()=>e.visible,q=>{q?X():(U(),H())}),bn(()=>{r.value=e.config.url||"",e.visible&&e.config.timeout&&X()}),gi(()=>{U(),H()}),{webviewFrame:n,currentUrl:r,isLoading:o,loadingProgress:a,hasError:s,errorMessage:l,canGoBack:c,canGoForward:d,isFullscreen:h,timeLeft:p,showToolbar:y,iframeSrc:S,displayUrl:k,sandboxAttributes:C,showOkButton:x,showCancelButton:E,navigate:_,goBack:T,goForward:D,reload:P,toggleFullscreen:M,toggleDevTools:O,onFrameLoad:L,onFrameError:B,handleOk:K,handleCancel:Y,handleClose:ne}}},KCt={class:"webview-action"},qCt={key:0,class:"webview-toolbar-modern glass-effect"},YCt={class:"toolbar-nav-group"},XCt=["disabled"],ZCt=["disabled"],JCt={key:0,class:"toolbar-address-modern"},QCt={class:"address-input-container"},ewt={class:"toolbar-actions-modern"},twt=["title"],nwt={key:0,class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},rwt={key:1,class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},iwt={key:1,class:"webview-progress-modern"},owt={key:0,class:"webview-loading-modern"},swt={class:"loading-progress-text"},awt={key:1,class:"webview-error-modern"},lwt={class:"error-container"},uwt={class:"error-message-modern"},cwt=["src","sandbox"],dwt={key:2,class:"webview-status-modern glass-effect"},fwt={class:"status-info-modern"},hwt={class:"status-url-container"},pwt={class:"status-url-modern"},vwt={key:0,class:"status-timeout-modern"},mwt={class:"action-dialog-footer"};function gwt(e,t,n,r,o,a){const s=Ie("ActionDialog");return z(),qe(s,{visible:n.visible,title:n.config.title,width:n.config.width||"90%",height:n.config.height||"auto","canceled-on-touch-outside":!n.config.keep,"show-close":!1,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleClose,onToast:t[14]||(t[14]=(l,c)=>e.emit("toast",l,c)),onReset:t[15]||(t[15]=()=>e.emit("reset"))},{footer:de(()=>[I("div",mwt,[I("button",{class:"btn-modern btn-secondary",onClick:t[11]||(t[11]=(...l)=>r.handleClose&&r.handleClose(...l))},[t[31]||(t[31]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18"})],-1)),I("span",null,je(n.config.closeText||"关闭"),1)]),r.showCancelButton?(z(),Q("button",{key:0,class:"btn-modern btn-secondary",onClick:t[12]||(t[12]=(...l)=>r.handleCancel&&r.handleCancel(...l))},[I("span",null,je(n.config.cancelText||"取消"),1)])):Le("",!0),r.showOkButton?(z(),Q("button",{key:1,class:"btn-modern btn-primary",onClick:t[13]||(t[13]=(...l)=>r.handleOk&&r.handleOk(...l))},[I("span",null,je(n.config.okText||"确定"),1)])):Le("",!0)])]),default:de(()=>[I("div",KCt,[r.showToolbar?(z(),Q("div",qCt,[I("div",YCt,[I("button",{class:ue(["toolbar-btn-modern nav-btn",{disabled:!r.canGoBack}]),disabled:!r.canGoBack,onClick:t[0]||(t[0]=(...l)=>r.goBack&&r.goBack(...l)),title:"后退"},[...t[16]||(t[16]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M19 12H5M12 19l-7-7 7-7"})],-1)])],10,XCt),I("button",{class:ue(["toolbar-btn-modern nav-btn",{disabled:!r.canGoForward}]),disabled:!r.canGoForward,onClick:t[1]||(t[1]=(...l)=>r.goForward&&r.goForward(...l)),title:"前进"},[...t[17]||(t[17]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M5 12h14M12 5l7 7-7 7"})],-1)])],10,ZCt),I("button",{class:"toolbar-btn-modern nav-btn",onClick:t[2]||(t[2]=(...l)=>r.reload&&r.reload(...l)),title:"刷新"},[...t[18]||(t[18]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M1 4v6h6M23 20v-6h-6"}),I("path",{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"})],-1)])])]),n.config.showAddressBar?(z(),Q("div",JCt,[I("div",QCt,[t[20]||(t[20]=I("svg",{class:"address-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"11",cy:"11",r:"8"}),I("path",{d:"M21 21l-4.35-4.35"})],-1)),Ai(I("input",{"onUpdate:modelValue":t[3]||(t[3]=l=>r.currentUrl=l),type:"url",class:"address-input-modern",placeholder:"请输入网址...",onKeyup:t[4]||(t[4]=Ch((...l)=>r.navigate&&r.navigate(...l),["enter"]))},null,544),[[Ql,r.currentUrl]]),I("button",{class:"toolbar-btn-modern address-go-btn",onClick:t[5]||(t[5]=(...l)=>r.navigate&&r.navigate(...l)),title:"访问"},[...t[19]||(t[19]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M5 12h14M12 5l7 7-7 7"})],-1)])])])])):Le("",!0),I("div",ewt,[n.config.allowFullscreen?(z(),Q("button",{key:0,class:"toolbar-btn-modern action-btn",onClick:t[6]||(t[6]=(...l)=>r.toggleFullscreen&&r.toggleFullscreen(...l)),title:r.isFullscreen?"退出全屏":"全屏"},[r.isFullscreen?(z(),Q("svg",rwt,[...t[22]||(t[22]=[I("path",{d:"M8 3v3a2 2 0 0 1-2 2H3m18 0h-3a2 2 0 0 1-2-2V3m0 18v-3a2 2 0 0 1 2-2h3M3 16h3a2 2 0 0 1 2 2v3"},null,-1)])])):(z(),Q("svg",nwt,[...t[21]||(t[21]=[I("path",{d:"M8 3H5a2 2 0 0 0-2 2v3m18 0V5a2 2 0 0 0-2-2h-3m0 18h3a2 2 0 0 0 2-2v-3M3 16v3a2 2 0 0 0 2 2h3"},null,-1)])]))],8,twt)):Le("",!0),n.config.allowDevTools?(z(),Q("button",{key:1,class:"toolbar-btn-modern action-btn",onClick:t[7]||(t[7]=(...l)=>r.toggleDevTools&&r.toggleDevTools(...l)),title:"开发者工具"},[...t[23]||(t[23]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.77-3.77a6 6 0 0 1-7.94 7.94l-6.91 6.91a2.12 2.12 0 0 1-3-3l6.91-6.91a6 6 0 0 1 7.94-7.94l-3.76 3.76z"})],-1)])])):Le("",!0)])])):Le("",!0),r.isLoading?(z(),Q("div",iwt,[I("div",{class:"progress-bar-modern",style:Ge({width:`${r.loadingProgress}%`})},null,4)])):Le("",!0),I("div",{class:ue(["webview-container-modern",{fullscreen:r.isFullscreen}])},[r.isLoading&&r.loadingProgress<100?(z(),Q("div",owt,[t[24]||(t[24]=I("div",{class:"loading-spinner-modern"},null,-1)),t[25]||(t[25]=I("div",{class:"loading-text-modern"},"正在加载网页...",-1)),I("div",swt,je(Math.round(r.loadingProgress))+"%",1)])):Le("",!0),r.hasError?(z(),Q("div",awt,[I("div",lwt,[t[27]||(t[27]=I("svg",{class:"error-icon-modern",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"12",y1:"8",x2:"12",y2:"12"}),I("line",{x1:"12",y1:"16",x2:"12.01",y2:"16"})],-1)),t[28]||(t[28]=I("div",{class:"error-title-modern"},"页面加载失败",-1)),I("div",uwt,je(r.errorMessage),1),I("button",{class:"btn-modern btn-primary",onClick:t[8]||(t[8]=(...l)=>r.reload&&r.reload(...l))},[...t[26]||(t[26]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M1 4v6h6M23 20v-6h-6"}),I("path",{d:"M20.49 9A9 9 0 0 0 5.64 5.64L1 10m22 4l-4.64 4.36A9 9 0 0 1 3.51 15"})],-1),I("span",null,"重新加载",-1)])])])])):Le("",!0),Ai(I("iframe",{ref:"webviewFrame",src:r.iframeSrc,class:"webview-frame-modern",sandbox:r.sandboxAttributes,onLoad:t[9]||(t[9]=(...l)=>r.onFrameLoad&&r.onFrameLoad(...l)),onError:t[10]||(t[10]=(...l)=>r.onFrameError&&r.onFrameError(...l))},null,40,cwt),[[Qo,!r.isLoading&&!r.hasError]])],2),n.config.showStatus?(z(),Q("div",dwt,[I("div",fwt,[I("div",hwt,[t[29]||(t[29]=I("svg",{class:"status-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M2 12h20"}),I("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})],-1)),I("span",pwt,je(r.displayUrl),1)]),n.config.timeout&&r.timeLeft>0?(z(),Q("div",vwt,[t[30]||(t[30]=I("svg",{class:"timeout-icon",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("polyline",{points:"12,6 12,12 16,14"})],-1)),I("span",null,je(r.timeLeft)+"秒后自动关闭",1)])):Le("",!0)])])):Le("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const E3e=kr(GCt,[["render",gwt],["__scopeId","data-v-a119be1f"]]),ywt=Object.freeze(Object.defineProperty({__proto__:null,default:E3e},Symbol.toStringTag,{value:"Module"})),bwt={name:"HelpAction",components:{ActionDialog:ep},props:{config:{type:Object,required:!0},visible:{type:Boolean,default:!0},module:{type:String,default:""},extend:{type:[Object,String],default:()=>({})},apiUrl:{type:String,default:""}},emits:["close","link-click","toast","reset","special-action"],setup(e,{emit:t}){const n=fe(!1),r=fe(!1),o=fe(-1),a=fe(0),s=fe(null),l=F(()=>e.config.msg?/<[^>]+>/.test(e.config.msg)?e.config.msg:e.config.msg.replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`(.*?)`/g,"$1").replace(/\n/g,"
"):""),c=F(()=>e.config.details?Array.isArray(e.config.details)?e.config.details:typeof e.config.details=="string"?[{content:e.config.details}]:[e.config.details]:[]),d=F(()=>e.config.steps?Array.isArray(e.config.steps)?e.config.steps:[]:[]),h=F(()=>e.config.faq?Array.isArray(e.config.faq)?e.config.faq:[]:[]),p=F(()=>e.config.links?Array.isArray(e.config.links)?e.config.links:[]:[]),v=F(()=>!e.config.data||typeof e.config.data!="object"?[]:Object.entries(e.config.data).map(([O,L])=>({key:O,value:L}))),g=O=>O?/<[^>]+>/.test(O)?O:String(O).replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/`(.*?)`/g,"$1").replace(/\n/g,"
"):"",y=()=>{n.value=!1},S=()=>{n.value=!0},k=()=>{r.value=!1},C=()=>{r.value=!0},x=O=>{o.value=o.value===O?-1:O},E=O=>{t("link-click",O)},_=()=>{try{window.print()}catch(O){console.warn("打印功能不可用:",O)}},T=async()=>{try{const O=[];e.config.msg&&O.push(e.config.msg),e.config.details&&(O.push(` 详细信息:`),c.value.forEach(B=>{B.title&&O.push(`${B.title}:`),O.push(B.content.replace(/<[^>]*>/g,""))})),e.config.steps&&(O.push(` 操作步骤:`),d.value.forEach((B,j)=>{O.push(`${j+1}. ${B.title||""}`),O.push(B.content.replace(/<[^>]*>/g,""))})),e.config.faq&&(O.push(` 常见问题:`),h.value.forEach(B=>{O.push(`Q: ${B.question}`),O.push(`A: ${B.answer.replace(/<[^>]*>/g,"")}`)}));const L=O.join(` `);if(navigator.clipboard)await navigator.clipboard.writeText(L);else{const B=document.createElement("textarea");B.value=L,document.body.appendChild(B),B.select(),document.execCommand("copy"),document.body.removeChild(B)}console.log("内容已复制到剪贴板")}catch(O){console.warn("复制失败:",O)}},D=()=>{t("close")},P=()=>{!e.config.timeout||e.config.timeout<=0||(a.value=e.config.timeout,s.value=setInterval(()=>{a.value--,a.value<=0&&(clearInterval(s.value),D())},1e3))},M=()=>{s.value&&(clearInterval(s.value),s.value=null),a.value=0};return Rt(()=>e.visible,O=>{O?P():M()}),bn(()=>{e.visible&&e.config.timeout&&P()}),gi(()=>{M()}),{imageError:n,qrError:r,expandedFaq:o,timeLeft:a,formattedMessage:l,detailsList:c,stepsList:d,faqList:h,linksList:p,dataList:v,formatDataText:g,onImageLoad:y,onImageError:S,onQrLoad:k,onQrError:C,toggleFaq:x,onLinkClick:E,handlePrint:_,handleCopy:T,handleClose:D}}},_wt={class:"help-action-modern"},Swt={class:"help-content-modern"},kwt={key:0,class:"help-message-modern glass-effect gradient-primary"},xwt=["innerHTML"],Cwt={key:1,class:"help-data-modern"},wwt={class:"data-content-modern"},Ewt={class:"data-title-modern"},Twt=["innerHTML"],Awt={key:2,class:"help-image-modern"},Iwt={class:"image-container glass-effect"},Lwt=["src","alt"],Dwt={key:0,class:"image-error-modern"},Pwt={key:3,class:"help-qrcode-modern"},Rwt={class:"qrcode-container-modern glass-effect"},Mwt={class:"qrcode-image-wrapper"},Owt=["src"],$wt={key:0,class:"qrcode-error-modern"},Bwt={key:0,class:"qrcode-text-modern"},Nwt={key:4,class:"help-details-modern"},Fwt={class:"details-content-modern"},jwt={key:0,class:"detail-title-modern"},Vwt=["innerHTML"],zwt={key:5,class:"help-steps-modern"},Uwt={class:"steps-content-modern"},Hwt={class:"step-number-modern"},Wwt={class:"step-content-modern"},Gwt={key:0,class:"step-title-modern"},Kwt=["innerHTML"],qwt={key:1,class:"step-image-modern"},Ywt=["src","alt"],Xwt={key:6,class:"help-faq-modern"},Zwt={class:"faq-content-modern"},Jwt=["onClick"],Qwt={class:"question-content"},eEt={class:"question-text-modern"},tEt={class:"faq-answer-modern"},nEt=["innerHTML"],rEt={key:7,class:"help-links-modern"},iEt={class:"links-content-modern"},oEt=["href","target","onClick"],sEt={class:"link-content"},aEt={class:"link-text-modern"},lEt={key:0,class:"link-desc-modern"},uEt={key:8,class:"help-contact-modern"},cEt={class:"contact-content-modern"},dEt={key:0,class:"contact-card glass-effect"},fEt={class:"contact-info"},hEt=["href"],pEt={key:1,class:"contact-card glass-effect"},vEt={class:"contact-info"},mEt=["href"],gEt={key:2,class:"contact-card glass-effect"},yEt={class:"contact-info"},bEt=["href"],_Et={key:3,class:"contact-card glass-effect"},SEt={class:"contact-info"},kEt={class:"contact-value-modern"},xEt={key:0,class:"help-timeout-modern glass-effect"},CEt={class:"action-dialog-footer"};function wEt(e,t,n,r,o,a){const s=Ie("ActionDialog");return z(),qe(s,{visible:n.visible,title:n.config.title||"帮助信息",width:n.config.width||700,height:n.config.height,"canceled-on-touch-outside":!n.config.keep,module:n.module,extend:n.extend,"api-url":n.apiUrl,onClose:r.handleClose,onToast:t[7]||(t[7]=(l,c)=>e.emit("toast",l,c)),onReset:t[8]||(t[8]=()=>e.emit("reset"))},{footer:de(()=>[I("div",CEt,[n.config.allowPrint?(z(),Q("button",{key:0,class:"btn-modern btn-secondary",onClick:t[4]||(t[4]=(...l)=>r.handlePrint&&r.handlePrint(...l))},[...t[32]||(t[32]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"6,9 6,2 18,2 18,9"}),I("path",{d:"M6 18H4a2 2 0 0 1-2-2v-5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2v5a2 2 0 0 1-2 2h-2"}),I("rect",{x:"6",y:"14",width:"12",height:"8"})],-1),I("span",null,"打印",-1)])])):Le("",!0),n.config.allowCopy?(z(),Q("button",{key:1,class:"btn-modern btn-secondary",onClick:t[5]||(t[5]=(...l)=>r.handleCopy&&r.handleCopy(...l))},[...t[33]||(t[33]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2"}),I("path",{d:"M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"})],-1),I("span",null,"复制内容",-1)])])):Le("",!0),I("button",{class:"btn-modern btn-primary",onClick:t[6]||(t[6]=(...l)=>r.handleClose&&r.handleClose(...l))},[I("span",null,je(n.config.closeText||"关闭"),1)])])]),default:de(()=>[I("div",_wt,[I("div",Swt,[n.config.msg?(z(),Q("div",kwt,[t[9]||(t[9]=I("div",{class:"message-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M12 16v-4"}),I("path",{d:"M12 8h.01"})])],-1)),I("div",{class:"message-text-modern",innerHTML:r.formattedMessage},null,8,xwt)])):Le("",!0),n.config.data&&r.dataList.length>0?(z(),Q("div",Cwt,[t[10]||(t[10]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),I("polyline",{points:"14,2 14,8 20,8"}),I("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),I("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),I("polyline",{points:"10,9 9,9 8,9"})])]),I("h3",{class:"section-title"},"帮助信息")],-1)),I("div",wwt,[(z(!0),Q(Bt,null,vn(r.dataList,(l,c)=>(z(),Q("div",{key:c,class:"data-item glass-effect"},[I("div",Ewt,je(l.key),1),I("div",{class:"data-text-modern",innerHTML:r.formatDataText(l.value)},null,8,Twt)]))),128))])])):Le("",!0),n.config.img?(z(),Q("div",Awt,[I("div",Iwt,[I("img",{src:n.config.img,alt:n.config.imgAlt||"帮助图片",class:"image-content-modern",onLoad:t[0]||(t[0]=(...l)=>r.onImageLoad&&r.onImageLoad(...l)),onError:t[1]||(t[1]=(...l)=>r.onImageError&&r.onImageError(...l))},null,40,Lwt),r.imageError?(z(),Q("div",Dwt,[...t[11]||(t[11]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4"}),I("polyline",{points:"7,10 12,15 17,10"}),I("line",{x1:"12",y1:"15",x2:"12",y2:"3"})],-1),I("span",null,"图片加载失败",-1)])])):Le("",!0)])])):Le("",!0),n.config.qr?(z(),Q("div",Pwt,[I("div",Rwt,[t[13]||(t[13]=I("div",{class:"qrcode-header"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("rect",{x:"3",y:"3",width:"5",height:"5"}),I("rect",{x:"16",y:"3",width:"5",height:"5"}),I("rect",{x:"3",y:"16",width:"5",height:"5"}),I("path",{d:"M21 16h-3a2 2 0 0 0-2 2v3"}),I("path",{d:"M21 21v.01"}),I("path",{d:"M12 7v3a2 2 0 0 1-2 2H7"}),I("path",{d:"M3 12h.01"}),I("path",{d:"M12 3h.01"}),I("path",{d:"M12 16v.01"}),I("path",{d:"M16 12h1"}),I("path",{d:"M21 12v.01"}),I("path",{d:"M12 21v-1"})]),I("span",null,"扫描二维码")],-1)),I("div",Mwt,[I("img",{src:n.config.qr,alt:"二维码",class:"qrcode-image-modern",onLoad:t[2]||(t[2]=(...l)=>r.onQrLoad&&r.onQrLoad(...l)),onError:t[3]||(t[3]=(...l)=>r.onQrError&&r.onQrError(...l))},null,40,Owt),r.qrError?(z(),Q("div",$wt,[...t[12]||(t[12]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"15",y1:"9",x2:"9",y2:"15"}),I("line",{x1:"9",y1:"9",x2:"15",y2:"15"})],-1),I("span",null,"二维码加载失败",-1)])])):Le("",!0)]),n.config.qrText?(z(),Q("div",Bwt,je(n.config.qrText),1)):Le("",!0)])])):Le("",!0),n.config.details?(z(),Q("div",Nwt,[t[14]||(t[14]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"}),I("polyline",{points:"14,2 14,8 20,8"}),I("line",{x1:"16",y1:"13",x2:"8",y2:"13"}),I("line",{x1:"16",y1:"17",x2:"8",y2:"17"}),I("polyline",{points:"10,9 9,9 8,9"})])]),I("h3",{class:"section-title"},"详细信息")],-1)),I("div",Fwt,[(z(!0),Q(Bt,null,vn(r.detailsList,(l,c)=>(z(),Q("div",{key:c,class:"detail-card glass-effect"},[l.title?(z(),Q("div",jwt,je(l.title),1)):Le("",!0),I("div",{class:"detail-text-modern",innerHTML:l.content},null,8,Vwt)]))),128))])])):Le("",!0),n.config.steps?(z(),Q("div",zwt,[t[15]||(t[15]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z"})])]),I("h3",{class:"section-title"},"操作步骤")],-1)),I("div",Uwt,[(z(!0),Q(Bt,null,vn(r.stepsList,(l,c)=>(z(),Q("div",{key:c,class:"step-card glass-effect"},[I("div",Hwt,je(c+1),1),I("div",Wwt,[l.title?(z(),Q("div",Gwt,je(l.title),1)):Le("",!0),I("div",{class:"step-text-modern",innerHTML:l.content},null,8,Kwt),l.image?(z(),Q("div",qwt,[I("img",{src:l.image,alt:l.title||`步骤${c+1}`,class:"step-img-modern"},null,8,Ywt)])):Le("",!0)])]))),128))])])):Le("",!0),n.config.faq?(z(),Q("div",Xwt,[t[18]||(t[18]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),I("path",{d:"M12 17h.01"})])]),I("h3",{class:"section-title"},"常见问题")],-1)),I("div",Zwt,[(z(!0),Q(Bt,null,vn(r.faqList,(l,c)=>(z(),Q("div",{key:c,class:ue(["faq-card glass-effect",{expanded:r.expandedFaq===c}])},[I("div",{class:"faq-question-modern",onClick:d=>r.toggleFaq(c)},[I("div",Qwt,[t[16]||(t[16]=I("div",{class:"question-icon-wrapper"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"}),I("path",{d:"M12 17h.01"})])],-1)),I("span",eEt,je(l.question),1)]),I("div",{class:ue(["expand-icon",{rotated:r.expandedFaq===c}])},[...t[17]||(t[17]=[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"6,9 12,15 18,9"})],-1)])],2)],8,Jwt),Ai(I("div",tEt,[I("div",{class:"answer-text-modern",innerHTML:l.answer},null,8,nEt)],512),[[Qo,r.expandedFaq===c]])],2))),128))])])):Le("",!0),n.config.links?(z(),Q("div",rEt,[t[21]||(t[21]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71"}),I("path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71"})])]),I("h3",{class:"section-title"},"相关链接")],-1)),I("div",iEt,[(z(!0),Q(Bt,null,vn(r.linksList,(l,c)=>(z(),Q("a",{key:c,href:l.url,target:l.target||"_blank",class:"link-card glass-effect",onClick:d=>r.onLinkClick(l)},[t[19]||(t[19]=I("div",{class:"link-icon-modern"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6"}),I("polyline",{points:"15,3 21,3 21,9"}),I("line",{x1:"10",y1:"14",x2:"21",y2:"3"})])],-1)),I("div",sEt,[I("span",aEt,je(l.title),1),l.description?(z(),Q("span",lEt,je(l.description),1)):Le("",!0)]),t[20]||(t[20]=I("div",{class:"link-arrow"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("polyline",{points:"9,18 15,12 9,6"})])],-1))],8,oEt))),128))])])):Le("",!0),n.config.contact?(z(),Q("div",uEt,[t[30]||(t[30]=I("div",{class:"section-header"},[I("div",{class:"section-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})])]),I("h3",{class:"section-title"},"联系我们")],-1)),I("div",cEt,[n.config.contact.email?(z(),Q("div",dEt,[t[23]||(t[23]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"}),I("polyline",{points:"22,6 12,13 2,6"})])],-1)),I("div",fEt,[t[22]||(t[22]=I("span",{class:"contact-label-modern"},"邮箱",-1)),I("a",{href:`mailto:${n.config.contact.email}`,class:"contact-value-modern"},je(n.config.contact.email),9,hEt)])])):Le("",!0),n.config.contact.phone?(z(),Q("div",pEt,[t[25]||(t[25]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"})])],-1)),I("div",vEt,[t[24]||(t[24]=I("span",{class:"contact-label-modern"},"电话",-1)),I("a",{href:`tel:${n.config.contact.phone}`,class:"contact-value-modern"},je(n.config.contact.phone),9,mEt)])])):Le("",!0),n.config.contact.website?(z(),Q("div",gEt,[t[27]||(t[27]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("line",{x1:"2",y1:"12",x2:"22",y2:"12"}),I("path",{d:"M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"})])],-1)),I("div",yEt,[t[26]||(t[26]=I("span",{class:"contact-label-modern"},"网站",-1)),I("a",{href:n.config.contact.website,target:"_blank",class:"contact-value-modern"},je(n.config.contact.website),9,bEt)])])):Le("",!0),n.config.contact.address?(z(),Q("div",_Et,[t[29]||(t[29]=I("div",{class:"contact-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("path",{d:"M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z"}),I("circle",{cx:"12",cy:"10",r:"3"})])],-1)),I("div",SEt,[t[28]||(t[28]=I("span",{class:"contact-label-modern"},"地址",-1)),I("span",kEt,je(n.config.contact.address),1)])])):Le("",!0)])])):Le("",!0)]),n.config.timeout&&r.timeLeft>0?(z(),Q("div",xEt,[t[31]||(t[31]=I("div",{class:"timeout-icon"},[I("svg",{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2"},[I("circle",{cx:"12",cy:"12",r:"10"}),I("polyline",{points:"12,6 12,12 16,14"})])],-1)),I("span",null,je(r.timeLeft)+"秒后自动关闭",1)])):Le("",!0)])]),_:1},8,["visible","title","width","height","canceled-on-touch-outside","module","extend","api-url","onClose"])}const T3e=kr(bwt,[["render",wEt],["__scopeId","data-v-005dc119"]]),EEt=Object.freeze(Object.defineProperty({__proto__:null,default:T3e},Symbol.toStringTag,{value:"Module"}));let TEt=class{constructor(){this.currentAction=fe(null),this.actionHistory=fe([]),this.globalConfig=Xt({defaultTimeout:30,maxHistorySize:100,debugMode:!1,theme:"default",allowMultiple:!1,defaultDialog:{width:400,height:null,canceledOnTouchOutside:!0}}),this.actionQueue=fe([]),this.errorHandlers=new Map,this.eventListeners=new Map,this.statistics=Xt({totalActions:0,successfulActions:0,canceledActions:0,errorActions:0,averageResponseTime:0})}async showAction(t,n={}){try{this.validateConfig(t);const r=this.createAction(t,n);if(!this.globalConfig.allowMultiple&&this.currentAction.value)if(n.force)await this.closeCurrentAction();else return this.enqueueAction(r);return this.currentAction.value=r,this.addToHistory(r),this.statistics.totalActions++,this.emit("action-show",r),this.startTimeout(r),new Promise((o,a)=>{r.resolve=o,r.reject=a})}catch(r){throw this.handleError(r,t),r}}createAction(t,n){const r={id:this.generateId(),type:t.type,config:{...t},options:{...n},status:"pending",visible:!0,startTime:Date.now(),endTime:null,result:null,error:null,timeout:null,resolve:null,reject:null};return this.mergeGlobalConfig(r),r}mergeGlobalConfig(t){!t.config.timeout&&this.globalConfig.defaultTimeout>0&&(t.config.timeout=this.globalConfig.defaultTimeout),t.config.width||(t.config.width=this.globalConfig.defaultDialog.width),t.config.height||(t.config.height=this.globalConfig.defaultDialog.height),t.config.canceledOnTouchOutside===void 0&&(t.config.canceledOnTouchOutside=this.globalConfig.defaultDialog.canceledOnTouchOutside)}submitAction(t){const n=this.currentAction.value;n&&(n.status="completed",n.result=t,n.endTime=Date.now(),n.visible=!1,this.clearTimeout(n),this.statistics.successfulActions++,this.updateAverageResponseTime(n),this.emit("action-submit",{action:n,result:t}),n.resolve&&n.resolve(t),this.processNextAction())}cancelAction(t="user_cancel"){const n=this.currentAction.value;n&&(n.status="canceled",n.error={type:"cancel",reason:t},n.endTime=Date.now(),n.visible=!1,this.clearTimeout(n),this.statistics.canceledActions++,this.emit("action-cancel",{action:n,reason:t}),n.reject&&n.reject(new Error(`Action canceled: ${t}`)),this.processNextAction())}actionError(t){const n=this.currentAction.value;n&&(n.status="error",n.error=t,n.endTime=Date.now(),this.clearTimeout(n),this.statistics.errorActions++,this.emit("action-error",{action:n,error:t}),this.handleError(t,n.config),n.reject&&n.reject(t),this.processNextAction())}async closeCurrentAction(){this.currentAction.value&&this.cancelAction("force_close")}enqueueAction(t){return this.actionQueue.value.push(t),new Promise((n,r)=>{t.resolve=n,t.reject=r})}processNextAction(){if(this.currentAction.value=null,this.actionQueue.value.length>0){const t=this.actionQueue.value.shift();this.currentAction.value=t,this.addToHistory(t),this.statistics.totalActions++,this.emit("action-show",t),this.startTimeout(t)}}startTimeout(t){!t.config.timeout||t.config.timeout<=0||(t.timeout=setTimeout(()=>{t===this.currentAction.value&&this.cancelAction("timeout")},t.config.timeout*1e3))}clearTimeout(t){t.timeout&&(clearTimeout(t.timeout),t.timeout=null)}addToHistory(t){this.actionHistory.value.unshift(t),this.actionHistory.value.length>this.globalConfig.maxHistorySize&&(this.actionHistory.value=this.actionHistory.value.slice(0,this.globalConfig.maxHistorySize))}updateAverageResponseTime(t){const n=t.endTime-t.startTime,r=this.statistics.successfulActions,o=this.statistics.averageResponseTime;this.statistics.averageResponseTime=Math.round((o*(r-1)+n)/r)}validateConfig(t){if(!t||typeof t!="object")throw new Error("Action配置不能为空");if(!t.type||!Object.values(Ei).includes(t.type))throw new Error(`无效的Action类型: ${t.type}`);if(!t.actionId||typeof t.actionId!="string")throw new Error("actionId是必需的,且必须是字符串类型");switch(t.type){case Ei.INPUT:if(!t.msg&&!t.img&&!t.qr)throw new Error("InputAction必须包含消息、图片或二维码");break;case Ei.MULTI_INPUT:const n=t.input||t.inputs;if(!n||!Array.isArray(n)||n.length===0)throw new Error("MultiInputAction必须包含输入项列表");break;case Ei.MULTI_INPUT_X:const r=t.input||t.inputs;if(!r||!Array.isArray(r)||r.length===0)throw new Error("MultiInputXAction必须包含输入项列表");break;case Ei.MENU:case Ei.SELECT:const o=t.option||t.options;if(!o||!Array.isArray(o)||o.length===0)throw new Error("MenuAction必须包含选项列表");break;case Ei.MSGBOX:if(!t.msg&&!t.img&&!t.qr)throw new Error("MsgBoxAction必须包含消息、图片或二维码");break;case Ei.WEBVIEW:if(!t.url)throw new Error("WebViewAction必须包含URL");break;case Ei.HELP:if(!t.msg&&!t.details&&!t.steps)throw new Error("HelpAction必须包含帮助内容");break}}handleError(t,n){this.globalConfig.debugMode&&console.error("Action错误:",t,n);const r=this.errorHandlers.get(t.type)||this.errorHandlers.get("default");if(r)try{r(t,n)}catch(o){console.error("错误处理器异常:",o)}this.emit("error",{error:t,config:n})}registerErrorHandler(t,n){this.errorHandlers.set(t,n)}on(t,n){this.eventListeners.has(t)||this.eventListeners.set(t,[]),this.eventListeners.get(t).push(n)}off(t,n){const r=this.eventListeners.get(t);if(r){const o=r.indexOf(n);o>-1&&r.splice(o,1)}}emit(t,n){const r=this.eventListeners.get(t);r&&r.forEach(o=>{try{o(n)}catch(a){console.error("事件监听器异常:",a)}})}generateId(){return`action_${Date.now()}_${Math.random().toString(36).substr(2,9)}`}getHistory(t={}){let n=[...this.actionHistory.value];return t.type&&(n=n.filter(r=>r.type===t.type)),t.status&&(n=n.filter(r=>r.status===t.status)),t.startTime&&(n=n.filter(r=>r.startTime>=t.startTime)),t.endTime&&(n=n.filter(r=>r.endTime<=t.endTime)),t.limit&&(n=n.slice(0,t.limit)),n}clearHistory(t={}){if(Object.keys(t).length===0)this.actionHistory.value=[];else{const n=this.actionHistory.value.filter(r=>!(t.type&&r.type===t.type||t.status&&r.status===t.status||t.before&&r.startTime{t.reject&&t.reject(new Error("ActionStateManager destroyed"))}),this.actionQueue.value=[],this.eventListeners.clear(),this.errorHandlers.clear(),this.actionHistory.value=[]}};const Yo=new TEt,oa=(e,t)=>Yo.showAction(e,t),AEt=e=>Yo.submitAction(e),Ole=e=>Yo.cancelAction(e),IEt=F(()=>Yo.currentAction.value),LEt=F(()=>Yo.actionHistory.value),DEt=F(()=>Yo.actionQueue.value),vC=F(()=>Yo.statistics),$le=F(()=>Yo.globalConfig),Oz={ActionRenderer:_3,ActionDialog:ep,InputAction:k3e,MultiInputAction:x3e,MenuAction:C3e,MsgBoxAction:w3e,WebViewAction:E3e,HelpAction:T3e},PEt=(e,t={})=>{Object.keys(Oz).forEach(n=>{e.component(n,Oz[n])}),t.config&&Yo.updateConfig(t.config),e.config.globalProperties.$actionManager=Yo,e.config.globalProperties.$showAction=oa,e.provide("actionManager",Yo),e.provide("showAction",oa)},REt={install:PEt,...Oz},jr={input:e=>oa({...e,type:Ei.INPUT}),edit:e=>oa({...e,type:Ei.EDIT}),multiInput:e=>oa({...e,type:Ei.MULTI_INPUT}),multiInputX:e=>oa({...e,type:Ei.MULTI_INPUT_X}),menu:e=>oa({...e,type:Ei.MENU}),select:e=>oa({...e,type:Ei.SELECT}),msgBox:e=>oa({...e,type:Ei.MSGBOX}),webView:e=>oa({...e,type:Ei.WEBVIEW}),help:e=>oa({...e,type:Ei.HELP}),confirm:(e,t="确认")=>oa({actionId:`confirm-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:vi.OK_CANCEL}),alert:(e,t="提示")=>oa({actionId:`alert-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:vi.OK_ONLY}),info:(e,t="信息")=>oa({actionId:`info-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:vi.OK_ONLY,icon:"info"}),success:(e,t="成功")=>oa({actionId:`success-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:vi.OK_ONLY,icon:"success"}),error:(e,t="错误")=>oa({actionId:`error-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:vi.OK_ONLY,icon:"error"}),warning:(e,t="警告")=>oa({actionId:`warning-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:vi.OK_ONLY,icon:"warning"}),loading:(e="加载中...",t="请稍候")=>oa({actionId:`loading-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:vi.NONE,showProgress:!0}),progress:(e,t="进度",n=0)=>oa({actionId:`progress-${Date.now()}`,type:Ei.MSGBOX,msg:e,title:t,button:vi.CANCEL_ONLY,showProgress:!0,progress:n})},MEt={class:"global-action-content"},OEt={class:"search-section"},$Et={class:"search-filters"},BEt={class:"action-list-container"},NEt={key:0,class:"empty-state"},FEt={class:"empty-icon"},jEt={class:"empty-text"},VEt={class:"empty-hint"},zEt={key:1,class:"action-list"},UEt=["onClick"],HEt={class:"action-main"},WEt={class:"action-name"},GEt={class:"action-source"},KEt={class:"action-arrow"},qEt={class:"action-stats"},YEt={class:"stats-item"},XEt={class:"stats-value"},ZEt={class:"stats-item"},JEt={class:"stats-value"},QEt={key:0,class:"stats-item"},e8t={class:"stats-value"},t8t={key:1,class:"stats-item"},n8t={class:"stats-value"},r8t={__name:"GlobalActionDialog",props:{visible:{type:Boolean,default:!1},sites:{type:Array,default:()=>[]}},emits:["update:visible","action-executed","special-action"],setup(e,{emit:t}){const n=e,r=t,o=fe(""),a=fe(""),s=fe(!1),l=fe(null),c=fe(null),d=F(()=>{const M=[];return n.sites.forEach(O=>{O.more&&O.more.actions&&Array.isArray(O.more.actions)&&O.more.actions.forEach(L=>{M.push({...L,siteKey:O.key,siteName:O.name,siteApi:O.api,siteExt:O.ext})})}),M}),h=F(()=>n.sites.filter(M=>M.more&&M.more.actions&&Array.isArray(M.more.actions)&&M.more.actions.length>0)),p=F(()=>{let M=d.value;if(a.value&&(M=M.filter(O=>O.siteKey===a.value)),o.value.trim()){const O=o.value.toLowerCase().trim();M=M.filter(L=>L.name.toLowerCase().includes(O)||L.siteName.toLowerCase().includes(O))}return M}),v=M=>d.value.filter(O=>O.siteKey===M).length,g=()=>{if(!a.value)return"";const M=h.value.find(O=>O.key===a.value);return M?M.name:""},y=()=>d.value.length===0?"暂无可用的全局动作":a.value&&o.value.trim()?"在当前站源中未找到匹配的动作":a.value?"当前站源暂无可用动作":o.value.trim()?"未找到匹配的动作":"暂无可用的全局动作",S=()=>d.value.length===0?"请确保站源配置中包含动作信息":a.value&&o.value.trim()?"请尝试其他关键词或切换站源":a.value?"请选择其他站源或清除筛选条件":o.value.trim()?"请尝试其他关键词或清除搜索条件":"请确保站源配置中包含动作信息",k=async(M,O,L,B)=>{if(!O&&!L)return console.warn("未提供siteKey或apiUrl,无法调用T4接口"),null;const j={action:M};B&&B.ext&&(j.extend=B.ext),L&&(j.apiUrl=L),console.log("GlobalActionDialog调用T4接口:",{siteKey:O,actionData:j,apiUrl:L});let W=null;return O?(console.log("调用模块:",O),W=await yS(O,j)):L&&(console.log("直接调用API:",L),W=(await(await Fd(async()=>{const{default:Y}=await Promise.resolve().then(()=>fG);return{default:Y}},void 0)).default.post(L,j,{timeout:hG(),headers:{Accept:"application/json","Content-Type":"application/json;charset=UTF-8"}})).data),console.log("T4接口返回结果:",W),W},C=async M=>{try{if(console.log("执行全局动作:",M),!M||typeof M!="object")throw new Error("无效的动作对象");let O;if(typeof M.action=="string")try{O=JSON.parse(M.action.replace(/'/g,'"'))}catch{console.log("纯字符串动作,调用T4接口:",M.action);try{const B=await k(M.action,M.siteKey,M.siteApi,M.siteExt);if(B)if(typeof B=="string")try{const j=JSON.parse(B);let W=j.action||j;if(typeof W=="string")try{W=JSON.parse(W)}catch{console.warn("action字段不是有效的JSON字符串:",W)}O=W}catch{O={type:"msgbox",title:M.name||"动作结果",msg:B}}else if(typeof B=="object"&&B!==null){let j=B.action||B;if(typeof j=="string")try{j=JSON.parse(j)}catch{console.warn("action字段不是有效的JSON字符串:",j)}O=j}else throw new Error("T4接口返回了无效的数据格式");else throw new Error("T4接口调用失败或返回空结果")}catch(B){console.error("T4接口调用失败:",B),O={type:"msgbox",title:"动作执行失败",msg:`调用T4接口失败: ${B.message}`}}}else if(typeof M.action=="object"&&M.action!==null)O=M.action;else throw new Error("无效的动作配置");O.siteKey=M.siteKey,O.siteName=M.siteName,O.siteApi=M.siteApi,O.siteExt=M.siteExt,console.log(":",O),l.value=O,s.value=!0}catch(O){console.error("执行全局动作失败:",O),r("action-executed",{action:M,error:O.message,success:!1}),xt.error(`动作 "${M.name}" 执行失败: ${O.message}`)}},x=()=>{r("update:visible",!1),o.value="",a.value=""},E=()=>{s.value=!1,l.value=null},_=async(M,O)=>(console.log("ActionRenderer 动作执行:",{actionId:M,value:O}),{success:!0,message:"动作执行成功"}),T=M=>{console.log("ActionRenderer 执行成功:",M),r("action-executed",{action:l.value,result:M,success:!0}),xt.success("动作执行成功"),E(),x()},D=M=>{console.error("ActionRenderer 执行失败:",M),r("action-executed",{action:l.value,error:M.message||M,success:!1}),M.type!=="cancel"&&xt.error(`动作执行失败: ${M.message||M}`),E()},P=(M,O)=>{console.log("ActionRenderer special-action:",{actionType:M,actionData:O}),r("special-action",M,O),E()};return Rt(()=>n.visible,M=>{M&&(o.value="",a.value="")}),(M,O)=>{const L=Ie("a-input-search"),B=Ie("a-option"),j=Ie("a-select"),W=Ie("icon-thunderbolt"),H=Ie("icon-desktop"),K=Ie("icon-right"),Y=Ie("a-modal");return z(),qe(Y,{visible:e.visible,title:"全局动作",width:800,footer:!1,onCancel:x,class:"global-action-dialog"},{default:de(()=>[I("div",MEt,[I("div",OEt,[I("div",$Et,[$(L,{modelValue:o.value,"onUpdate:modelValue":O[0]||(O[0]=ne=>o.value=ne),placeholder:"搜索动作或站源...","allow-clear":"",class:"action-search"},null,8,["modelValue"]),$(j,{modelValue:a.value,"onUpdate:modelValue":O[1]||(O[1]=ne=>a.value=ne),placeholder:"选择站源","allow-clear":"",class:"site-filter"},{default:de(()=>[$(B,{value:""},{default:de(()=>[...O[2]||(O[2]=[Ue("全部站源",-1)])]),_:1}),(z(!0),Q(Bt,null,vn(h.value,ne=>(z(),qe(B,{key:ne.key,value:ne.key},{default:de(()=>[Ue(je(ne.name)+" ("+je(v(ne.key))+") ",1)]),_:2},1032,["value"]))),128))]),_:1},8,["modelValue"])])]),I("div",BEt,[p.value.length===0?(z(),Q("div",NEt,[I("div",FEt,[$(W)]),I("div",jEt,je(y()),1),I("div",VEt,je(S()),1)])):(z(),Q("div",zEt,[(z(!0),Q(Bt,null,vn(p.value,ne=>(z(),Q("div",{key:`${ne.siteKey}-${ne.name}`,class:"action-item",onClick:X=>C(ne)},[I("div",HEt,[I("div",WEt,[$(W,{class:"action-icon"}),Ue(" "+je(ne.name),1)]),I("div",GEt,[$(H,{class:"source-icon"}),Ue(" "+je(ne.siteName),1)])]),I("div",KEt,[$(K)])],8,UEt))),128))]))]),I("div",qEt,[I("div",YEt,[O[3]||(O[3]=I("span",{class:"stats-label"},"总动作数:",-1)),I("span",XEt,je(d.value.length),1)]),I("div",ZEt,[O[4]||(O[4]=I("span",{class:"stats-label"},"站源数:",-1)),I("span",JEt,je(h.value.length),1)]),a.value?(z(),Q("div",QEt,[O[5]||(O[5]=I("span",{class:"stats-label"},"当前站源:",-1)),I("span",e8t,je(g()),1)])):Le("",!0),o.value||a.value?(z(),Q("div",t8t,[O[6]||(O[6]=I("span",{class:"stats-label"},"筛选结果:",-1)),I("span",n8t,je(p.value.length),1)])):Le("",!0)])]),s.value?(z(),qe(_3,{key:0,ref_key:"actionRendererRef",ref:c,"action-data":l.value,module:l.value?.siteKey,extend:l.value?.siteExt,"api-url":l.value?.siteApi,visible:s.value,onClose:E,onAction:_,onSuccess:T,onError:D,onSpecialAction:P},null,8,["action-data","module","extend","api-url","visible"])):Le("",!0)]),_:1},8,["visible"])}}},i8t=kr(r8t,[["__scopeId","data-v-cd5d9c46"]]),o8t={class:"breadcrumb-container"},s8t={class:"header-left"},a8t={class:"navigation-title"},l8t={class:"header-center"},u8t={class:"header-right"},c8t={class:"push-modal-content"},d8t={class:"push-description"},f8t={class:"push-hint"},h8t={class:"hint-item"},p8t={class:"hint-item"},v8t={__name:"Breadcrumb",props:{navigation_title:{type:String,default:"Video"},now_site_title:String,sites:{type:Array,default:()=>[]}},emits:["handleOpenForm","refreshPage","onSearch","handlePush","minimize","maximize","closeWindow","actionExecuted"],setup(e,{emit:t}){const n=e,r=t,o=fe(""),a=fe(!1),s=fe(""),l=fe(!1),c=()=>{r("handleOpenForm")},d=()=>{r("refreshPage")},h=k=>{const C=typeof k=="string"?k:o.value;C&&typeof C=="string"&&C.trim()&&r("onSearch",C.trim())},p=()=>{a.value=!0,s.value=""},v=()=>{if(!n.sites||n.sites.length===0){xt.warning("当前没有可用的站源配置");return}if(console.log(n.sites),n.sites.filter(C=>C.more&&C.more.actions&&Array.isArray(C.more.actions)&&C.more.actions.length>0).length===0){xt.info("当前站源配置中没有可用的全局动作");return}l.value=!0},g=k=>{if(console.log("全局动作执行完成:",k),r("actionExecuted",k),!k||typeof k!="object"){console.warn("Invalid event object received in handleActionExecuted");return}const C=k.action?.name||"未知动作";k.success?xt.success(`动作 "${C}" 执行成功`):k.error!=="cancel"&&xt.error(`动作 "${C}" 执行失败: ${k.error||"未知错误"}`)},y=()=>{if(!s.value.trim()){xt.error("推送内容不能为空");return}const k=s.value.split(` `).map(x=>x.trim()).filter(x=>x);if(k.length===0){xt.error("请输入有效的推送内容");return}const C=k[0];k.length>1&&xt.info(`检测到多行输入,将使用第一行内容: ${C}`),r("handlePush",C),a.value=!1,s.value=""},S=()=>{a.value=!1,s.value=""};return(k,C)=>{const x=Ie("icon-apps"),E=Ie("a-button"),_=Ie("icon-refresh"),T=Ie("a-input-search"),D=Ie("icon-send"),P=Ie("icon-thunderbolt"),M=Ie("a-textarea"),O=Ie("icon-info-circle"),L=Ie("icon-bulb"),B=Ie("a-modal");return z(),Q(Bt,null,[I("div",o8t,[I("div",s8t,[I("span",a8t,je(e.navigation_title),1),$(E,{type:"outline",status:"success",shape:"round",onClick:c},{icon:de(()=>[$(x)]),default:de(()=>[Ue(je(e.now_site_title),1)]),_:1}),$(E,{type:"outline",status:"success",shape:"round",onClick:d},{icon:de(()=>[$(_)]),default:de(()=>[...C[4]||(C[4]=[Ue("重载源",-1)])]),_:1})]),I("div",l8t,[$(T,{modelValue:o.value,"onUpdate:modelValue":C[0]||(C[0]=j=>o.value=j),placeholder:"搜索视频","enter-button":"",onSearch:h,onPressEnter:h},null,8,["modelValue"])]),I("div",u8t,[$(E,{type:"outline",status:"success",shape:"round",onClick:p},{icon:de(()=>[$(D)]),default:de(()=>[...C[5]||(C[5]=[Ue("推送",-1)])]),_:1}),$(E,{type:"outline",status:"success",shape:"round",onClick:v},{icon:de(()=>[$(P)]),default:de(()=>[...C[6]||(C[6]=[Ue("全局动作",-1)])]),_:1}),vt(k.$slots,"default",{},void 0,!0)])]),$(B,{visible:a.value,"onUpdate:visible":C[2]||(C[2]=j=>a.value=j),title:"推送内容",width:600,onOk:y,onCancel:S,"ok-text":"确认推送","cancel-text":"取消","ok-button-props":{disabled:!s.value.trim()}},{default:de(()=>[I("div",c8t,[I("div",d8t,[$(D,{class:"push-icon"}),C[7]||(C[7]=I("span",null,"请输入要推送的内容(vod_id):",-1))]),$(M,{modelValue:s.value,"onUpdate:modelValue":C[1]||(C[1]=j=>s.value=j),placeholder:`请输入要推送的内容... 支持多行输入,每行一个vod_id`,rows:6,"max-length":1e3,"show-word-limit":"","allow-clear":"",autofocus:"",class:"push-textarea"},null,8,["modelValue"]),I("div",f8t,[I("div",h8t,[$(O,{class:"hint-icon"}),C[8]||(C[8]=I("span",null,"输入的内容将作为vod_id调用push_agent源的详情接口",-1))]),I("div",p8t,[$(L,{class:"hint-icon"}),C[9]||(C[9]=I("span",null,"支持多行输入,系统将使用第一行非空内容作为vod_id",-1))])])])]),_:1},8,["visible","ok-button-props"]),$(i8t,{visible:l.value,"onUpdate:visible":C[3]||(C[3]=j=>l.value=j),sites:e.sites,onActionExecuted:g},null,8,["visible","sites"])],64)}}},m8t=kr(v8t,[["__scopeId","data-v-2f29cc38"]]),g8t=e=>`${pG.PARSE}/${e}`,y8t=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}),z0(g8t(e),s)};class b8t{constructor(){this.cache=new Map,this.cacheTimeout=300*1e3}async getRecommendVideos(t,n={}){if(!$p(t))throw new Error("无效的模块名称");const{apiUrl:r,...o}=n,a=`home_${t}_${JSON.stringify(n)}`;console.log("[VideoService] getRecommendVideos 缓存检查:",{module:t,cacheKey:a,cacheSize:this.cache.size,allCacheKeys:Array.from(this.cache.keys())});const s=this.getFromCache(a);if(s)return console.log("[VideoService] 使用缓存数据:",{module:t,videosCount:s.videos?.length||0,categoriesCount:s.categories?.length||0}),s;console.log("[VideoService] 缓存未命中,发起新请求:",t);try{const l={...o};r&&(l.apiUrl=r);const c=await d_t(t,l),d={categories:c.class||[],filters:c.filters||{},videos:(c.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(c)};return console.log("[VideoService] 新数据已获取并缓存:",{module:t,videosCount:d.videos?.length||0,categoriesCount:d.categories?.length||0,cacheKey:a}),this.setCache(a,d),d}catch(l){throw console.error("获取首页推荐视频失败:",l),l}}async getCategoryVideos(t,n){if(!$p(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=WSt(a));const p=ua(l);p&&(h.extend=p),s&&(h.apiUrl=s);const v=await q1(t,h),g={videos:(v.list||[]).map(this.formatVideoInfo),pagination:this.createPagination(v,o),filters:v.filters||{},total:v.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(!$p(t))throw new Error("无效的模块名称");if(!GSt(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 f_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(!$p(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 p_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(!$p(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 b3e(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 y8t(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(!$p(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 h_t(t,l);return console.log("VideoService: 选集播放解析结果",c),c}catch(l){throw console.error("VideoService: 解析选集播放地址失败:",l),l}}async executeT4Action(t,n,r={}){if(!$p(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 yS(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(!$p(t))throw new Error("无效的模块名称");try{this.clearModuleCache(t);const o=ua(n),a=await v_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=qSt();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=YSt();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({})},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=Ie("a-button"),p=Ie("a-tag");return e.filters?(z(),Q("div",_8t,[$(Cs,{name:"collapse"},{default:de(()=>[Ai(I("div",S8t,[I("div",k8t,[o.value?(z(),qe(h,{key:0,type:"text",size:"small",onClick:l,class:"filter-reset-btn",title:"重置所有筛选条件"},{icon:de(()=>[$(et(Ed))]),_:1})):Le("",!0)]),(z(!0),Q(Bt,null,vn(e.filters,v=>(z(),Q("div",{key:v.key,class:"filter-group"},[I("div",x8t,[I("div",C8t,je(v.name),1),I("div",w8t,[I("div",E8t,[(z(!0),Q(Bt,null,vn(v.value,g=>(z(),qe(p,{key:g.v,color:a(v.key,g.v)?"green":"",checkable:!0,checked:a(v.key,g.v),onCheck:y=>s(v.key,g.v,g.n),class:"filter-option-tag"},{default:de(()=>[Ue(je(g.n),1)]),_:2},1032,["color","checked","onCheck"]))),128))])])])]))),128))],512),[[Qo,e.visible]])]),_:1})])):Le("",!0)}}},A8t=kr(T8t,[["__scopeId","data-v-90bc92fe"]]),I8t={class:"category-nav-container"},L8t={key:0,class:"special-category-header"},D8t={class:"special-category-title"},P8t={class:"category-name"},R8t=["onClick"],M8t={class:"category-name"},O8t={__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:()=>({})},filterVisible:{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","filter-visible-change"],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);let l=null;const c=fe(!1);Rt(()=>[n.hasRecommendVideos,n.classList,n.activeKey],()=>{const C=n.activeKey||o();a.value!==C&&(a.value=C,n.activeKey||d(C))},{immediate:!0}),Rt(a,(C,x)=>{c.value&&x&&x!==C&&n.filterVisible[x]&&r("filter-visible-change",{categoryId:x,visible:!1})},{flush:"post"});const d=C=>{a.value=C,r("tab-change",C)},h=C=>{if(p(C)){const x=!n.filterVisible[C];r("filter-visible-change",{categoryId:C,visible:x})}},p=C=>{const x=n.filters[C];return x&&Object.keys(x).length>0},v=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 bn(()=>{const C=s.value;if(!C)return;const x=C.querySelector(".arco-tabs-nav-tab-list");x&&(l=E=>{Math.abs(E.deltaY)>Math.abs(E.deltaX)&&(x.scrollLeft+=E.deltaY,E.preventDefault())},x.addEventListener("wheel",l,{passive:!1}),setTimeout(()=>{c.value=!0},100))}),Io(()=>{const x=s.value?.querySelector?.(".arco-tabs-nav-tab-list");x&&l&&x.removeEventListener("wheel",l)}),(C,x)=>{const E=Ie("a-tab-pane"),_=Ie("a-tabs");return z(),Q("div",I8t,[I("div",{class:"category-nav-wrapper",ref_key:"navWrapperRef",ref:s},[e.specialCategoryState.isActive?(z(),Q("div",L8t,[I("div",D8t,[I("span",P8t,je(e.specialCategoryState.categoryData?.type_name||"特殊分类"),1),x[1]||(x[1]=I("span",{class:"category-type"},"(源内搜索)",-1))])])):(z(),qe(_,{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?(z(),qe(E,{key:"recommendTuijian404"},{title:de(()=>[...x[2]||(x[2]=[I("span",null,"推荐",-1)])]),_:1})):Le("",!0),(z(!0),Q(Bt,null,vn(e.classList?.class||[],T=>(z(),qe(E,{key:T.type_id},{title:de(()=>[I("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"])},[I("span",M8t,je(T.type_name),1),T.type_id===a.value&&p(T.type_id)?(z(),qe(et(jH),{key:0,class:ue(["filter-icon",{"filter-icon-active":e.filterVisible[T.type_id]}])},null,8,["class"])):Le("",!0)],8,R8t)]),_:2},1024))),128))]),_:1},8,["active-key"])),e.specialCategoryState.isActive?(z(),Q("div",{key:2,class:"special-category-close",onClick:k},[$(et(ds)),x[3]||(x[3]=I("span",null,"返回",-1))])):(z(),Q("div",{key:3,class:"category-manage",onClick:S},[$(et(Lve))]))],512),v(a.value)&&n.filterVisible[a.value]?(z(),qe(A8t,{key:0,filters:v(a.value),selectedFilters:e.selectedFilters[a.value]||{},visible:!0,onToggleFilter:g,onResetFilters:y},null,8,["filters","selectedFilters"])):Le("",!0)])}}},$8t=kr(O8t,[["__scopeId","data-v-9076ce57"]]);function A3e(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"},v={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]:v[t]?v[t]:g[t]?g[t]:y[t]?y[t]:"icon-file"}function B8t(e){return e&&e.vod_tag&&e.vod_tag.includes("folder")}function N8t(e){return e&&e.vod_tag&&!e.vod_tag.includes("folder")}const F8t=["onClick"],j8t={class:"video_list_item_img"},V8t={key:1,class:"folder-icon-container"},z8t={key:2,class:"file-icon-container"},U8t={style:{width:"30%"}},H8t=["href"],W8t=["innerHTML"],G8t={class:"video_list_item_title"},K8t={class:"title-text"},q8t={key:0,class:"loading-container"},Y8t={key:1,class:"no-more-data"},X8t={key:2,class:"empty-state"},Z8t={__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=oA(),l=fe(null),c=fe(null);let d=600;const h=fe(0);let p=0,v=!1,g=null;const y=F(()=>(h.value,{height:d+"px",overflow:"auto"})),S=()=>{v||M||(v=!0,Cn(()=>{try{const X=l.value;if(!X)return;const U=X.querySelector(".arco-scrollbar-container");if(!U)return;p=U.scrollHeight;const q=U.clientHeight,ee=window.innerHeight||document.documentElement.clientHeight||600,re=Math.max(ee-200,400);if(p<=q&&r.videos&&r.videos.length>0)if(r.hasMore!==!1){const ie=Math.min(670,p-10);ie>470&&d>ie?(d=ie,h.value++,console.log("[DEBUG] 调整容器高度以产生滚动条:",{contentHeight:p,clientHeight:q,newContainerHeight:d}),g&&clearTimeout(g),g=setTimeout(()=>{k()},100)):(console.log("[DEBUG] 容器已达最小高度,直接触发加载更多"),k())}else console.log("[DEBUG] 没有更多数据可加载,保持当前状态");else p>q&&d=re*.8&&(d=re,h.value++,console.log("[DEBUG] 恢复容器高度到理想高度:",{contentHeight:p,clientHeight:q,idealHeight:re,newContainerHeight:d}))}catch(X){console.error("checkContentHeight error:",X)}finally{v=!1}}))},k=()=>{if(!(M||O>=L))try{const X=l.value;if(!X)return;const U=X.querySelector(".arco-scrollbar-container");if(!U)return;const q=U.scrollHeight,ee=U.clientHeight;q<=ee&&r.videos&&r.videos.length>0&&(console.log("[DEBUG] 自动触发加载更多数据 - 内容高度不足"),o("load-more"))}catch(X){console.error("checkAutoLoadMore error:",X)}},C=()=>{if(!M)try{const X=l.value;if(!X)return;const U=X.querySelector(".arco-scrollbar-container");if(!U)return;const q=U.scrollHeight,ee=U.clientHeight,re=window.innerHeight||document.documentElement.clientHeight||600,ae=Math.max(re-200,400);q>ae*.8&&d{if(X&&X.vod_id){if(X.vod_tag&&X.vod_tag.includes("folder")){o("folder-navigate",{vod_id:X.vod_id,vod_name:X.vod_name,vod_tag:X.vod_tag});return}if(X.vod_tag==="action")try{const q=JSON.parse(X.vod_id);_.value=q,E.value=!0;return}catch{await D(X.vod_id);return}s.setLastClicked(X.vod_id,X.vod_name);const U={name:X.vod_name,pic:X.vod_pic,year:X.vod_year,area:X.vod_area,type:X.vod_type,remarks:X.vod_remarks,content:X.vod_content,actor:X.vod_actor,director:X.vod_director,sourceRouteName:r.sourceRoute?.name||"",sourceRouteParams:JSON.stringify(r.sourceRoute?.params||{}),sourceRouteQuery:JSON.stringify(r.sourceRoute?.query||{}),sourcePic:X.vod_pic};r.folderState&&r.folderState.isActive&&(U.folderState=JSON.stringify(r.folderState)),a.push({name:"VideoDetail",params:{id:X.vod_id},query:U})}},D=async X=>{try{const U=await Kl.executeT4Action(r.module||"default",X,{apiUrl:r.apiUrl,extend:r.extend.ext});U&&U.action?(_.value=U.action,E.value=!0):U?Kn(U,"success"):xt.error({content:`无法获取动作配置: ${X}`,duration:3e3,closable:!0})}catch(U){console.error("T4 action执行失败:",U),xt.error({content:`动作执行失败: ${U.message}`,duration:3e3,closable:!0})}},P=/Chrome/.test(navigator.userAgent)&&/Google Inc/.test(navigator.vendor);let M=!1,O=0;const L=P?3:5;setInterval(()=>{O=0},1e3);const B=()=>{if(!(M||O>=L)){O++,M=!0;try{if(!l.value)return;const U=window.innerHeight||document.documentElement.clientHeight||600,q=Math.max(U-200,400);Math.abs(d-q)>50&&(d=q,h.value++)}catch(X){console.error("updateScrollAreaHeight error:",X)}finally{setTimeout(()=>{M=!1},100)}}},j=X=>{const U=X?.target||X?.srcElement,q=U?.closest?U.closest(".arco-scrollbar-container"):U;if(!q)return;const ee=q.scrollHeight-q.clientHeight,re=q.scrollTop;ee-re<50&&(o("scroll-bottom"),o("load-more"),setTimeout(()=>{C()},200))},W=()=>{if(!(M||O>=L))try{const X=document.querySelectorAll(".title-text");X&&X.length>0&&X.forEach(U=>{U&&U.scrollWidth&&U.clientWidth&&U.scrollWidth>U.clientWidth&&U.setAttribute("title",U.textContent||"")})}catch(X){console.error("checkTextOverflow error:",X)}};bn(()=>{if(l.value){const X=window.innerHeight||document.documentElement.clientHeight||600;d=Math.max(X-200,400),h.value++,setTimeout(()=>{try{if(l.value){const ee=Math.max(window.innerHeight-200,400);Math.abs(d-ee)>50&&(d=ee,h.value++),setTimeout(()=>{S()},1e3)}}catch(ee){console.warn("Initial update failed:",ee)}},P?500:300)}});{let X=null,U=0;const q=()=>{const ee=Date.now();ee-U<1e3||(U=ee,X&&clearTimeout(X),X=setTimeout(()=>{!M&&l.value&&B()},800))};window.addEventListener("resize",q),Io(()=>{window.removeEventListener("resize",q),X&&clearTimeout(X)})}Io(()=>{window.removeEventListener("resize",B),g&&clearTimeout(g),l.value?._filterObserver&&l.value._filterObserver.disconnect()}),Rt([()=>r.videos,()=>r.showStats],([X,U])=>{},{deep:!1,flush:"post"});const H=X=>{X&&c.value&&requestAnimationFrame(()=>{const U=c.value?.$el?.querySelector(".arco-scrollbar-container");U&&U.scrollTo({top:X,behavior:"smooth"})})},K=()=>c.value&&c.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0,Y=()=>{E.value=!1,_.value=null},ne=(X,U)=>{o("special-action",X,U),E.value=!1,_.value=null};return t({checkTextOverflow:W,restoreScrollPosition:H,getCurrentScrollPosition:K,checkContentHeight:S,checkAutoLoadMore:k}),(X,U)=>{const q=Ie("a-image"),ee=Ie("a-grid-item"),re=Ie("a-grid"),ae=Ie("a-spin"),ie=Ie("a-scrollbar");return z(),Q("div",{class:"video-grid-container",ref_key:"containerRef",ref:l},[$(ie,{onScroll:j,class:"video-scroll-container",ref_key:"scrollbarRef",ref:c,style:Ge(y.value)},{default:de(()=>[$(re,{cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(z(!0),Q(Bt,null,vn(e.videos,ke=>(z(),qe(ee,{key:ke.vod_id,class:"video_list_hover"},{default:de(()=>[I("div",{class:"video_list_item",onClick:Fe=>T(ke)},[I("div",j8t,[ke.vod_pic&&ke.vod_pic.trim()!==""?(z(),qe(q,{key:0,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ke.vod_pic},null,8,["src"])):ke.vod_tag&&ke.vod_tag.includes("folder")?(z(),Q("div",V8t,[...U[0]||(U[0]=[I("i",{class:"iconfont icon-wenjianjia folder-icon"},null,-1)])])):ke.vod_tag&&!ke.vod_tag.includes("folder")?(z(),Q("div",z8t,[(z(),Q("svg",U8t,[I("use",{href:`#${et(A3e)(ke.vod_name)}`},null,8,H8t)]))])):(z(),qe(q,{key:3,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:ke.vod_pic||"/default-poster.svg"},null,8,["src"])),ke.vod_remarks?(z(),Q("div",{key:4,class:"video_remarks_overlay",innerHTML:ke.vod_remarks},null,8,W8t)):Le("",!0)]),I("div",G8t,[I("span",K8t,je(ke.vod_name),1)])],8,F8t)]),_:2},1024))),128))]),_:1}),e.loading?(z(),Q("div",q8t,[$(ae),U[1]||(U[1]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(z(),Q("div",Y8t," 没有更多数据了 ")):e.videos.length===0&&!e.loading?(z(),Q("div",X8t," 暂无视频数据 ")):Le("",!0),U[2]||(U[2]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"]),E.value?(z(),qe(_3,{key:0,ref_key:"actionRendererRef",ref:x,"action-data":_.value,module:r.module,extend:r.extend,"api-url":r.apiUrl,onClose:Y,onSpecialAction:ne},null,8,["action-data","module","extend","api-url"])):Le("",!0)],512)}}},N4=kr(Z8t,[["__scopeId","data-v-d8bcb43b"]]),J8t={class:"category-modal-content"},Q8t=["onClick"],eTt={__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=Ie("a-modal");return z(),qe(l,{visible:e.visible,title:"全部分类",footer:!1,width:"80%",class:"category-modal",onCancel:r},{default:de(()=>[I("div",J8t,[e.hasRecommendVideos?(z(),Q("div",{key:0,class:ue(["category-item",{active:e.activeKey==="recommendTuijian404"}]),onClick:s[0]||(s[0]=c=>o("recommendTuijian404"))}," 推荐 ",2)):Le("",!0),(z(!0),Q(Bt,null,vn(e.classList.class,c=>(z(),Q("div",{key:c.type_id,class:ue(["category-item",{active:e.activeKey===c.type_id}]),onClick:d=>o(c.type_id)},je(c.type_name),11,Q8t))),128))])]),_:1},8,["visible"])}}},tTt=kr(eTt,[["__scopeId","data-v-14f43b3d"]]),nTt={key:0,class:"folder-breadcrumb"},rTt={class:"breadcrumb-container"},iTt={key:0,class:"current-item"},oTt=["onClick"],sTt={class:"breadcrumb-actions"},aTt={__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=Ie("a-breadcrumb-item"),p=Ie("a-breadcrumb"),v=Ie("a-button");return e.breadcrumbs.length>0?(z(),Q("div",nTt,[I("div",rTt,[$(p,{separator:">"},{default:de(()=>[(z(!0),Q(Bt,null,vn(e.breadcrumbs,(g,y)=>(z(),qe(h,{key:g.vod_id,class:ue(["breadcrumb-item",{"is-current":y===e.breadcrumbs.length-1}])},{default:de(()=>[y===e.breadcrumbs.length-1?(z(),Q("span",iTt,je(g.vod_name),1)):(z(),Q("a",{key:1,onClick:S=>o(g,y),class:"breadcrumb-link"},je(g.vod_name),9,oTt))]),_:2},1032,["class"]))),128))]),_:1})]),I("div",sTt,[$(v,{size:"small",type:"text",onClick:a,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:de(()=>[$(et(Al))]),default:de(()=>[d[0]||(d[0]=Ue(" 返回上级 ",-1))]),_:1},8,["disabled"]),e.breadcrumbs.length>1?(z(),qe(v,{key:0,size:"small",type:"text",onClick:s,disabled:e.breadcrumbs.length<=1,class:"action-btn"},{icon:de(()=>[$(et(c3))]),default:de(()=>[d[1]||(d[1]=Ue(" 返回根目录 ",-1))]),_:1},8,["disabled"])):Le("",!0),$(v,{size:"small",type:"primary",onClick:l,class:"action-btn exit-btn"},{icon:de(()=>[$(et(ds))]),default:de(()=>[d[2]||(d[2]=Ue(" 退出目录模式 ",-1))]),_:1})])])):Le("",!0)}}},lTt=kr(aTt,[["__scopeId","data-v-670af4b8"]]),uTt={class:"video-list-container"},cTt={class:"content-area"},dTt={key:0,class:"tab-content"},fTt={key:1,class:"tab-content"},hTt={key:0,class:"category-loading-container"},pTt={key:2,class:"tab-content"},vTt={key:0,class:"category-loading-container"},mTt={key:3,class:"tab-content"},gTt={key:0,class:"category-loading-container"},yTt=300,bTt={__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=el(),s=oS();let l=null;const c=fe(!1);let d="",h=0;const p=(Ne,De=100)=>{Ne===d||Date.now()-h<200||(l&&clearTimeout(l),l=setTimeout(()=>{if(!c.value){c.value=!0,d=Ne,h=Date.now();try{s.updateStats(Ne)}catch(Ye){console.error("更新统计信息失败:",Ye)}finally{c.value=!1}}},De))},v=fe(""),g=Xt({}),y=Xt({}),S=Xt({}),k=Xt({}),C=Xt({}),x=Xt({}),E=fe(!1),_=fe(null),T=()=>{const Ne={...a.currentRoute.value.query};Object.keys(x).length>0?Ne.filters=JSON.stringify(x):delete Ne.filters,Object.keys(C).length>0?Ne.filterVisible=JSON.stringify(C):delete Ne.filterVisible,a.replace({query:Ne}).catch(()=>{})},D=()=>{const Ne=a.currentRoute.value.query.filters,De=a.currentRoute.value.query.filterVisible;if(Ne)try{const Oe=JSON.parse(Ne);Object.keys(x).forEach(Ye=>{delete x[Ye]}),Object.assign(x,Oe)}catch(Oe){console.error("解析URL中的筛选条件失败:",Oe)}if(De)try{const Oe=JSON.parse(De);Object.keys(C).forEach(Ye=>{delete C[Ye]}),Object.assign(C,Oe)}catch(Oe){console.error("解析URL中的筛选展开状态失败:",Oe)}},P=Xt({}),M=Xt({});let O=null;const L=Ne=>{O&&clearTimeout(O),O=setTimeout(Ne,yTt)},B=F(()=>r.recommendVideos&&r.recommendVideos.length>0),j=F(()=>r.folderNavigationState?.isActive||!1),W=F(()=>r.folderNavigationState?.breadcrumbs||[]),H=F(()=>r.folderNavigationState?.currentData||[]),K=F(()=>r.folderNavigationState?.currentBreadcrumb||null),Y=F(()=>{const Ne=K.value?.vod_id;return r.folderNavigationState?.loading||M[Ne]||!1}),ne=F(()=>{const Ne=K.value?.vod_id;return P[Ne]?.hasNext||!1}),X=F(()=>ae({isActive:j.value,currentBreadcrumb:K.value,currentData:H.value})),U=()=>r.returnToActiveKey?r.returnToActiveKey:B.value?"recommendTuijian404":r.classList?.class&&r.classList.class.length>0?r.classList.class[0].type_id:"recommendTuijian404",q=(Ne,De,Oe)=>{x[v.value]||(x[v.value]={}),x[v.value][Ne]===De?(delete x[v.value][Ne],Object.keys(x[v.value]).length===0&&delete x[v.value]):x[v.value][Ne]=De,T(),j.value&&K.value?Wt(K.value):re(v.value)},ee=Ne=>{delete x[Ne],T(),j.value&&K.value?Wt(K.value):re(Ne)},re=Ne=>{delete g[Ne],delete y[Ne],S[Ne]=!1,v.value===Ne&&ie(Ne,!0)},ae=(Ne,De=null)=>{const Oe=r.classList?.class?.find($e=>$e.type_id===Ne)?.type_name||"",Ye=y[Ne]?.page||1,dt=g[Ne]?.length||0,Dt=y[Ne]?.total;let pt=`${Oe}:当前第 ${Ye} 页,已加载 ${dt} 条`;if(Dt&&(pt+=` / 共 ${Dt} 条`),De&&De.isActive&&De.currentBreadcrumb){const $e=De.currentBreadcrumb.vod_name||"未知目录",Ct=De.currentData?.length||0;pt+=`,当前目录:${$e},项目数:${Ct}`}return pt},ie=async(Ne,De=!1)=>{if(console.log(Ne,"选中分类id"),k[Ne]&&!De){console.log(`分类 ${Ne} 正在加载中,跳过重复请求`);return}if(console.log("listData.hasOwnProperty(key):",g.hasOwnProperty(Ne)),console.log("forceReload:",De),console.log("listData keys:",Object.keys(g)),console.log("listData[key]:",g[Ne]),console.log("listData[key] length:",g[Ne]?.length),!g.hasOwnProperty(Ne)||De){k[Ne]=!0;try{const Oe=await _s.getCurrentSite();let Ye,dt;if(Ne==="recommendTuijian404")console.log("recommendTuijian404 recommendVideos:",r.recommendVideos),Ye=r.recommendVideos||[],dt={page:1,hasNext:!1};else{const Dt=x[Ne]||{},pt=await Kl.getCategoryVideos(Oe.key,{typeId:Ne,page:1,filters:Dt,extend:Oe.ext,apiUrl:Oe.api});Ye=pt.videos||[],dt=pt.pagination||{page:1,hasNext:!1},Ye.length>100&&(console.log(`检测到大数据集,分类 ${Ne} 包含 ${Ye.length} 条数据`),Ye.length>200&&console.warn(`超大数据集警告:分类 ${Ne} 包含 ${Ye.length} 条数据,可能影响性能`))}if(g[Ne]=[...Ye],y[Ne]=dt,S[Ne]=!1,Ne===v.value){const Dt=j.value?{isActive:j.value,currentBreadcrumb:K.value,currentData:H.value}:null;p(ae(Ne,Dt))}}catch(Oe){console.error("获取视频列表失败:",Oe),g[Ne]=[],y[Ne]={page:1,hasNext:!1},S[Ne]=!1}finally{k[Ne]=!1}}},ke=Ne=>!Ne||Ne.length===0?!0:Ne.some(De=>De.vod_id==="no_data"),Fe=(Ne,De)=>{if(!De||De.length===0)return!0;if(!Ne||Ne.length===0)return!1;const Oe=Ne.slice(-De.length).map(dt=>dt.vod_id),Ye=De.map(dt=>dt.vod_id);return JSON.stringify(Oe)===JSON.stringify(Ye)},ge=async Ne=>{if(!(S[Ne]||!y[Ne]?.hasNext)){S[Ne]=!0;try{const De=await _s.getCurrentSite(),Oe=y[Ne].page+1;let Ye=[],dt={page:Oe,hasNext:!1};if(Ne==="recommendTuijian404")return;{const Dt=x[Ne]||{},pt=await Kl.getCategoryVideos(De.key,{typeId:Ne,page:Oe,filters:Dt,extend:De.ext,apiUrl:De.api});Ye=pt.videos||[],dt=pt.pagination||{page:Oe,hasNext:!1}}if(ke(Ye)||Fe(g[Ne],Ye)){console.log("检测到无效数据或重复数据,停止翻页"),y[Ne]={...y[Ne],hasNext:!1};return}if(g[Ne]=[...g[Ne],...Ye],y[Ne]=dt,Ne===v.value){const Dt=j.value?{isActive:j.value,currentBreadcrumb:K.value,currentData:H.value}:null;p(ae(Ne,Dt))}}catch(De){console.error("加载更多数据失败:",De),y[Ne]={...y[Ne],hasNext:!1}}finally{S[Ne]=!1}}},_e=async Ne=>{if(!(M[Ne]||!P[Ne]?.hasNext)){M[Ne]=!0;try{const De=P[Ne].page+1,Oe=await q1(r.module,{t:Ne,pg:De,extend:ua(r.extend),apiUrl:r.apiUrl});if(Oe&&Oe.list&&Oe.list.length>0){const Ye=Oe.list;if(ke(Ye)||Fe(H.value,Ye)){console.log("目录翻页检测到无效数据或重复数据,停止翻页"),P[Ne]={...P[Ne],hasNext:!1};return}const dt=[...H.value,...Ye],Dt={isActive:j.value,breadcrumbs:W.value,currentBreadcrumb:K.value,currentData:dt,loading:!1,hasMore:!0};if(P[Ne]={page:De,hasNext:Oe.page{j.value&&sn(),v.value=Ne,ie(Ne),o("activeKeyChange",Ne)},Qe=Ne=>{const{filterKey:De,filterValue:Oe,filterName:Ye}=Ne;q(De,Oe)},Je=Ne=>{const{categoryId:De,visible:Oe}=Ne;C[De]=Oe,T()},Te=()=>{ee(v.value)},ve=()=>{E.value=!0},be=Ne=>{v.value=Ne,ie(Ne),o("activeKeyChange",Ne);const De=j.value?{isActive:j.value,currentBreadcrumb:K.value,currentData:H.value}:null;p(ae(Ne,De),100)};Rt(()=>r.recommendVideos,Ne=>{console.log("[VideoList] recommendVideos watch triggered:",Ne?.length),Ne&&Ne.length>0?(g.recommendTuijian404=[...Ne],y.recommendTuijian404={page:1,hasNext:!1},S.recommendTuijian404=!1,k.recommendTuijian404=!1,console.log("推荐数据已更新:",Ne.length,"条")):(g.recommendTuijian404=[],y.recommendTuijian404={page:1,hasNext:!1},S.recommendTuijian404=!1,k.recommendTuijian404=!1),v.value==="recommendTuijian404"&&(console.log("[VideoList] 当前是推荐分类,强制更新界面"),v.value="recommendTuijian404")},{immediate:!0});let Me=!1,He="";const Xe=Ne=>!Ne||!Ne.class?"":JSON.stringify(Ne.class.map(De=>De.type_id||De.id||""));Rt(()=>r.classList,(Ne,De)=>{if(Me)return;const Oe=Xe(Ne);if(Oe!==He){console.log("🗂️ [DEBUG] ========== VideoList classList watch 触发 =========="),console.log("🗂️ [DEBUG] oldClassList:",De),console.log("🗂️ [DEBUG] newClassList:",Ne),console.log("🗂️ [DEBUG] classList是否发生变化:",Ne!==De),console.log("🗂️ [DEBUG] 当前activeKey.value:",v.value),console.log("🗂️ [DEBUG] 当前folderIsActive.value:",j.value),console.log("🗂️ [DEBUG] 当前folderNavigationState:",JSON.stringify(r.folderNavigationState,null,2)),Me=!0,He=Oe;try{const Ye=a.currentRoute.value.query,dt=Ye.filters||Ye.filterVisible;if(Ne!==De&&!dt?(console.log("🗂️ [DEBUG] classList发生变化且URL中无筛选参数,清除筛选状态"),Object.keys(x).forEach(pt=>{delete x[pt]}),Object.keys(C).forEach(pt=>{delete C[pt]}),console.log("🗂️ [DEBUG] 筛选状态已清除")):dt&&console.log("🗂️ [DEBUG] URL中有筛选参数,跳过筛选状态清除"),j.value){console.log("🗂️ [DEBUG] 当前处于folder模式,跳过activeKey重置");return}const Dt=U();v.value!==Dt&&(v.value=Dt,ie(Dt),o("activeKeyChange",Dt))}catch(Ye){console.error("classList watch处理失败:",Ye)}finally{Cn(()=>{Me=!1})}}},{immediate:!0}),Rt(()=>r.folderNavigationState,(Ne,De)=>{},{deep:!0,immediate:!0}),Rt(()=>r.sourceRoute?.query?.activeKey,Ne=>{Ne&&Ne!==v.value&&(console.log("[DEBUG] sourceRoute activeKey changed:",Ne,"current:",v.value),v.value=Ne,(!g[Ne]||g[Ne].length===0)&&(console.log("[DEBUG] 重新加载分类数据:",Ne),ie(Ne)),o("activeKeyChange",Ne))},{immediate:!0}),bn(async()=>{D();const Ne=r.sourceRoute?.query?.activeKey,De=Ne||U();await Cn(),v.value=De,await Cn(),D(),De==="recommendTuijian404"?(k[De]=!1,r.recommendVideos&&r.recommendVideos.length>0?(g[De]=[...r.recommendVideos],y[De]={page:1,hasNext:!1},S[De]=!1):ie(v.value)):ie(v.value),Ne||o("activeKeyChange",v.value)}),Io(()=>{l&&clearTimeout(l)}),t({getCurrentState:()=>({activeKey:v.value,currentPage:y[v.value]?.page||1,videos:g[v.value]||[],hasMore:y[v.value]?.hasNext||!1,hasData:g[v.value]&&g[v.value].length>0,scrollPosition:_.value?_.value.getCurrentScrollPosition():0}),restoreState:Ne=>{Ne.activeKey&&Ne.activeKey!==v.value&&(v.value=Ne.activeKey,o("activeKeyChange",Ne.activeKey),(!g[Ne.activeKey]||g[Ne.activeKey].length===0)&&ie(Ne.activeKey))},restoreFullState:Ne=>{if(Ne.activeKey){v.value=Ne.activeKey,Ne.videos&&Ne.videos.length>0?(g[Ne.activeKey]=[...Ne.videos],y[Ne.activeKey]={page:Ne.currentPage||1,hasNext:Ne.hasMore||!1},console.log(`恢复分类 ${Ne.activeKey} 的完整状态:`,{videos:Ne.videos.length,page:Ne.currentPage,hasMore:Ne.hasMore,scrollPosition:Ne.scrollPosition}),Ne.scrollPosition&&_.value&&setTimeout(()=>{_.value.restoreScrollPosition(Ne.scrollPosition)},200)):(console.log(`分类 ${Ne.activeKey} 没有保存的数据,重新加载`),ie(Ne.activeKey)),o("activeKeyChange",Ne.activeKey);const De=j.value?{isActive:j.value,currentBreadcrumb:K.value,currentData:H.value}:null;p(ae(Ne.activeKey,De),100)}},refreshCurrentCategory:()=>{v.value&&(console.log("刷新当前分类:",v.value),g[v.value]=[],y[v.value]={page:1,hasNext:!0},S[v.value]=!1,ie(v.value))},setSpecialCategoryData:(Ne,De,Oe)=>{console.log("设置特殊分类数据:",{categoryId:Ne,videosCount:De?.length,pagination:Oe}),g[Ne]=De||[],y[Ne]={page:Oe?.page||1,hasNext:Oe?.hasNext||!1,total:Oe?.total||0},S[Ne]=!1;const Ye=j.value?{isActive:j.value,currentBreadcrumb:K.value,currentData:H.value}:null;p(ae(Ne,Ye),100)}});const rt=async Ne=>{L(async()=>{await ft(Ne)})},ft=async Ne=>{let De=[];try{const Oe=j.value?W.value:[],Ye=Oe.findIndex(Ct=>Ct.vod_id===Ne.vod_id);Ye>=0?De=Oe.slice(0,Ye+1):De=[...Oe,{vod_id:Ne.vod_id,vod_name:Ne.vod_name}];const dt={isActive:!0,breadcrumbs:De,currentData:[],currentBreadcrumb:{vod_id:Ne.vod_id,vod_name:Ne.vod_name},loading:!0};o("folder-navigate",dt),console.log("props.extend:",r.extend),console.log("processExtendParam(props.extend):",ua(r.extend));const Dt=x[v.value]||{};console.log("🗂️ [DEBUG] 目录模式应用筛选条件:",Dt);const pt={t:Ne.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(Dt).length>0&&console.log("🗂️ [DEBUG] 目录模式编码后的筛选条件:",pt.ext);const $e=await q1(r.module,pt);if($e&&$e.list&&$e.list.length>0){const Ct=$e.list;P[Ne.vod_id]={page:$e.page||1,hasNext:$e.page<$e.pagecount||!1,total:$e.total||0},M[Ne.vod_id]=!1;const Zt={isActive:!0,breadcrumbs:De,currentData:Ct,currentBreadcrumb:{vod_id:Ne.vod_id,vod_name:Ne.vod_name},loading:!1};if(o("folder-navigate",Zt),v.value){const tn={isActive:!0,currentBreadcrumb:{vod_id:Ne.vod_id,vod_name:Ne.vod_name},currentData:Ct},Ft=ae(v.value,tn);p(Ft)}}else{console.warn("T4分类接口返回数据为空");const Ct={isActive:!0,breadcrumbs:De,currentData:[],currentBreadcrumb:{vod_id:Ne.vod_id,vod_name:Ne.vod_name},loading:!1};if(o("folder-navigate",Ct),v.value){const Zt={isActive:!0,currentBreadcrumb:{vod_id:Ne.vod_id,vod_name:Ne.vod_name},currentData:[]},tn=ae(v.value,Zt);p(tn)}}}catch(Oe){console.error("Folder导航失败:",Oe);const Ye={isActive:!0,breadcrumbs:De,currentData:[],currentBreadcrumb:{vod_id:Ne.vod_id,vod_name:Ne.vod_name},loading:!1};if(o("folder-navigate",Ye),v.value){const dt={isActive:!0,currentBreadcrumb:{vod_id:Ne.vod_id,vod_name:Ne.vod_name},currentData:[]},Dt=ae(v.value,dt);p(Dt)}}};let lt=!1,Et=null,St=0;const Wt=async(Ne,De)=>{const Oe=Ne;if(!Oe||!Oe.vod_id){console.error("handleFolderNavigate: 无效的breadcrumb参数",Oe);return}if(console.log("🗂️ [DEBUG] handleFolderNavigate 接收参数:",{breadcrumb:Oe,index:De}),lt){console.log("folder导航正在进行中,跳过重复调用");return}const Ye=Date.now();if(Ye-St<300){console.log("folder导航过于频繁,跳过");return}if(Et===Oe.vod_id&&Ye-St<1e3){console.log("短时间内相同的folder导航目标,跳过重复处理");return}lt=!0,Et=Oe.vod_id,St=Ye;try{const dt=W.value,Dt=dt.findIndex(Ft=>Ft.vod_id===Oe.vod_id),pt=Dt>=0?dt.slice(0,Dt+1):dt,$e={isActive:j.value,breadcrumbs:pt,currentBreadcrumb:Oe,currentData:H.value,loading:!0,hasMore:ne.value};o("folder-navigate",$e);const Ct=x[v.value]||{},Zt={t:Oe.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(Ct).length>0;const tn=await q1(r.module,Zt);if(tn&&tn.list&&tn.list.length>0){const Ft=tn.list;if(P[Oe.vod_id]={page:tn.page||1,hasNext:tn.page{if(console.log("🗂️ [DEBUG] 返回上一级folder",{parentItem:Ne,parentIndex:De}),Ne&&Ne.vod_id){Wt(Ne,De);return}const Oe=W.value;if(Oe.length>1){const Ye=Oe.slice(0,-1),dt=Ye[Ye.length-1];Wt(dt)}else Mt()},Mt=async(Ne,De)=>{if(console.log("🗂️ [DEBUG] 返回folder根目录",{rootItem:Ne,rootIndex:De}),Ne&&Ne.vod_id){Wt(Ne,De);return}const Oe=W.value;if(Oe.length>0){const Ye=Oe[0];o("folder-navigate",{isActive:!0,breadcrumbs:[Ye],currentData:[],currentBreadcrumb:Ye,loading:!0});try{const Dt=x[v.value]||{};console.log("🗂️ [DEBUG] 返回根目录,应用筛选条件:",Dt);const pt={t:Ye.vod_id,pg:1,extend:ua(r.extend),apiUrl:r.apiUrl};Object.keys(Dt).length>0;const $e=await q1(r.module,pt);if($e&&$e.list&&$e.list.length>0){const Ct=$e.list;P[Ye.vod_id]={page:$e.page||1,hasNext:$e.page<$e.pagecount||!1,total:$e.total||0},M[Ye.vod_id]=!1,o("folder-navigate",{isActive:!0,breadcrumbs:[Ye],currentData:Ct,currentBreadcrumb:Ye,loading:!1});const tn=`共 ${Ct.length} 个项目`;p(tn)}else o("folder-navigate",{isActive:!0,breadcrumbs:[Ye],currentData:[],currentBreadcrumb:Ye,loading:!1}),p("共 0 个项目")}catch(Dt){console.error("返回根目录时获取数据失败:",Dt),o("folder-navigate",{isActive:!0,breadcrumbs:[Ye],currentData:[],currentBreadcrumb:Ye,loading:!1}),p("数据加载失败")}}else if(o("folder-navigate",{isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),v.value&&g[v.value]){const dt=ae(v.value,null);p(dt)}},sn=()=>{if(o("folder-navigate",{isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),v.value&&g[v.value]){const De=ae(v.value,null);p(De)}},ct=()=>{v.value&&(g[v.value]=[],y[v.value]={page:1,hasNext:!0},S[v.value]=!1,ie(v.value))};return(Ne,De)=>{const Oe=Ie("a-spin");return z(),Q("div",uTt,[$($8t,{classList:e.classList,trigger:e.trigger,hasRecommendVideos:B.value,activeKey:v.value,filters:r.classList?.filters||{},selectedFilters:x,filterVisible:C,specialCategoryState:r.specialCategoryState,onTabChange:ze,onOpenCategoryModal:ve,onToggleFilter:Qe,onResetFilters:Te,onFilterVisibleChange:Je,onCloseSpecialCategory:De[0]||(De[0]=()=>o("close-special-category"))},null,8,["classList","trigger","hasRecommendVideos","activeKey","filters","selectedFilters","filterVisible","specialCategoryState"]),j.value?(z(),qe(lTt,{key:0,breadcrumbs:W.value,onNavigate:Wt,onGoBack:Tt,onGoHome:Mt,onExitFolder:sn},null,8,["breadcrumbs"])):Le("",!0),I("div",cTt,[j.value?(z(),Q("div",dTt,[$(N4,{videos:H.value,loading:Y.value,hasMore:ne.value,statsText:X.value,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,folderState:e.folderNavigationState,onLoadMore:De[1]||(De[1]=Ye=>_e(K.value?.vod_id)),onScrollBottom:De[2]||(De[2]=Ye=>_e(K.value?.vod_id)),onRefreshList:ct,onSpecialAction:De[3]||(De[3]=(Ye,dt)=>o("special-action",Ye,dt)),onFolderNavigate:rt},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url","folderState"])])):e.specialCategoryState.isActive?(z(),Q("div",fTt,[k[e.specialCategoryState.categoryData?.type_id]?(z(),Q("div",hTt,[$(Oe,{size:24}),De[12]||(De[12]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(z(),qe(N4,{key:1,videos:g[e.specialCategoryState.categoryData?.type_id]||[],loading:S[e.specialCategoryState.categoryData?.type_id]||!1,hasMore:y[e.specialCategoryState.categoryData?.type_id]?.hasNext||!1,statsText:`${e.specialCategoryState.categoryData?.type_name||"特殊分类"}:共 ${g[e.specialCategoryState.categoryData?.type_id]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:De[4]||(De[4]=Ye=>ge(e.specialCategoryState.categoryData?.type_id)),onScrollBottom:De[5]||(De[5]=Ye=>ge(e.specialCategoryState.categoryData?.type_id)),onRefreshList:ct,onSpecialAction:De[6]||(De[6]=(Ye,dt)=>o("special-action",Ye,dt)),onFolderNavigate:rt},null,8,["videos","loading","hasMore","statsText","sourceRoute","module","extend","api-url"]))])):v.value==="recommendTuijian404"?(z(),Q("div",pTt,[k[v.value]?(z(),Q("div",vTt,[$(Oe,{size:24}),De[13]||(De[13]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):Le("",!0),k[v.value]?Le("",!0):(z(),qe(N4,{key:1,videos:g[v.value]||[],loading:S[v.value]||!1,hasMore:!1,statsText:`推荐视频:共 ${g[v.value]?.length||0} 条`,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onRefreshList:ct,onSpecialAction:De[7]||(De[7]=(Ye,dt)=>o("special-action",Ye,dt))},null,8,["videos","loading","statsText","sourceRoute","module","extend","api-url"]))])):(z(),Q("div",mTt,[k[v.value]?(z(),Q("div",gTt,[$(Oe,{size:24}),De[14]||(De[14]=I("div",{class:"loading-text"},"正在加载分类数据...",-1))])):(z(),qe(N4,{key:1,ref_key:"videoGridRef",ref:_,videos:g[v.value]||[],loading:S[v.value]||!1,hasMore:y[v.value]?.hasNext||!1,sourceRoute:r.sourceRoute,module:r.module,extend:r.extend,"api-url":r.apiUrl,onLoadMore:De[8]||(De[8]=Ye=>ge(v.value)),onScrollBottom:De[9]||(De[9]=Ye=>ge(v.value)),onRefreshList:ct,onSpecialAction:De[10]||(De[10]=(Ye,dt)=>o("special-action",Ye,dt)),onFolderNavigate:rt},null,8,["videos","loading","hasMore","sourceRoute","module","extend","api-url"]))]))]),$(tTt,{visible:E.value,"onUpdate:visible":De[11]||(De[11]=Ye=>E.value=Ye),classList:e.classList,hasRecommendVideos:B.value,activeKey:v.value,onSelectCategory:be},null,8,["visible","classList","hasRecommendVideos","activeKey"])])}}},_Tt=kr(bTt,[["__scopeId","data-v-3be42daf"]]),STt={class:"search-results-container"},kTt={class:"search-header"},xTt={class:"search-info"},CTt={key:0,class:"search-keyword"},wTt={key:1,class:"search-count"},ETt={class:"search-actions"},TTt={key:0,class:"error-container"},ATt={class:"error-text"},ITt={key:1,class:"loading-container"},LTt=["onClick"],DTt={class:"video_list_item_img"},PTt={key:1,class:"folder-icon-container"},RTt={key:2,class:"file-icon-container"},MTt={style:{width:"30%"}},OTt=["href"],$Tt=["innerHTML"],BTt={class:"video_list_item_title"},NTt={class:"title-text"},FTt={key:3,class:"empty-state"},jTt={key:4,class:"loading-container"},VTt={key:5,class:"no-more-data"},zTt={__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=oS(),o=FA(),a=oA(),s=e,l=t,c=fe(null),d=fe(null),h=fe(0),p=fe(null),v=fe(!1),g=fe(null),y=P=>{const M=P?.target||P?.srcElement,O=M?.closest?M.closest(".arco-scrollbar-container"):M;if(!O)return;const L=O.scrollHeight-O.clientHeight,B=O.scrollTop;L-B<50&&s.hasMore&&!s.loading&&l("load-more")},S=()=>{Cn(()=>{setTimeout(()=>{const P=c.value;if(!P)return;const M=P.closest(".content-area")||P.parentElement;let O=M?M.offsetHeight:0;O<=0&&(O=Math.max(window.innerHeight-120,500));const L=document.querySelector(".search-header"),B=L?L.offsetHeight:60,j=s.videos?s.videos.length:0,W=P.offsetWidth||Math.max(window.innerWidth-240,800),K=Math.min(Math.floor(W/200),8),Y=328,ne=j>0?Math.ceil(j/Math.max(K,1)):0,X=ne*Y+80;let U=4;const q=O-B;if(j===0)U=Math.min(q*.3,200),console.log(`无搜索结果数据,使用保守高度减值: ${U}px`);else if(X{if(!s.keyword)return"";const P=s.videos.length,M=s.currentPage,O=s.hasMore;if(P===0)return`搜索"${s.keyword}":无结果`;let L=`搜索"${s.keyword}":第${M}页,共${P}条`;return O?L+=",可继续加载":L+=",已全部加载",L},C=()=>{const P=k();P&&r.updateStats(P)},x=()=>{Cn(()=>{setTimeout(()=>{document.querySelectorAll(".search-results-container .title-text").forEach(M=>{const L=M.parentElement.offsetWidth-16;M.scrollWidth>L?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,v.value=!0;return}catch{console.log("SearchResults vod_id不是JSON格式,作为普通文本处理:",P.vod_id),xt.info({content:P.vod_id,duration:3e3,closable:!0});return}if(a.setLastClicked(P.vod_id,P.vod_name),s.keyword){const O=d.value?.$el?.querySelector(".arco-scrollbar-container")?.scrollTop||0;o.saveSearchState(s.keyword,s.currentPage,s.videos,s.hasMore,s.loading,O),console.log("保存搜索状态:",{keyword:s.keyword,currentPage:s.currentPage,videosCount:s.videos.length,scrollPosition:O})}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")};bn(()=>{x(),S(),C(),window.addEventListener("resize",S),s.scrollPosition>0&&Cn(()=>{requestAnimationFrame(()=>{const P=d.value?.$el?.querySelector(".arco-scrollbar-container");P&&(P.scrollTo({top:s.scrollPosition,behavior:"smooth"}),console.log("SearchResults恢复滚动位置:",s.scrollPosition))})})}),Io(()=>{window.removeEventListener("resize",S)}),Rt(()=>s.videos,()=>{S(),x(),C()}),Rt([()=>s.keyword,()=>s.currentPage,()=>s.hasMore],()=>{C()});const T=()=>{v.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 O=Ie("icon-close"),L=Ie("a-button"),B=Ie("icon-exclamation-circle"),j=Ie("a-spin"),W=Ie("a-image"),H=Ie("a-grid-item"),K=Ie("a-grid"),Y=Ie("icon-search"),ne=Ie("a-scrollbar");return z(),Q("div",STt,[I("div",kTt,[I("div",xTt,[e.keyword?(z(),Q("span",CTt," 搜索结果:"+je(e.keyword),1)):Le("",!0),e.videos.length>0?(z(),Q("span",wTt," 共找到 "+je(e.videos.length)+" 个结果 ",1)):Le("",!0)]),I("div",ETt,[$(L,{type:"outline",size:"small",onClick:_},{icon:de(()=>[$(O)]),default:de(()=>[M[0]||(M[0]=Ue(" 清除搜索 ",-1))]),_:1})])]),I("div",{class:"search-grid-container",ref_key:"containerRef",ref:c},[$(ne,{ref_key:"scrollbarRef",ref:d,onScroll:y,class:"search-scroll-container",style:Ge("height:"+h.value+"px; overflow: auto;")},{default:de(()=>[e.error?(z(),Q("div",TTt,[$(B,{class:"error-icon"}),I("p",ATt,je(e.error),1)])):e.loading&&e.videos.length===0?(z(),Q("div",ITt,[$(j,{size:32}),M[1]||(M[1]=I("p",{class:"loading-text"},"正在搜索...",-1))])):e.videos.length>0?(z(),qe(K,{key:2,cols:{xs:2,sm:3,md:4,lg:5,xl:6,xxl:8},rowGap:16,colGap:12},{default:de(()=>[(z(!0),Q(Bt,null,vn(e.videos,X=>(z(),qe(H,{key:X.vod_id,class:"video_list_hover"},{default:de(()=>[I("div",{class:"video_list_item",onClick:U=>E(X)},[I("div",DTt,[X.vod_pic&&X.vod_pic.trim()!==""?(z(),qe(W,{key:0,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:X.vod_pic},null,8,["src"])):et(B8t)(X)?(z(),Q("div",PTt,[...M[2]||(M[2]=[I("i",{class:"iconfont icon-wenjianjia folder-icon"},null,-1)])])):et(N8t)(X)?(z(),Q("div",RTt,[(z(),Q("svg",MTt,[I("use",{href:`#${et(A3e)(X.vod_name)}`},null,8,OTt)]))])):(z(),qe(W,{key:3,preview:!1,class:"video_list_item_img_cover",fit:"cover",src:X.vod_pic||"/default-poster.svg"},null,8,["src"])),X.vod_remarks?(z(),Q("div",{key:4,class:"video_remarks_overlay",innerHTML:X.vod_remarks},null,8,$Tt)):Le("",!0)]),I("div",BTt,[I("span",NTt,je(X.vod_name),1)])],8,LTt)]),_:2},1024))),128))]),_:1})):!e.loading&&!e.error&&e.keyword?(z(),Q("div",FTt,[$(Y,{class:"empty-icon"}),M[3]||(M[3]=I("p",{class:"empty-text"},"没有找到相关内容",-1)),M[4]||(M[4]=I("p",{class:"empty-desc"},"尝试使用其他关键词搜索",-1))])):Le("",!0),e.loading&&e.videos.length>0?(z(),Q("div",jTt,[$(j),M[5]||(M[5]=I("div",{class:"loading-text"},"加载更多...",-1))])):!e.hasMore&&e.videos.length>0?(z(),Q("div",VTt," 没有更多数据了 ")):Le("",!0),M[6]||(M[6]=I("div",{class:"bottom-spacer"},null,-1))]),_:1},8,["style"])],512),v.value?(z(),qe(_3,{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"])):Le("",!0)])}}},I3e=kr(zTt,[["__scopeId","data-v-7a9e3b4a"]]),bS=tg("site",()=>{const e=fe(_s.getCurrentSite()||JSON.parse(localStorage.getItem("site-nowSite"))||null),t=r=>{e.value=r,localStorage.setItem("site-nowSite",JSON.stringify(r)),r&&r.key&&_s.setCurrentSite(r.key),console.log("站点已切换:",r)},n=()=>{const r=_s.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}}),UTt={class:"current-time"},HTt={class:"main-container"},WTt={key:0,class:"global-loading-overlay"},GTt={class:"global-loading-content"},KTt={__name:"Video",setup(e){const{nowSite:t,setCurrentSite:n}=bS();oS();const r=FA(),o=x5(),a=el(),s=Te=>{const ve=Te.getFullYear(),be=String(Te.getMonth()+1).padStart(2,"0"),Me=String(Te.getDate()).padStart(2,"0"),He=String(Te.getHours()).padStart(2,"0"),Xe=String(Te.getMinutes()).padStart(2,"0"),rt=String(Te.getSeconds()).padStart(2,"0");return`${ve}-${be}-${Me} ${He}:${Xe}:${rt}`},l=fe(s(new Date)),c=fe(o.query.activeKey||""),d=fe(null),h=Xt({sites:[],now_site_title:"hipy影视",now_site:{},visible:!1,form_title:"",recommendVideos:[],classList:{},videoList:{}}),p=Xt({isSearching:!1,searchKeyword:"",searchResults:[],searchLoading:!1,searchError:null,currentPage:1,totalPages:1,hasMore:!1,scrollPosition:0}),v=Xt({isActive:!1,categoryData:null,originalClassList:null,originalRecommendVideos:null}),g=d0({isActive:!1,breadcrumbs:[],currentData:[],currentBreadcrumb:null,loading:!1}),y=fe(!1),S=Xt({activeKey:null,scrollPosition:0,savedAt:null}),k=fe(null),C=async(Te=!1)=>{try{if(_s.getConfigStatus().hasConfigUrl)try{await _s.loadSitesFromConfig(Te)}catch(be){console.error("从配置地址加载站点数据失败:",be)}h.sites=_s.getAllSites(),h.sites.length}catch(ve){console.error("获取站点配置失败:",ve)}},x=()=>{const Te=_s.getCurrentSite();Te?(h.now_site=Te,h.now_site_title=Te.name,n(Te)):t&&t.name?(h.now_site=t,h.now_site_title=t.name,_s.setCurrentSite(t.key)):(h.now_site={},h.now_site_title="hipy影视")},E=()=>{if(!h.now_site||!h.now_site.key){const Te=_s.getCurrentSite();if(Te)h.now_site=Te,h.now_site_title=Te.name;else if(h.sites.length>0){const ve=h.sites.find(be=>be.type===4)||h.sites[0];ve&&(h.now_site=ve,h.now_site_title=ve.name,_s.setCurrentSite(ve.key))}}else if(!h.sites.some(ve=>ve.key===h.now_site.key)&&h.sites.length>0){const ve=h.sites.find(be=>be.type===4)||h.sites[0];ve&&(h.now_site=ve,h.now_site_title=ve.name,_s.setCurrentSite(ve.key))}h.new_site=h.now_site},_=()=>{k.value=setInterval(()=>{l.value=s(new Date)},1e3)},T=()=>{window.location.reload()},D=Te=>{console.log("收到重载源事件:",Te.detail),T()},P=()=>{},M=()=>{},O=()=>{},L=Te=>h.new_site=Te,B=()=>{h.now_site=h.new_site,n(h.now_site),h.visible=!1,C(!0),E()},j=Te=>{h.now_site=Te,n(Te),h.now_site_title=Te.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),W(Te)},W=async Te=>{if(!(!Te||!Te.key)){y.value=!0,h.classList={class:[],filters:{}},h.recommendVideos=[];try{const ve=h.sites.findIndex(Me=>Me.key===Te.key)===0;console.log("[Video.vue] 开始获取首页数据:",{siteKey:Te.key,siteName:Te.name,extend:Te.ext,apiUrl:Te.api,isFirstSite:ve}),ve&&(console.log("[Video.vue] 检测到第一个源,清除缓存"),Kl.clearModuleCache(Te.key));const be=await Kl.getRecommendVideos(Te.key,{extend:Te.ext,apiUrl:Te.api});console.log("[Video.vue] 首页数据获取成功:",{siteKey:Te.key,categoriesCount:be.categories?.length||0,videosCount:be.videos?.length||0,hasVideos:!!(be.videos&&be.videos.length>0),firstVideo:be.videos?.[0]}),h.classList={class:be.categories,filters:be.filters},h.recommendVideos=be.videos||[],console.log("[Video.vue] 推荐数据已设置:",{siteKey:Te.key,recommendVideosLength:h.recommendVideos.length,isFirstSite:h.sites.findIndex(Me=>Me.key===Te.key)===0})}catch(ve){console.error("获取分类列表失败:",ve),h.classList={class:[],filters:{}},h.recommendVideos=[]}finally{y.value=!1}}},H=async Te=>{if(!Te||!Te.trim()){p.isSearching=!1,p.searchKeyword="",p.searchResults=[];return}const ve=Te.trim();p.searchKeyword=ve,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 be=await Kl.searchVideo(h.now_site.key,{keyword:ve,page:1,extend:h.now_site.ext,apiUrl:h.now_site.api});p.searchResults=be.videos||[],p.totalPages=be.pagination?.totalPages||1,p.hasMore=be.pagination?.hasNext||!1}catch(be){console.error("搜索失败:",be),p.searchError=be.message||"搜索失败,请重试",p.searchResults=[]}finally{p.searchLoading=!1}},K=async()=>{if(p.searchLoading||!p.searchKeyword||!p.hasMore)return;p.searchLoading=!0;const Te=p.currentPage+1;try{const ve=await Kl.searchVideo(h.now_site.key,{keyword:p.searchKeyword,page:Te,extend:h.now_site.ext,apiUrl:h.now_site.api}),be=ve.videos||[],Me=new Set(p.searchResults.map(Xe=>Xe.vod_id)),He=be.filter(Xe=>!Me.has(Xe.vod_id)&&Xe.vod_id!=="no_data"&&Xe.vod_name!=="no_data");He.length===0?p.hasMore=!1:(p.searchResults=[...p.searchResults,...He],p.hasMore=ve.pagination?.hasNext!==!1),p.currentPage=Te,p.totalPages=ve.pagination?.totalPages||p.totalPages}catch(ve){console.error("搜索加载更多失败:",ve),p.searchError=ve.message||"加载失败,请重试"}finally{p.searchLoading=!1}},Y=()=>{p.isSearching=!1,p.searchKeyword="",p.searchResults=[],p.searchError=null,p.currentPage=1},ne=Te=>{c.value=Te;const ve={...o.query};Te?ve.activeKey=Te:delete ve.activeKey,a.replace({name:o.name,params:o.params,query:ve}),console.log("[DEBUG] 地址栏activeKey已更新:",Te)},X=Te=>{if(Te&&Te.vod_id){let ve="false";p.isSearching?ve="true":c.value&&r.saveVideoState(c.value,1,[],!0,!1,window.scrollY);const be={name:Te.vod_name,pic:Te.vod_pic,year:Te.vod_year,area:Te.vod_area,type:Te.vod_type,remarks:Te.vod_remarks,content:Te.vod_content,actor:Te.vod_actor,director:Te.vod_director,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify({...o.query,activeKey:c.value}),fromSearch:ve,sourcePic:Te.vod_pic};g.value?.isActive&&(be.folderState=JSON.stringify({isActive:g.value.isActive,breadcrumbs:g.value.breadcrumbs,currentBreadcrumb:g.value.currentBreadcrumb})),a.push({name:"VideoDetail",params:{id:Te.vod_id},query:be})}},U=()=>{p.isSearching||d.value&&d.value.refreshCurrentCategory()},q=async(Te,ve)=>{switch(Te){case"__self_search__":await ee(ve);break;default:console.warn("🎯 [WARN] 未知的特殊动作类型:",Te);break}},ee=async Te=>{try{v.isActive||(v.originalClassList=h.classList,v.originalRecommendVideos=h.recommendVideos);const ve=Te.tid||Te.type_id||Te.actionData?.tid,be=Te.name||Te.type_name||`搜索: ${ve}`;if(!ve){console.error("🔍 [ERROR] 源内搜索参数不完整:缺少tid"),xt.error("源内搜索参数不完整:缺少tid");return}const Me=await Kl.getCategoryVideos(h.now_site?.key||t?.key,{typeId:ve,page:1,filters:{},apiUrl:h.now_site?.api,extend:h.now_site?.ext}),He={class:[{type_id:ve,type_name:be}],filters:{}};v.isActive=!0,v.categoryData={type_id:ve,type_name:be,originalData:Te,videos:Me.videos||[],pagination:Me.pagination||{}},h.classList=He,h.recommendVideos=[],c.value=ve,await Cn(),d.value&&Me.videos&&d.value.setSpecialCategoryData(ve,Me.videos,Me.pagination)}catch(ve){console.error("处理源内搜索失败:",ve),xt.error(`源内搜索失败: ${ve.message}`)}},re=()=>{v.isActive&&(h.classList=v.originalClassList,h.recommendVideos=v.originalRecommendVideos,v.isActive=!1,v.categoryData=null,v.originalClassList=null,v.originalRecommendVideos=null,c.value="recommendTuijian404")};let ae=!1,ie=null,ke=null,Fe=0;const ge=async Te=>{if(!Te||typeof Te!="object"){console.error("navigationData 无效:",Te);return}if(ae){console.log("folder状态正在更新中,跳过重复调用");return}const ve=Date.now();if(ve-Fe<200){console.log("folder导航更新过于频繁,跳过");return}const be=JSON.stringify(Te);if(ke===be){console.log("相同的folder导航数据,跳过重复处理");return}ie&&(clearTimeout(ie),ie=null),ae=!0,ke=be,Fe=ve;try{Te.isActive&&!g.value?.isActive&&(S.activeKey=c.value,S.scrollPosition=window.scrollY||0,S.savedAt=Date.now()),!Te.isActive&&g.value?.isActive&&(S.activeKey&&(c.value=S.activeKey),S.scrollPosition&&Cn(()=>{window.scrollTo(0,S.scrollPosition)}),S.activeKey=null,S.scrollPosition=0,S.savedAt=null),await Cn();const Me=Xe=>{if(Xe===null||typeof Xe!="object")return Xe;if(Xe instanceof Date)return new Date(Xe.getTime());if(Xe instanceof Array)return Xe.map(rt=>Me(rt));if(typeof Xe=="object"){const rt={};return Object.keys(Xe).forEach(ft=>{rt[ft]=Me(Xe[ft])}),rt}return Xe},He={isActive:!!Te.isActive,breadcrumbs:Me(Te.breadcrumbs||[]),currentData:Me(Te.currentData||[]),currentBreadcrumb:Me(Te.currentBreadcrumb||null),loading:!!Te.loading};g.value=He}catch(Me){console.error("更新folder状态时出错:",Me)}finally{ae=!1,ie=null}},_e=()=>{h.visible=!0;const Te=h.sites.filter(ve=>ve.type===4);h.form_title=`请选择数据源(${Te.length})`,E()},ze=()=>{y.value=!1},Qe=async Te=>{if(!Te||!Te.trim()){xt.error("推送内容不能为空");return}const ve=h.sites.find(be=>be.key==="push_agent");if(!ve){xt.error("没有找到push_agent服务,请检查源配置");return}try{a.push({name:"VideoDetail",params:{id:Te.trim()},query:{name:`推送内容-${Te.trim()}`,pic:"",year:"",area:"",type:"",type_name:"",remarks:"",content:"",actor:"",director:"",fromPush:"true",tempSiteName:ve.name,tempSiteApi:ve.api,tempSiteKey:ve.key,sourceRouteName:o.name,sourceRouteParams:JSON.stringify(o.params),sourceRouteQuery:JSON.stringify(o.query),sourcePic:""}}),xt.success(`正在推送内容: ${Te.trim()}`)}catch(be){console.error("推送失败:",be),xt.error("推送失败,请重试")}},Je=Te=>{if(console.log("全局动作执行完成:",Te),!Te||typeof Te!="object"){console.warn("Invalid event object received in handleActionExecuted");return}const ve=Te.action?.name||"未知动作";Te.success?(console.log("动作执行成功:",ve,Te.result),Te.result&&Te.result.refresh&&T(),Te.result&&Te.result.navigate&&a.push(Te.result.navigate)):console.error("动作执行失败:",ve,Te.error)};return Rt(()=>o.query.activeKey,Te=>{Te&&Te!==c.value&&(console.log("[DEBUG] URL activeKey changed:",Te,"current:",c.value),c.value=Te)},{immediate:!0}),bn(async()=>{await C(),x(),E(),window.addEventListener("reloadSource",D);const Te=o.query._restoreSearch,ve=o.query._returnToActiveKey,be=o.query.folderState;if(Te==="true"){const ft=r.getPageState("search");if(ft&&ft.keyword&&!r.isStateExpired("search")){p.isSearching=!0,p.searchKeyword=ft.keyword,p.searchResults=ft.videos||[],p.currentPage=ft.currentPage||1,p.hasMore=ft.hasMore||!1,p.searchLoading=!1,p.searchError=null,p.scrollPosition=ft.scrollPosition||0;const lt={...o.query};delete lt._restoreSearch,a.replace({query:lt}),await W(h.now_site),_();return}}const Me=r.getPageState("video"),He=r.isStateExpired("video");let Xe=!1,rt=!1;if(ve){if(c.value=ve,be)try{const lt=JSON.parse(be),Et={isActive:lt.isActive,breadcrumbs:lt.breadcrumbs||[],currentBreadcrumb:lt.currentBreadcrumb,currentData:[],loading:!1};if(g.value=Et,lt.currentBreadcrumb&<.currentBreadcrumb.vod_id){g.value={...g.value,loading:!0};try{const St={t:lt.currentBreadcrumb.vod_id,apiUrl:h.now_site?.api,extend:h.now_site?.ext},Wt=await q1(h.now_site?.key||t?.key,St);if(Wt&&Wt.list){const Tt={...g.value,currentData:Wt.list,loading:!1};g.value=Tt}else g.value={...g.value,loading:!1}}catch(St){console.error("获取folder数据失败:",St),g.value={...g.value,loading:!1}}}rt=!0}catch(lt){console.error("解析folder状态失败:",lt)}rt||(Xe=!0);const ft={...o.query};delete ft._returnToActiveKey,delete ft.folderState,a.replace({query:ft})}else Me&&Me.activeKey&&!He&&(c.value=Me.activeKey,Xe=!0);await W(h.now_site),_(),Xe&&!rt&&setTimeout(()=>{d.value&&d.value.restoreFullState({activeKey:c.value,currentPage:Me?.currentPage||1,videos:Me?.videos||[],hasMore:Me?.hasMore||!0,scrollPosition:Me?.scrollPosition||0})},100)}),Io(()=>{if(k.value&&clearInterval(k.value),window.removeEventListener("reloadSource",D),c.value&&d.value){const Te=d.value.getCurrentState();r.saveVideoState(c.value,Te.currentPage,Te.videos,Te.hasMore,!1,Te.scrollPosition)}}),(Te,ve)=>{const be=Ie("a-spin"),Me=Ie("a-button"),He=Ie("a-layout-content");return z(),Q(Bt,null,[$(m8t,{onHandleOpenForm:_e,onRefreshPage:T,onMinimize:P,onMaximize:M,onCloseWindow:O,onOnSearch:H,onHandlePush:Qe,onActionExecuted:Je,now_site_title:h.now_site_title,sites:h.sites},{default:de(()=>[I("div",UTt,[I("span",null,je(l.value),1)])]),_:1},8,["now_site_title","sites"]),I("div",HTt,[y.value?(z(),Q("div",WTt,[I("div",GTt,[$(be,{size:32}),ve[2]||(ve[2]=I("div",{class:"loading-text"},"正在切换数据源...",-1)),$(Me,{type:"outline",size:"small",onClick:ze,class:"close-loading-btn"},{default:de(()=>[...ve[1]||(ve[1]=[Ue(" 手动关闭 ",-1)])]),_:1})])])):Le("",!0),$(He,{class:"content"},{default:de(()=>[p.isSearching?(z(),qe(I3e,{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:K,onExitSearch:Y,onVideoClick:X,onRefreshList:U},null,8,["keyword","videos","loading","error","currentPage","totalPages","hasMore","scrollPosition","sourceRoute","module","extend","api-url"])):(z(),qe(_Tt,{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:v,folderNavigationState:g.value,onActiveKeyChange:ne,onSpecialAction:q,onCloseSpecialCategory:re,onFolderNavigate:ge},null,8,["classList","recommendVideos","sourceRoute","returnToActiveKey","module","extend","api-url","specialCategoryState","folderNavigationState"]))]),_:1})]),$(u4t,{visible:h.visible,title:h.form_title,sites:h.sites,currentSiteKey:h.now_site.key,"onUpdate:visible":ve[0]||(ve[0]=Xe=>h.visible=Xe),onConfirmClear:B,onConfirmChange:j,onChangeRule:L},null,8,["visible","title","sites","currentSiteKey"])],64)}}},qTt=kr(KTt,[["__scopeId","data-v-c96dc32e"]]),L3e=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:v,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()});v&&S.set("script",v),s=`${n}?${S.toString()}`,g&&(s+=g)}else{const p=typeof e=="string"?e:e.toString(),v=new URLSearchParams({url:p,mode:o,is_pc:a,timeout:(r*1e3).toString()});s=`${n}?${v.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}},yG=()=>{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}},TT=()=>{const e=yG();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},D3e=async(e,t={})=>{const n=yG();if(!n.enabled)throw new Error("嗅探功能未启用");if(!n.url)throw new Error("嗅探器接口地址未配置");const r={snifferUrl:n.url,timeout:n.timeout,...t};return await L3e(e,r)},YTt=Object.freeze(Object.defineProperty({__proto__:null,getSnifferConfig:yG,isSnifferEnabled:TT,sniffVideo:L3e,sniffVideoWithConfig:D3e},Symbol.toStringTag,{value:"Module"}));class Ble{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:y0.TIMEOUT},h=await co(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 co({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:y0.TIMEOUT,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 YA=tg("favorite",()=>{const e=fe([]),t=()=>{try{const v=localStorage.getItem("drplayer-favorites");v&&(e.value=JSON.parse(v))}catch(v){console.error("加载收藏数据失败:",v),e.value=[]}},n=()=>{try{localStorage.setItem("drplayer-favorites",JSON.stringify(e.value))}catch(v){console.error("保存收藏数据失败:",v)}},r=v=>{const g={id:v.vod_id,name:v.vod_name,pic:v.vod_pic,year:v.vod_year,area:v.vod_area,type_name:v.type_name,remarks:v.vod_remarks,director:v.vod_director,actor:v.vod_actor,api_info:{module:v.module||"",api_url:v.api_url||"",site_name:v.site_name||"",ext:v.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=(v,g)=>{const y=e.value.findIndex(S=>S.id===v&&S.api_info.api_url===g);return y!==-1?(e.value.splice(y,1),n(),!0):!1},a=(v,g)=>e.value.some(y=>y.id===v&&y.api_info.api_url===g),s=(v,g)=>e.value.find(y=>y.id===v&&y.api_info.api_url===g),l=()=>{e.value=[],n()},c=()=>{const v={version:"1.0",export_time:new Date().toISOString(),favorites:e.value},g=new Blob([JSON.stringify(v,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=v=>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(v)}),h=F(()=>e.value.length),p=F(()=>{const v={};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="少儿"),v[S]||(v[S]=[]),v[S].push(g)}),v});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}}),bG=tg("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}}}),_G=tg("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},v=_=>{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(),O=/https?:\/\/[^\s]+\.(mp4|m3u8|flv)/i.test(M);return{success:!0,hasVideoUrl:O,response:M,message:O?"解析成功,检测到视频链接":"解析完成,但未检测到视频链接"}}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,O)=>({...M,id:`imported_${Date.now()}_${O}`,enabled:!0,order:e.value.length+O}));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:v,reorderParsers:g,reorderParsersById:y,testParser:S,exportParsers:k,importParsers:C,clearAllParsers:x}}),jn=Number.isFinite||function(e){return typeof e=="number"&&isFinite(e)},XTt=Number.isSafeInteger||function(e){return typeof e=="number"&&Math.abs(e)<=ZTt},ZTt=Number.MAX_SAFE_INTEGER||9007199254740991;let dr=(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})({}),Ht=(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})({}),Ee=(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 ki={MANIFEST:"manifest",LEVEL:"level",AUDIO_TRACK:"audioTrack",SUBTITLE_TRACK:"subtitleTrack"},rr={MAIN:"main",AUDIO:"audio",SUBTITLE:"subtitle"};class C1{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 JTt{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 C1(t),this.fast_=new C1(n),this.defaultTTFB_=o,this.ttfb_=new C1(t)}update(t,n){const{slow_:r,fast_:o,ttfb_:a}=this;r.halfLife!==t&&(this.slow_=new C1(t,r.getEstimate(),r.getTotalWeight())),o.halfLife!==n&&(this.fast_=new C1(n,o.getEstimate(),o.getTotalWeight())),a.halfLife!==t&&(this.ttfb_=new C1(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 QTt(e,t,n){return(t=t5t(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bo(){return bo=Object.assign?Object.assign.bind():function(e){for(var t=1;t`):Zp}function Fle(e,t,n){return t[e]?t[e].bind(t):r5t(e,n)}const Bz=$z();function i5t(e,t,n){const r=$z();if(typeof console=="object"&&e===!0||typeof e=="object"){const o=["debug","log","info","warn","error"];o.forEach(a=>{r[a]=Fle(a,e,n)});try{r.log(`Debug logs enabled for "${t}" in hls.js version 1.6.13`)}catch{return $z()}o.forEach(a=>{Bz[a]=Fle(a,e)})}else bo(Bz,r);return r}const po=Bz;function P0(e=!0){return typeof self>"u"?void 0:(e||!self.MediaSource)&&self.ManagedMediaSource||self.MediaSource||self.WebKitMediaSource}function o5t(e){return typeof self<"u"&&e===self.ManagedMediaSource}function P3e(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 cc(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(!jn(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 l5t extends M3e{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 O3e(e,t){const n=Object.getPrototypeOf(e);if(n){const r=Object.getOwnPropertyDescriptor(n,t);return r||O3e(n,t)}}function u5t(e,t){const n=O3e(e,t);n&&(n.enumerable=!0,Object.defineProperty(e,t,n))}const Vle=Math.pow(2,32)-1,c5t=[].push,$3e={video:1,audio:2,id3:3,text:4};function aa(e){return String.fromCharCode.apply(null,e)}function B3e(e,t){const n=e[t]<<8|e[t+1];return n<0?65536+n:n}function Br(e,t){const n=N3e(e,t);return n<0?4294967296+n:n}function zle(e,t){let n=Br(e,t);return n*=Math.pow(2,32),n+=Br(e,t+4),n}function N3e(e,t){return e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3]}function d5t(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 pi(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=pi(e.subarray(o+8,l),t.slice(1));c.length&&c5t.apply(n,c)}o=l}return n}function f5t(e){const t=[],n=e[0];let r=8;const o=Br(e,r);r+=4;let a=0,s=0;n===0?(a=Br(e,r),s=Br(e,r+4),r+=8):(a=zle(e,r),s=zle(e,r+8),r+=16),r+=2;let l=e.length+s;const c=B3e(e,r);r+=2;for(let d=0;d>>31===1)return po.warn("SIDX has hierarchical references (not supported)"),null;const y=Br(e,h);h+=4,t.push({referenceSize:v,subsegmentDuration:y,info:{duration:y/o,start:l,end:l+v-1}}),l+=v,h+=4,r=h}return{earliestPresentationTime:a,timescale:o,version:n,referencesCount:c,references:t}}function F3e(e){const t=[],n=pi(e,["moov","trak"]);for(let o=0;o{const a=Br(o,4),s=t[a];s&&(s.default={duration:Br(o,12),flags:Br(o,20)})}),t}function h5t(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=pi(t,[r])[0].subarray(r==="enca"?28:78);pi(d,["sinf"]).forEach(p=>{const v=pi(p,["schm"])[0];if(v){const g=aa(v.subarray(4,8));if(g==="cbcs"||g==="cenc"){const y=pi(p,["frma"])[0];y&&(o=aa(y))}}})}const l=o;switch(o){case"avc1":case"avc2":case"avc3":case"avc4":{const c=pi(n,["avcC"])[0];c&&c.length>3&&(o+="."+gC(c[1])+gC(c[2])+gC(c[3]),a=mC(l==="avc1"?"dva1":"dvav",n));break}case"mp4a":{const c=pi(t,[r])[0],d=pi(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 v=d[h++];if(v===64)o+="."+gC(v);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=pi(n,["hvcC"])[0];if(c&&c.length>12){const d=c[1],h=["","A","B","C"][d>>6],p=d&31,v=Br(c,2),g=(d&32)>>5?"H":"L",y=c[12],S=c.subarray(6,12);o+="."+h+p,o+="."+p5t(v).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=mC(l=="hev1"?"dvhe":"dvh1",n);break}case"dvh1":case"dvhe":case"dvav":case"dva1":case"dav1":{o=mC(o,n)||o;break}case"vp09":{const c=pi(n,["vpcC"])[0];if(c&&c.length>6){const d=c[4],h=c[5],p=c[6]>>4&15;o+="."+of(d)+"."+of(h)+"."+of(p)}break}case"av01":{const c=pi(n,["av1C"])[0];if(c&&c.length>2){const d=c[1]>>>5,h=c[1]&31,p=c[2]>>>7?"H":"M",v=(c[2]&64)>>6,g=(c[2]&32)>>5,y=d===2&&v?g?12:10:v?10:8,S=(c[2]&16)>>4,k=(c[2]&8)>>3,C=(c[2]&4)>>2,x=c[2]&3;o+="."+d+"."+of(h)+p+"."+of(y)+"."+S+"."+k+C+x+"."+of(1)+"."+of(1)+"."+of(1)+"."+0,a=mC("dav1",n)}break}}return{codec:o,encrypted:s,supplemental:a}}function mC(e,t){const n=pi(t,["dvvC"]),r=n.length?n[0]:pi(t,["dvcC"])[0];if(r){const o=r[2]>>1&127,a=r[2]<<5&32|r[3]>>3&31;return e+"."+of(o)+"."+of(a)}}function p5t(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)||(po.log(`[eme] Patching keyId in 'enc${o?"a":"v"}>sinf>>tenc' box: ${zl(a)} -> ${zl(n)}`),r.set(n,8))})}function m5t(e){const t=[];return j3e(e,n=>t.push(n.subarray(8,24))),t}function j3e(e,t){pi(e,["moov","trak"]).forEach(r=>{const o=pi(r,["mdia","minf","stbl","stsd"])[0];if(!o)return;const a=o.subarray(8);let s=pi(a,["enca"]);const l=s.length>0;l||(s=pi(a,["encv"])),s.forEach(c=>{const d=l?c.subarray(28):c.subarray(78);pi(d,["sinf"]).forEach(p=>{const v=V3e(p);v&&t(v,l)})})})}function V3e(e){const t=pi(e,["schm"])[0];if(t){const n=aa(t.subarray(4,8));if(n==="cbcs"||n==="cenc"){const r=pi(e,["schi","tenc"])[0];if(r)return r}}}function g5t(e,t,n){const r={},o=pi(e,["moof","traf"]);for(let a=0;ar[a].duration)){let a=1/0,s=0;const l=pi(e,["sidx"]);for(let c=0;cp+v.info.duration||0,0);s=Math.max(s,h+d.earliestPresentationTime/d.timescale)}}s&&jn(s)&&Object.keys(r).forEach(c=>{r[c].duration||(r[c].duration=s*r[c].timescale-r[c].start)})}return r}function y5t(e){const t={valid:null,remainder:null},n=pi(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 Qc(e,t){const n=new Uint8Array(e.length+t.length);return n.set(e),n.set(t,e.length),n}function Ule(e,t){const n=[],r=t.samples,o=t.timescale,a=t.id;let s=!1;return pi(r,["moof"]).map(c=>{const d=c.byteOffset-8;pi(c,["traf"]).map(p=>{const v=pi(p,["tfdt"]).map(g=>{const y=g[0];let S=Br(g,4);return y===1&&(S*=Math.pow(2,32),S+=Br(g,8)),S/o})[0];return v!==void 0&&(e=v),pi(p,["tfhd"]).map(g=>{const y=Br(g,4),S=Br(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=Br(g,P),P+=4),_&&(T=Br(g,P),P+=4),D&&(P+=4),t.type==="video"&&(s=XA(t.codec)),pi(p,["trun"]).map(M=>{const O=M[0],L=Br(M,0)&16777215,B=(L&1)!==0;let j=0;const W=(L&4)!==0,H=(L&256)!==0;let K=0;const Y=(L&512)!==0;let ne=0;const X=(L&1024)!==0,U=(L&2048)!==0;let q=0;const ee=Br(M,4);let re=8;B&&(j=Br(M,re),re+=4),W&&(re+=4);let ae=j+d;for(let ie=0;ie>1&63;return n===39||n===40}else return(t&31)===6}function xG(e,t,n,r){const o=z3e(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){po.error(`Malformed SEI payload. ${l} is too small, only ${d} bytes left to parse.`);break}if(s===4){if(o[h++]===181){const v=B3e(o,h);if(h+=2,v===49){const g=Br(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 v=l-16,g=new Uint8Array(v);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),S5t([112,115,115,104],new Uint8Array([r,0,0,0]),e,a,o,s,n)}function x5t(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 v=e.getUint32(28);if(!v||r<32+v*16)return{offset:n,size:t};c=[];for(let g=0;g/\(Windows.+Firefox\//i.test(navigator.userAgent),Uy={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 CG(e,t){const n=Uy[t];return!!n&&!!n[e.slice(0,4)]}function x_(e,t,n=!0){return!e.split(",").some(r=>!wG(r,t,n))}function wG(e,t,n=!0){var r;const o=P0(n);return(r=o?.isTypeSupported(C_(e,t)))!=null?r:!1}function C_(e,t){return`${t}/mp4;codecs=${e}`}function Hle(e){if(e){const t=e.substring(0,4);return Uy.video[t]}return 2}function AT(e){const t=U3e();return e.split(",").reduce((n,r)=>{const a=t&&XA(r)?9:Uy.video[r];return a?(a*2+n)/(n?3:2):(Uy.audio[r]+n)/(n?2:1)},0)}const MF={};function w5t(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;ow5t(n.toLowerCase(),t))}function T5t(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)&&(Wle(e,"audio")||Wle(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 Wle(e,t){return CG(e,t)&&wG(e,t)}function A5t(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 I5t(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 Gle(e){const t=P0(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 Nz(e){return e.replace(/^.+codecs=["']?([^"']+).*$/,"$1")}const L5t={supported:!0,powerEfficient:!0,smooth:!0},D5t={supported:!1,smooth:!1,powerEfficient:!1},H3e={supported:!0,configurations:[],decodingInfoResults:[L5t]};function W3e(e,t){return{supported:!1,configurations:t,decodingInfoResults:[D5t],error:e}}function P5t(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((v,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=>{v[S]=(v[S]||0)+y.channels[S]})}return v},{2:0})}catch{return!0}return s!==void 0&&(s.split(",").some(v=>XA(v))||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&&jn(h)&&Object.keys(p).some(v=>parseInt(v)>h)}function G3e(e,t,n,r={}){const o=e.videoCodec;if(!o&&!e.audioCodec||!n)return Promise.resolve(H3e);const a=[],s=R5t(e),l=s.length,c=M5t(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 v=p.audio.bitrate;p.video&&v&&(p.video.bitrate-=v)}a.push(p)}if(o){const h=navigator.userAgent;if(o.split(",").some(p=>XA(p))&&U3e())return Promise.resolve(W3e(new Error(`Overriding Windows Firefox HEVC MediaCapabilities result based on user-agent string: (${h})`),a))}return Promise.all(a.map(h=>{const p=$5t(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 R5t(e){var t;const n=(t=e.videoCodec)==null?void 0:t.split(","),r=K3e(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:C_(I5t(c),"video"),width:o,height:a,bitrate:r,framerate:s};return l!=="sdr"&&(d.transferFunction=l),d}):[]}function M5t(e,t,n){var r;const o=(r=e.audioCodec)==null?void 0:r.split(","),a=K3e(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 v=parseFloat(p.channels||"");o.forEach(g=>{const y={contentType:C_(g,"audio"),bitrate:n?O5t(g,a):a};v&&(y.channels=""+v),h.push(y)})}return h},s):s},[]):[]}function O5t(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 K3e(e){return Math.ceil(Math.max(e.bitrate*.9,e.averageBitrate)/1e3)*1e3||1}function $5t(e){let t="";const{audio:n,video:r}=e;if(r){const o=Nz(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=Nz(n.contentType);t+=`${r?"_":""}${o}_c${n.channels}`}return t}const Fz=["NONE","TYPE-0","TYPE-1",null];function B5t(e){return Fz.indexOf(e)>-1}const LT=["SDR","PQ","HLG"];function N5t(e){return!!e&<.indexOf(e)>-1}var JE={No:"",Yes:"YES",v2:"v2"};function Kle(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 Yle(this._audioGroups,t)}hasSubtitleGroup(t){return Yle(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 Yle(e,t){return!t||!e?!1:e.indexOf(t)!==-1}function F5t(){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 j5t(e,t){let n=!1,r=[];if(e&&(n=e!=="SDR",r=[e]),t){r=t.allowedVideoRanges||LT.slice(0);const o=r.join("")!=="SDR"&&!t.videoCodec;n=t.preferHDR!==void 0?t.preferHDR:o&&F5t(),n||(r=["SDR"])}return{preferHDR:n,allowedVideoRanges:r}}const V5t=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}},To=(e,t)=>JSON.stringify(e,V5t(t));function z5t(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,v=1/0,g=1/0,y=1/0,S=1/0,k=0,C=[];const{preferHDR:x,allowedVideoRanges:E}=j5t(t,o);for(let M=a.length;M--;){const O=e[a[M]];h||(h=O.channels[2]>0),v=Math.min(v,O.minHeight),g=Math.min(g,O.minFramerate),y=Math.min(y,O.minBitrate),E.filter(B=>O.videoRanges[B]>0).length>0&&(p=!0)}v=jn(v)?v:0,g=jn(g)?g:0;const _=Math.max(1080,v),T=Math.max(30,g);y=jn(y)?y:n,n=Math.max(y,n),p||(t=void 0);const D=a.length>1;return{codecSet:a.reduce((M,O)=>{const L=e[O];if(O===M)return M;if(C=p?E.filter(B=>L.videoRanges[B]>0):[],D){if(L.minBitrate>n)return ef(O,`min bitrate of ${L.minBitrate} > current estimate of ${n}`),M;if(!L.hasDefaultAudio)return ef(O,"no renditions with default or auto-select sound found"),M;if(l&&O.indexOf(l.substring(0,4))%5!==0)return ef(O,`audio codec preference "${l}" not found`),M;if(s&&!d){if(!L.channels[s])return ef(O,`no renditions with ${s} channel sound found (channels options: ${Object.keys(L.channels)})`),M}else if((!l||d)&&h&&L.channels[2]===0)return ef(O,"no renditions with stereo sound found"),M;if(L.minHeight>_)return ef(O,`min resolution of ${L.minHeight} > maximum of ${_}`),M;if(L.minFramerate>T)return ef(O,`min framerate of ${L.minFramerate} > maximum of ${T}`),M;if(!C.some(B=>L.videoRanges[B]>0))return ef(O,`no variants with VIDEO-RANGE of ${To(C)} found`),M;if(c&&O.indexOf(c.substring(0,4))%5!==0)return ef(O,`video codec preference "${c}" not found`),M;if(L.maxScore=AT(M)||L.fragmentError>e[M].fragmentError)?M:(S=L.minIndex,k=L.maxScore,O)},void 0),videoRanges:C,preferHDR:x,minFramerate:g,minBitrate:y,minIndex:S}}function ef(e,t){po.log(`[abr] start candidates with "${e}" ignored because ${t}`)}function q3e(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 U5t(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(v=>{c.channels[v]=(c.channels[v]||0)+p.channels[v]}))}),o},{})}function Xle(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 vf(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 Hv(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 G5t(e,t,n,r,o){const a=t[r],l=t.reduce((v,g,y)=>{const S=g.uri;return(v[S]||(v[S]=[])).push(y),v},{})[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=Zle(t,r,v=>{if(v.videoRange!==c||v.frameRate!==d||v.codecSet.substring(0,4)!==h)return!1;const g=v.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return vf(e,y,o)>-1});return p>-1?p:Zle(t,r,v=>{const g=v.audioGroups,y=n.filter(S=>!g||g.indexOf(S.groupId)!==-1);return vf(e,y,o)>-1})}function Zle(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,v=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(v<=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(),O=s.levels,L=O[y],B=Math.max(h.loaded,Math.round(p*(o.bitrate||L.averageBitrate)/8));let j=P?v-D:v;j<1&&P&&(j=Math.min(v,h.loaded*8/M));const W=P?h.loaded*1e3/j:0,H=E/1e3,K=W?(B-h.loaded)/W:B*8/M+H;if(K<=T)return;const Y=W?W*8:M,ne=((r=n?.details||this.hls.latestLevelDetails)==null?void 0:r.live)===!0,X=this.hls.config.abrBandWidthUpFactor;let U=Number.POSITIVE_INFINITY,q;for(q=y-1;q>g;q--){const ie=O[q].maxBitrate,ke=!O[q].details||ne;if(U=this.getTimeToLoadFrag(H,Y,p*ie,ke),U=K||U>p*10)return;P?this.bwEstimator.sample(v-Math.min(E,D),h.loaded):this.bwEstimator.sampleTTFB(v);const ee=O[q].maxBitrate;this.getBwEstimate()*X>ee&&this.resetEstimator(ee);const re=this.findBestLevel(ee,g,q,0,T,1,1);re>-1&&(q=re),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: ${K.toFixed(3)} s Estimated load time for down switch fragment: ${U.toFixed(3)} s TTFB estimate: ${D|0} ms Current BW estimate: ${jn(M)?M|0:"Unknown"} bps New BW estimate: ${this.getBwEstimate()|0} bps Switching to level ${q} @ ${ee|0} bps`),s.nextLoadLevel=s.nextAutoLevel=q,this.clearTimer();const ae=()=>{if(this.clearTimer(),this.fragCurrent===o&&this.hls.loadLevel===q&&q>0){const ie=this.getStarvationDelay();if(this.warn(`Aborting inflight request ${q>0?"and switching down":""} Fragment duration: ${o.duration.toFixed(3)} s Time to underbuffer: ${ie.toFixed(3)} s`),o.abortRequests(),this.fragCurrent=this.partCurrent=null,q>g){let ke=this.findBestLevel(this.hls.levels[g].bitrate,g,q,0,ie,1,1);ke===-1&&(ke=g),this.hls.nextLoadLevel=this.hls.nextAutoLevel=ke,this.resetEstimator(this.hls.levels[ke].bitrate)}}};k||K>U*2?ae():this.timer=self.setInterval(ae,U*1e3),s.trigger(Ee.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 JTt(t.abrEwmaSlowVoD,t.abrEwmaFastVoD,t.abrEwmaDefaultEstimate)}registerListeners(){const{hls:t}=this;t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.FRAG_LOADING,this.onFragLoading,this),t.on(Ee.FRAG_LOADED,this.onFragLoaded,this),t.on(Ee.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ee.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.FRAG_LOADING,this.onFragLoading,this),t.off(Ee.FRAG_LOADED,this.onFragLoaded,this),t.off(Ee.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ee.MAX_AUTO_LEVEL_UPDATED,this.onMaxAutoLevelUpdated,this),t.off(Ee.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 Ht.BUFFER_ADD_CODEC_ERROR:case Ht.BUFFER_APPEND_ERROR:this.lastLoadedFragLevel=-1,this.firstSelection=-1;break;case Ht.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;jn(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===rr.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(Ee.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!==rr.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 v=l?Math.min(l,a.maxStarvationDelay):a.maxStarvationDelay;if(!d){const k=this.bitrateTestDelay;k&&(v=(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*v)} ms`),h=p=1)}const g=this.findBestLevel(c,s,o,d,v,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;Y--){var K;const ne=y[Y],X=Y>p;if(!ne)continue;if(C.useMediaCapabilities&&!ne.supportedResult&&!ne.supportedPromise){const ke=navigator.mediaCapabilities;typeof ke?.decodingInfo=="function"&&P5t(ne,L,D,P,t,M)?(ne.supportedPromise=G3e(ne,L,ke,this.supportedCache),ne.supportedPromise.then(Fe=>{if(!this.hls)return;ne.supportedResult=Fe;const ge=this.hls.levels,_e=ge.indexOf(ne);Fe.error?this.warn(`MediaCapabilities decodingInfo error: "${Fe.error}" for level ${_e} ${To(Fe)}`):Fe.supported?Fe.decodingInfoResults.some(ze=>ze.smooth===!1||ze.powerEfficient===!1)&&this.log(`MediaCapabilities decodingInfo for level ${_e} not smooth or powerEfficient: ${To(Fe)}`):(this.warn(`Unsupported MediaCapabilities decodingInfo result for level ${_e} ${To(Fe)}`),_e>-1&&ge.length>1&&(this.log(`Removing unsupported level ${_e}`),this.hls.removeLevel(_e),this.hls.loadLevel===-1&&(this.hls.nextLoadLevel=0)))}).catch(Fe=>{this.warn(`Error handling MediaCapabilities decodingInfo: ${Fe}`)})):ne.supportedResult=H3e}if((T&&ne.codecSet!==T||D&&ne.videoRange!==D||X&&P>ne.frameRate||!X&&P>0&&Pke.smooth===!1))&&(!_||Y!==B)){H.push(Y);continue}const U=ne.details,q=(g?U?.partTarget:U?.averagetargetduration)||j;let ee;X?ee=l*t:ee=s*t;const re=j&&o>=j*2&&a===0?ne.averageBitrate:ne.maxBitrate,ae=this.getTimeToLoadFrag(W,ee,re*q,U===void 0);if(ee>=re&&(Y===h||ne.loadError===0&&ne.fragmentError===0)&&(ae<=W||!jn(ae)||E&&!this.bitrateTestDelay||ae${Y} adjustedbw(${Math.round(ee)})-bitrate=${Math.round(ee-re)} ttfb:${W.toFixed(1)} avgDuration:${q.toFixed(1)} maxFetchDuration:${d.toFixed(1)} fetchDuration:${ae.toFixed(1)} firstSelection:${_} codecSet:${ne.codecSet} videoRange:${ne.videoRange} hls.loadLevel:${k}`)),_&&(this.firstSelection=Y),Y}}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 Y3e={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 q5t(e,t,n){if(t===null||!Array.isArray(e)||!e.length||!jn(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)&&Jle(n,r,a)===0||Y5t(a,e,Math.min(o,r))))return a;const s=Y3e.search(t,Jle.bind(null,n,r));return s&&(s!==e||!a)?s:a}function Y5t(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 Jle(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 X5t(e,t,n){const r=Math.min(t,n.duration+(n.deltaPTS?n.deltaPTS:0))*1e3;return(n.endProgramDateTime||0)-r>e}function X3e(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 Y3e.search(r,s=>s.cct?-1:(a=s,s.end<=n?1:s.start>n?-1:0)),a||null}return null}function PT(e){switch(e.details){case Ht.FRAG_LOAD_TIMEOUT:case Ht.KEY_LOAD_TIMEOUT:case Ht.LEVEL_LOAD_TIMEOUT:case Ht.MANIFEST_LOAD_TIMEOUT:return!0}return!1}function Z3e(e){return e.details.startsWith("key")}function J3e(e){return Z3e(e)&&!!e.frag&&!e.frag.decryptdata}function Qle(e,t){const n=PT(t);return e.default[`${n?"timeout":"error"}Retry`]}function EG(e,t){const n=e.backoff==="linear"?1:Math.pow(2,t);return Math.min(n*e.retryDelayMs,e.maxRetryDelayMs)}function eue(e){return fo(fo({},e),{errorRetry:null,timeoutRetry:null})}function RT(e,t,n,r){if(!e)return!1;const o=r?.code,a=t499)}function jz(e){return e===0&&navigator.onLine===!1}var Ba={DoNothing:0,SendAlternateToPenaltyBox:2,RemoveAlternatePermanently:3,RetryRequest:5},ec={None:0,MoveAllAlternatesMatchingHost:1,MoveAllAlternatesMatchingHDCP:2,MoveAllAlternatesMatchingKey:4};class J5t extends rd{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(Ee.ERROR,this.onError,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.LEVEL_UPDATED,this.onLevelUpdated,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Ee.ERROR,this.onError,this),t.off(Ee.ERROR,this.onErrorOut,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.LEVEL_UPDATED,this.onLevelUpdated,this))}destroy(){this.unregisterListeners(),this.hls=null}startLoad(t){}stopLoad(){this.playlistError=0}getVariantLevelIndex(t){return t?.type===rr.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 Ht.FRAG_LOAD_ERROR:case Ht.FRAG_LOAD_TIMEOUT:case Ht.KEY_LOAD_ERROR:case Ht.KEY_LOAD_TIMEOUT:n.errorAction=this.getFragRetryOrSwitchAction(n);return;case Ht.FRAG_PARSING_ERROR:if((r=n.frag)!=null&&r.gap){n.errorAction=gy();return}case Ht.FRAG_GAP:case Ht.FRAG_DECRYPT_ERROR:{n.errorAction=this.getFragRetryOrSwitchAction(n),n.errorAction.action=Ba.SendAlternateToPenaltyBox;return}case Ht.LEVEL_EMPTY_ERROR:case Ht.LEVEL_PARSING_ERROR:{var s;const c=n.parent===rr.MAIN?n.level:o.loadLevel;n.details===Ht.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 Ht.LEVEL_LOAD_ERROR:case Ht.LEVEL_LOAD_TIMEOUT:typeof a?.level=="number"&&(n.errorAction=this.getPlaylistRetryOrSwitchAction(n,a.level));return;case Ht.AUDIO_TRACK_LOAD_ERROR:case Ht.AUDIO_TRACK_LOAD_TIMEOUT:case Ht.SUBTITLE_LOAD_ERROR:case Ht.SUBTITLE_TRACK_LOAD_TIMEOUT:if(a){const c=o.loadLevelObj;if(c&&(a.type===ki.AUDIO_TRACK&&c.hasAudioGroup(a.groupId)||a.type===ki.SUBTITLE_TRACK&&c.hasSubtitleGroup(a.groupId))){n.errorAction=this.getPlaylistRetryOrSwitchAction(n,o.loadLevel),n.errorAction.action=Ba.SendAlternateToPenaltyBox,n.errorAction.flags=ec.MoveAllAlternatesMatchingHost;return}}return;case Ht.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:n.errorAction={action:Ba.SendAlternateToPenaltyBox,flags:ec.MoveAllAlternatesMatchingHDCP};return;case Ht.KEY_SYSTEM_SESSION_UPDATE_FAILED:case Ht.KEY_SYSTEM_STATUS_INTERNAL_ERROR:case Ht.KEY_SYSTEM_NO_SESSION:n.errorAction={action:Ba.SendAlternateToPenaltyBox,flags:ec.MoveAllAlternatesMatchingKey};return;case Ht.BUFFER_ADD_CODEC_ERROR:case Ht.REMUX_ALLOC_ERROR:case Ht.BUFFER_APPEND_ERROR:if(!n.errorAction){var l;n.errorAction=this.getLevelSwitchAction(n,(l=n.level)!=null?l:o.loadLevel)}return;case Ht.INTERNAL_EXCEPTION:case Ht.BUFFER_APPENDING_ERROR:case Ht.BUFFER_FULL_ERROR:case Ht.LEVEL_SWITCH_ERROR:case Ht.BUFFER_STALLED_ERROR:case Ht.BUFFER_SEEK_OVER_HOLE:case Ht.BUFFER_NUDGE_ON_STALL:n.errorAction=gy();return}n.type===dr.KEY_SYSTEM_ERROR&&(n.levelRetry=!1,n.errorAction=gy())}getPlaylistRetryOrSwitchAction(t,n){const r=this.hls,o=Qle(r.config.playlistLoadPolicy,t),a=this.playlistError++;if(RT(o,a,PT(t),t.response))return{action:Ba.RetryRequest,flags:ec.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(Z3e(t)?s:a,t),c=n.levels.reduce((h,p)=>h+p.fragmentError,0);if(o&&(t.details!==Ht.FRAG_GAP&&o.fragmentError++,!J3e(t)&&RT(l,c,PT(t),t.response)))return{action:Ba.RetryRequest,flags:ec.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===Ht.BUFFER_APPEND_ERROR&&o.fragmentError++;let h=-1;const{levels:p,loadLevel:v,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===rr.AUDIO&&d===Ht.FRAG_PARSING_ERROR||t.sourceBufferName==="audio"&&(d===Ht.BUFFER_ADD_CODEC_ERROR||d===Ht.BUFFER_APPEND_ERROR))&&p.some(({audioCodec:D})=>o.audioCodec!==D),E=t.sourceBufferName==="video"&&(d===Ht.BUFFER_ADD_CODEC_ERROR||d===Ht.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+v)%p.length;if(P!==v&&P>=g&&P<=y&&p[P].loadError===0){var l,c;const M=p[P];if(d===Ht.FRAG_GAP&&S===rr.MAIN&&t.frag){const O=p[P].details;if(O){const L=jm(t.frag,O.fragments,t.frag.start);if(L!=null&&L.gap)continue}}else{if(_===ki.AUDIO_TRACK&&M.hasAudioGroup(T)||_===ki.SUBTITLE_TRACK&&M.hasSubtitleGroup(T))continue;if(S===rr.AUDIO&&(l=o.audioGroups)!=null&&l.some(O=>M.hasAudioGroup(O))||S===rr.SUBTITLE&&(c=o.subtitleGroups)!=null&&c.some(O=>M.hasSubtitleGroup(O))||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:ec.None,nextAutoLevel:h}}return{action:Ba.SendAlternateToPenaltyBox,flags:ec.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!==Ht.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 ec.None:this.switchLevel(t,a);break;case ec.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=Fz[Fz.indexOf(h)-1],r.resolved=!0,this.warn(`Restricting playback to HDCP-LEVEL of "${n.maxHdcpLevel}" or lower`);break}}case ec.MoveAllAlternatesMatchingKey:{const c=t.decryptdata;if(c){const d=this.hls.levels,h=d.length;for(let v=h;v--;)if(this.variantHasKey(d[v],c)){var s,l;this.log(`Banned key found in level ${v} (${d[v].bitrate}bps) or audio group "${(s=d[v].audioGroups)==null?void 0:s.join(",")}" (${(l=t.frag)==null?void 0:l.type} fragment) ${zl(c.keyId||[])}`),d[v].fragmentError++,d[v].loadError++,this.log(`Removing level ${v} with key error (${t.error})`),this.hls.removeLevel(v)}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=w1(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),yC(a)||this.removeParts(r.sn-1,r.type)):this.removeFragment(a.body)}removeParts(t,n){const r=this.activePartLists[n];r&&(this.activePartLists[n]=tue(r,o=>o.fragment.sn>=t))}fragBuffered(t,n){const r=w1(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<=v){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&&yC(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||yC(n))}getState(t){const n=w1(t),r=this.fragments[n];return r?r.buffered?yC(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=w1(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=w1(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=w1(t);t.clearElementaryStreamInfo();const r=this.activePartLists[t.type];if(r){const o=t.sn;this.activePartLists[t.type]=tue(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 yC(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 w1(e){return`${e.type}_${e.level}_${e.sn}`}function tue(e,t){return e.filter(n=>{const r=t(n);return r||n.clearElementaryStreamInfo(),r})}var R0={cbc:0,ctr:1};class eAt{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 R0.cbc:return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},n,t);case R0.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 tAt(e){const t=e.byteLength,n=t&&new DataView(e.buffer).getUint8(t-1);return n?e.slice(0,t-n):e}class nAt{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],v=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,v[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!==R0.cbc||n.byteLength!==16)return po.warn("SoftwareDecrypt: can only handle AES-128-CBC"),null;this.logOnce("JS AES decrypt"),l&&(t=Qc(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 nAt),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 rAt(this.subtle,n,o)}return this.fastAesKey.expandKey().then(a=>this.subtle?(this.logOnce("WebCrypto AES decrypt"),new eAt(this.subtle,new Uint8Array(r),o).decrypt(t.buffer,a)):Promise.reject(new Error("web crypto not initialized"))).catch(a=>(po.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%oAt;return r!==t.length&&(n=t.slice(0,r),this.remainderData=t.slice(r)),n}logOnce(t){this.logEnabled&&(po.log(`[decrypter]: ${t}`),this.logEnabled=!1)}}const nue=Math.pow(2,17);class sAt{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:dr.NETWORK_ERROR,details:Ht.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(iue(t));return}else t.gap=!1;const d=this.loader=a?new a(o):new s(o),h=rue(t);t.loader=d;const p=eue(o.fragLoadPolicy.default),v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:t.sn==="initSegment"?1/0:nue};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:dr.NETWORK_ERROR,details:Ht.FRAG_LOAD_ERROR,fatal:!1,frag:t,response:fo({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:dr.NETWORK_ERROR,details:Ht.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:dr.NETWORK_ERROR,details:Ht.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,error:new Error(`Timeout after ${v.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,v,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(iue(t,n));return}const d=this.loader=a?new a(o):new s(o),h=rue(t,n);t.loader=d;const p=eue(o.fragLoadPolicy.default),v={loadPolicy:p,timeout:p.maxLoadTimeMs,maxRetry:0,retryDelay:0,maxRetryDelay:0,highWaterMark:nue};n.stats=d.stats,d.load(h,v,{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:dr.NETWORK_ERROR,details:Ht.FRAG_LOAD_ERROR,fatal:!1,frag:t,part:n,response:fo({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:dr.NETWORK_ERROR,details:Ht.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:dr.NETWORK_ERROR,details:Ht.FRAG_LOAD_TIMEOUT,fatal:!1,frag:t,part:n,error:new Error(`Timeout after ${v.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 rue(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(jn(o)&&jn(a)){var s;let l=o,c=a;if(e.sn==="initSegment"&&aAt((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 iue(e,t){const n=new Error(`GAP ${e.gap?"tag":"attribute"} found`),r={type:dr.MEDIA_ERROR,details:Ht.FRAG_GAP,fatal:!1,frag:e,error:n,networkDetails:null};return t&&(r.part=t),(t||e).stats.aborted=!0,new mh(r)}function aAt(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 Q3e extends rd{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 AG{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=bC(),this.buffering={audio:bC(),video:bC(),audiovideo:bC()},this.level=t,this.sn=n,this.id=r,this.size=o,this.part=a,this.partial=s}}function bC(){return{start:0,executeStart:0,executeEnd:0,end:0}}const oue={length:0,start:()=>0,end:()=>0};class Vr{static isBuffered(t,n){if(t){const r=Vr.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=Vr.getBuffered(t);return Vr.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 v=a[p-1].end;t[h].start-vv&&(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<=v&&(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 aue(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 lAt(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 uAt=/^(\d+)x(\d+)$/,lue=/(.+?)=(".*?"|.*?)(?:,|$)/g;class os{constructor(t,n){typeof t=="string"&&(t=os.parseAttrList(t,n)),bo(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=uAt.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(lue.lastIndex=0;(r=lue.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=Vz(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":po.warn(`${t}: attribute ${s} is missing quotes`)}o[s]=l}return o}}const cAt="com.apple.hls.interstitial";function dAt(e){return e!=="ID"&&e!=="CLASS"&&e!=="CUE"&&e!=="START-DATE"&&e!=="DURATION"&&e!=="END-DATE"&&e!=="END-ON-NEXT"}function fAt(e){return e==="SCTE35-OUT"||e==="SCTE35-IN"||e==="SCTE35-CMD"}class t2e{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]){po.warn(`DATERANGE tag attribute: "${s}" does not match for tags with ID: "${t.ID}"`),this._badValueForSameId=s;break}t=bo(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"]);jn(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?(po.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(jn(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===cAt}get isValid(){return!!this.id&&!this._badValueForSameId&&jn(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 hAt=10;class pAt{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?jn(this.fragments[this.fragments.length-1].programDateTime):!1}get levelTargetDuration(){return this.averagetargetduration||this.targetduration||hAt}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 MT(e,t){return e.length===t.length?!e.some((n,r)=>n!==t[r]):!1}function uue(e,t){return!e&&!t?!0:!e||!t?!1:MT(e,t)}function yy(e){return e==="AES-128"||e==="AES-256"||e==="AES-256-CTR"}function IG(e){switch(e){case"AES-128":case"AES-256":return R0.cbc;case"AES-256-CTR":return R0.ctr;default:throw new Error(`invalid full segment method ${e}`)}}function LG(e){return Uint8Array.from(atob(e),t=>t.charCodeAt(0))}function zz(e){return Uint8Array.from(unescape(encodeURIComponent(e)),t=>t.charCodeAt(0))}function vAt(e){const t=zz(e).subarray(0,16),n=new Uint8Array(16);return n.set(t,16-t.length),n}function n2e(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 r2e(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=LG(s)):n=vAt(s)}}return n}const OT=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 QE(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 F4(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 i2e=(function(e){return OT!=null&&(e=OT.navigator)!=null&&e.requestMediaKeySystemAccess?self.navigator.requestMediaKeySystemAccess.bind(self.navigator):null})();function mAt(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 gAt(o,t,n,r)}function gAt(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 yAt(e){var t;return!!e&&(e.sessionType==="persistent-license"||!!((t=e.sessionTypes)!=null&&t.some(n=>n==="persistent-license")))}function o2e(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=LG(l).subarray(0,16);return n2e(c),c}}return null}let _C={};class km{static clearKeyUriToKeyIdMap(){_C={}}static setKeyIdForUri(t,n){_C[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&&!yy(t),s!=null&&s.startsWith("0x")&&(this.keyId=new Uint8Array(R3e(s)))}matches(t){return t.uri===this.uri&&t.method===this.method&&t.encrypted===this.encrypted&&t.keyFormat===this.keyFormat&&MT(t.keyFormatVersions,this.keyFormatVersions)&&uue(t.iv,this.iv)&&uue(t.keyId,this.keyId)}isSupported(){if(this.method){if(yy(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(yy(this.method)){let a=this.iv;return a||(typeof t!="number"&&(po.warn(`missing IV for initialization segment with method="${this.method}" - compliance issue`),t=0),a=_At(t)),new km(this.method,this.uri,"identity",this.keyFormatVersions,a)}if(this.keyId){const a=_C[this.uri];if(a&&!MT(this.keyId,a)&&km.setKeyIdForUri(this.uri,this.keyId),this.pssh)return this}const r=r2e(this.uri);if(r)switch(this.keyFormat){case za.WIDEVINE:if(this.pssh=r,!this.keyId){const a=x5t(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=cue(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=k5t(a,null,r),this.keyId=o2e(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=bAt(n),a||(a=cue(n),a||(a=_C[this.uri])),a&&(this.keyId=a,km.setKeyIdForUri(this.uri,a))}return this}}function bAt(e){const t=e?.[za.WIDEVINE];return t?t.keyId:null}function cue(e){const t=e?.[za.PLAYREADY];if(t){const n=r2e(t.uri);if(n)return o2e(n)}return null}function _At(e){const t=new Uint8Array(16);for(let n=12;n<16;n++)t[n]=e>>8*(15-n)&255;return t}const due=/#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,fue=/#EXT-X-MEDIA:(.*)/g,SAt=/^#EXT(?:INF|-X-TARGETDURATION):/m,$F=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/(?!#) *(\S[^\r\n]*)/.source,/#.*/.source].join("|"),"g"),kAt=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 mf{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(fue.lastIndex=0;(o=fue.exec(t))!==null;){const d=new os(o[1],r),h=d.TYPE;if(h){const p=l[h],v=a[h]||[];a[h]=v;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?mf.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=mf.findGroup(p,x.groupId)||p[0];mue(x,E,"audioCodec"),mue(x,E,"textCodec")}v.push(x)}}return a}static parseLevelPlaylist(t,n,r,o,a,s){var l;const c={url:n},d=new pAt(n),h=d.fragments,p=[];let v=null,g=0,y=0,S=0,k=0,C=0,x=null,E=new PF(o,c),_,T,D,P=-1,M=!1,O=null,L;if($F.lastIndex=0,d.m3u8=t,d.hasVariableRefs=sue(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,v&&(E.initSegment=v,v.rawProgramDateTime&&(E.rawProgramDateTime=v.rawProgramDateTime,v.rawProgramDateTime=null),O&&(E.setByteRange(O),O=null)));const H=_[1];if(H){E.duration=parseFloat(H);const K=(" "+_[2]).slice(1);E.title=K||null,E.tagList.push(K?["INF",H,K]:["INF",H])}else if(_[3]){if(jn(E.duration)){E.playlistOffset=S,E.setStart(S),D&&yue(E,D,d),E.sn=g,E.level=r,E.cc=k,h.push(E);const K=(" "+_[3]).slice(1);E.relurl=Vz(d,K),Uz(E,x,p),x=E,S+=E.duration,g++,y=0,M=!0}}else{if(_=_[0].match(kAt),!_){po.warn("No matches on slow regex match for level playlist!");continue}for(T=1;T<_.length&&_[T]===void 0;T++);const K=(" "+_[T]).slice(1),Y=(" "+_[T+1]).slice(1),ne=_[T+2]?(" "+_[T+2]).slice(1):null;switch(K){case"BYTERANGE":x?E.setByteRange(Y,x):E.setByteRange(Y);break;case"PROGRAM-DATE-TIME":E.rawProgramDateTime=Y,E.tagList.push(["PROGRAM-DATE-TIME",Y]),P===-1&&(P=h.length);break;case"PLAYLIST-TYPE":d.type&&ch(d,K,_),d.type=Y.toUpperCase();break;case"MEDIA-SEQUENCE":d.startSN!==0?ch(d,K,_):h.length>0&&bue(d,K,_),g=d.startSN=parseInt(Y);break;case"SKIP":{d.skippedSegments&&ch(d,K,_);const X=new os(Y,d),U=X.decimalInteger("SKIPPED-SEGMENTS");if(jn(U)){d.skippedSegments+=U;for(let ee=U;ee--;)h.push(null);g+=U}const q=X.enumeratedString("RECENTLY-REMOVED-DATERANGES");q&&(d.recentlyRemovedDateranges=(d.recentlyRemovedDateranges||[]).concat(q.split(" ")));break}case"TARGETDURATION":d.targetduration!==0&&ch(d,K,_),d.targetduration=Math.max(parseInt(Y),1);break;case"VERSION":d.version!==null&&ch(d,K,_),d.version=parseInt(Y);break;case"INDEPENDENT-SEGMENTS":break;case"ENDLIST":d.live||ch(d,K,_),d.live=!1;break;case"#":(Y||ne)&&E.tagList.push(ne?[Y,ne]:[Y]);break;case"DISCONTINUITY":k++,E.tagList.push(["DIS"]);break;case"GAP":E.gap=!0,E.tagList.push([K]);break;case"BITRATE":E.tagList.push([K,Y]),C=parseInt(Y)*1e3,jn(C)?E.bitrate=C:C=0;break;case"DATERANGE":{const X=new os(Y,d),U=new t2e(X,d.dateRanges[X.ID],d.dateRangeTagCount);d.dateRangeTagCount++,U.isValid||d.skippedSegments?d.dateRanges[U.id]=U:po.warn(`Ignoring invalid DATERANGE tag: "${Y}"`),E.tagList.push(["EXT-X-DATERANGE",Y]);break}case"DEFINE":{{const X=new os(Y,d);"IMPORT"in X?lAt(d,X,s):aue(d,X,n)}break}case"DISCONTINUITY-SEQUENCE":d.startCC!==0?ch(d,K,_):h.length>0&&bue(d,K,_),d.startCC=k=parseInt(Y);break;case"KEY":{const X=hue(Y,n,d);if(X.isSupported()){if(X.method==="NONE"){D=void 0;break}D||(D={});const U=D[X.keyFormat];U!=null&&U.matches(X)||(U&&(D=bo({},D)),D[X.keyFormat]=X)}else po.warn(`[Keys] Ignoring unsupported EXT-X-KEY tag: "${Y}"`);break}case"START":d.startTimeOffset=pue(Y);break;case"MAP":{const X=new os(Y,d);if(E.duration){const U=new PF(o,c);gue(U,X,r,D),v=U,E.initSegment=v,v.rawProgramDateTime&&!E.rawProgramDateTime&&(E.rawProgramDateTime=v.rawProgramDateTime)}else{const U=E.byteRangeEndOffset;if(U){const q=E.byteRangeStartOffset;O=`${U-q}@${q}`}else O=null;gue(E,X,r,D),v=E,M=!0}v.cc=k;break}case"SERVER-CONTROL":{L&&ch(d,K,_),L=new os(Y),d.canBlockReload=L.bool("CAN-BLOCK-RELOAD"),d.canSkipUntil=L.optionalFloat("CAN-SKIP-UNTIL",0),d.canSkipDateRanges=d.canSkipUntil>0&&L.bool("CAN-SKIP-DATERANGES"),d.partHoldBack=L.optionalFloat("PART-HOLD-BACK",0),d.holdBack=L.optionalFloat("HOLD-BACK",0);break}case"PART-INF":{d.partTarget&&ch(d,K,_);const X=new os(Y);d.partTarget=X.decimalFloatingPoint("PART-TARGET");break}case"PART":{let X=d.partList;X||(X=d.partList=[]);const U=y>0?X[X.length-1]:void 0,q=y++,ee=new os(Y,d),re=new l5t(ee,E,c,q,U);X.push(re),E.duration+=re.duration;break}case"PRELOAD-HINT":{const X=new os(Y,d);d.preloadHint=X;break}case"RENDITION-REPORT":{const X=new os(Y,d);d.renditionReports=d.renditionReports||[],d.renditionReports.push(X);break}default:po.warn(`line parsed but not handled: ${_}`);break}}}x&&!x.relurl?(h.pop(),S-=x.duration,d.partList&&(d.fragmentHint=x)):d.partList&&(Uz(E,x,p),E.cc=k,d.fragmentHint=E,D&&yue(E,D,d)),d.targetduration||(d.playlistParsingError=new Error("Missing Target Duration"));const B=h.length,j=h[0],W=h[B-1];if(S+=d.skippedSegments*d.targetduration,S>0&&B&&W){d.averagetargetduration=S/B;const H=W.sn;d.endSN=H!=="initSegment"?H:0,d.live||(W.endList=!0),P>0&&(CAt(h,P),j&&p.unshift(j))}return d.fragmentHint&&(S+=d.fragmentHint.duration),d.totalduration=S,p.length&&d.dateRangeTagCount&&j&&s2e(p,d),d.endCC=k,d}}function s2e(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 v=(n[r+1]||h[h.length-1]).sn-e.startSN;for(let g=v;g>d;g--){const y=h[g].programDateTime;if(t>=y&&tr);["video","audio","text"].forEach(r=>{const o=n.filter(a=>CG(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 mue(e,t,n){const r=t[n];r&&(e[n]=r)}function CAt(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 Uz(e,t,n){e.rawProgramDateTime?n.push(e):t!=null&&t.programDateTime&&(e.programDateTime=t.endProgramDateTime)}function gue(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 yue(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 bue(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(jn(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 a2e(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(jn(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}`):jn(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 v=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;AAt(e,t,(h,p,v,g)=>{if((!t.startCC||t.skippedSegments)&&p.cc!==h.cc){const y=h.cc-p.cc;for(let S=v;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=EAt(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?a2e(t,a,a.startPTS,a.endPTS,a.startDTS,a.endDTS,n):l2e(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 EAt(e,t,n){const{dateRanges:r,recentlyRemovedDateranges:o}=t,a=bo({},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 t2e(r[c].attr,d);h.isValid?(a[c]=h,d||(h.tagOrder+=l)):n.warn(`Ignoring invalid Playlist Delta Update DATERANGE tag: "${To(r[c].attr)}"`)}),a):r}function TAt(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 AAt(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 v=h.relurl,g=p.relurl;if(v&&IAt(v,g)){t.playlistParsingError=_ue(`media sequence mismatch ${p.sn}:`,e,t,h,p);return}else if(h.cc!==p.cc){t.playlistParsingError=_ue(`discontinuity sequence mismatch (${h.cc}!=${p.cc})`,e,t,h,p);return}}}}function _ue(e,t,n,r,o){return new Error(`${e} ${o.url} Playlist starting @${t.startSN} ${t.m3u8} Playlist starting @${n.startSN} ${n.m3u8}`)}function l2e(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 IAt(e,t){return e!==t&&t?kue(e)!==kue(t):!1}function kue(e){return e.replace(/\?[^?]*$/,"")}function Lb(e,t){for(let r=0,o=e.length;re.startCC)}function xue(e,t){const n=e.start+t;e.startPTS=n,e.setStart(n),e.endPTS=n+e.duration}function h2e(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,v=Vr.bufferInfo(d||c,p,s.maxBufferHole),g=!v.len;if(this.log(`Media seeking to ${jn(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||kv.end){const C=p>k;(py&&(this.lastCurrentTime=p),!this.loadingParts){const S=Math.max(v.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 sAt(t.config),this.keyLoader=r,this.fragmentTracker=n,this.config=t.config,this.decrypter=new TG(t.config)}registerListeners(){const{hls:t}=this;t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ee.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=Vr.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(Ee.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(Ee.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&&yy(l.method)){const c=self.performance.now();return this.decrypter.decrypt(new Uint8Array(s),l.key.buffer,l.iv.buffer,IG(l.method)).catch(d=>{throw o.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.FRAG_DECRYPT_ERROR,fatal:!1,error:d,reason:d.message,frag:a}),d}).then(d=>{const h=self.performance.now();return o.trigger(Ee.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(Ee.ERROR,{type:dr.KEY_SYSTEM_ERROR,details:Ht.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?PAt.toString(Vr.getBuffered(r)):"(detached)"})`),Ks(t)){var o;if(t.type!==rr.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 AG(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(v=>{if(!this.fragContextChanged(v.frag))return this.hls.trigger(Ee.KEY_LOADED,v),this.state===an.KEY_LOADING&&(this.state=an.IDLE),v}),this.hls.trigger(Ee.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 v=this.shouldLoadParts(n.details,t.end);v!==this.loadingParts&&(this.log(`LL-Part loading ${v?"ON":"OFF"} loading sn ${c?.sn}->${t.sn}`),this.loadingParts=v)}if(r=Math.max(t.start,r||0),this.loadingParts&&Ks(t)){const v=s.partList;if(v&&o){r>s.fragmentEnd&&s.fragmentHint&&(t=s.fragmentHint);const g=this.getNextPart(v,t,r);if(g>-1){const y=v[g];t=this.fragCurrent=y.fragment,this.log(`Loading ${t.type} sn: ${t.sn} part: ${y.index} (${g}/${v.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(Ee.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(v,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(v=>v.loaded).map(v=>`[${v.start}-${v.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))}`),jn(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(v=>!v||this.fragContextChanged(v.frag)?null:this.fragmentLoader.load(t,o)).catch(v=>this.handleFragLoadError(v)):p=Promise.all([this.fragmentLoader.load(t,h?o:void 0),l]).then(([v])=>(!h&&o&&o(v),v)).catch(v=>this.handleFragLoadError(v)),this.hls.trigger(Ee.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(v=>{c[p.index]=v;const g=v.part;this.hls.trigger(Ee.FRAG_LOADED,v);const y=Sue(r.details,t.sn,p.index+1)||d2e(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===Ht.INTERNAL_ABORTED?this.handleFragLoadAborted(n.frag,n.part):n.frag&&n.type===dr.KEY_SYSTEM_ERROR?(n.frag.abortRequests(),this.resetStartWhenNotLoaded(),this.resetFragmentLoading(n.frag)):this.hls.trigger(Ee.ERROR,n)}else this.hls.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.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===rr.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?Sue(c,a,s):null,h=d?d.fragment:c2e(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=Qc(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(Ee.BUFFER_APPENDING,p),t.dropped&&t.independent&&!r){if(a)return;this.flushBufferGap(n)}}flushBufferGap(t){const n=this.media;if(!n)return;if(!Vr.isBuffered(n,n.currentTime)){this.flushMainBuffer(0,t.start);return}const r=n.currentTime,o=Vr.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(!jn(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=Vr.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 Vr.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=rr.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?v:g)||c.start:t;this.log(`Setting startPosition to ${y} to match start frag at live edge. mainStart: ${v} 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(Cue(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(Cue(this.config)&&t.type!==rr.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=q5t(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=X3e(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 v;if(tn-d||(g=this.media)!=null&&g.paused||!this.startFragRequested?0:d;v=jm(a,s,t,S)}else v=s[s.length-1];if(v){const y=v.sn-r.startSN,S=this.fragmentTracker.getState(v);if((S===ca.OK||S===ca.PARTIAL&&v.gap)&&(a=v),a&&v.sn===a.sn&&(!p||h[0].fragment.sn>v.sn||!r.live)&&v.level===a.level){const C=s[y+1];v.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===Ht.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,v=!!p,g=v&&c===Ba.RetryRequest,y=v&&!l.resolved&&d===ec.MoveAllAlternatesMatchingHost,S=(r=this.hls.latestLevelDetails)==null?void 0:r.live;if(!g&&y&&Ks(o)&&!o.endList&&S&&!J3e(n))this.resetFragmentErrors(t),this.treatAsGap(o),l.resolved=!0;else if((g||y)&&h=n||r&&!jz(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===rr.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=Vr.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 v=o?0:a2e(a,t,h.startPTS,h.endPTS,h.startDTS,h.endDTS,this);return this.hls.trigger(Ee.LEVEL_PTS_UPDATED,{details:a,level:r,drift:v,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(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.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(Ee.FRAG_PARSED,{frag:t,part:n})}playlistLabel(){return this.playlistType===rr.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 Cue(e){return!!e.interstitialsController&&e.enableInterstitialPlayback!==!1}class v2e{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=RAt(t,n);else return new Uint8Array(0);return this.reset(),r}reset(){this.chunks.length=0,this.dataLength=0}}function RAt(e,t){const n=new Uint8Array(t);let r=0;for(let o=0;o0)return e.subarray(n,n+r)}function jAt(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(Ee.ERROR,Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.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 v=[l<<3|(p&14)>>1,(p&1)<<7|c<<3];return po.log(`manifest codec:${r}, parsed codec:${d}, channels:${c}, rate:${h} (ADTS object type:${l} sampling index:${s})`),{config:v,samplerate:h,channelCount:c,codec:d,parsedCodec:d,manifestCodec:r}}function g2e(e,t){return e[t]===255&&(e[t+1]&246)===240}function y2e(e,t){return e[t+1]&1?7:9}function MG(e,t){return(e[t+3]&3)<<11|e[t+4]<<3|(e[t+5]&224)>>>5}function VAt(e,t){return t+5=e.length)return!1;const r=MG(e,t);if(r<=n)return!1;const o=t+r;return o===e.length||BT(e,o)}return!1}function b2e(e,t,n,r,o){if(!e.samplerate){const a=jAt(t,n,r,o);if(!a)return;bo(e,a)}}function _2e(e){return 1024*9e4/e}function HAt(e,t){const n=y2e(e,t);if(t+n<=e.length){const r=MG(e,t)-n;if(r>0)return{headerLength:n,frameLength:r}}}function S2e(e,t,n,r,o){const a=_2e(e.samplerate),s=r+o*a,l=HAt(t,n);let c;if(l){const{frameLength:p,headerLength:v}=l,g=v+p,y=Math.max(0,n+g-t.length);y?(c=new Uint8Array(g-v),c.set(t.subarray(n+v,t.length),0)):c=t.subarray(n+v,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 WAt(e,t){return RG(e,t)&&ZA(e,t+6)+10<=e.length-t}function GAt(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 KAt(e,t,n,Uint8Array)}function KAt(e,t,n,r){const o=qAt(e);let a=1;"BYTES_PER_ELEMENT"in r&&(a=r.BYTES_PER_ELEMENT);const s=YAt(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 qAt(e){return e instanceof ArrayBuffer?e:e.buffer}function YAt(e){return e&&e.buffer instanceof ArrayBuffer&&e.byteLength!==void 0&&e.byteOffset!==void 0}function XAt(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=cc(FF(e.data,1,r)),a=e.data[2+r],s=e.data.subarray(3+r).indexOf(0);if(s===-1)return;const l=cc(FF(e.data,3+r,s));let c;return o==="-->"?c=cc(FF(e.data,4+r+s)):c=GAt(e.data.subarray(4+r+s)),t.mimeType=o,t.pictureType=a,t.description=l,t.data=c,t}function ZAt(e){if(e.size<2)return;const t=cc(e.data,!0),n=new Uint8Array(e.data.subarray(t.length+1));return{key:e.type,info:t,data:n.buffer}}function JAt(e){if(e.size<2)return;if(e.type==="TXXX"){let n=1;const r=cc(e.data.subarray(n),!0);n+=r.length+1;const o=cc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=cc(e.data.subarray(1));return{key:e.type,info:"",data:t}}function QAt(e){if(e.type==="WXXX"){if(e.size<2)return;let n=1;const r=cc(e.data.subarray(n),!0);n+=r.length+1;const o=cc(e.data.subarray(n));return{key:e.type,info:r,data:o}}const t=cc(e.data);return{key:e.type,info:"",data:t}}function eIt(e){return e.type==="PRIV"?ZAt(e):e.type[0]==="W"?QAt(e):e.type==="APIC"?XAt(e):JAt(e)}function tIt(e){const t=String.fromCharCode(e[0],e[1],e[2],e[3]),n=ZA(e,4),r=10;return{type:t,size:n,data:e.subarray(r,r+n)}}const SC=10,nIt=10;function k2e(e){let t=0;const n=[];for(;RG(e,t);){const r=ZA(e,t+6);e[t+5]>>6&1&&(t+=SC),t+=SC;const o=t+r;for(;t+nIt0&&l.samples.push({pts:this.lastPTS,dts:this.lastPTS,data:r,type:ic.audioId3,duration:Number.POSITIVE_INFINITY});o{if(jn(e))return e*90;const r=n?n.baseTime*9e4/n.timescale:0;return t*9e4+r};let kC=null;const oIt=[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],sIt=[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],aIt=[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],lIt=[0,1,1,4];function C2e(e,t,n,r,o){if(n+24>t.length)return;const a=w2e(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 w2e(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=oIt[c*14+o-1]*1e3,p=sIt[(n===3?0:n===2?1:2)*3+a],v=l===3?1:2,g=aIt[n][r],y=lIt[r],S=g*8*y,k=Math.floor(g*d/p+s)*y;if(kC===null){const E=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);kC=E?parseInt(E[1]):0}return!!kC&&kC<=87&&r===2&&d>=224e3&&l===0&&(e[t+3]=e[t+3]|128),{sampleRate:p,channelCount:v,frameLength:k,samplesPerFrame:S}}}function BG(e,t){return e[t]===255&&(e[t+1]&224)===224&&(e[t+1]&6)!==0}function E2e(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 v=0;p===2?v+=2:(p&1&&p!==1&&(v+=2),p&4&&(v+=2));const g=(t[n+6]<<8|t[n+7])>>12-v&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 fIt extends $G{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=T_(t,0);let r=n?.length||0;if(n&&t[r]===11&&t[r+1]===119&&OG(n)!==void 0&&A2e(t,r)<=16)return!1;for(let o=t.length;r{const s=_5t(a);if(hIt.test(s.schemeIdUri)){const l=Eue(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:ic.emsg,duration:c})}else if(this.config.enableEmsgKLVMetadata&&s.schemeIdUri.startsWith("urn:misb:KLV:bin:1910.1")){const l=Eue(s,n);r.samples.push({data:s.payload,len:s.payload.byteLength,dts:l,pts:l,type:ic.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 Eue(e,t){return jn(e.presentationTime)?e.presentationTime/e.timeScale:t+e.presentationTimeDelta/e.timeScale}class vIt{constructor(t,n,r){this.keyData=void 0,this.decrypter=void 0,this.keyData=r,this.decrypter=new TG(n,{removePKCS7Padding:!1})}decryptBuffer(t){return this.decrypter.decrypt(t,this.keyData.key.buffer,this.keyData.iv.buffer,R0.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 L2e{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,v=-1,g=0;for(a===-1&&(v=0,g=this.getNALuType(n,0),a=0,c=1);c=0){const y={data:n.subarray(v,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=Qc(y.data,n.subarray(0,h)),y.state=0))}c=0&&a>=0){const y={data:n.subarray(v,o),type:g,state:a};l.push(y)}if(l.length===0){const y=this.getLastNalUnit(t.samples);y&&(y.data=Qc(y.data,n))}return t.naluState=a,l}}class Db{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&&po.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 mIt extends L2e{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 v;(v=s)!=null&&v.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,xG(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 Db(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 v;(v=s)!=null&&v.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,xG(d.data,2,r.pts,n.samples);break;case 32:l=!0,t.vps||(typeof t.params!="object"&&(t.params={}),t.params=bo(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 Db(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 Db(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(),v=n.readUByte(),g=n.readUByte(),y=n.readUByte(),S=n.readUByte(),k=n.readUByte(),C=n.readUByte(),x=[],E=[];for(let He=0;He0)for(let He=r;He<8;He++)n.readBits(2);for(let He=0;He1&&n.readEG();for(let Et=0;Et0&&St<16?(re=Wt[St-1],ae=Tt[St-1]):St===255&&(re=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(),ge=n.readBoolean(),ge&&(n.skipUEG(),n.skipUEG(),n.skipUEG(),n.skipUEG()),n.readBoolean()&&(ke=n.readBits(32),Fe=n.readBits(32),n.readBoolean()&&n.readUEG(),n.readBoolean())){const Tt=n.readBoolean(),Mt=n.readBoolean();let sn=!1;(Tt||Mt)&&(sn=n.readBoolean(),sn&&(n.readUByte(),n.readBits(5),n.readBoolean(),n.readBits(5)),n.readBits(4),n.readBits(4),sn&&n.readBits(4),n.readBits(5),n.readBits(5),n.readBits(5));for(let ct=0;ct<=r;ct++){ie=n.readBoolean();const Ne=ie||n.readBoolean();let De=!1;Ne?n.readEG():De=n.readBoolean();const Oe=De?1:n.readUEG()+1;if(Tt)for(let Ye=0;Ye>He&1)<<31-He)>>>0;let be=ve.toString(16);return s===1&&be==="2"&&(be="6"),{codecString:`hvc1.${Je}${s}.${be}.${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,v,g,y,S,k],general_level_idc:C,bit_depth:j+8,bit_depth_luma_minus8:j,bit_depth_chroma_minus8:W,min_spatial_segmentation_idc:ee,chroma_format_idc:_,frame_rate:{fixed:ie,fps:Fe/ke}},width:ze,height:Qe,pixelRatio:[re,ae]}}readPPS(t){const n=new Db(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 Jp{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=Jp.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:$3e[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=Jp.createTrack("video"),this._videoTrack.duration=o,this._audioTrack=Jp.createTrack("audio",o),this._id3Track=Jp.createTrack("id3"),this._txtTrack=Jp.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,v=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=Qc(this.remainderData,t),E=t.length,this.remainderData=null),E>4;let B;if(L>1){if(B=P+5+t[P+4],B===P+ba)continue}else B=P+4;switch(O){case h:M&&(p&&(a=E1(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(B,P+ba)),p.size+=P+ba-B);break;case v:if(M){if(y&&(a=E1(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(B,P+ba)),y.size+=P+ba-B);break;case g:M&&(S&&(a=E1(S,this.logger))&&this.parseID3PES(c,a),S={data:[],size:0}),S&&(S.data.push(t.subarray(B,P+ba)),S.size+=P+ba-B);break;case 0:M&&(B+=t[B]+1),x=this._pmtId=yIt(t,B);break;case x:{M&&(B+=t[B]+1);const j=bIt(t,B,this.typeSupported,r,this.observer,this.logger);h=j.videoPid,h>0&&(s.pid=h,s.segmentCodec=j.segmentVideoCodec),v=j.audioPid,v>0&&(l.pid=v,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=O;break}}else T++;T>0&&Gz(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=E1(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=E1(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=E1(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 vIt(this.observer,this.config,n);return this.decrypt(o,a)}readyVideoParser(t){this.videoParser===null&&(t==="avc"?this.videoParser=new mIt:t==="hevc"&&(this.videoParser=new gIt))}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,v=o.sample.unit.byteLength;if(p===-1)a=Qc(o.sample.unit,a);else{const g=v-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=bo({},n,{type:this._videoTrack?ic.emsg:ic.audioId3,duration:Number.POSITIVE_INFINITY});t.samples.push(r)}}function Wz(e,t){return((e[t+1]&31)<<8)+e[t+2]}function yIt(e,t){return(e[t+10]&31)<<8|e[t+11]}function bIt(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 v=t+5,g=p;for(;g>2;){switch(e[v]){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[v+1]+2;v+=S,g-=S}}break;case 194:case 135:return Gz(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 Gz(e,t,n,r){r.warn(`parsing error: ${t.message}`),e.emit(Ee.ERROR,Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.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 E1(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]=Qc(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 v=new Uint8Array(e.size);for(let g=0,y=c.length;gS){p-=S;continue}else r=r.subarray(p),S-=p,p=0;v.set(r,n),n+=S}return o&&(o-=a+3),{data:v,pts:s,dts:l,len:o}}return null}class _It{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 Bp=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/(Bp+1)),o=Math.floor(n%(Bp+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/(Bp+1)),l=Math.floor(r%(Bp+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/(Bp+1)),s=Math.floor(n%(Bp+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,v;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,v>>>24&255,v>>>16&255,v>>>8&255,v&255],12+16*l);return Ut.box(Ut.types.trun,s)}static initSegment(t){Ut.types||Ut.init();const n=Ut.moov(t);return Qc(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,v=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([v>>24,v>>16&255,v>>8&255,v&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 D2e=9e4;function NG(e,t,n=1,r=!1){const o=e*t*n;return r?Math.round(o):o}function SIt(e,t,n=1,r=!1){return NG(e,t,1/n,r)}function b4(e,t=!1){return NG(e,1e3,1/D2e,t)}function kIt(e,t=1){return NG(e,D2e,1/t)}function Tue(e){const{baseTime:t,timescale:n,trackId:r}=e;return`${t/n} (${t}/${n}) trackId: ${r}`}const xIt=10*1e3,CIt=1024,wIt=1152,EIt=1536;let T1=null,VF=null;function Aue(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 e8 extends rd{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,T1===null){const s=(navigator.userAgent||"").match(/Chrome\/(\d+)/i);T1=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&&Tue(n)} > ${t&&Tue(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=tc(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,v,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,O,L;const H=this.videoTrackConfig;(H&&(n.width!==H.width||n.height!==H.height||((P=n.pixelRatio)==null?void 0:P[0])!==((M=H.pixelRatio)==null?void 0:M[0])||((O=n.pixelRatio)==null?void 0:O[1])!==((L=H.pixelRatio)==null?void 0:L[1]))||!H&&T||this.nextAudioTs===null&&_)&&this.resetInitSegment()}this.ISGenerated||(p=this.generateIS(t,n,a,s));const B=this.isVideoContiguous;let j=-1,W;if(T&&(j=TIt(n.samples),!B&&this.config.forceKeyFrameOnDiscontinuity))if(y=!0,j>0){this.warn(`Dropped ${j} out of ${E} video samples due to a missing keyframe`);const H=this.getVideoStartPts(n.samples);n.samples=n.samples.slice(j),n.dropped+=j,k+=(n.samples[0].pts-H)/n.inputTimeScale,W=k}else j===-1&&(this.warn(`No keyframe found out of ${E} video samples`),y=!1);if(this.ISGenerated){if(_&&T){const H=this.getVideoStartPts(n.samples),Y=(tc(t.samples[0].pts,H)-H)/n.inputTimeScale;S+=Math.max(0,Y),k+=Math.max(0,-Y)}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===rr.AUDIO?k:void 0),T){const H=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,B,H)}}else T&&(d=this.remuxVideo(n,k,B,0));d&&(d.firstKeyFrame=j,d.independent=j!==-1,d.firstKeyFramePTS=W)}}return this.ISGenerated&&this._initPTS&&this._initDTS&&(r.samples.length&&(g=P2e(r,a,this._initPTS,this._initDTS)),o.samples.length&&(v=R2e(o,a,this._initPTS))),{audio:h,video:d,initSegment:p,independent:y,text:v,id3:g}}computeInitPts(t,n,r,o){const a=Math.round(r*n);let s=tc(t,a);if(s0?ee-1:ee].dts&&(x=!0)}x&&s.sort(function(ee,re){const ae=ee.dts-re.dts,ie=ee.pts-re.pts;return ae||ie}),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 ee=y-E,re=ee>T,ae=ee<-1;if((re||ae)&&(re?this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${b4(ee,!0)} ms (${ee}dts) hole between fragments detected at ${n.toFixed(3)}`):this.warn(`${(t.segmentCodec||"").toUpperCase()}: ${b4(-ee,!0)} ms (${ee}dts) overlapping between fragments detected at ${n.toFixed(3)}`),!ae||E>=s[0].pts||T1)){y=E;const ie=s[0].pts-ee;if(re)s[0].dts=y,s[0].pts=ie;else{let ke=!0;for(let Fe=0;Feie&&ke);Fe++){const ge=s[Fe].pts;if(s[Fe].dts-=ee,s[Fe].pts-=ee,Fe0?re.dts-s[ee-1].dts:T;if(ke=ee>0?re.pts-s[ee-1].pts:T,ge.stretchShortVideoTrack&&this.nextAudioTs!==null){const ze=Math.floor(ge.maxBufferHole*a),Qe=(o?k+o*a:this.nextAudioTs+h)-re.pts;Qe>ze?(g=Qe-_e,g<0?g=_e:j=!0,this.log(`It is approximately ${Qe/90} ms to the next segment; using duration ${g/90} ms for the last video frame.`)):g=_e}else g=_e}const Fe=Math.round(re.pts-re.dts);W=Math.min(W,g),K=Math.max(K,g),H=Math.min(H,ke),Y=Math.max(Y,ke),l.push(Aue(re.key,g,ie,Fe))}if(l.length){if(T1){if(T1<70){const ee=l[0].flags;ee.dependsOn=2,ee.isNonSync=0}}else if(VF&&Y-H0&&(o&&Math.abs(E-(C+x))<9e3||Math.abs(tc(S[0].pts,E)-(C+x))<20*h),S.forEach(function(Y){Y.pts=tc(Y.pts,E)}),!r||C<0){const Y=S.length;if(S=S.filter(ne=>ne.pts>=0),Y!==S.length&&this.warn(`Removed ${S.length-Y} of ${Y} 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 Y=this.config.maxAudioFramesDrift;for(let ne=0,X=C+x;ne=Y*h&&re0){P+=k;try{D=new Uint8Array(P)}catch(re){this.observer.emit(Ee.ERROR,Ee.ERROR,{type:dr.MUX_ERROR,details:Ht.REMUX_ALLOC_ERROR,fatal:!1,error:re,bytes:P,reason:`fail allocating audio mdat ${P}`});return}v||(new DataView(D.buffer).setUint32(0,P),D.set(Ut.types.mdat,4))}else return;D.set(U,k);const ee=U.byteLength;k+=ee,g.push(Aue(!0,d,ee,0)),T=q}const O=g.length;if(!O)return;const L=g[g.length-1];C=T-x,this.nextAudioTs=C+c*L.duration;const B=v?new Uint8Array(0):Ut.moof(t.sequenceNumber++,_/c,bo({},t,{samples:g}));t.samples=[];const j=(_-x)/s,W=C/s,K={data1:B,data2:D,startPTS:j,endPTS:W,startDTS:j,endDTS:W,type:"audio",hasAudio:!0,hasVideo:!1,nb:O};return this.isAudioContiguous=!0,K}}function tc(e,t){let n;if(t===null)return e;for(t4294967296;)e+=n;return e}function TIt(e){for(let t=0;ts.pts-l.pts);const a=e.samples;return e.samples=[],{samples:a}}class AIt extends rd{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=F3e(t);if(n)v5t(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=Iue(a,Eo.AUDIO,this)),s&&(o=Iue(s,Eo.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};jn(h)||(h=this.lastEndTime=a||0);const v=n.samples;if(!v.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(v),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=g5t(v,y,this),k=y.audio?S[y.audio.id]:null,C=y.video?S[y.video.id]:null,x=xC(C,1/0),E=xC(k,1/0),_=xC(C,0,!0),T=xC(k,0,!0);let D=a,P=0;const M=k&&(!C||!d&&E0?this.lastEndTime=B:(this.warn("Duration parsed from mp4 should be greater than zero"),this.resetNextTimestamp());const j=!!y.audio,W=!!y.video;let H="";j&&(H+="audio"),W&&(H+="video");const K=(y.audio?y.audio.encrypted:!1)||(y.video?y.video.encrypted:!1),Y={data1:v,startPTS:L,startDTS:L,endPTS:B,endDTS:B,type:H,hasAudio:j,hasVideo:W,nb:1,dropped:0,encrypted:K};p.audio=j&&!W?Y:void 0,p.video=W?Y:void 0;const ne=C?.sampleCount;if(ne){const X=C.keyFrameIndex,U=X!==-1;Y.nb=ne,Y.dropped=X===0||this.isVideoContiguous?0:U?X:ne,Y.independent=U,Y.firstKeyFrame=X,U&&C.keyFrameStart&&(Y.firstKeyFramePTS=(C.keyFrameStart-d.baseTime)/d.timescale),this.isVideoContiguous||(p.independent=U),this.isVideoContiguous||(this.isVideoContiguous=U),Y.dropped&&this.warn(`fmp4 does not start with IDR: firstIDR ${X}/${ne} dropped: ${Y.dropped} start: ${Y.firstKeyFramePTS||"NA"}`)}return p.initSegment=g,p.id3=P2e(r,a,d,d),o.samples.length&&(p.text=R2e(o,a,d)),p}}function xC(e,t,n=!1){return e?.start!==void 0?(e.start+(n?e.duration:0))/e.timescale:t}function IIt(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 Iue(e,t,n){const r=e.codec;return r&&r.length>4?r:t===Eo.AUDIO?r==="ec-3"||r==="ac-3"||r==="alac"?r:r==="fLaC"||r==="Opus"?IT(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 t8=[{demux:pIt,remux:AIt},{demux:Jp,remux:e8},{demux:cIt,remux:e8},{demux:fIt,remux:e8}];t8.splice(2,0,{demux:dIt,remux:e8});class Lue{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:v,timeOffset:g,initSegmentChange:y}=o||l,{audioCodec:S,videoCodec:k,defaultInitPts:C,duration:x,initSegmentData:E}=c,_=LIt(s,n);if(_&&yy(_.method)){const M=this.getDecrypter(),O=IG(_.method);if(M.isSync()){let L=M.softwareDecrypt(s,_.key.buffer,_.iv.buffer,O);if(r.part>-1){const j=M.flush();L=j&&j.buffer}if(!L)return a.executeEnd=gh(),zF(r);s=new Uint8Array(L)}else return this.asyncResult=!0,this.decryptionPromise=M.webCryptoDecrypt(s,_.key.buffer,_.iv.buffer,O).then(L=>{const B=this.push(L,null,r);return this.decryptionPromise=null,B}),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(Ee.ERROR,Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.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,v,r);this.asyncResult=A_(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 A_(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===rr.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,v=t8.length;p0&&t?.key!=null&&t.iv!==null&&t.method!=null&&(n=t),n}const zF=e=>({remuxResult:{},chunkMeta:e});function A_(e){return"then"in e&&e.then instanceof Function}class DIt{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 PIt{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 Due=0;class M2e{constructor(t,n,r,o){this.error=null,this.hls=void 0,this.id=void 0,this.instanceNo=Due++,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 v=(p=this.workerContext)==null?void 0:p.objectURL;v&&self.URL.revokeObjectURL(v);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(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.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===Ee.ERROR&&(d=d,d.parent=this.id,d.part=this.part,this.error=d.error),this.hls.trigger(c,d)};this.observer=new PG,this.observer.on(Ee.FRAG_DECRYPTED,s),this.observer.on(Ee.ERROR,s);const l=Gle(a.preferManagedMediaSource);if(this.useWorker&&typeof Worker<"u"){const c=this.hls.logger;if(a.workerPath||$At()){try{a.workerPath?(c.log(`loading Web Worker ${a.workerPath} for "${n}"`),this.workerContext=NAt(a.workerPath)):(c.log(`injecting Web Worker for "${n}"`),this.workerContext=BAt());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:To(a)})}catch(h){c.warn(`Error setting up "${n}" Web Worker, fallback to inline`,h),this.terminateWorker(),this.error=null,this.transmuxer=new Lue(this.observer,l,a,"",n,t.logger)}return}}this.transmuxer=new Lue(this.observer,l,a,"",n,t.logger)}reset(){if(this.frag=null,this.part=null,this.workerContext){const t=this.instanceNo;this.instanceNo=Due++;const n=this.hls.config,r=Gle(n.preferManagedMediaSource);this.workerContext.worker.postMessage({instanceNo:this.instanceNo,cmd:"reset",resetNo:t,typeSupported:r,id:this.id,config:To(n)})}}terminateWorker(){if(this.workerContext){const{worker:t}=this.workerContext;this.workerContext=null,t.removeEventListener("message",this.onWorkerMessage),t.removeEventListener("error",this.onWorkerError),FAt(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,v;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 O=!(C&&((p=a.initSegment)==null?void 0:p.url)===((v=C.initSegment)==null?void 0:v.url)),L=new PIt(x,P,c,E,S,O);if(!P||x||O){this.hls.logger.log(`[transmuxer-interface]: Starting new transmux session for ${a.type} sn: ${d.sn}${d.part>-1?" part: "+d.part:""} ${this.id===rr.MAIN?"level":"track"}: ${d.level} id: ${d.id} discontinuity: ${x} trackSwitch: ${E} contiguous: ${P} accurateTimeOffset: ${c} timeOffset: ${S} initSegmentChange: ${O}`);const B=new DIt(r,o,n,l,h);this.configureTransmuxer(B)}if(this.frag=a,this.part=s,this.workerContext)this.workerContext.worker.postMessage({instanceNo:g,cmd:"demux",data:t,decryptdata:k,chunkMeta:d,state:L},t instanceof ArrayBuffer?[t]:[]);else if(y){const B=y.push(t,k,d,L);A_(B)?B.then(j=>{this.handleTransmuxComplete(j)}).catch(j=>{this.transmuxerError(j,d,"transmuxer-interface push error")}):this.handleTransmuxComplete(B)}}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);A_(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(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.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 Pue=100;class RIt extends DG{constructor(t,n,r){super(t,n,r,"audio-stream-controller",rr.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(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ee.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.on(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ee.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Ee.BUFFER_RESET,this.onBufferReset,this),t.on(Ee.BUFFER_CREATED,this.onBufferCreated,this),t.on(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ee.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Ee.FRAG_LOADING,this.onFragLoading,this),t.on(Ee.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){const{hls:t}=this;t&&(super.unregisterListeners(),t.off(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ee.AUDIO_TRACKS_UPDATED,this.onAudioTracksUpdated,this),t.off(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ee.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Ee.BUFFER_RESET,this.onBufferReset,this),t.off(Ee.BUFFER_CREATED,this.onBufferCreated,this),t.off(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ee.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Ee.FRAG_LOADING,this.onFragLoading,this),t.off(Ee.FRAG_BUFFERED,this.onFragBuffered,this))}onInitPtsFound(t,{frag:n,id:r,initPTS:o,timescale:a,trackId:s}){if(r===rr.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=X3e(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(Pue),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,Eo.AUDIO,rr.AUDIO));const h=this.getFwdBufferInfo(d,rr.AUDIO);if(h===null)return;if(!this.switchingTrack&&this._streamEnded(h,c)){n.trigger(Ee.BUFFER_EOS,{type:"audio"}),this.state=an.ENDED;return}const p=h.len,v=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>=v&&!this.switchingTrack&&kx.end){const _=this.fragmentTracker.getFragAtPos(k,rr.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 w_(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(Pue),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(Ee.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 v;p=this.alignPlaylists(a,h.details,(v=this.levelLastLoaded)==null?void 0:v.details)}a.alignedSliding||(p2e(a,d),a.alignedSliding||$T(a,d),p=a.fragmentStart)}h.details=a,this.levelLastLoaded=h,this.startFragRequested||this.setStartPosition(d,p),this.hls.trigger(Ee.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 v=this.transmuxer;v||(v=this.transmuxer=new M2e(this.hls,rr.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 AG(r.level,r.sn,r.stats.chunkCount,a.byteLength,k,C);v.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 v2e,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===rr.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!==rr.AUDIO){!this.audioOnly&&r.type===rr.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(Ee.AUDIO_TRACK_SWITCHED,fo({},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 Ht.FRAG_GAP:case Ht.FRAG_PARSING_ERROR:case Ht.FRAG_DECRYPT_ERROR:case Ht.FRAG_LOAD_ERROR:case Ht.FRAG_LOAD_TIMEOUT:case Ht.KEY_LOAD_ERROR:case Ht.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(rr.AUDIO,n);break;case Ht.AUDIO_TRACK_LOAD_ERROR:case Ht.AUDIO_TRACK_LOAD_TIMEOUT:case Ht.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===an.WAITING_TRACK&&((r=n.context)==null?void 0:r.type)===ki.AUDIO_TRACK&&(this.state=an.IDLE);break;case Ht.BUFFER_ADD_CODEC_ERROR:case Ht.BUFFER_APPEND_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)||this.resetLoadingState();break;case Ht.BUFFER_FULL_ERROR:if(n.parent!=="audio")return;this.reduceLengthAndFlushBuffer(n)&&(this.bufferedTrack=null,super.flushMainBuffer(0,Number.POSITIVE_INFINITY,"audio"));break;case Ht.INTERNAL_EXCEPTION:this.recoverWorkerError(n);break}}onBufferFlushing(t,{type:n}){n!==Eo.VIDEO&&(this.flushing=!0)}onBufferFlushed(t,{type:n}){if(n!==Eo.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,rr.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:v,text:g,id3:y,initSegment:S}=a;if(this.fragContextChanged(c)||!p){this.fragmentTracker.removeFragment(c);return}if(this.state=an.PARSING,this.switchingTrack&&v&&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(Ee.FRAG_PARSING_INIT_SEGMENT,{frag:k,id:r,tracks:S.tracks})}if(v){const{startPTS:k,endPTS:C,startDTS:x,endDTS:E}=v;d&&(d.elementaryStreams[Eo.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),c.setElementaryStreamInfo(Eo.AUDIO,k,C,x,E),this.bufferFragmentData(v,c,d,s)}if(y!=null&&(n=y.samples)!=null&&n.length){const k=bo({id:r,frag:c,details:p},y);o.trigger(Ee.FRAG_PARSING_METADATA,k)}if(g){const k=bo({id:r,frag:c,details:p},g);o.trigger(Ee.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=rr.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(Ee.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(Ee.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&&$T(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;Sm({name:n,lang:r,assocLang:o,characteristics:a,audioCodec:s,channels:l},t,Hv)||(DT(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(Ee.AUDIO_TRACK_SWITCHED,fo({},t))}}class FG extends rd{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&&Kle(r);return new qle(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){wAt(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(Ee.ERROR,{type:dr.NETWORK_ERROR,details:Ht.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,v=p?p.end-p.len:0,g=(o.edge-v)*1e3,y=u2e(o,g);if(o.requestScheduled+y0){if(O>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-o.partTarget>r.tuneInGoal)this.warn(`CDN Tune-in goal increased from: ${r.tuneInGoal} to: ${L} with playlist age: ${o.age}`),L=0;else{const B=Math.floor(L/o.targetduration);if(k+=B,C!==void 0){const j=Math.round(L%o.targetduration/o.partTarget);C+=j}this.log(`CDN Tune-in age: ${o.ageHeader}s last advanced ${M.toFixed(2)}s goal: ${L} skip sn ${B} to part ${C}`)}o.tuneInGoal=L}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=Kle(t);return n!=null&&n.skip&&t.deltaUpdateFailed&&(r=n.msn,o=n.part,a=JE.No),new qle(r,o,a)}checkRetry(t){const n=t.details,r=PT(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=EG(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 O2e(e,t){if(e.length!==t.length)return!1;for(let n=0;ne[o]!==t[o])}function Kz(e,t){return t.label.toLowerCase()===e.name.toLowerCase()&&(!t.language||t.language.toLowerCase()===(e.lang||"").toLowerCase())}class MIt extends FG{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(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ee.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ee.AUDIO_TRACK_LOADED,this.onAudioTrackLoaded,this),t.off(Ee.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(v=>!r||r.indexOf(v.groupId)!==-1);if(l.length)this.selectDefaultTrack&&!l.some(v=>v.default)&&(this.selectDefaultTrack=!1),l.forEach((v,g)=>{v.id=g});else if(!a&&!this.tracksInGroup.length)return;this.tracksInGroup=l;const c=this.hls.config.audioPreference;if(!a&&c){const v=vf(c,l,Hv);if(v>-1)a=l[v];else{const g=vf(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(Ee.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 v=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(v.message),this.hls.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.AUDIO_TRACK_LOAD_ERROR,fatal:!0,error:v})}}}onError(t,n){n.fatal||!n.context||n.context.type===ki.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&&Sm(t,o,Hv))return o;const a=vf(t,this.tracksInGroup,Hv);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=G5t(t,n.levels,r,s,Hv);if(l===-1)return null;n.nextLoadLevel=l}if(t.channels||t.audioCodec){const s=vf(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(Ee.AUDIO_TRACK_SWITCHING,fo({},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 Rue=/(avc[1234]|hvc1|hev1|dvh[1e]|vp09|av01)(?:\.[^.,]+)+/,$2e="HlsJsTrackRemovedError";class $It extends Error{constructor(t){super(t),this.name=$2e}}class BIt extends rd{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(Ee.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=o5t(P0(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(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.BUFFER_RESET,this.onBufferReset,this),t.on(Ee.BUFFER_APPENDING,this.onBufferAppending,this),t.on(Ee.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Ee.BUFFER_EOS,this.onBufferEos,this),t.on(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ee.FRAG_PARSED,this.onFragParsed,this),t.on(Ee.FRAG_CHANGED,this.onFragChanged,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.BUFFER_RESET,this.onBufferReset,this),t.off(Ee.BUFFER_APPENDING,this.onBufferAppending,this),t.off(Ee.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ee.BUFFER_EOS,this.onBufferEos,this),t.off(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ee.FRAG_PARSED,this.onFragParsed,this),t.off(Ee.FRAG_CHANGED,this.onFragChanged,this),t.off(Ee.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?bo(r,o.tracks):this.sourceBuffers.forEach(a=>{const[s]=a;s&&(r[s]=bo({},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=P0(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,Mue(r),NIt(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: ${To(r,(c,d)=>c==="initSegment"?void 0:d)}; transfer tracks: ${To(o,(c,d)=>c==="initSegment"?void 0:d)}}`),!P3e(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(Ee.MEDIA_DETACHING,{}),this.onMediaAttaching(Ee.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 v=this.fragmentTracker,g=h.id;if(v.hasFragments(g)||v.hasParts(g)){const k=Vr.getBuffered(p);v.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&&Mue(o),o.load()):this.warn("media|source.src was changed by a third party - skip cleanup")),this.media=null),this.hls.trigger(Ee.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 OIt(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:v,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:v});const P=ZE(T,D),M=P?.replace(Rue,"$1");let O=ZE(g,y);const L=(h=O)==null?void 0:h.replace(Rue,"$1");O&&P&&M!==L&&(c.slice(0,5)==="audio"&&(O=IT(O,this.appendSource)),this.log(`switching codec ${T} to ${O}`),O!==(x.pendingCodec||x.codec)&&(x.pendingCodec=O),x.container=S,this.appendChangeType(c,S,O))}),(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,rr.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&&Vr.isBuffered(c.buffer,o)||((l=this.fragmentTracker.getAppendedFrag(o,rr.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:v,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(_&&v!=="initSegment"){const P=c||l,M=this.blockedAudioAppend;if(a==="audio"&&s!=="main"&&!this.blockedAudioAppend&&!(E.ending||E.ended)){const L=P.start+P.duration*.05,B=_.buffered,j=this.currentOp("video");!B.length&&!j?this.blockAudio(P):!j&&!Vr.isBuffered(_,L)&&this.lastVideoAppendEndL||O{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,v,g):h!==void 0&&jn(h)&&this.updateTimestampOffset(M,h,1e-6,a,v,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(([O,L])=>{O&&(M[O]=Vr.getBuffered(L))}),this.appendErrors[a]=0,a==="audio"||a==="video"?this.appendErrors.audiovideo=0:(this.appendErrors.audio=0,this.appendErrors.video=0),this.hls.trigger(Ee.BUFFER_APPENDED,{type:a,frag:l,part:c,chunkMeta:d,parent:l.type,timeRanges:M})},onError:P=>{var M;const O={type:dr.MEDIA_ERROR,parent:l.type,details:Ht.BUFFER_APPEND_ERROR,sourceBufferName:a,frag:l,part:c,chunkMeta:d,error:P,err:P,fatal:!1},L=(M=this.media)==null?void 0:M.error;if(P.code===DOMException.QUOTA_EXCEEDED_ERR||P.name=="QuotaExceededError"||"quota"in P)O.details=Ht.BUFFER_FULL_ERROR;else if(P.code===DOMException.INVALID_STATE_ERR&&this.mediaSourceOpenOrEnded&&!L)O.errorAction=gy(!0);else if(P.name===$2e&&this.sourceBufferCount===0)O.errorAction=gy(!0);else{const B=++this.appendErrors[a];this.warn(`Failed ${B}/${this.hls.config.appendErrorMaxRetry} times to append segment in "${a}" sourceBuffer (${L||"no media error"})`),(B>=this.hls.config.appendErrorMaxRetry||L)&&(O.fatal=!0)}this.hls.trigger(Ee.ERROR,O)}};this.log(`queuing "${a}" append sn: ${v}${c?" p: "+c.index:""} of ${l.type===rr.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(Ee.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[Eo.AUDIOVIDEO]?a.push("audiovideo"):(s[Eo.AUDIO]&&a.push("audio"),s[Eo.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(Ee.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(Ee.BUFFERED_TO_END,void 0)})):(this.tracksEnded(),this.hls.trigger(Ee.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===Ht.BUFFER_APPEND_ERROR&&n.frag){var r;const o=(r=n.errorAction)==null?void 0:r.nextAutoLevel;jn(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(jn(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(jn(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=Vr.getBuffered(a);if(l.length>0&&r>l.start(0)){var s;this.hls.trigger(Ee.BACK_BUFFER_REACHED,{bufferEnd:r});const c=this.tracks[o];if((s=this.details)!=null&&s.live)this.hls.trigger(Ee.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(Ee.BUFFER_FLUSHING,{startOffset:0,endOffset:r,type:o})}}})}flushFrontBuffer(t,n,r){this.sourceBuffers.forEach(([o,a])=>{if(a){const s=Vr.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(Ee.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 jn(a)?{duration:a}:null;const s=this.media.duration,l=jn(r.duration)?r.duration:0;return o>l&&o>s||!jn(s)?{duration:o}:null}updateMediaSource({duration:t,start:n,end:r}){const o=this.mediaSource;!this.media||!o||o.readyState!=="open"||(o.duration!==t&&(jn(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}) ${To(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(Ee.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(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.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":""} ${To(l)}`);try{const h=r.addSourceBuffer(d),p=UF(s),v=[s,h];n[p]=v,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(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.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")&&x_(r,"video")&&(o=T5t(o,r));const a=ZE(o,t.levelCodec);return a?n.slice(0,5)==="audio"?IT(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(Ee.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(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.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=jn(o.duration)?o.duration:1/0,d=jn(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 $It(`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 Mue(e){const t=e.querySelectorAll("source");[].slice.call(t).forEach(n=>{e.removeChild(n)})}function NIt(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 jG{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(Ee.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.on(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ee.BUFFER_CODECS,this.onBufferCodecs,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListener(){const{hls:t}=this;t.off(Ee.FPS_DROP_LEVEL_CAPPING,this.onFpsDropLevelCapping,this),t.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ee.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ee.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&&jn(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,jG.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 FIt={MANIFEST:"m",AUDIO:"a",VIDEO:"v",MUXED:"av",INIT:"i",CAPTION:"c",TIMED_TEXT:"tt",KEY:"k",OTHER:"o"},fu=FIt,jIt={HLS:"h"},VIt=jIt;class Tf{constructor(t,n){Array.isArray(t)&&(t=t.map(r=>r instanceof Tf?r:new Tf(r))),this.value=t,this.params=n}}const zIt="Dict";function UIt(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 HIt(e,t,n,r){return new Error(`failed to ${e} "${UIt(t)}" as ${n}`,{cause:r})}function Af(e,t,n){return HIt("serialize",e,t,n)}class B2e{constructor(t){this.description=t}}const Oue="Bare Item",WIt="Boolean";function GIt(e){if(typeof e!="boolean")throw Af(e,WIt);return e?"?1":"?0"}function KIt(e){return btoa(String.fromCharCode(...e))}const qIt="Byte Sequence";function YIt(e){if(ArrayBuffer.isView(e)===!1)throw Af(e,qIt);return`:${KIt(e)}:`}const XIt="Integer";function ZIt(e){return e<-999999999999999||99999999999999912)throw Af(e,QIt);const n=t.toString();return n.includes(".")?n:`${n}.0`}const tLt="String",nLt=/[\x00-\x1f\x7f]+/;function rLt(e){if(nLt.test(e))throw Af(e,tLt);return`"${e.replace(/\\/g,"\\\\").replace(/"/g,'\\"')}"`}function iLt(e){return e.description||e.toString().slice(7,-1)}const oLt="Token";function $ue(e){const t=iLt(e);if(/^([a-zA-Z*])([!#$%&'*+\-.^_`|~\w:/]*)$/.test(t)===!1)throw Af(t,oLt);return t}function qz(e){switch(typeof e){case"number":if(!jn(e))throw Af(e,Oue);return Number.isInteger(e)?N2e(e):eLt(e);case"string":return rLt(e);case"symbol":return $ue(e);case"boolean":return GIt(e);case"object":if(e instanceof Date)return JIt(e);if(e instanceof Uint8Array)return YIt(e);if(e instanceof B2e)return $ue(e);default:throw Af(e,Oue)}}const sLt="Key";function Yz(e){if(/^[a-z*][a-z0-9\-_.*]*$/.test(e)===!1)throw Af(e,sLt);return e}function VG(e){return e==null?"":Object.entries(e).map(([t,n])=>n===!0?`;${Yz(t)}`:`;${Yz(t)}=${qz(n)}`).join("")}function j2e(e){return e instanceof Tf?`${qz(e.value)}${VG(e.params)}`:qz(e)}function aLt(e){return`(${e.value.map(j2e).join(" ")})${VG(e.params)}`}function lLt(e,t={whitespace:!0}){if(typeof e!="object"||e==null)throw Af(e,zIt);const n=e instanceof Map?e.entries():Object.entries(e),r=t?.whitespace?" ":"";return Array.from(n).map(([o,a])=>{a instanceof Tf||(a=new Tf(a));let s=Yz(o);return a.value===!0?s+=VG(a.params):(s+="=",Array.isArray(a.value)?s+=aLt(a):s+=j2e(a)),s}).join(`,${r}`)}function V2e(e,t){return lLt(e,t)}const tf="CMCD-Object",ps="CMCD-Request",Fv="CMCD-Session",Np="CMCD-Status",uLt={br:tf,ab:tf,d:tf,ot:tf,tb:tf,tpb:tf,lb:tf,tab:tf,lab:tf,url:tf,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:Fv,pr:Fv,sf:Fv,sid:Fv,st:Fv,v:Fv,msd:Fv,bs:Np,bsd:Np,cdn:Np,rtp:Np,bg:Np,pt:Np,ec:Np,e:Np},cLt={REQUEST:ps};function dLt(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 fLt(e,t){const n={};if(!e)return n;const r=Object.keys(e),o=t?dLt(t):{};return r.reduce((a,s)=>{var l;const c=uLt[s]||o[s]||cLt.REQUEST,d=(l=a[c])!==null&&l!==void 0?l:a[c]={};return d[s]=e[s],a},n)}function hLt(e){return["ot","sf","st","e","sta"].includes(e)}function pLt(e){return typeof e=="number"?jn(e):e!=null&&e!==""&&e!==!1}const z2e="event";function vLt(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 n8=e=>Math.round(e),Xz=(e,t)=>Array.isArray(e)?e.map(n=>Xz(n,t)):e instanceof Tf&&typeof e.value=="string"?new Tf(Xz(e.value,t),e.params):(t.baseUrl&&(e=vLt(e,t.baseUrl)),t.version===1?encodeURIComponent(e):e),CC=e=>n8(e/100)*100,mLt=(e,t)=>{let n=e;return t.version>=2&&(e instanceof Tf&&typeof e.value=="string"?n=new Tf([e]):typeof e=="string"&&(n=[e])),Xz(n,t)},gLt={br:n8,d:n8,bl:CC,dl:CC,mtp:CC,nor:mLt,rtp:CC,tb:n8},U2e="request",H2e="response",zG=["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"],yLt=["e"],bLt=/^[a-zA-Z0-9-.]+-[a-zA-Z0-9-.]+$/;function JA(e){return bLt.test(e)}function _Lt(e){return zG.includes(e)||yLt.includes(e)||JA(e)}const W2e=["d","dl","nor","ot","rtp","su"];function SLt(e){return zG.includes(e)||W2e.includes(e)||JA(e)}const kLt=["cmsdd","cmsds","rc","smrt","ttfb","ttfbb","ttlb","url"];function xLt(e){return zG.includes(e)||W2e.includes(e)||kLt.includes(e)||JA(e)}const CLt=["bl","br","bs","cid","d","dl","mtp","nor","nrr","ot","pr","rtp","sf","sid","st","su","tb","v"];function wLt(e){return CLt.includes(e)||JA(e)}const ELt={[H2e]:xLt,[z2e]:_Lt,[U2e]:SLt};function G2e(e,t={}){const n={};if(e==null||typeof e!="object")return n;const r=t.version||e.v||1,o=t.reportingMode||U2e,a=r===1?wLt:ELt[o];let s=Object.keys(e).filter(a);const l=t.filter;typeof l=="function"&&(s=s.filter(l));const c=o===H2e||o===z2e;c&&!s.includes("ts")&&s.push("ts"),r>1&&!s.includes("v")&&s.push("v");const d=bo({},gLt,t.formatters),h={version:r,reportingMode:o,baseUrl:t.baseUrl};return s.sort().forEach(p=>{let v=e[p];const g=d[p];if(typeof g=="function"&&(v=g(v,h)),p==="v"){if(r===1)return;v=r}p=="pr"&&v===1||(c&&p==="ts"&&!jn(v)&&(v=Date.now()),pLt(v)&&(hLt(p)&&typeof v=="string"&&(v=new B2e(v)),n[p]=v))}),n}function TLt(e,t={}){const n={};if(!e)return n;const r=G2e(e,t),o=fLt(r,t?.customHeaderMap);return Object.entries(o).reduce((a,[s,l])=>{const c=V2e(l,{whitespace:!1});return c&&(a[s]=c),a},n)}function ALt(e,t,n){return bo(e,TLt(t,n))}const ILt="CMCD";function LLt(e,t={}){return e?V2e(G2e(e,t),{whitespace:!1}):""}function DLt(e,t={}){if(!e)return"";const n=LLt(e,t);return encodeURIComponent(n)}function PLt(e,t={}){if(!e)return"";const n=DLt(e,t);return`${ILt}=${n}`}const Bue=/CMCD=[^&#]+/;function RLt(e,t,n){const r=PLt(t,n);if(!r)return e;if(Bue.test(e))return e.replace(Bue,r);const o=e.includes("?")?"&":"?";return`${e}${o}${r}`}class MLt{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:fu.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===fu.VIDEO||c===fu.AUDIO||c==fu.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(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHED,this.onMediaDetached,this),t.on(Ee.BUFFER_CREATED,this.onBufferCreated,this)}unregisterListeners(){const t=this.hls;t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHED,this.onMediaDetached,this),t.off(Ee.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:VIt.HLS,sid:this.sid,cid:this.cid,pr:(t=this.media)==null?void 0:t.playbackRate,mtp:this.hls.bandwidthEstimate/1e3}}apply(t,n={}){bo(n,this.createData());const r=n.ot===fu.INIT||n.ot===fu.VIDEO||n.ot===fu.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={}),ALt(t.headers,n,a)):t.url=RLt(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 fu.TIMED_TEXT;if(t.sn==="initSegment")return fu.INIT;if(n==="audio")return fu.AUDIO;if(n==="main")return this.hls.audioTracks.length?fu.VIDEO:fu.MUXED}getTopBandwidth(t){let n=0,r;const o=this.hls;if(t===fu.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===fu.AUDIO?this.audioBuffer:this.videoBuffer;return!r||!n?NaN:Vr.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 OLt=3e5;class $Lt extends rd{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(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const t=this.hls;t&&(t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.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===ec.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===Ht.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: ${To(a)} penalized: ${To(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]>OLt&&delete r[a]});for(let a=0;a0){this.log(`Setting Pathway to "${s}"`),this.pathwayId=s,f2e(n),this.hls.trigger(Ee.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 v=p.AUDIO&&`${p.AUDIO}_clone_${s}`,g=p.SUBTITLES&&`${p.SUBTITLES}_clone_${s}`;v&&(r[p.AUDIO]=v,p.AUDIO=v),g&&(o[p.SUBTITLES]=g,p.SUBTITLES=g);const y=K2e(h.uri,p["STABLE-VARIANT-ID"],"PER-VARIANT-URIS",c),S=new w_({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||v.url),k&&this.clonePathways(k);const x={steeringManifest:y,url:o.toString()};this.hls.trigger(Ee.STEERING_MANIFEST_LOADED,x),C&&this.updatePathwayPriority(C)},onError:(h,p,v,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,v)=>{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 Nue(e,t,n,r){e&&Object.keys(t).forEach(o=>{const a=e.filter(s=>s.groupId===o).map(s=>{const l=bo({},s);return l.details=void 0,l.attrs=new os(l.attrs),l.url=l.attrs.URI=K2e(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 K2e(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 by extends rd{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=by.CDMCleanupPromise?[by.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=F4(this.config));const l=s.map(OF).filter(c=>!!c);this.keyFormatPromise=this.getKeyFormatPromise(l)}this.keyFormatPromise.then(s=>{const l=QE(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=LG(JSON.parse(g).sinf),S=V3e(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 v=h[d];for(let g=0;gthis.generateRequestWithPreferredKeySession(y,r,o,"encrypted-event-key-match")),v.catch(C=>this.handleError(C));break}}v||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(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.on(Ee.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.on(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.on(Ee.DESTROYING,this.onDestroying,this)}unregisterListeners(){this.hls.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),this.hls.off(Ee.MEDIA_DETACHED,this.onMediaDetached,this),this.hls.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),this.hls.off(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),this.hls.off(Ee.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 Zu?l(p):l(new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.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 i2e===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=mAt(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: ${To(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(v=>(this.log(`Media-keys created for "${t}"`),c.hasMediaKeys=!0,h.then(g=>g?this.setMediaKeysServerCertificate(v,t,g):v)));return p.catch(v=>{this.error(`Failed to create media-keys for "${t}"}: ${v}`)}),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=wC(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=F4(this.config),r=t.map(QE).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 Zu){const c=fo({},l.data);this.getKeyStatus(n)==="internal-error"&&(c.decryptdata=n);const d=new Zu(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 Zu){n&&(t.data.frag=n);const r=t.data.decryptdata;this.error(`${t.message}${r?` (${zl(r.keyId||[])})`:""}`),this.hls.trigger(Ee.ERROR,t.data)}else this.error(t.message),this.hls.trigger(Ee.ERROR,{type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_NO_KEYS,error:t,fatal:!0})}getKeySystemForKeyPromise(t){const n=wC(t),r=this.keyIdToKeySessionPromise[n];if(!r){const o=QE(t.keyFormat),a=o?[o]:F4(this.config);return this.attemptKeySystemAccess(a)}return r}getKeySystemSelectionPromise(t){if(t.length||(t=F4(this.config)),t.length===0)throw new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_NO_CONFIGURED_LICENSE,fatal:!0},`Missing key-system license configuration options ${To({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=wC(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 PG,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,zz("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=Fue(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))},v=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 ${To(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} (${To(k)}).`)}};ql(t.mediaKeysSession,"message",h),ql(t.mediaKeysSession,"keystatuseschange",v);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 Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.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&&n2e(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:(v,g,y,S)=>{s(v.data)},onError:(v,g,y,S)=>{l(new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:fo({url:c.url,data:void 0},v)},`"${t}" certificate request failed (${a}). Status: ${v.code} (${v.text})`))},onTimeout:(v,g,y)=>{l(new Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.KEY_SYSTEM_SERVER_CERTIFICATE_REQUEST_FAILED,fatal:!0,networkDetails:y,response:{url:c.url,data:void 0}},`"${t}" certificate request timed out (${a})`))},onAbort:(v,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 Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.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 Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.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,v=a.length;p in key message");return zz(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 Zu({type:dr.KEY_SYSTEM_ERROR,details:Ht.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,ql(r,"encrypted",this.onMediaEncrypted),ql(r,"waitingforkey",this.onWaitingForKey)}onMediaDetached(){const t=this.media;t&&(wu(t,"encrypted",this.onMediaEncrypted),wu(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,km.clearKeyUriToKeyIdMap();const o=r.length;by.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(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.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(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.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(yAt(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(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.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(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.KEY_SYSTEM_DESTROY_CLOSE_SESSION_ERROR,fatal:!1,error:new Error(`Could not close session: ${d}`)})})}return Promise.resolve()}}by.CDMCleanupPromise=void 0;function wC(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 BLt(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 Zu 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 Fue(e,t){const n=e==="output-restricted",r=n?Ht.KEY_SYSTEM_STATUS_OUTPUT_RESTRICTED:Ht.KEY_SYSTEM_STATUS_INTERNAL_ERROR;return new Zu({type:dr.KEY_SYSTEM_ERROR,details:r,fatal:!1,decryptdata:t},n?"HDCP level output restricted":`key status changed to "${e}"`)}class NLt{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(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this)}unregisterListeners(){this.hls.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),this.hls.off(Ee.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(Ee.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(Ee.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 q2e(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 Y2e(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){po.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){po.debug(`[texttrack-utils]: Legacy TextTrackCue fallback failed: ${o}`)}}n==="disabled"&&(e.mode=n)}function Y1(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 Zz(e,t,n,r){const o=e.mode;if(o==="disabled"&&(e.mode="hidden"),e.cues&&e.cues.length>0){const a=jLt(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 r8(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=r8(this.media.textTracks);for(let a=0;a-1&&this.toggleTrackModes()}registerListeners(){const{hls:t}=this;t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.on(Ee.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Ee.ERROR,this.onError,this)}unregisterListeners(){const{hls:t}=this;t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ee.LEVEL_SWITCHING,this.onLevelSwitching,this),t.off(Ee.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Ee.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;r8(r.textTracks).forEach(s=>{Y1(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=vf(l,s);if(h>-1)a=s[h];else{const p=vf(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(Ee.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=vf(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(Ee.SUBTITLE_TRACK_LOADING,{url:a,id:r,groupId:o,deliveryDirectives:n||null,track:t})}toggleTrackModes(){const{media:t}=this;if(!t)return;const n=r8(t.textTracks),r=this.currentTrack;let o;if(r&&(o=n.filter(a=>Kz(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||!jn(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(Ee.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(Ee.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 zLt(){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 Pb(e){let t=5381,n=e.length;for(;n;)t=t*33^e.charCodeAt(--n);return(t>>>0).toString()}const _y=.025;let NT=(function(e){return e[e.Point=0]="Point",e[e.Range=1]="Range",e})({});function ULt(e,t,n){return`${e.identifier}-${n+1}-${Pb(t)}`}class HLt{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=jn(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)<_y))}set appendInPlace(t){if(this.appendInPlaceStarted){this.resetOnResume=!t;return}this.appendInPlaceDisabled=!t}get timelineStart(){return this._timelineStart!==null?this._timelineStart:this.startTime}set timelineStart(t){this._timelineStart=t}get duration(){const t=this.playoutLimit;let n;return this._duration!==null?n=this._duration:this.dateRange.duration?n=this.dateRange.duration:n=this.dateRange.plannedDuration||0,!isNaN(t)&&t0||this.assetListResponse!==null}toString(){return WLt(this)}}function HF(e,t){return e-t.start":e.cue.post?"":""}${e.timelineStart.toFixed(2)}-${e.resumeTime.toFixed(2)}]`}function F1(e){const t=e.timelineStart,n=e.duration||0;return`["${e.identifier}" ${t.toFixed(2)}-${(t+n).toFixed(2)}]`}class GLt{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(Ee.PLAYOUT_LIMIT_REACHED,{})};const a=this.hls=new t(n);this.interstitial=r,this.assetItem=o;const s=()=>{this.hasDetails=!0};a.once(Ee.LEVEL_LOADED,s),a.once(Ee.AUDIO_TRACK_LOADED,s),a.once(Ee.SUBTITLE_TRACK_LOADED,s),a.on(Ee.MEDIA_ATTACHING,(l,{media:c})=>{this.removeMediaListeners(),this.mediaAttached=c,this.interstitial.playoutLimit&&(c.addEventListener("timeupdate",this.checkPlayout),this.appendInPlace&&a.on(Ee.BUFFER_APPENDED,()=>{const h=this.bufferedEnd;this.reachedPlayout(h)&&(this._bufferedEosTime=h,a.trigger(Ee.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=X2e(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=Vr.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=Vr.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: ${F1(this.assetItem)} ${(t=this.hls)==null?void 0:t.sessionId} ${this.appendInPlace?"append-in-place":""}`}}const jue=.033;class KLt extends rd{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,v=d.cue.post,g=h.cue.pre,y=h.cue.post;if(p&&!g)return-1;if(g&&!p||v&&!y)return 1;if(y&&!v)return-1;if(!p&&!g&&!v&&!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 v=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===NT.Range?C:0,E=h.resumptionOffset,_=y?.startTime===k,T=k+h.cumulativeDuration;let D=S?T+C:k+E;if(v||!g&&k<=0){const M=d;d+=x,h.timelineStart=T;const O=s;s+=C,r.push({event:h,start:T,end:D,playout:{start:O,end:s},integrated:{start:M,end:d}})}else if(k<=a){if(!_){const L=k-c;if(L>jue){const B=c,j=d;d+=L;const W=s;s+=L;const H={previousEvent:t[p-1]||null,nextEvent:h,start:B,end:B+L,playout:{start:W,end:s},integrated:{start:j,end:d}};r.push(H)}else L>0&&y&&(y.cumulativeDuration+=L,r[r.length-1].end=k)}g&&(D=T),h.timelineStart=T;const M=d;d+=x;const O=s;s+=C,r.push({event:h,start:T,end:D,playout:{start:O,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=jm(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+1_y?(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=jm(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)<_y+h||Math.abs(d.end-r)<_y+h?!1:(this.log(`"${t.identifier}" resumption ${r} not aligned with ${s} fragment bounds (${d.start}-${d.end} sn: ${d.sn} cc: ${d.cc})`),!0)})}updateAssetDurations(t){if(!t.assetListLoaded)return;const n=t.timelineStart;let r=0,o=!1,a=!1;for(let s=0;s{const k=v.data,C=k?.ASSETS;if(!Array.isArray(C)){const x=this.assignAssetListError(t,Ht.ASSET_LIST_PARSING_ERROR,new Error("Invalid interstitial asset list"),y.url,g,S);this.hls.trigger(Ee.ERROR,x);return}t.assetListResponse=k,this.hls.trigger(Ee.ASSET_LIST_LOADED,{event:t,assetListResponse:k,networkDetails:S})},onError:(v,g,y,S)=>{const k=this.assignAssetListError(t,Ht.ASSET_LIST_LOAD_ERROR,new Error(`Error loading X-ASSET-LIST: HTTP status ${v.code} ${v.text} (${g.url})`),g.url,S,y);this.hls.trigger(Ee.ERROR,k)},onTimeout:(v,g,y)=>{const S=this.assignAssetListError(t,Ht.ASSET_LIST_LOAD_TIMEOUT,new Error(`Timeout loading X-ASSET-LIST (${g.url})`),g.url,v,y);this.hls.trigger(Ee.ERROR,S)}};return l.load(c,h,p),this.hls.trigger(Ee.ASSET_LIST_LOADING,{event:t}),l}assignAssetListError(t,n,r,o,a,s){return t.error=r,{type:dr.NETWORK_ERROR,details:n,fatal:!1,interstitial:t,url:o,error:r,networkDetails:s,stats:a}}}function Vue(e){e?.play().catch(()=>{})}function EC(e,t){return`[${e}] Advancing timeline position to ${t}`}class YLt extends rd{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 v;(v=l.event)!=null&&v.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=>fd(S))} pos: ${this.timelinePos}`),h.length&&this.log(`Removed events ${h}`);let v=null,g=null;s&&(v=this.updateItem(s,this.timelinePos),this.itemsMatch(s,v)?this.playingItem=v: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)>_y&&this.warn(`${x} ("${S.assetId}" ${S.timelineOffset}->${k})`)}}}),p||o){if(this.hls.trigger(Ee.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(v,s),y&&g!==v&&this.trimInPlace(g,y),this.checkBuffer()}},this.hls=t,this.HlsPlayerClass=n,this.assetListLoader=new qLt(t),this.schedule=new KLt(this.onScheduleUpdate,t.logger),this.registerListeners()}registerListeners(){const t=this.hls;t&&(t.on(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ee.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.on(Ee.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Ee.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.on(Ee.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.on(Ee.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.on(Ee.BUFFER_APPENDED,this.onBufferAppended,this),t.on(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ee.BUFFERED_TO_END,this.onBufferedToEnd,this),t.on(Ee.MEDIA_ENDED,this.onMediaEnded,this),t.on(Ee.ERROR,this.onError,this),t.on(Ee.DESTROYING,this.onDestroying,this))}unregisterListeners(){const t=this.hls;t&&(t.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ee.AUDIO_TRACK_UPDATED,this.onAudioTrackUpdated,this),t.off(Ee.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Ee.SUBTITLE_TRACK_UPDATED,this.onSubtitleTrackUpdated,this),t.off(Ee.EVENT_CUE_ENTER,this.onInterstitialCueEnter,this),t.off(Ee.ASSET_LIST_LOADED,this.onAssetListLoaded,this),t.off(Ee.BUFFER_CODECS,this.onBufferCodecs,this),t.off(Ee.BUFFER_APPENDED,this.onBufferAppended,this),t.off(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ee.BUFFERED_TO_END,this.onBufferedToEnd,this),t.off(Ee.MEDIA_ENDED,this.onMediaEnded,this),t.off(Ee.ERROR,this.onError,this),t.off(Ee.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){wu(t,"play",this.onPlay),wu(t,"pause",this.onPause),wu(t,"seeking",this.onSeeking),wu(t,"timeupdate",this.onTimeupdate)}onMediaAttaching(t,n){const r=this.media=n.media;ql(r,"seeking",this.onSeeking),ql(r,"timeupdate",this.onTimeupdate),ql(r,"play",this.onPlay),ql(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,v,g,y,S)=>{if(p){let k=p[v].start;const C=p.event;if(C){if(v==="playout"||C.timelineOccupancy!==NT.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,v)=>{var g;if(p!==0&&v!=="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[v].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 v,g;return(v=t.primaryDetails)!=null&&v.live?t.primaryDetails.edge:((g=t.schedule)==null?void 0:g.durations[p])||0},c=(p,v)=>{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} "${v}"`);const k=t.effectivePlayingItem,C=t.schedule.findItemIndexAtTime(p,v),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 O=v==="primary"?M.currentTime:o(k,v,t.playingAsset,"timelinePos","currentTime"),L=p-O,B=(T?O:M.currentTime)+L;if(B>=0&&(!P||T||B<=P.duration)){M.currentTime=B;return}}}if(x){let P=p;if(v!=="primary"){const O=x[v].start,L=p-O;P=x.start+L}const M=!t.isInterstitial(x);if((!t.isInterstitial(k)||k.event.appendInPlace)&&(M||x.event.appendInPlace)){const O=t.media||(T?E?.media:null);O&&(O.currentTime=P)}else if(k){const O=t.findItemIndex(k);if(C>O){const B=t.schedule.findJumpRestrictedIndex(O+1,C);if(B>O){t.setSchedulePosition(B);return}}let L=0;if(M)t.timelinePos=P,t.checkBuffer();else{const B=x.event.assetList,j=p-(x[v]||x).start;for(let W=B.length;W--;){const H=B[W];if(H.duration&&j>=H.startOffset&&j{const p=t.effectivePlayingItem;if(t.isInterstitial(p))return p;const v=n();return t.isInterstitial(v)?v:null},h={get bufferedEnd(){const p=n(),v=t.bufferingItem;if(v&&v===p){var g;return o(v,"playout",t.bufferingAsset,"bufferedPos","bufferedEnd")-v.playout.start||((g=t.bufferingAsset)==null?void 0:g.startOffset)||0}return 0},get currentTime(){const p=d(),v=t.effectivePlayingItem;return v&&v===p?o(v,"playout",t.effectivePlayingAsset,"timelinePos","currentTime")-v.playout.start:0},set currentTime(p){const v=d(),g=t.effectivePlayingItem;g&&g===v&&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 v=(p=d())==null?void 0:p.event.assetList;return v?v.map(g=>t.getAssetPlayer(g.identifier)):[]},get playingIndex(){var p;const v=(p=d())==null?void 0:p.event;return v&&t.effectivePlayingAsset?v.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,v=p?.event;if(v&&!v.restrictions.skip){const g=t.findItemIndex(p);if(v.appendInPlace){const y=p.playout.start+p.event.duration;c(y+.001,"playout")}else t.advanceAfterAssetEnded(v,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||!jn(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} ${To(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 ${To(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",v=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(v===a&&g){const y=l&&t.assetId===g.assetIdAtEnd;v.overrides={duration:g.duration,endOfStream:!l||y,cueRemoval:!l}}t.attachMedia(v)}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(EC("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&&fd(a)}) pos: ${this.timelinePos}`);const s=this.waitingItem||this.playingItem,l=this.playingLastItem;if(this.isInterstitial(s)){const h=s.event,p=this.playingAsset,v=p?.identifier,g=v?this.getAssetPlayer(v):null;if(g&&v&&(!this.eventItemsMatch(s,a)||n!==void 0&&v!==h.assetList[n].identifier)){var c;const y=h.findAssetIndex(p);if(this.log(`INTERSTITIAL_ASSET_ENDED ${y+1}/${h.assetList.length} ${F1(p)}`),this.endedAsset=p,this.playingAsset=null,this.hls.trigger(Ee.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(v,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} ${fd(s)}`),h.hasPlayed=!0,this.hls.trigger(Ee.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,v=s.findEventIndex(p.identifier);(vt+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 v=this.preloadAssets(h,r);if(this.eventItemsMatch(l,p||o)||(this.waitingItem=l,this.log(`INTERSTITIAL_STARTED ${fd(l)} ${h.appendInPlace?"append in place":""}`),this.hls.trigger(Ee.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(v||(v=this.getAssetPlayer(g.identifier)),v===null||v.destroyed){const y=h.assetList.length;this.warn(`asset ${r+1}/${y} player destroyed ${h}`),v=this.createAssetPlayer(h,g,r),v.loadSource()}if(!this.eventItemsMatch(l,this.bufferingItem)&&h.appendInPlace&&this.isAssetBuffered(g))return;this.startAssetPlayer(v,r,n,t,c),this.shouldPlay&&Vue(v.media)}else l?(this.resumePrimary(l,t,o),this.shouldPlay&&Vue(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 ${fd(t)}`),!((o=this.detachedData)!=null&&o.mediaSource)){let l=this.timelinePos;(l=t.end)&&(l=this.getPrimaryResumption(t,n),this.log(EC("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 ${fd(t)}`),this.hls.trigger(Ee.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:Vr.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(EC("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(Ee.BUFFER_CODECS,this.onBufferCodecs,this),this.hls.on(Ee.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=fo(fo({},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=fo(fo({},this.altSelection),{},{audio:r});return}const a=fo(fo({},o),{},{audio:r});this.mediaSelection=a}onSubtitleTrackUpdated(t,n){const r=this.hls.subtitleTracks[n.id],o=this.mediaSelection;if(!o){this.altSelection=fo(fo({},this.altSelection),{},{subtitles:r});return}const a=fo(fo({},o),{},{subtitles:r});this.mediaSelection=a}onAudioTrackSwitching(t,n){const r=Xle(n);this.playerQueue.forEach(({hls:o})=>o&&(o.setAudioOption(n)||o.setAudioOption(r)))}onSubtitleTrackSwitch(t,n){const r=Xle(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=Vr.bufferInfo(this.primaryMedia,r,0);(o.end>r||(o.nextStart||0)>r)&&(this.log(`trim buffered interstitial ${fd(t)} (was ${fd(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=Vr.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=v.event)!=null&&d.appendInPlace&&t+.01>=v.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(v);else{const g=this.primaryDetails;this.primaryLive&&g&&t>g.edge-g.targetduration&&v.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 ${fd(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 v=this.getAssetPlayer(h.identifier);v&&(p===d&&v.loadSource(),v.resumeBuffering())})}else this.hls.resumeBuffering(),this.playerQueue.forEach(d=>d.pauseBuffering());this.hls.trigger(Ee.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 v=this.playingItem;!this.isInterstitial(v)&&(v==null||(l=v.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 v=h-c;v>0&&(d=Math.round(v*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(Ee.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}`),O={fatal:!0,type:dr.OTHER_ERROR,details:Ht.INTERSTITIAL_ASSET_ITEM_ERROR,error:M},L=((T=this.schedule)==null?void 0:T.findEventIndex(t.identifier))||-1;this.handleAssetItemError(O,t,L,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(Ee.LEVEL_UPDATED,(_,{details:T})=>k(T)),y.on(Ee.LEVEL_PTS_UPDATED,(_,{details:T})=>k(T)),y.on(Ee.EVENT_CUE_ENTER,()=>this.onInterstitialCueEnter());const C=(_,T)=>{const D=this.getAssetPlayer(p);if(D&&T.tracks){D.off(Ee.BUFFER_CODECS,C),D.tracks=T.tracks;const P=this.primaryMedia;this.bufferingAsset===D.assetItem&&P&&!D.media&&this.bufferAssetPlayer(D,P)}};y.on(Ee.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(Ee.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(Ee.MEDIA_ENDED,E(r)),y.once(Ee.PLAYOUT_LIMIT_REACHED,E(1/0)),y.on(Ee.ERROR,(_,T)=>{if(!this.schedule)return;const D=this.getAssetPlayer(p);if(T.details===Ht.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(Ee.DESTROYING,()=>{if(!this.getAssetPlayer(p)||!this.schedule)return;const T=new Error(`Asset player destroyed unexpectedly ${p}`),D={fatal:!0,type:dr.OTHER_ERROR,details:Ht.INTERSTITIAL_ASSET_ITEM_ERROR,error:T};this.handleAssetItemError(D,t,this.schedule.findEventIndex(t.identifier),r,T.message)}),this.log(`INTERSTITIAL_ASSET_PLAYER_CREATED ${F1(n)}`),this.hls.trigger(Ee.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&&fd(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} ${F1(l)}`),this.hls.trigger(Ee.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&&!P3e(p,t.tracks)){const v=new Error(`Asset ${F1(s)} SourceBuffer tracks ('${Object.keys(t.tracks)}') are not compatible with primary content tracks ('${Object.keys(p)}')`),g={fatal:!0,type:dr.OTHER_ERROR,details:Ht.INTERSTITIAL_ASSET_ITEM_ERROR,error:v},y=a.findAssetIndex(s);this.handleAssetItemError(g,a,l,y,v.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,v=p?.event.identifier===s;this.updateSchedule();const g=(o=this.bufferingItem)==null?void 0:o.event;if(v){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 Ht.ASSET_LIST_PARSING_ERROR:case Ht.ASSET_LIST_LOAD_ERROR:case Ht.ASSET_LIST_LOAD_TIMEOUT:{const r=n.interstitial;r&&(this.updateSchedule(!0),this.primaryFallback(r));break}case Ht.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 zue=500;class XLt extends DG{constructor(t,n,r){super(t,n,r,"subtitle-stream-controller",rr.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(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ee.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Ee.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.on(Ee.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.on(Ee.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.on(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ee.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Ee.SUBTITLE_TRACK_SWITCH,this.onSubtitleTrackSwitch,this),t.off(Ee.SUBTITLE_TRACK_LOADED,this.onSubtitleTrackLoaded,this),t.off(Ee.SUBTITLE_FRAG_PROCESSED,this.onSubtitleFragProcessed,this),t.off(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this)}startLoad(t,n){this.stopLoad(),this.state=an.IDLE,this.setInterval(zue),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 w_(r));return}this.tracksBuffered=[],this.levels=n.map(r=>{const o=new w_(r);return this.tracksBuffered[o.id]=[],o}),this.fragmentTracker.removeFragmentsInRange(0,Number.POSITIVE_INFINITY,rr.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(zue)}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 v=p.fragments[0];if(!c.details)s.hasProgramDateTime&&p.hasProgramDateTime?($T(s,p),d=s.fragmentStart):v&&(d=v.start,Hz(s,d));else{var h;d=this.alignPlaylists(s,c.details,(h=this.levelLastLoaded)==null?void 0:h.details),d===0&&v&&(d=v.start,Hz(s,d))}p&&!this.startFragRequested&&this.setStartPosition(p,d)}c.details=s,this.levelLastLoaded=c,l===o&&(this.hls.trigger(Ee.SUBTITLE_TRACK_UPDATED,{details:s,id:l,groupId:n.groupId}),this.tick(),s.live&&!this.fragCurrent&&this.media&&this.state===an.IDLE&&(jm(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&&yy(o.method)){const s=performance.now();this.decrypter.decrypt(new Uint8Array(r),o.key.buffer,o.iv.buffer,IG(o.method)).catch(l=>{throw a.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.FRAG_DECRYPT_ERROR,fatal:!1,error:l,reason:l.message,frag:n}),l}).then(l=>{const c=performance.now();a.trigger(Ee.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=Vr.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,v=p.length,g=d.edge;let y=null;const S=this.fragPrevious;if(lg-x?0:x;y=jm(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 JLt={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},Z2e=e=>String.fromCharCode(JLt[e]||e),bd=15,dh=100,QLt={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},e7t={17:2,18:4,21:6,22:8,23:10,19:13,20:15},t7t={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},n7t={25:2,26:4,29:6,30:8,31:10,27:13,28:15},r7t=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];class i7t{constructor(){this.time=null,this.verboseLevel=0}log(t,n){if(this.verboseLevel>=t){const r=typeof n=="function"?n():n;po.log(`${this.time} [${t}] ${r}`)}}}const jv=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=Z2e(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 = "+To(t));let n=t.row-1;if(this.nrRollUpRows&&n"bkgData = "+To(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 Uue{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[bd-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[bd-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: "+To(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 Hue{constructor(t,n,r){this.channels=void 0,this.currentChannel=0,this.cmdHistory=l7t(),this.logger=void 0;const o=this.logger=new i7t;this.channels=[null,new Uue(t,n,o),new Uue(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"["+jv([n[r],n[r+1]])+"] -> ("+jv([o,a])+")");const c=this.cmdHistory;if(o>=16&&o<=31){if(a7t(o,a,c)){TC(null,null,c),this.logger.log(3,()=>"Repeated command ("+jv([o,a])+") is dropped");continue}TC(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 TC(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 "+jv([o,a])+" orig: "+jv([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 ("+jv([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?QLt[t]:t7t[t]:r=s===1?e7t[t]:n7t[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 '"+Z2e(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 = "+jv(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=r7t[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=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"positionAlign",a({},p,{get:function(){return P},set:function(L){const B=o(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");P=B,this.hasBeenReset=!0}})),Object.defineProperty(h,"size",a({},p,{get:function(){return M},set:function(L){if(L<0||L>100)throw new Error("Size must be between 0 and 100.");M=L,this.hasBeenReset=!0}})),Object.defineProperty(h,"align",a({},p,{get:function(){return O},set:function(L){const B=o(L);if(!B)throw new SyntaxError("An invalid or illegal string was specified.");O=B,this.hasBeenReset=!0}})),h.displayState=void 0}return s.prototype.getCueAsHTML=function(){return self.WebVTT.convertCueToDOMTree(self,this.text)},s})();class u7t{decode(t,n){if(!t)return"";if(typeof t!="string")throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}function Q2e(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 c7t=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 e4e(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 Jz=new UG(0,0,""),AC=Jz.align==="middle"?"middle":"center";function d7t(e,t,n){const r=e;function o(){const l=Q2e(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 c7t;e4e(l,function(v,g){let y;switch(v){case"region":for(let S=n.length-1;S>=0;S--)if(n[S].id===g){d.set(v,n[S].region);break}break;case"vertical":d.alt(v,g,["rl","lr"]);break;case"line":y=g.split(","),d.integer(v,y[0]),d.percent(v,y[0])&&d.set("snapToLines",!1),d.alt(v,y[0],["auto"]),y.length===2&&d.alt("lineAlign",y[1],["start",AC,"end"]);break;case"position":y=g.split(","),d.percent(v,y[0]),y.length===2&&d.alt("positionAlign",y[1],["start",AC,"end","line-left","line-right","auto"]);break;case"size":d.percent(v,g);break;case"align":d.alt(v,g,["start",AC,"end","left","right"]);break}},/:/,/\s/),c.region=d.get("region",null),c.vertical=d.get("vertical","");let h=d.get("line","auto");h==="auto"&&Jz.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",AC);let p=d.get("position","auto");p==="auto"&&Jz.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 t4e(e){return e.replace(//gi,` `)}class f7t{constructor(){this.state="INITIAL",this.buffer="",this.decoder=new u7t,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=t4e(a);s")===-1){n.cue.id=a;continue}case"CUE":if(!n.cue){n.state="BADCUE";continue}try{d7t(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 h7t=/\r\n|\n\r|\n|\r/g,KF=function(t,n,r=0){return t.slice(r,r+n.length)===n},p7t=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(!jn(n)||!jn(r)||!jn(o)||!jn(a))throw Error(`Malformed X-TIMESTAMP-MAP: Local:${t}`);return n+=1e3*r,n+=60*1e3*o,n+=3600*1e3*a,n};function HG(e,t,n){return Pb(e.toString())+Pb(t.toString())+Pb(n)}const v7t=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 m7t(e,t,n,r,o,a,s){const l=new f7t,c=cc(new Uint8Array(e)).trim().replace(h7t,` `).split(` `),d=[],h=t?kIt(t.baseTime,t.timescale):0;let p="00:00.000",v=0,g=0,y,S=!0;l.oncue=function(k){const C=n[r];let x=n.ccOffset;const E=(v-h)/9e4;if(C!=null&&C.new&&(g!==void 0?x=n.ccOffset=C.start:v7t(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=tc((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=HG(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:")&&(v=parseInt(C.slice(7)))});try{g=p7t(p)/1e3}catch(C){y=C}return}else k===""&&(S=!1);l.parse(k+` `)}),l.flush()}const qF="stpp.ttml.im1t",n4e=/^(\d{2,}):(\d{2}):(\d{2}):(\d{2})\.?(\d+)?$/,r4e=/^(\d*(?:\.\d*)?)(h|m|s|ms|f|t)$/,g7t={left:"start",center:"center",right:"end",start:"start",end:"end"};function Wue(e,t,n,r){const o=pi(new Uint8Array(e),["mdat"]);if(o.length===0){r(new Error("Could not parse IMSC1 mdat"));return}const a=o.map(l=>cc(l)),s=SIt(t.baseTime,1,t.timescale);try{a.forEach(l=>n(y7t(l,s)))}catch(l){r(l)}}function y7t(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,v)=>(p[v]=o.getAttribute(`ttp:${v}`)||a[v],p),{}),l=o.getAttribute("xml:space")!=="preserve",c=Gue(YF(o,"styling","style")),d=Gue(YF(o,"layout","region")),h=YF(o,"body","[begin]");return[].map.call(h,p=>{const v=i4e(p,l);if(!v||!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 Kue(p);if(S===null){if(y===null)throw Kue(p);S=g+y}const k=new UG(g-t,S-t,v);k.id=HG(k.startTime,k.endTime,k.text);const C=d[p.getAttribute("region")],x=c[p.getAttribute("style")],E=b7t(C,x,c),{textAlign:_}=E;if(_){const T=g7t[_];T&&(k.lineAlign=T),k.align=_}return bo(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 Gue(e){return e.reduce((t,n)=>{const r=n.getAttribute("xml:id");return r&&(t[r]=n),t},{})}function i4e(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?i4e(r,t):t?n+r.textContent.trim().replace(/\s+/g," "):n+r.textContent},"")}function b7t(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 Kue(e){return new Error(`Could not parse ttml timestamp ${e}`)}function ZF(e,t){if(!e)return null;let n=Q2e(e);return n===null&&(n4e.test(e)?n=_7t(e,t):r4e.test(e)&&(n=S7t(e,t))),n}function _7t(e,t){const n=n4e.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 S7t(e,t){const n=r4e.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 IC{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 k7t{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=Yue(),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(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ee.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.on(Ee.FRAG_LOADING,this.onFragLoading,this),t.on(Ee.FRAG_LOADED,this.onFragLoaded,this),t.on(Ee.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.on(Ee.FRAG_DECRYPTED,this.onFragDecrypted,this),t.on(Ee.INIT_PTS_FOUND,this.onInitPtsFound,this),t.on(Ee.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.on(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this)}destroy(){const{hls:t}=this;t.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ee.SUBTITLE_TRACKS_UPDATED,this.onSubtitleTracksUpdated,this),t.off(Ee.FRAG_LOADING,this.onFragLoading,this),t.off(Ee.FRAG_LOADED,this.onFragLoaded,this),t.off(Ee.FRAG_PARSING_USERDATA,this.onFragParsingUserdata,this),t.off(Ee.FRAG_DECRYPTED,this.onFragDecrypted,this),t.off(Ee.INIT_PTS_FOUND,this.onInitPtsFound,this),t.off(Ee.SUBTITLE_TRACKS_CLEARED,this.onSubtitleTracksCleared,this),t.off(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),this.hls=this.config=this.media=null,this.cea608Parser1=this.cea608Parser2=void 0}initCea608Parsers(){const t=new IC(this,"textTrack1"),n=new IC(this,"textTrack2"),r=new IC(this,"textTrack3"),o=new IC(this,"textTrack4");this.cea608Parser1=new Hue(1,t,n),this.cea608Parser2=new Hue(3,r,o)}addCues(t,n,r,o,a){let s=!1;for(let l=a.length;l--;){const c=a[l],d=x7t(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(Ee.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===rr.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(Ee.FRAG_LOADED,c):this.hls.trigger(Ee.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{Y1(o[a]),delete o[a]}),this.nonNativeCaptionsTracks={}}onManifestLoading(){this.lastCc=-1,this.lastSn=-1,this.lastPartIndex=-1,this.prevCC=-1,this.vttCCs=Yue(),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(O2e(this.tracks,r)){this.tracks=r;return}if(this.textTracks=[],this.tracks=r,this.config.renderTextTracksNatively){const s=this.media,l=s?r8(s.textTracks):null;if(this.tracks.forEach((c,d)=>{let h;if(l){let p=null;for(let v=0;vd!==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(Ee.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===rr.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===rr.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(Ee.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:new Error("Empty subtitle payload")})}_parseIMSC1(t,n){const r=this.hls;Wue(n,this.initPTS[t.cc],o=>{this._appendCues(o,t.level),r.trigger(Ee.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})},o=>{r.logger.log(`Failed to parse IMSC1: ${o}`),r.trigger(Ee.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?Qc(r.initSegment.data,new Uint8Array(o)).buffer:o;m7t(d,this.initPTS[r.cc],this.vttCCs,r.cc,r.start,h=>{this._appendCues(h,r.level),c.trigger(Ee.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(Ee.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:r,error:h})})}_fallbackToIMSC1(t,n){const r=this.tracks[t.level];r.textCodec||Wue(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=>Y2e(o,a))}else{const o=this.tracks[n];if(!o)return;const a=o.default?"default":"subtitles"+n;r.trigger(Ee.CUES_PARSED,{type:"subtitles",cues:t,track:a})}}onFragDecrypted(t,n){const{frag:r}=n;r.type===rr.SUBTITLE&&this.onFragLoaded(Ee.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===rr.MAIN&&this.closedCaptionsForLevel(r)==="NONE"))for(let a=0;aZz(l[c],n,r))}if(this.config.renderTextTracksNatively&&n===0&&o!==void 0){const{textTracks:l}=this;Object.keys(l).forEach(c=>Zz(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=t4e(d.trim()),y=HG(t,n,g);e!=null&&(p=e.cues)!=null&&p.getCueById(y)||(s=new h(t,n,g),s.id=y,s.line=v+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((v,g)=>v.line==="auto"||g.line==="auto"?0:v.line>8&&g.line>8?g.line-v.line:v.line-g.line),o.forEach(v=>Y2e(e,v))),o}};function E7t(){if(self.fetch&&self.AbortController&&self.ReadableStream&&self.Request)try{return new self.ReadableStream({}),!0}catch{}return!1}const T7t=/(\d+)-(\d+)\/(\d+)/;class Xue{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||D7t,this.controller=new self.AbortController,this.stats=new kG}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=A7t(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&&jn(c)?c:d,this.requestTimeout=self.setTimeout(()=>{this.callbacks&&(this.abortInternal(),this.callbacks.onTimeout(o,t,this.response))},n.timeout),(A_(this.request)?this.request.then(self.fetch):self.fetch(this.request)).then(p=>{var v;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 P7t(k||"fetch, bad network response",S,p)}o.loading.first=g,o.total=L7t(p.headers)||o.total;const y=(v=this.callbacks)==null?void 0:v.onProgress;return y&&jn(n.highWaterMark)?this.loadProgressively(p,o,t,n.highWaterMark,y):s?p.arrayBuffer():t.responseType==="json"?p.json():p.text()}).then(p=>{var v,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=(v=this.callbacks)==null?void 0:v.onProgress;C&&!jn(n.highWaterMark)&&C(o,t,p,y),(g=this.callbacks)==null||g.onSuccess(k,o,t,y)}).catch(p=>{var v;if(self.clearTimeout(this.requestTimeout),o.aborted)return;const g=p&&p.code||0,y=p?p.message:null;(v=this.callbacks)==null||v.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 v2e,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 A7t(e,t){const n={method:"GET",mode:"cors",credentials:"same-origin",signal:t,headers:new self.Headers(bo({},e.headers))};return e.rangeEnd&&n.headers.set("Range","bytes="+e.rangeStart+"-"+String(e.rangeEnd-1)),n}function I7t(e){const t=T7t.exec(e);if(t)return parseInt(t[2])-parseInt(t[1])+1}function L7t(e){const t=e.get("Content-Range");if(t){const r=I7t(t);if(jn(r))return r}const n=e.get("Content-Length");if(n)return parseInt(n)}function D7t(e,t){return new self.Request(e.url,t)}class P7t extends Error{constructor(t,n,r){super(t),this.code=void 0,this.details=void 0,this.code=n,this.details=r}}const R7t=/^age:\s*[\d.]+\s*$/im;class s4e{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 kG,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&&jn(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,v=r.retry,g={url:t.url,data:void 0,code:d};if(RT(p,v,!1,g))this.retry(p);else{var c;po.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(RT(t,n,!0))this.retry(t);else{var r;po.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=EG(t,r.retry),r.retry++,po.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&&R7t.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 M7t={maxTimeToFirstByteMs:8e3,maxLoadTimeMs:2e4,timeoutRetry:null,errorRetry:null},O7t=fo(fo({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:s4e,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,licenseResponseCallback:void 0,abrController:K5t,bufferController:BIt,capLevelController:jG,errorController:J5t,fpsController:NLt,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:i2e,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:M7t},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},$7t()),{},{subtitleStreamController:XLt,subtitleTrackController:VLt,timelineController:k7t,audioStreamController:RIt,audioTrackController:MIt,emeController:by,cmcdController:MLt,contentSteeringController:$Lt,interstitialsController:YLt});function $7t(){return{cueHandler:w7t,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 B7t(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=Qz(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}`,v=t[p];if(v!==void 0&&c){d.push(p);const g=r[l].default;switch(t[l]={default:g},h){case"TimeOut":g.maxLoadTimeMs=v,g.maxTimeToFirstByteMs=v;break;case"MaxRetry":g.errorRetry.maxNumRetry=v,g.timeoutRetry.maxNumRetry=v;break;case"RetryDelay":g.errorRetry.retryDelayMs=v,g.timeoutRetry.retryDelayMs=v;break;case"MaxRetryTimeout":g.errorRetry.maxRetryDelayMs=v,g.timeoutRetry.maxRetryDelayMs=v;break}}}),d.length&&n.warn(`hls.js config: "${d.join('", "')}" setting(s) are deprecated, use "${l}": ${To(t[l])}`)}),fo(fo({},r),t)}function Qz(e){return e&&typeof e=="object"?Array.isArray(e)?e.map(Qz):Object.keys(e).reduce((t,n)=>(t[n]=Qz(e[n]),t),{}):e}function N7t(e,t){const n=e.loader;n!==Xue&&n!==s4e?(t.log("[config]: Custom loader detected, cannot enable progressive streaming"),e.progressive=!1):E7t()&&(e.loader=Xue,e.progressive=!0,e.enableSoftwareAES=!0,t.log("[config]: Progressive streaming enabled, using FetchLoader"))}const i8=2,F7t=.1,j7t=.05,V7t=100;class z7t extends Q3e{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(Ee.MEDIA_ENDED,{stalled:!1})}},this.hls=t,this.fragmentTracker=n,this.registerListeners()}registerListeners(){const{hls:t}=this;t&&(t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.BUFFER_APPENDED,this.onBufferAppended,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.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(V7t),this.mediaSource=n.mediaSource;const r=this.media=n.media;ql(r,"playing",this.onMediaPlaying),ql(r,"waiting",this.onMediaWaiting),ql(r,"ended",this.onMediaEnded)}onMediaDetaching(t,n){this.clearInterval();const{media:r}=this;r&&(wu(r,"playing",this.onMediaPlaying),wu(r,"waiting",this.onMediaWaiting),wu(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(Ee.MEDIA_ENDED,{stalled:!1}));return}if(!Vr.getBuffered(s).length){this.nudgeRetry=0;return}const p=Vr.bufferInfo(s,t,0),v=p.nextStart||0,g=this.fragmentTracker;if(l&&g&&this.hls){const D=Zue(this.hls.inFlightFragments,t),P=p.len>i8,M=!v||D||v-t>i8&&!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)&&!v)return;const P=Math.max(v,p.start||0)-t,O=!!(y!=null&&y.live)?y.targetduration*2:i8,L=LC(t,g);if(P>0&&(P<=O||L)){s.paused||this._trySkipBufferHole(L);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(Ee.MEDIA_ENDED,{stalled:!0});return}if(this._reportStall(p),!this.media||!this.hls)return}const T=Vr.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(Ee.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=Vr.bufferedInfo(Vr.timeRangesToArray(this.buffered.audio),t,0);if(a.len>1&&n>=a.start){const s=Vr.timeRangesToArray(o),l=Vr.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 v=LC(t,this.fragmentTracker);v&&"fragment"in v?v=v.fragment:v||(v=void 0);const g=Vr.bufferInfo(this.media,t,0);this.hls.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.BUFFER_SEEK_OVER_HOLE,fatal:!1,error:p,reason:p.message,frag:v,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=LC(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,rr.MAIN),s=r.getFragAtPos(o,rr.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 (${To(t)})`);this.warn(s.message),n.trigger(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.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=Vr.bufferInfo(o,s,0),c=s0&&l.len<1&&o.readyState<3,v=c-s;if(v>0&&(h||p)){if(v>a.maxBufferHole){let y=!1;if(s===0){const S=r.getAppendedFrag(0,rr.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,To(o?fo({type:o},r):r))}return a}const DC=(()=>{const e=eU();try{e&&new e(0,Number.POSITIVE_INFINITY,"")}catch{return Number.MAX_VALUE}return Number.POSITIVE_INFINITY})();class H7t{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(Ee.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(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.on(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.on(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.on(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ee.LEVEL_PTS_UPDATED,this.onLevelPtsUpdated,this))}_unregisterListeners(){const{hls:t}=this;t&&(t.off(Ee.MEDIA_ATTACHING,this.onMediaAttaching,this),t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.FRAG_PARSING_METADATA,this.onFragParsingMetadata,this),t.off(Ee.BUFFER_FLUSHING,this.onBufferFlushing,this),t.off(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ee.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&&Y1(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;nDC&&(p=DC),p-h<=0&&(p=h+U7t);for(let g=0;gh.type===ic.audioId3&&c:o==="video"?d=h=>h.type===ic.emsg&&l:d=h=>h.type===ic.audioId3&&c||h.type===ic.emsg&&l,Zz(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=eU();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 v;if((v=c.cues)!=null&&v.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||!jn(y?.programDateTime))){this.id3Track||(this.id3Track=this.createTrack(this.media));for(let S=0;S{if(j!==C.id){const W=d[j];if(W.class===C.class&&W.startDate>C.startDate&&(!B||C.startDate.01&&(j.startTime=x,j.endTime=D);else if(l){let W=C.attr[B];fAt(B)&&(W=R3e(W));const K=JF(l,x,D,{key:B,data:W},ic.dateRange);K&&(K.id=k,this.id3Track.addCue(K),_[B]=K,s&&(B==="X-ASSET-LIST"||B==="X-ASSET-URL")&&K.addEventListener("enter",this.onEventCueEnter))}}p[k]={cues:_,dateRange:C,durationKnown:T}}}}}class W7t{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)),v=Math.round(2/(1+Math.exp(-.75*c-this.edgeStalled))*20)/20,g=Math.min(p,Math.max(1,v));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(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.on(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.on(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.on(Ee.ERROR,this.onError,this))}unregisterListeners(){const{hls:t}=this;t&&(t.off(Ee.MEDIA_ATTACHED,this.onMediaAttached,this),t.off(Ee.MEDIA_DETACHING,this.onMediaDetaching,this),t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.LEVEL_UPDATED,this.onLevelUpdated,this),t.off(Ee.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===Ht.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 G7t extends FG{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(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.on(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ee.FRAG_BUFFERED,this.onFragBuffered,this),t.on(Ee.ERROR,this.onError,this)}_unregisterListeners(){const{hls:t}=this;t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.MANIFEST_LOADED,this.onManifestLoaded,this),t.off(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ee.FRAG_BUFFERED,this.onFragBuffered,this),t.off(Ee.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:v,videoCodec:g}=h;v&&(h.audioCodec=v=IT(v,r)||void 0),g&&(g=h.videoCodec=A5t(g));const{width:y,height:S,unknownCodecs:k}=h,C=k?.length||0;if(l||(l=!!(y&&S)),c||(c=!!g),d||(d=!!v),C||v&&!this.isAudioSupported(v)||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,O=`${`${T||"."}-`}${h.bitrate}-${D}-${E}-${x}-${P}-${_}`;if(a[O])if(a[O].uri!==h.url&&!h.attrs["PATHWAY-ID"]){const L=s[O]+=1;h.attrs["PATHWAY-ID"]=new Array(L+1).join(".");const B=this.createLevel(h);a[O]=B,o.push(B)}else a[O].addGroupId("audio",p.AUDIO),a[O].addGroupId("text",p.SUBTITLES);else{const L=this.createLevel(h);a[O]=L,s[O]=1,o.push(L)}}),this.filterAndSortMediaOptions(o,n,l,c,d)}createLevel(t){const n=new w_(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=W3e(o,[])}return n}isAudioSupported(t){return x_(t,"audio",this.hls.config.preferManagedMediaSource)}isVideoSupported(t){return x_(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))&&N5t(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: ${To(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(Ee.ERROR,{type:dr.MEDIA_ERROR,details:Ht.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 LT.indexOf(x.videoRange)-LT.indexOf(E.videoRange);if(x.videoCodec!==E.videoCodec){const _=Hle(x.videoCodec),T=Hle(E.videoCodec);if(_!==T)return T-_}if(x.uri===E.uri&&x.codecSet!==E.codecSet){const _=AT(x.codecSet),T=AT(E.codecSet);if(_!==T)return T-_}return x.averageBitrate!==E.averageBitrate?x.averageBitrate-E.averageBitrate:0});let v=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(Ee.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(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.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(Ee.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===ki.LEVEL&&n.context.level===this.level&&this.checkRetry(n)}onFragBuffered(t,{frag:n}){if(n!==void 0&&n.type===rr.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(Ee.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));f2e(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(Ee.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(Ee.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 a4e(){return self.SourceBuffer||self.WebKitSourceBuffer}function l4e(){if(!P0())return!1;const t=a4e();return!t||t.prototype&&typeof t.prototype.appendBuffer=="function"&&typeof t.prototype.remove=="function"}function K7t(){if(!l4e())return!1;const e=P0();return typeof e?.isTypeSupported=="function"&&(["avc1.42E01E,mp4a.40.2","av01.0.01M.08","vp09.00.50.08"].some(t=>e.isTypeSupported(C_(t,"video")))||["mp4a.40.2","fLaC"].some(t=>e.isTypeSupported(C_(t,"audio"))))}function q7t(){var e;const t=a4e();return typeof(t==null||(e=t.prototype)==null?void 0:e.changeType)=="function"}const Y7t=100;class X7t extends DG{constructor(t,n,r){super(t,n,r,"stream-controller",rr.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||!jn(a)||(this.log(`Media seeked to ${a.toFixed(3)}`),!this.getBufferedFrag(a)))return;const s=this.getFwdBufferInfoAtPos(o,a,rr.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(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.on(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.on(Ee.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.on(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.on(Ee.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.on(Ee.BUFFER_CREATED,this.onBufferCreated,this),t.on(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.on(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.on(Ee.FRAG_BUFFERED,this.onFragBuffered,this)}unregisterListeners(){super.unregisterListeners();const{hls:t}=this;t.off(Ee.MANIFEST_PARSED,this.onManifestParsed,this),t.off(Ee.LEVEL_LOADED,this.onLevelLoaded,this),t.off(Ee.FRAG_LOAD_EMERGENCY_ABORTED,this.onFragLoadEmergencyAborted,this),t.off(Ee.AUDIO_TRACK_SWITCHING,this.onAudioTrackSwitching,this),t.off(Ee.AUDIO_TRACK_SWITCHED,this.onAudioTrackSwitched,this),t.off(Ee.BUFFER_CREATED,this.onBufferCreated,this),t.off(Ee.BUFFER_FLUSHED,this.onBufferFlushed,this),t.off(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this),t.off(Ee.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(Y7t),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(Ee.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 v=this.backtrackFragment?this.backtrackFragment.start:l.end;let g=this.getNextFragment(v,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,v)){if(!g.gap){const k=this.audioOnly&&!this.altAudio?Eo.AUDIO:Eo.VIDEO,C=(k===Eo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;C&&this.afterBufferFlushed(C,k,rr.MAIN)}g=this.getNextFragmentLoopLoading(g,d,l,rr.MAIN,p)}g&&(g.initSegment&&!g.initSegment.data&&!this.bitrateTest&&(g=g.initSegment),this.loadFragment(g,s,v))}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,rr.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(Ee.AUDIO_TRACK_SWITCHED,n)}),r.trigger(Ee.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:null});return}r.trigger(Ee.AUDIO_TRACK_SWITCHED,n)}}onAudioTrackSwitched(t,n){const r=DT(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===rr.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&&Vr.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 Ht.FRAG_GAP:case Ht.FRAG_PARSING_ERROR:case Ht.FRAG_DECRYPT_ERROR:case Ht.FRAG_LOAD_ERROR:case Ht.FRAG_LOAD_TIMEOUT:case Ht.KEY_LOAD_ERROR:case Ht.KEY_LOAD_TIMEOUT:this.onFragmentOrKeyLoadError(rr.MAIN,n);break;case Ht.LEVEL_LOAD_ERROR:case Ht.LEVEL_LOAD_TIMEOUT:case Ht.LEVEL_PARSING_ERROR:!n.levelRetry&&this.state===an.WAITING_LEVEL&&((r=n.context)==null?void 0:r.type)===ki.LEVEL&&(this.state=an.IDLE);break;case Ht.BUFFER_ADD_CODEC_ERROR:case Ht.BUFFER_APPEND_ERROR:if(n.parent!=="main")return;this.reduceLengthAndFlushBuffer(n)&&this.resetLoadingState();break;case Ht.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 Ht.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!==Eo.AUDIO||!this.altAudio){const r=(n===Eo.VIDEO?this.videoBuffer:this.mediaBuffer)||this.media;r&&(this.afterBufferFlushed(r,n,rr.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(Ee.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:v,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(Ee.FRAG_PARSING_INIT_SEGMENT,{frag:_,id:n,tracks:k})}const C=g.initPTS,x=g.timescale,E=this.initPTS[l.cc];if(jn(C)&&(!E||E.baseTime!==C||E.timescale!==x)){const _=g.trackId;this.initPTS[l.cc]={baseTime:C,timescale:x,trackId:_},r.trigger(Ee.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,O=h.firstKeyFramePTS?h.firstKeyFramePTS:E;if(!C&&Mi8&&(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[Eo.AUDIO]={startPTS:k,endPTS:C,startDTS:x,endDTS:E}),l.setElementaryStreamInfo(Eo.AUDIO,k,C,x,E),this.bufferFragmentData(S,l,c,a)}if(y&&v!=null&&v.samples.length){const k={id:n,frag:l,details:y,samples:v.samples};r.trigger(Ee.FRAG_PARSING_METADATA,k)}if(y&&p){const k={id:n,frag:l,details:y,samples:p.samples};r.trigger(Ee.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=ZE(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 v=a.metadata;v&&"channelCount"in v&&(v.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=rr.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=rr.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(Ee.BUFFER_CODECS,n),!this.hls)return;c.forEach(d=>{const p=n[d].initSegment;p!=null&&p.byteLength&&this.hls.trigger(Ee.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,rr.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(Vr.isBuffered(t,r)?n=this.getAppendedFrag(r):Vr.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(Ee.FRAG_CHANGED,{frag:n}),(!o||o.level!==a)&&this.hls.trigger(Ee.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 jn(n)?this.getAppendedFrag(n):null}get currentProgramDateTime(){var t;const n=((t=this.media)==null?void 0:t.currentTime)||this.lastCurrentTime;if(jn(n)){const r=this.getLevelDetails(),o=this.currentFrag||(r?jm(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 Z7t extends rd{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=Ht.KEY_LOAD_ERROR,r,o,a){return new mh({type:dr.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=QE(l);if(c)return this.emeController.getKeySystemAccess([c])})}if(this.config.requireKeySystemAccessOnStart){const o=F4(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,Ht.KEY_LOAD_ERROR,d))}const s=a.uri;if(!s)return Promise.reject(this.createKeyLoadError(t,Ht.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,Ht.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=m5t(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,km.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:(v,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,Ht.KEY_LOAD_ERROR,new Error("after key load, decryptdata unset or changed"),S));C.decryptdata.key=k.decryptdata.key=new Uint8Array(v.data),k.keyLoader=null,C.loader=null,s({frag:k,keyInfo:C})},onError:(v,g,y,S)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ht.KEY_LOAD_ERROR,new Error(`HTTP Error ${v.code} loading key ${v.text}`),y,fo({url:c.url,data:void 0},v)))},onTimeout:(v,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ht.KEY_LOAD_TIMEOUT,new Error("key loading timed out"),y))},onAbort:(v,g,y)=>{this.resetLoader(g),l(this.createKeyLoadError(n,Ht.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 ece(e){const{type:t}=e;switch(t){case ki.AUDIO_TRACK:return rr.AUDIO;case ki.SUBTITLE_TRACK:return rr.SUBTITLE;default:return rr.MAIN}}function ej(e,t){let n=e.url;return(n===void 0||n.indexOf("data:")===0)&&(n=t.url),n}class J7t{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(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.on(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.on(Ee.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.on(Ee.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.on(Ee.LEVELS_UPDATED,this.onLevelsUpdated,this)}unregisterListeners(){const{hls:t}=this;t.off(Ee.MANIFEST_LOADING,this.onManifestLoading,this),t.off(Ee.LEVEL_LOADING,this.onLevelLoading,this),t.off(Ee.AUDIO_TRACK_LOADING,this.onAudioTrackLoading,this),t.off(Ee.SUBTITLE_TRACK_LOADING,this.onSubtitleTrackLoading,this),t.off(Ee.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:ki.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:ki.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:ki.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:ki.SUBTITLE_TRACK,url:a,deliveryDirectives:s,levelOrTrack:l})}onLevelsUpdated(t,n){const r=this.loaders[ki.LEVEL];if(r){const o=r.context;o&&!n.levels.some(a=>a===o.levelOrTrack)&&(r.abort(),delete this.loaders[ki.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===ki.MANIFEST?a=r.manifestLoadPolicy.default:a=bo({},r.playlistLoadPolicy.default,{timeoutRetry:null,errorRetry:null}),o=this.createInternalLoader(t),jn((n=t.deliveryDirectives)==null?void 0:n.part)){let d;if(t.type===ki.LEVEL&&t.level!==null?d=this.hls.levels[t.level].details:t.type===ki.AUDIO_TRACK&&t.id!==null?d=this.hls.audioTracks[t.id].details:t.type===ki.SUBTITLE_TRACK&&t.id!==null&&(d=this.hls.subtitleTracks[t.id].details),d){const h=d.partTarget,p=d.targetduration;if(h&&p){const v=Math.max(h*3,p*.8)*1e3;a=bo({},a,{maxTimeToFirstByteMs:Math.min(v,a.maxTimeToFirstByteMs),maxLoadTimeMs:Math.min(v,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,v)=>{const g=this.getInternalLoader(p);this.resetInternalLoader(p.type);const y=d.data;h.parsing.start=performance.now(),mf.isMediaPlaylist(y)||p.type!==ki.MANIFEST?this.handleTrackOrLevelPlaylist(d,h,p,v||null,g):this.handleMasterPlaylist(d,h,p,v)},onError:(d,h,p,v)=>{this.handleNetworkError(h,p,!1,d,v)},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=mf.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:v,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];x_(M,"audio",_)?(x.audioCodec=T=T?`${T},${M}`:M,Uy.audio[T.substring(0,4)]=2,E.splice(P,1)):x_(M,"video",_)&&(x.videoCodec=D=D?`${D},${M}`:M,Uy.video[D.substring(0,4)]=2,E.splice(P,1))}}});const{AUDIO:S=[],SUBTITLES:k,"CLOSED-CAPTIONS":C}=mf.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(Ee.MANIFEST_LOADED,{levels:h,audioTracks:S,subtitles:k,captions:C,contentSteering:d,url:l,stats:n,networkDetails:o,sessionData:p,sessionKeys:v,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=jn(c)?c:jn(l)?l:0,v=ece(r),g=mf.parseLevelPlaylist(t.data,h,p,v,0,this.variableList);if(d===ki.MANIFEST){const y={attrs:new os({}),bitrate:0,details:g,name:"",url:h};g.requestScheduled=n.loading.start+u2e(g,0),s.trigger(Ee.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(Ee.ERROR,{type:dr.NETWORK_ERROR,details:Ht.MANIFEST_PARSING_ERROR,fatal:n.type===ki.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===ki.LEVEL?s+=`: ${t.level} id: ${t.id}`:(t.type===ki.AUDIO_TRACK||t.type===ki.SUBTITLE_TRACK)&&(s+=` id: ${t.id} group-id: "${t.groupId}"`);const l=new Error(s);this.hls.logger.warn(`[playlist-loader]: ${s}`);let c=Ht.UNKNOWN,d=!1;const h=this.getInternalLoader(t);switch(t.type){case ki.MANIFEST:c=r?Ht.MANIFEST_LOAD_TIMEOUT:Ht.MANIFEST_LOAD_ERROR,d=!0;break;case ki.LEVEL:c=r?Ht.LEVEL_LOAD_TIMEOUT:Ht.LEVEL_LOAD_ERROR,d=!1;break;case ki.AUDIO_TRACK:c=r?Ht.AUDIO_TRACK_LOAD_TIMEOUT:Ht.AUDIO_TRACK_LOAD_ERROR,d=!1;break;case ki.SUBTITLE_TRACK:c=r?Ht.SUBTITLE_TRACK_LOAD_TIMEOUT:Ht.SUBTITLE_LOAD_ERROR,d=!1;break}h&&this.resetInternalLoader(t.type);const p={type:dr.NETWORK_ERROR,details:c,fatal:d,url:t.url,loader:h,context:t,error:l,networkDetails:n,stats:a};if(o){const v=n?.url||t.url;p.response=fo({url:v,data:void 0},o)}this.hls.trigger(Ee.ERROR,p)}handlePlaylistLoaded(t,n,r,o,a,s){const l=this.hls,{type:c,level:d,levelOrTrack:h,id:p,groupId:v,deliveryDirectives:g}=o,y=ej(n,o),S=ece(o);let k=typeof o.level=="number"&&S===rr.MAIN?d:void 0;const C=t.playlistParsingError;if(C){if(this.hls.logger.warn(`${C} ${t.url}`),!l.config.ignorePlaylistParsingErrors){l.trigger(Ee.ERROR,{type:dr.NETWORK_ERROR,details:Ht.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(Ee.ERROR,{type:dr.NETWORK_ERROR,details:Ht.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 ki.MANIFEST:case ki.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(Ee.LEVEL_LOADED,{details:t,levelInfo:h||l.levels[0],level:k||0,id:p||0,stats:r,networkDetails:a,deliveryDirectives:g,withoutMultiVariant:c===ki.MANIFEST});break;case ki.AUDIO_TRACK:l.trigger(Ee.AUDIO_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:v||"",stats:r,networkDetails:a,deliveryDirectives:g});break;case ki.SUBTITLE_TRACK:l.trigger(Ee.SUBTITLE_TRACK_LOADED,{details:t,track:h,id:p||0,groupId:v||"",stats:r,networkDetails:a,deliveryDirectives:g});break}}}class ku{static get version(){return E_}static isMSESupported(){return l4e()}static isSupported(){return K7t()}static getMediaSource(){return P0()}static get Events(){return Ee}static get MetadataSchema(){return ic}static get ErrorTypes(){return dr}static get ErrorDetails(){return Ht}static get DefaultConfig(){return ku.defaultConfig?ku.defaultConfig:O7t}static set DefaultConfig(t){ku.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 PG,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=i5t(t.debug||!1,"Hls instance",t.assetPlayerId),r=this.config=B7t(ku.DefaultConfig,t,n);this.userConfig=t,r.progressive&&N7t(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 Q5t(this),v=r.interstitialsController,g=v?this.interstitialsController=new v(this,ku):null,y=this.bufferController=new a(this,p),S=this.capLevelController=new s(this),k=new c(this),C=new J7t(this),x=r.contentSteeringController,E=x?new x(this):null,_=this.levelController=new G7t(this,E),T=new H7t(this),D=new Z7t(this.config,this.logger),P=this.streamController=new X7t(this,p,D),M=this.gapController=new z7t(this,p);S.setStreamController(P),k.setStreamController(P);const O=[C,_,P];g&&O.splice(1,0,g),E&&O.splice(1,0,E),this.networkControllers=O;const L=[h,y,M,S,k,T,p];this.audioTrackController=this.createController(r.audioTrackController,O);const B=r.audioStreamController;B&&O.push(this.audioStreamController=new B(this,p,D)),this.subtitleTrackController=this.createController(r.subtitleTrackController,O);const j=r.subtitleStreamController;j&&O.push(this.subtititleStreamController=new j(this,p,D)),this.createController(r.timelineController,L),D.emeController=this.emeController=this.createController(r.emeController,L),this.cmcdController=this.createController(r.cmcdController,L),this.latencyController=this.createController(W7t,L),this.coreComponents=L,O.push(d);const W=d.onErrorOut;typeof W=="function"&&this.on(Ee.ERROR,W,d),this.on(Ee.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===Ee.ERROR;this.trigger(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.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(Ee.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(Ee.ERROR,{type:dr.OTHER_ERROR,details:Ht.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(Ee.MEDIA_ATTACHING,o)}detachMedia(){this.logger.log("detachMedia"),this.trigger(Ee.MEDIA_DETACHING,{}),this._media=null}transferMedia(){this._media=null;const t=this.bufferController.transferMedia();return this.trigger(Ee.MEDIA_DETACHING,{transferMedia:t}),t}loadSource(t){this.stopLoad();const n=this.media,r=this._url,o=this._url=SG.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(Ee.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={[rr.MAIN]:this.streamController.inFlightFrag};return this.audioStreamController&&(t[rr.AUDIO]=this.audioStreamController.inFlightFrag),this.subtititleStreamController&&(t[rr.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=zLt()),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){B5t(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=q3e(n);return G3e(t,r,navigator.mediaCapabilities)}}ku.defaultConfig=void 0;const Q7t={class:"player-header"},eDt={class:"player-controls"},tDt={class:"compact-button-group"},nDt={key:3,class:"compact-btn selector-btn"},rDt={key:0,style:{color:"#ff4d4f","font-size":"10px"}},iDt={class:"compact-btn selector-btn"},oDt={key:4,class:"compact-btn selector-btn"},sDt={class:"compact-btn selector-btn"},aDt={__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=_G(),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(O=>O.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=TT();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("🚀 [自动解析] 触发默认解析器解析"),Cn(()=>{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"&&v()};return bn(()=>{v(),n.showParserSelector&&k(),window.addEventListener("storage",x),window.addEventListener("addressSettingsChanged",v)}),Rt(()=>n.showParserSelector,E=>{E&&k()}),gi(()=>{window.removeEventListener("storage",x),window.removeEventListener("addressSettingsChanged",v)}),(E,_)=>{const T=Ie("a-option"),D=Ie("a-select");return z(),Q("div",Q7t,[I("h3",null,"正在播放: "+je(e.episodeName),1),I("div",eDt,[I("div",tDt,[e.showDebugButton?(z(),Q("div",{key:0,class:"compact-btn debug-btn",onClick:_[0]||(_[0]=P=>E.$emit("toggle-debug")),title:"调试信息"},[..._[8]||(_[8]=[xh('调试',2)])])):Le("",!0),e.showAutoNext&&e.episodes.length>1?(z(),Q("div",{key:1,class:ue(["compact-btn",{active:e.autoNextEnabled}]),onClick:_[1]||(_[1]=P=>E.$emit("toggle-auto-next"))},[..._[9]||(_[9]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M8 5v14l11-7z",fill:"currentColor"})],-1),I("span",{class:"btn-text"},"自动连播",-1)])],2)):Le("",!0),I("div",{class:ue(["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?(z(),Q("div",{key:2,class:ue(["compact-btn",{active:e.countdownEnabled}]),onClick:_[3]||(_[3]=P=>E.$emit("toggle-countdown"))},[..._[11]||(_[11]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("polyline",{points:"12,6 12,12 16,14",stroke:"currentColor","stroke-width":"2"})],-1),I("span",{class:"btn-text"},"倒计时",-1)])],2)):Le("",!0),e.showParserSelector?(z(),Q("div",nDt,[_[12]||(_[12]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$(D,{"model-value":l.value,onChange:C,class:"compact-select",size:"small",loading:d.value,disabled:!c.value.length},{default:de(()=>[(z(!0),Q(Bt,null,vn(c.value,P=>(z(),qe(T,{key:P.id,value:P.id,title:`${P.name} (${P.type==="1"?"JSON":"嗅探"})`,disabled:P.type==="0"&&!h.value},{default:de(()=>[Ue(" 解析:"+je(P.name)+" ",1),P.type==="0"&&!h.value?(z(),Q("span",rDt," (需嗅探器) ")):Le("",!0)]),_:2},1032,["value","title","disabled"]))),128))]),_:1},8,["model-value","loading","disabled"])])):Le("",!0),I("div",iDt,[_[14]||(_[14]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("path",{d:"M12 2L2 7l10 5 10-5-10-5z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 17l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}),I("path",{d:"M2 12l10 5 10-5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})],-1)),$(D,{"model-value":o.value,onChange:S,class:"compact-select",size:"small"},{default:de(()=>[$(T,{value:"disabled",title:"关闭代理播放功能"},{default:de(()=>[..._[13]||(_[13]=[Ue("代理播放:关闭",-1)])]),_:1}),(z(!0),Q(Bt,null,vn(a.value,P=>(z(),qe(T,{key:P.value,value:P.value,title:`${P.label} 完整链接: ${P.url||P.value}`},{default:de(()=>[Ue(" 代理播放:"+je(P.label),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])]),e.qualities&&e.qualities.length>1?(z(),Q("div",oDt,[_[15]||(_[15]=xh('HD',1)),$(D,{"model-value":e.currentQuality,onChange:_[4]||(_[4]=P=>E.$emit("quality-change",P)),class:"compact-select",size:"small"},{default:de(()=>[(z(!0),Q(Bt,null,vn(e.qualities,P=>(z(),qe(T,{key:P.name,value:P.name,title:`切换到${P.name}画质`},{default:de(()=>[Ue(" 画质:"+je(P.name),1)]),_:2},1032,["value","title"]))),128))]),_:1},8,["model-value"])])):Le("",!0),I("div",sDt,[_[18]||(_[18]=I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("circle",{cx:"8.5",cy:"8.5",r:"1.5",fill:"currentColor"}),I("path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",stroke:"currentColor","stroke-width":"2"})],-1)),$(D,{"model-value":e.playerType,onChange:_[5]||(_[5]=P=>E.$emit("player-change",P)),class:"compact-select",size:"small"},{default:de(()=>[$(T,{value:"default",title:"使用浏览器默认的HTML5视频播放器"},{default:de(()=>[..._[16]||(_[16]=[Ue("默认播放器",-1)])]),_:1}),$(T,{value:"artplayer",title:"使用ArtPlayer播放器,支持更多功能和自定义选项"},{default:de(()=>[..._[17]||(_[17]=[Ue("ArtPlayer",-1)])]),_:1})]),_:1},8,["model-value"])]),I("div",{class:ue(["compact-btn",{active:e.skipEnabled}]),onClick:_[6]||(_[6]=P=>E.$emit("open-skip-settings"))},[..._[19]||(_[19]=[xh('片头片尾',2)])],2),I("div",{class:"compact-btn close-btn",onClick:_[7]||(_[7]=P=>E.$emit("close"))},[..._[20]||(_[20]=[I("svg",{class:"btn-icon",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1),I("span",{class:"btn-text"},"关闭",-1)])])])])])}}},u4e=kr(aDt,[["__scopeId","data-v-a0946e8b"]]),lDt={class:"dialog-header"},uDt={class:"dialog-content"},cDt={class:"setting-row"},dDt={class:"setting-control"},fDt={key:1,class:"unit"},hDt={class:"setting-row"},pDt={class:"setting-control"},vDt={key:1,class:"unit"},mDt={class:"dialog-footer"},gDt={__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);Rt(()=>n.skipIntroEnabled,h=>{o.value=h}),Rt(()=>n.skipOutroEnabled,h=>{a.value=h}),Rt(()=>n.skipIntroSeconds,h=>{s.value=h}),Rt(()=>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 v=Ie("a-switch"),g=Ie("a-input-number"),y=Ie("a-button");return e.visible?(z(),Q("div",{key:0,class:"skip-settings-overlay",onClick:c},[I("div",{class:"skip-settings-dialog",onClick:p[6]||(p[6]=us(()=>{},["stop"]))},[I("div",lDt,[p[8]||(p[8]=I("h3",null,"片头片尾设置",-1)),I("button",{class:"close-btn",onClick:p[0]||(p[0]=S=>h.$emit("close"))},[...p[7]||(p[7]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),I("div",uDt,[I("div",cDt,[p[9]||(p[9]=I("div",{class:"setting-label"},[I("span",null,"跳过片头"),I("div",{class:"setting-hint"},"自动跳过视频开头的片头部分")],-1)),I("div",dDt,[$(v,{modelValue:o.value,"onUpdate:modelValue":p[1]||(p[1]=S=>o.value=S),size:"small"},null,8,["modelValue"]),o.value?(z(),qe(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"])):Le("",!0),o.value?(z(),Q("span",fDt,"秒")):Le("",!0)])]),I("div",hDt,[p[10]||(p[10]=I("div",{class:"setting-label"},[I("span",null,"跳过片尾"),I("div",{class:"setting-hint"},"在视频结束前自动跳转到下一集")],-1)),I("div",pDt,[$(v,{modelValue:a.value,"onUpdate:modelValue":p[3]||(p[3]=S=>a.value=S),size:"small"},null,8,["modelValue"]),a.value?(z(),qe(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"])):Le("",!0),a.value?(z(),Q("span",vDt,"秒")):Le("",!0)])]),p[11]||(p[11]=I("div",{class:"setting-hint-global"},[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("path",{d:"m9 12 2 2 4-4",stroke:"currentColor","stroke-width":"2"})]),Ue(" 设置将自动保存并应用到所有播放器 ")],-1))]),I("div",mDt,[$(y,{onClick:p[5]||(p[5]=S=>h.$emit("close")),size:"small"},{default:de(()=>[...p[12]||(p[12]=[Ue(" 取消 ",-1)])]),_:1}),$(y,{type:"primary",onClick:d,size:"small"},{default:de(()=>[...p[13]||(p[13]=[Ue(" 保存 ",-1)])]),_:1})])])])):Le("",!0)}}},c4e=kr(gDt,[["__scopeId","data-v-c8c7504a"]]),yDt={class:"dialog-header"},bDt={class:"dialog-content"},_Dt={class:"info-section"},SDt={class:"section-header"},kDt=["disabled"],xDt={class:"info-content"},CDt={class:"url-display"},wDt={key:0,class:"info-section"},EDt={class:"section-header"},TDt={class:"section-actions"},ADt=["disabled"],IDt=["disabled"],LDt=["disabled"],DDt={class:"info-content"},PDt={class:"url-display proxy-url"},RDt={class:"info-section"},MDt={class:"section-header"},ODt=["disabled"],$Dt={class:"info-content"},BDt={class:"headers-display"},NDt={key:0,class:"no-data"},FDt={key:1,class:"headers-text"},jDt={class:"info-section"},VDt={class:"info-content"},zDt={class:"format-info"},UDt={class:"format-value"},HDt={class:"info-section"},WDt={class:"info-content"},GDt={class:"player-info"},KDt={class:"player-value"},qDt={__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){xt.warning(`${p}为空,无法复制`);return}try{await navigator.clipboard.writeText(h),xt.success(`${p}已复制到剪贴板`)}catch(v){console.error("复制失败:",v),xt.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){xt.warning("视频链接为空,无法调起VLC播放器");return}try{const p=`vlc://${h}`,v=document.createElement("iframe");v.style.display="none",v.src=p,document.body.appendChild(v),setTimeout(()=>{document.body.removeChild(v)},1e3),xt.success("正在尝试调起VLC播放器..."),console.log("调起VLC播放器:",p)}catch(p){console.error("调起VLC播放器失败:",p),xt.error("调起VLC播放器失败,请确保已安装VLC播放器")}},d=h=>{if(!h){xt.warning("视频链接为空,无法调起MPV播放器");return}try{const p=`mpv://${h}`,v=document.createElement("iframe");v.style.display="none",v.src=p,document.body.appendChild(v),setTimeout(()=>{document.body.removeChild(v)},1e3),xt.success("正在尝试调起MPV播放器..."),console.log("调起MPV播放器:",p)}catch(p){console.error("调起MPV播放器失败:",p),xt.error("调起MPV播放器失败,请确保已安装MPV播放器")}};return(h,p)=>e.visible?(z(),Q("div",{key:0,class:"debug-info-overlay",onClick:a},[I("div",{class:"debug-info-dialog",onClick:p[6]||(p[6]=us(()=>{},["stop"]))},[I("div",yDt,[p[8]||(p[8]=I("h3",null,"🔧 视频调试信息",-1)),I("button",{class:"close-btn",onClick:p[0]||(p[0]=v=>h.$emit("close"))},[...p[7]||(p[7]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("line",{x1:"18",y1:"6",x2:"6",y2:"18",stroke:"currentColor","stroke-width":"2"}),I("line",{x1:"6",y1:"6",x2:"18",y2:"18",stroke:"currentColor","stroke-width":"2"})],-1)])])]),I("div",bDt,[I("div",_Dt,[I("div",SDt,[p[10]||(p[10]=I("h4",null,"📹 视频直链",-1)),I("button",{class:"copy-btn",onClick:p[1]||(p[1]=v=>s(e.videoUrl,"视频直链")),disabled:!e.videoUrl},[...p[9]||(p[9]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("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),Ue(" 复制 ",-1)])],8,kDt)]),I("div",xDt,[I("div",CDt,je(e.videoUrl||"暂无视频链接"),1)])]),e.proxyUrl&&e.proxyUrl!==e.videoUrl?(z(),Q("div",wDt,[I("div",EDt,[p[14]||(p[14]=I("h4",null,"🔄 代理后链接",-1)),I("div",TDt,[I("button",{class:"copy-btn",onClick:p[2]||(p[2]=v=>s(e.proxyUrl,"代理后链接")),disabled:!e.proxyUrl},[...p[11]||(p[11]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("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),Ue(" 复制 ",-1)])],8,ADt),I("button",{class:"external-player-btn vlc-btn",onClick:p[3]||(p[3]=v=>c(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用VLC播放器打开"},[...p[12]||(p[12]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("polygon",{points:"5,3 19,12 5,21",fill:"currentColor"})],-1),Ue(" VLC ",-1)])],8,IDt),I("button",{class:"external-player-btn mpv-btn",onClick:p[4]||(p[4]=v=>d(e.proxyUrl)),disabled:!e.proxyUrl,title:"使用MPV播放器打开"},[...p[13]||(p[13]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("circle",{cx:"12",cy:"12",r:"10",stroke:"currentColor","stroke-width":"2"}),I("polygon",{points:"10,8 16,12 10,16",fill:"currentColor"})],-1),Ue(" MPV ",-1)])],8,LDt)])]),I("div",DDt,[I("div",PDt,je(e.proxyUrl),1)])])):Le("",!0),I("div",RDt,[I("div",MDt,[p[16]||(p[16]=I("h4",null,"📋 请求头信息",-1)),I("button",{class:"copy-btn",onClick:p[5]||(p[5]=v=>s(o.value,"请求头信息")),disabled:!o.value},[...p[15]||(p[15]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("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),Ue(" 复制 ",-1)])],8,ODt)]),I("div",$Dt,[I("div",BDt,[o.value?(z(),Q("pre",FDt,je(o.value),1)):(z(),Q("div",NDt,"暂无请求头信息"))])])]),I("div",jDt,[p[18]||(p[18]=I("div",{class:"section-header"},[I("h4",null,"🎬 视频格式")],-1)),I("div",VDt,[I("div",zDt,[p[17]||(p[17]=I("span",{class:"format-label"},"检测格式:",-1)),I("span",UDt,je(e.detectedFormat||"未知"),1)])])]),I("div",HDt,[p[20]||(p[20]=I("div",{class:"section-header"},[I("h4",null,"⚙️ 播放器信息")],-1)),I("div",WDt,[I("div",GDt,[p[19]||(p[19]=I("span",{class:"player-label"},"当前播放器:",-1)),I("span",KDt,je(e.playerType==="artplayer"?"ArtPlayer":"默认播放器"),1)])])]),I("div",{class:"action-section"},[I("button",{class:"copy-all-btn",onClick:l},[...p[21]||(p[21]=[I("svg",{viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},[I("rect",{x:"9",y:"9",width:"13",height:"13",rx:"2",ry:"2",stroke:"currentColor","stroke-width":"2"}),I("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),Ue(" 复制所有调试信息 ",-1)])])])])])])):Le("",!0)}},d4e=kr(qDt,[["__scopeId","data-v-d9075ed4"]]);function f4e(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),v=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 ee=localStorage.getItem(E);if(console.log("从 localStorage 加载设置:",ee),ee){const re=JSON.parse(ee);s.value=re.skipIntroEnabled||!1,l.value=re.skipOutroEnabled||!1,c.value=re.skipIntroSeconds||90,d.value=re.skipOutroSeconds||90,console.log("加载的设置:",{skipIntroEnabled:s.value,skipOutroEnabled:l.value,skipIntroSeconds:c.value,skipOutroSeconds:d.value})}else console.log("没有找到保存的设置,使用默认值")}catch(ee){console.warn("加载片头片尾设置失败:",ee)}},T=ee=>{try{s.value=ee.skipIntroEnabled,l.value=ee.skipOutroEnabled,c.value=ee.skipIntroSeconds,d.value=ee.skipOutroSeconds;const re={skipIntroEnabled:ee.skipIntroEnabled,skipOutroEnabled:ee.skipOutroEnabled,skipIntroSeconds:ee.skipIntroSeconds,skipOutroSeconds:ee.skipOutroSeconds};localStorage.setItem(E,JSON.stringify(re)),O()}catch(re){console.warn("保存片头片尾设置失败:",re)}},D=()=>{if(!s.value||h.value)return!1;const ee=n(),re=Date.now();return y.value||S.value>0&&re-S.value<3e3||k.value||C.value>0&&re-C.value<2e3?!1:ee<=1&&ee<=c.value?(console.log(`立即跳过片头:从 ${ee.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=re,!0):!1},P=()=>{if(!s.value||h.value)return;const ee=n(),re=Date.now();y.value||S.value>0&&re-S.value<3e3||k.value||C.value>0&&re-C.value<2e3||g.value>0&&re-g.value<1e3||ee<=c.value&&(console.log(`已跳过片头:从 ${ee.toFixed(1)}s 跳转到 ${c.value}s`),r(c.value),h.value=!0,g.value=re)},M=()=>{if(!l.value||p.value)return;const ee=o();if(ee<=0)return;const re=n(),ae=ee-d.value,ie=Date.now();ie-g.value<2e3||re>=ae&&re{D()||P(),M()};let L=null;const B=()=>{L&&clearTimeout(L),L=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,v.value&&(clearTimeout(v.value),v.value=null)},W=()=>{y.value=!0,console.log("用户开始拖动进度条")},H=()=>{y.value=!1,S.value=Date.now(),console.log("用户结束拖动进度条")},K=()=>{k.value=!0,console.log("全屏状态开始变化")},Y=()=>{k.value=!1,C.value=Date.now(),console.log("全屏状态变化结束")},ne=()=>{j(),_()},X=()=>{a.value=!0},U=()=>{a.value=!1},q=()=>{v.value&&(clearTimeout(v.value),v.value=null)};return gi(()=>{q()}),{showSkipSettingsDialog:a,skipIntroEnabled:s,skipOutroEnabled:l,skipIntroSeconds:c,skipOutroSeconds:d,skipIntroApplied:h,skipOutroTimer:v,skipEnabled:x,loadSkipSettings:_,saveSkipSettings:T,applySkipSettings:O,applyIntroSkipImmediate:D,handleTimeUpdate:B,resetSkipState:j,initSkipSettings:ne,openSkipSettingsDialog:X,closeSkipSettingsDialog:U,cleanup:q,onUserSeekStart:W,onUserSeekEnd:H,onFullscreenChangeStart:K,onFullscreenChangeEnd:Y}}const qv={NO_REFERRER:"no-referrer",ORIGIN:"origin",SAME_ORIGIN:"same-origin",STRICT_ORIGIN_WHEN_CROSS_ORIGIN:"strict-origin-when-cross-origin",UNSAFE_URL:"unsafe-url"},h4e=[{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 WG(){const e=document.querySelector('meta[name="referrer"]');return e?e.getAttribute("content"):"default"}function L_(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 FT(e,t){e&&e.tagName==="VIDEO"&&(e.setAttribute("referrerpolicy",t),console.log(`已为视频元素设置referrer策略: ${t}`))}function YDt(e,t=null){const n=Oh();let r;return n.autoBypass?(r=n.referrerPolicy,console.log(`根据CSP配置设置referrer策略: ${r} (URL: ${e})`)):(r=WG()||qv.STRICT_ORIGIN_WHEN_CROSS_ORIGIN,console.log(`CSP绕过未启用,保持当前策略: ${r} (URL: ${e})`)),L_(r),t&&FT(t,r),r}const tce={referrerPolicy:qv.NO_REFERRER,autoBypass:!0,autoRetry:!0,retryPolicies:[qv.NO_REFERRER,qv.ORIGIN,qv.SAME_ORIGIN,qv.UNSAFE_URL]};function Oh(){const e=localStorage.getItem("csp_bypass_config");return e?{...tce,...JSON.parse(e)}:tce}function tU(e){localStorage.setItem("csp_bypass_config",JSON.stringify(e))}function GG(e,t){return Oh().autoBypass?YDt(e,t):WG()}var tj={exports:{}},nce;function XDt(){return nce||(nce=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(Oe){var Ye=typeof Oe;return Oe!==null&&(Ye==="object"||Ye==="function")}function h(Oe){return typeof Oe=="function"}var p=void 0;Array.isArray?p=Array.isArray:p=function(Oe){return Object.prototype.toString.call(Oe)==="[object Array]"};var v=p,g=0,y=void 0,S=void 0,k=function(Ye,dt){W[g]=Ye,W[g+1]=dt,g+=2,g===2&&(S?S(H):Y())};function C(Oe){S=Oe}function x(Oe){k=Oe}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(H)}}function O(){return typeof y<"u"?function(){y(H)}:j()}function L(){var Oe=0,Ye=new T(H),dt=document.createTextNode("");return Ye.observe(dt,{characterData:!0}),function(){dt.data=Oe=++Oe%2}}function B(){var Oe=new MessageChannel;return Oe.port1.onmessage=H,function(){return Oe.port2.postMessage(0)}}function j(){var Oe=setTimeout;return function(){return Oe(H,1)}}var W=new Array(1e3);function H(){for(var Oe=0;Oe0&&(ne=W[0]),ne instanceof Error)throw ne;var X=new Error("Unhandled error."+(ne?" ("+ne.message+")":""));throw X.context=ne,X}var U=Y[j];if(U===void 0)return!1;if(typeof U=="function")c(U,this,W);else for(var q=U.length,ee=T(U,q),H=0;H0&&ne.length>K&&!ne.warned){ne.warned=!0;var X=new Error("Possible EventEmitter memory leak detected. "+ne.length+" "+String(j)+" listeners added. Use emitter.setMaxListeners() to increase limit");X.name="MaxListenersExceededWarning",X.emitter=B,X.type=j,X.count=ne.length,h(X)}return B}v.prototype.addListener=function(j,W){return k(this,j,W,!1)},v.prototype.on=v.prototype.addListener,v.prototype.prependListener=function(j,W){return k(this,j,W,!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(B,j,W){var H={fired:!1,wrapFn:void 0,target:B,type:j,listener:W},K=C.bind(H);return K.listener=W,H.wrapFn=K,K}v.prototype.once=function(j,W){return y(W),this.on(j,x(this,j,W)),this},v.prototype.prependOnceListener=function(j,W){return y(W),this.prependListener(j,x(this,j,W)),this},v.prototype.removeListener=function(j,W){var H,K,Y,ne,X;if(y(W),K=this._events,K===void 0)return this;if(H=K[j],H===void 0)return this;if(H===W||H.listener===W)--this._eventsCount===0?this._events=Object.create(null):(delete K[j],K.removeListener&&this.emit("removeListener",j,H.listener||W));else if(typeof H!="function"){for(Y=-1,ne=H.length-1;ne>=0;ne--)if(H[ne]===W||H[ne].listener===W){X=H[ne].listener,Y=ne;break}if(Y<0)return this;Y===0?H.shift():D(H,Y),H.length===1&&(K[j]=H[0]),K.removeListener!==void 0&&this.emit("removeListener",j,X||W)}return this},v.prototype.off=v.prototype.removeListener,v.prototype.removeAllListeners=function(j){var W,H,K;if(H=this._events,H===void 0)return this;if(H.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):H[j]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete H[j]),this;if(arguments.length===0){var Y=Object.keys(H),ne;for(K=0;K=0;K--)this.removeListener(j,W[K]);return this};function E(B,j,W){var H=B._events;if(H===void 0)return[];var K=H[j];return K===void 0?[]:typeof K=="function"?W?[K.listener||K]:[K]:W?P(K):T(K,K.length)}v.prototype.listeners=function(j){return E(this,j,!0)},v.prototype.rawListeners=function(j){return E(this,j,!1)},v.listenerCount=function(B,j){return typeof B.listenerCount=="function"?B.listenerCount(j):_.call(B,j)},v.prototype.listenerCount=_;function _(B){var j=this._events;if(j!==void 0){var W=j[B];if(typeof W=="function")return 1;if(W!==void 0)return W.length}return 0}v.prototype.eventNames=function(){return this._eventsCount>0?d(this._events):[]};function T(B,j){for(var W=new Array(j),H=0;H0},!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]&&v0&&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"),v=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(),v.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(L){p.default.e(this.TAG,L.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(),v.default.safari){var O=this._lastInitSegments[E];O&&(this._pendingSegments[E].push(O),_.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 L=x-this._config.autoCleanupMinBackwardDuration;this._pendingRemoveRanges[E].push({start:M,end:L})}}else O0&&(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"),v=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=v()("./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"),v=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 O=this._mediaInfo.segments[D];if(O==null)this._pendingSeekTime=T,this._internalAbort(),this._remuxer.seek(),this._remuxer.insertDiscontinuity(),this._loadSegment(D);else{var M=O.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,O=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 L=this._mediaDataSource;L.duration!=null&&!isNaN(L.duration)&&(this._demuxer.overridedDuration=L.duration),typeof L.hasAudio=="boolean"&&(this._demuxer.overridedHasAudio=L.hasAudio),typeof L.hasVideo=="boolean"&&(this._demuxer.overridedHasVideo=L.hasVideo),this._demuxer.timestampBase=L.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),O=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"),O=0;return O},_.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"),v=c("./src/core/transmuxing-events.js"),g=function(y){var S=null,k=j.bind(this);h.default.install(),y.addEventListener("message",function(W){switch(W.data.cmd){case"init":S=new p.default(W.data.param[0],W.data.param[1]),S.on(v.default.IO_ERROR,O.bind(this)),S.on(v.default.DEMUX_ERROR,L.bind(this)),S.on(v.default.INIT_SEGMENT,C.bind(this)),S.on(v.default.MEDIA_SEGMENT,x.bind(this)),S.on(v.default.LOADING_COMPLETE,E.bind(this)),S.on(v.default.RECOVERED_EARLY_EOF,_.bind(this)),S.on(v.default.MEDIA_INFO,T.bind(this)),S.on(v.default.METADATA_ARRIVED,D.bind(this)),S.on(v.default.SCRIPTDATA_ARRIVED,P.bind(this)),S.on(v.default.STATISTICS_INFO,M.bind(this)),S.on(v.default.RECOMMEND_SEEKPOINT,B.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(W.data.param);break;case"pause":S.pause();break;case"resume":S.resume();break;case"logging_config":{var H=W.data.param;d.default.applyConfig(H),H.enableCallback===!0?d.default.addLogListener(k):d.default.removeLogListener(k);break}}});function C(W,H){var K={msg:v.default.INIT_SEGMENT,data:{type:W,data:H}};y.postMessage(K,[H.data])}function x(W,H){var K={msg:v.default.MEDIA_SEGMENT,data:{type:W,data:H}};y.postMessage(K,[H.data])}function E(){var W={msg:v.default.LOADING_COMPLETE};y.postMessage(W)}function _(){var W={msg:v.default.RECOVERED_EARLY_EOF};y.postMessage(W)}function T(W){var H={msg:v.default.MEDIA_INFO,data:W};y.postMessage(H)}function D(W){var H={msg:v.default.METADATA_ARRIVED,data:W};y.postMessage(H)}function P(W){var H={msg:v.default.SCRIPTDATA_ARRIVED,data:W};y.postMessage(H)}function M(W){var H={msg:v.default.STATISTICS_INFO,data:W};y.postMessage(H)}function O(W,H){y.postMessage({msg:v.default.IO_ERROR,data:{type:W,info:H}})}function L(W,H){y.postMessage({msg:v.default.DEMUX_ERROR,data:{type:W,info:H}})}function B(W){y.postMessage({msg:v.default.RECOMMEND_SEEKPOINT,data:W})}function j(W,H){y.postMessage({msg:"logcat_callback",data:{type:W,logcat:H}})}};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"),v=(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,!v),_;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,!v),_;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,!v),_=x.getInt16(8,!v);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,!v),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 O=0;for((x.getUint32(C-4,!v)&16777215)===9&&(O=3);E32)throw new d.InvalidArgumentException("ExpGolomb: readBits() bits exceeded max 32bits!");if(v<=this._current_word_bits_left){var g=this._current_word>>>32-v;return this._current_word<<=v,this._current_word_bits_left-=v,g}var y=this._current_word_bits_left?this._current_word:0;y=y>>>32-this._current_word_bits_left;var S=v-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<>>v)!==0)return this._current_word<<=v,this._current_word_bits_left-=v,v;return this._fillCurrentWord(),v+this._skipLeadingZero()},p.prototype.readUEG=function(){var v=this._skipLeadingZero();return this.readBits(v+1)-1},p.prototype.readSEG=function(){var v=this.readUEG();return v&1?v+1>>>1:-1*(v>>>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"),v=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 O=P.getUint8(0),L=P.getUint32(0,!T)&16777215;if(_+11+L+4>x.byteLength)break;if(O!==8&&O!==9&&O!==18){d.default.w(this.TAG,"Unsupported tag type "+O+", skipped"),_+=11+L+4;continue}var B=P.getUint8(4),j=P.getUint8(5),W=P.getUint8(6),H=P.getUint8(7),K=W|j<<8|B<<16|H<<24,Y=P.getUint32(7,!T)&16777215;Y!==0&&d.default.w(this.TAG,"Meet tag which has StreamID != 0!");var ne=_+11;switch(O){case 8:this._parseAudioData(x,ne,L,K);break;case 9:this._parseVideoData(x,ne,L,K,E+_);break;case 18:this._parseScriptData(x,ne,L);break}var X=P.getUint32(11+L,!T);X!==11+L&&d.default.w(this.TAG,"Invalid PrevTagSize "+X),_+=11+L+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 O=M/1e3;this._referenceFrameRate.fixed=!0,this._referenceFrameRate.fps=O,this._referenceFrameRate.fps_num=M,this._referenceFrameRate.fps_den=1e3,this._mediaInfo.fps=O}}if(typeof D.keyframes=="object"){this._mediaInfo.hasKeyframesIndex=!0;var L=D.keyframes;this._mediaInfo.keyframesIndex=this._parseKeyframesIndex(L),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(v.default.CODEC_UNSUPPORTED,"Flv: Unsupported audio codec idx: "+M);return}var O=0,L=(P&12)>>>2;if(L>=0&&L<=4)O=this._flvSoundRateTable[L];else{this._onError(v.default.FORMAT_ERROR,"Flv: Invalid audio sample rate idx: "+L);return}var B=P&1,j=this._audioMetadata,W=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=W.id,j.timescale=this._timescale,j.duration=this._duration,j.audioSampleRate=O,j.channelCount=B===0?1:2),M===10){var H=this._parseAACAudioData(x,E+1,_-1);if(H==null)return;if(H.packetType===0){j.config&&d.default.w(this.TAG,"Found another AudioSpecificConfig!");var K=H.data;j.audioSampleRate=K.samplingRate,j.channelCount=K.channelCount,j.codec=K.codec,j.originalCodec=K.originalCodec,j.config=K.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 Y=this._mediaInfo;Y.audioCodec=j.originalCodec,Y.audioSampleRate=j.audioSampleRate,Y.audioChannelCount=j.channelCount,Y.hasVideo?Y.videoCodec!=null&&(Y.mimeType='video/x-flv; codecs="'+Y.videoCodec+","+Y.audioCodec+'"'):Y.mimeType='video/x-flv; codecs="'+Y.audioCodec+'"',Y.isComplete()&&this._onMediaInfo(Y)}else if(H.packetType===1){var ne=this._timestampBase+T,X={unit:H.data,length:H.data.byteLength,dts:ne,pts:ne};W.samples.push(X),W.length+=H.data.length}else d.default.e(this.TAG,"Flv: Unsupported AAC data type "+H.packetType)}else if(M===2){if(!j.codec){var K=this._parseMP3AudioData(x,E+1,_-1,!0);if(K==null)return;j.audioSampleRate=K.samplingRate,j.channelCount=K.channelCount,j.codec=K.codec,j.originalCodec=K.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 Y=this._mediaInfo;Y.audioCodec=j.codec,Y.audioSampleRate=j.audioSampleRate,Y.audioChannelCount=j.channelCount,Y.audioDataRate=K.bitRate,Y.hasVideo?Y.videoCodec!=null&&(Y.mimeType='video/x-flv; codecs="'+Y.videoCodec+","+Y.audioCodec+'"'):Y.mimeType='video/x-flv; codecs="'+Y.audioCodec+'"',Y.isComplete()&&this._onMediaInfo(Y)}var U=this._parseMP3AudioData(x,E+1,_-1,!1);if(U==null)return;var ne=this._timestampBase+T,q={unit:U,length:U.byteLength,dts:ne,pts:ne};W.samples.push(q),W.length+=U.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,O=0,L=null;if(P=M=T[0]>>>3,O=(T[0]&7)<<1|T[1]>>>7,O<0||O>=this._mpegSamplingRates.length){this._onError(v.default.FORMAT_ERROR,"Flv: AAC invalid sampling frequency index!");return}var B=this._mpegSamplingRates[O],j=(T[1]&120)>>>3;if(j<0||j>=8){this._onError(v.default.FORMAT_ERROR,"Flv: AAC invalid channel configuration");return}P===5&&(L=(T[1]&7)<<1|T[2]>>>7,(T[2]&124)>>>2);var W=self.navigator.userAgent.toLowerCase();return W.indexOf("firefox")!==-1?O>=6?(P=5,D=new Array(4),L=O-3):(P=2,D=new Array(2),L=O):W.indexOf("android")!==-1?(P=2,D=new Array(2),L=O):(P=5,L=O,D=new Array(4),O>=6?L=O-3:j===1&&(P=2,D=new Array(2),L=O)),D[0]=P<<3,D[0]|=(O&15)>>>1,D[1]=(O&15)<<7,D[1]|=(j&15)<<3,P===5&&(D[1]|=(L&15)>>>1,D[2]=(L&1)<<7,D[2]|=8,D[3]=0),{config:D,samplingRate:B,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,O=(D[1]&6)>>1,L=(D[2]&240)>>>4,B=(D[2]&12)>>>2,j=D[3]>>>6&3,W=j!==3?2:1,H=0,K=0,Y="mp3";switch(M){case 0:H=this._mpegAudioV25SampleRateTable[B];break;case 2:H=this._mpegAudioV20SampleRateTable[B];break;case 3:H=this._mpegAudioV10SampleRateTable[B];break}switch(O){case 1:L>>4,O=P&15;if(O!==7){this._onError(v.default.CODEC_UNSUPPORTED,"Flv: Unsupported codec in video frame: "+O);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,O=new DataView(x,E,_),L=O.getUint8(0),B=O.getUint32(0,!M)&16777215,j=B<<8>>8;if(L===0)this._parseAVCDecoderConfigurationRecord(x,E+4,_-4);else if(L===1)this._parseAVCVideoData(x,E+4,_-4,T,D,P,j);else if(L!==2){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid video packet type "+L);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 O=M.getUint8(0),L=M.getUint8(1);if(M.getUint8(2),M.getUint8(3),O!==1||L===0){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord");return}if(this._naluLengthSize=(M.getUint8(4)&3)+1,this._naluLengthSize!==3&&this._naluLengthSize!==4){this._onError(v.default.FORMAT_ERROR,"Flv: Strange NaluLengthSizeMinusOne: "+(this._naluLengthSize-1));return}var B=M.getUint8(5)&31;if(B===0){this._onError(v.default.FORMAT_ERROR,"Flv: Invalid AVCDecoderConfigurationRecord: No SPS");return}else B>1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: SPS Count = "+B);for(var j=6,W=0;W1&&d.default.w(this.TAG,"Flv: Strange AVCDecoderConfigurationRecord: PPS Count = "+ie);j++;for(var W=0;W=_){d.default.w(this.TAG,"Malformed Nalu near timestamp "+K+", offset = "+W+", dataSize = "+_);break}var ne=L.getUint32(W,!O);if(H===3&&(ne>>>=8),ne>_-H){d.default.w(this.TAG,"Malformed Nalus near timestamp "+K+", NaluSize > DataSize!");return}var X=L.getUint8(W+H)&31;X===5&&(Y=!0);var U=new Uint8Array(x,E+W,H+ne),q={type:X,data:U};B.push(q),j+=U.byteLength,W+=H+ne}if(B.length){var ee=this._videoTrack,re={units:B,length:j,isKeyframe:Y,dts:K,cts:M,pts:K+M};Y&&(re.fileposition=D),ee.samples.push(re),ee.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(v){for(var g=v,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(v){var g=p._ebsp2rbsp(v),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&&ge<16?(q=_e[ge-1],ee=ze[ge-1]):ge===255&&(q=y.readByte()<<8|y.readByte(),ee=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 Qe=y.readBits(32),Je=y.readBits(32);ae=y.readBool(),ie=Je,ke=Qe*2,re=ie/ke}}var Te=1;(q!==1||ee!==1)&&(Te=q/ee);var ve=0,be=0;if(E===0)ve=1,be=2-H;else{var Me=E===3?1:2,He=E===1?2:1;ve=Me,be=He*(2-H)}var Xe=(j+1)*16,rt=(2-H)*((W+1)*16);Xe-=(K+Y)*ve,rt-=(ne+X)*be;var ft=Math.ceil(Xe*Te);return y.destroy(),y=null,{profile_string:C,level_string:x,bit_depth:D,ref_frames:B,chroma_format:_,chroma_format_string:p.getChromaFormatString(_),frame_rate:{fixed:ae,fps:re,fps_den:ke,fps_num:ie},sar_ratio:{width:q,height:ee},codec_size:{width:Xe,height:rt},present_size:{width:ft,height:rt}}},p._skipScalingList=function(v,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(O){if(x._requestAbort){x._status=h.LoaderStatus.kIdle,O.body.cancel();return}if(O.ok&&O.status>=200&&O.status<=299){if(O.url!==_.url&&x._onURLRedirect){var L=x._seekHandler.removeURLParameters(O.url);x._onURLRedirect(L)}var B=O.headers.get("Content-Length");return B!=null&&(x._contentLength=parseInt(B),x._contentLength!==0&&x._onContentLengthKnown&&x._onContentLengthKnown(x._contentLength)),x._pump.call(x,O.body.getReader())}else if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.HTTP_STATUS_CODE_INVALID,{code:O.status,msg:O.statusText});else throw new p.RuntimeException("FetchStreamLoader: Http code invalid, "+O.status+" "+O.statusText)}).catch(function(O){if(!(x._abortController&&x._abortController.signal.aborted))if(x._status=h.LoaderStatus.kError,x._onError)x._onError(h.LoaderErrors.EXCEPTION,{code:-1,msg:O.message});else throw O})},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(v.default.isSupported())this._loaderClass=v.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),O=new Uint8Array(P,0,D);O.set(M,0)}this._stashBuffer=P,this._bufferSize=D}},_.prototype._normalizeSpeed=function(T){var D=this._speedNormalizeList,P=D.length-1,M=0,O=0,L=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 H=this._stashBuffer.slice(0,this._stashUsed),L=this._dispatchChunks(H,this._stashByteStart);if(L0){var W=new Uint8Array(H,L);j.set(W,0),this._stashUsed=W.byteLength,this._stashByteStart+=L}}else this._stashUsed=0,this._stashByteStart+=L;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 L=this._dispatchChunks(T,D);if(Lthis._bufferSize&&(this._expandBuffer(B),j=new Uint8Array(this._stashBuffer,0,this._bufferSize)),j.set(new Uint8Array(T,L),0),this._stashUsed+=B,this._stashByteStart=D+L}}}else if(this._stashUsed===0){var L=this._dispatchChunks(T,D);if(Lthis._bufferSize&&this._expandBuffer(B);var j=new Uint8Array(this._stashBuffer,0,this._bufferSize);j.set(new Uint8Array(T,L),0),this._stashUsed+=B,this._stashByteStart=D+L}}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 L=this._dispatchChunks(this._stashBuffer.slice(0,this._stashUsed),this._stashByteStart);if(L0){var W=new Uint8Array(this._stashBuffer,L);j.set(W,0)}this._stashUsed-=L,this._stashByteStart+=L}}},_.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 O=new Uint8Array(this._stashBuffer,0,this._bufferSize),L=new Uint8Array(D,P);O.set(L,0),this._stashUsed=L.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?v:v+"?"+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,v){var g={};if(v.from!==0||v.to!==-1){var y=void 0;v.to!==-1?y="bytes="+v.from.toString()+"-"+v.to.toString():y="bytes="+v.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)}})(),v=(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=v}),"./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"),v=(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){v(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 v.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,O){P._msectl.appendInitSegment(O)}),this._transmuxer.on(S.default.MEDIA_SEGMENT,function(M,O){if(P._msectl.appendMediaSegment(O),P._config.lazyLoad&&!P._config.isLive){var L=P._mediaElement.currentTime;O.info.endDts>=(L+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,O){P._emitter.emit(g.default.ERROR,x.ErrorTypes.NETWORK_ERROR,M,O)}),this._transmuxer.on(S.default.DEMUX_ERROR,function(M,O){P._emitter.emit(g.default.ERROR,x.ErrorTypes.MEDIA_ERROR,M,{code:-1,msg:O})}),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,O=0,L=0;if(this._mediaElement.getVideoPlaybackQuality){var B=this._mediaElement.getVideoPlaybackQuality();O=B.totalVideoFrames,L=B.droppedVideoFrames}else this._mediaElement.webkitDecodedFrameCount!=null?(O=this._mediaElement.webkitDecodedFrameCount,L=this._mediaElement.webkitDroppedFrameCount):M=!1;return M&&(P.decodedFrames=O,P.droppedFrames=L),P},D.prototype._onmseUpdateEnd=function(){if(!(!this._config.lazyLoad||this._config.isLive)){for(var P=this._mediaElement.buffered,M=this._mediaElement.currentTime,O=0,L=0;L=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,O=!1,L=0;L=B&&P=j-this._config.lazyLoadRecoverDuration&&(O=!0);break}}O&&(window.clearInterval(this._progressChecker),this._progressChecker=null,O&&(p.default.v(this.TAG,"Continue loading from paused position"),this._transmuxer.resume()))},D.prototype._isTimepointBuffered=function(P){for(var M=this._mediaElement.buffered,O=0;O=L&&P0){var B=this._mediaElement.buffered.start(0);(B<1&&P0&&M.currentTime0){var L=O.start(0);if(L<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 v}});var d=c("./src/io/loader.js"),h=c("./src/demux/demux-errors.js"),p={NETWORK_ERROR:"NetworkError",MEDIA_ERROR:"MediaError",OTHER_ERROR:"OtherError"},v={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,v){if(p==="mp4a.40.2"){if(v===1)return new Uint8Array([0,200,0,128,35,128]);if(v===2)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(v===3)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(v===4)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(v===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(v===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(v===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(v===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(v===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 v=h.constants={};v.FTYP=new Uint8Array([105,115,111,109,0,0,0,1,105,115,111,109,97,118,99,49]),v.STSD_PREFIX=new Uint8Array([0,0,0,0,0,0,0,1]),v.STTS=new Uint8Array([0,0,0,0,0,0,0,0]),v.STSC=v.STCO=v.STTS,v.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),v.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]),v.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]),v.DREF=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),v.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),v.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])},h.box=function(p){for(var v=8,g=null,y=Array.prototype.slice.call(arguments,1),S=y.length,k=0;k>>24&255,g[1]=v>>>16&255,g[2]=v>>>8&255,g[3]=v&255,g.set(p,4);for(var C=8,k=0;k>>24&255,p>>>16&255,p>>>8&255,p&255,v>>>24&255,v>>>16&255,v>>>8&255,v&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 v=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,v>>>24&255,v>>>16&255,v>>>8&255,v&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 v=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,v>>>24&255,v>>>16&255,v>>>8&255,v&255,g>>>24&255,g>>>16&255,g>>>8&255,g&255,85,196,0,0]))},h.hdlr=function(p){var v=null;return p.type==="audio"?v=h.constants.HDLR_AUDIO:v=h.constants.HDLR_VIDEO,h.box(h.types.hdlr,v)},h.minf=function(p){var v=null;return p.type==="audio"?v=h.box(h.types.smhd,h.constants.SMHD):v=h.box(h.types.vmhd,h.constants.VMHD),h.box(h.types.minf,v,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 v=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 v},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 v=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,v,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 v=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,v,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 v=p.config||[],g=v.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(v).concat([6,1,2]));return h.box(h.types.esds,y)},h.avc1=function(p){var v=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,v))},h.mvex=function(p){return h.box(h.types.mvex,h.trex(p))},h.trex=function(p){var v=p.id,g=new Uint8Array([0,0,0,0,v>>>24&255,v>>>16&255,v>>>8&255,v&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,v){return h.box(h.types.moof,h.mfhd(p.sequenceNumber),h.traf(p,v))},h.mfhd=function(p){var v=new Uint8Array([0,0,0,0,p>>>24&255,p>>>16&255,p>>>8&255,p&255]);return h.box(h.types.mfhd,v)},h.traf=function(p,v){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,v>>>24&255,v>>>16&255,v>>>8&255,v&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 v=p.samples||[],g=v.length,y=new Uint8Array(4+g),S=0;S>>24&255,y>>>16&255,y>>>8&255,y&255,v>>>24&255,v>>>16&255,v>>>8&255,v&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"),v=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=!!(v.default.chrome&&(v.default.version.major<50||v.default.version.major===50&&v.default.version.build<2661)),this._fillSilentAfterSeek=v.default.msedge||v.default.msie,this._mp3UseMpegAudio=!v.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,O=this._audioMeta.codec==="mp3"&&this._mp3UseMpegAudio,L=this._dtsBaseInited&&this._audioNextDts===void 0,B=!1;if(!(!_||_.length===0)&&!(_.length===1&&!x)){var j=0,W=null,H=0;O?(j=0,H=E.length):(j=8,H=8+E.length);var K=null;if(_.length>1&&(K=_.pop(),H-=K.length),this._audioStashedLastSample!=null){var Y=this._audioStashedLastSample;this._audioStashedLastSample=null,_.unshift(Y),H+=Y.length}K!=null&&(this._audioStashedLastSample=K);var ne=_[0].dts-this._dtsBase;if(this._audioNextDts)T=ne-this._audioNextDts;else if(this._audioSegmentInfoList.isEmpty())T=0,this._fillSilentAfterSeek&&!this._videoSegmentInfoList.isEmpty()&&this._audioMeta.originalCodec!=="mp3"&&(B=!0);else{var X=this._audioSegmentInfoList.getLastSampleBefore(ne);if(X!=null){var U=ne-(X.originalDts+X.duration);U<=3&&(U=0);var q=X.dts+X.duration+U;T=ne-q}else T=0}if(B){var ee=ne-T,re=this._videoSegmentInfoList.getLastSegmentBefore(ne);if(re!=null&&re.beginDts=be*M&&this._fillAudioTimestampGap&&!v.default.safari){Qe=!0;var Me=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: "+ze+" ms, curRefDts: "+ve+" ms, ")+("dtsCorrection: "+Math.round(T)+" ms, generate: "+Me+" frames")),ie=Math.floor(ve),Te=Math.floor(ve+M)-ie;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=_e),Je=[];for(var He=0;He=1?Te=Fe[Fe.length-1].duration:Te=Math.floor(M);this._audioNextDts=ie+Te}D===-1&&(D=ie),Fe.push({dts:ie,pts:ie,cts:0,unit:Y.unit,size:Y.unit.byteLength,duration:Te,originalDts:ze,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0}}),Qe&&Fe.push.apply(Fe,Je)}}if(Fe.length===0){E.samples=[],E.length=0;return}O?W=new Uint8Array(H):(W=new Uint8Array(H),W[0]=H>>>24&255,W[1]=H>>>16&255,W[2]=H>>>8&255,W[3]=H&255,W.set(h.default.types.mdat,4));for(var ge=0;ge1&&(W=_.pop(),j-=W.length),this._videoStashedLastSample!=null){var H=this._videoStashedLastSample;this._videoStashedLastSample=null,_.unshift(H),j+=H.length}W!=null&&(this._videoStashedLastSample=W);var K=_[0].dts-this._dtsBase;if(this._videoNextDts)T=K-this._videoNextDts;else if(this._videoSegmentInfoList.isEmpty())T=0;else{var Y=this._videoSegmentInfoList.getLastSampleBefore(K);if(Y!=null){var ne=K-(Y.originalDts+Y.duration);ne<=3&&(ne=0);var X=Y.dts+Y.duration+ne;T=K-X}else T=0}for(var U=new g.MediaSegmentInfo,q=[],ee=0;ee<_.length;ee++){var H=_[ee],re=H.dts-this._dtsBase,ae=H.isKeyframe,ie=re-T,ke=H.cts,Fe=ie+ke;D===-1&&(D=ie,M=Fe);var ge=0;if(ee!==_.length-1){var _e=_[ee+1].dts-this._dtsBase-T;ge=_e-ie}else if(W!=null){var _e=W.dts-this._dtsBase-T;ge=_e-ie}else q.length>=1?ge=q[q.length-1].duration:ge=Math.floor(this._videoMeta.refSampleDuration);if(ae){var ze=new g.SampleInfo(ie,Fe,ge,H.dts,!0);ze.fileposition=H.fileposition,U.appendSyncPoint(ze)}q.push({dts:ie,pts:Fe,cts:ke,units:H.units,size:H.length,isKeyframe:ae,duration:ge,originalDts:re,flags:{isLeading:0,dependsOn:ae?2:1,isDependedOn:ae?1:0,hasRedundancy:0,isNonSync:ae?0:1}})}B=new Uint8Array(j),B[0]=j>>>24&255,B[1]=j>>>16&255,B[2]=j>>>8&255,B[3]=j&255,B.set(h.default.types.mdat,4);for(var ee=0;ee=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:v[5]||v[3]||v[1]||"",version:v[2]||v[4]||"0",majorVersion:v[4]||v[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 v},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),v=(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 v(){}return v.e=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","error",S),v.ENABLE_ERROR&&(console.error?console.error(S):console.warn?console.warn(S):console.log(S))},v.i=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","info",S),v.ENABLE_INFO&&(console.info?console.info(S):console.log(S))},v.w=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","warn",S),v.ENABLE_WARN&&(console.warn?console.warn(S):console.log(S))},v.d=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","debug",S),v.ENABLE_DEBUG&&(console.debug?console.debug(S):console.log(S))},v.v=function(g,y){(!g||v.FORCE_GLOBAL_TAG)&&(g=v.GLOBAL_TAG);var S="["+g+"] > "+y;v.ENABLE_CALLBACK&&v.emitter.emit("log","verbose",S),v.ENABLE_VERBOSE&&console.log(S)},v})();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"),v=(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})();v.emitter=new(h()),l.default=v}),"./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,v){return p.__proto__=v,p},Object.assign=Object.assign||function(p){if(p==null)throw new TypeError("Cannot convert undefined or null to object");for(var v=Object(p),g=1;g=128){v.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){v.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,v.push(String.fromCharCode(k>>>10|55296)),v.push(String.fromCharCode(k&1023|56320)),y+=4;continue}}}v.push("�"),++y}return v.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 ZDt=XDt();const nU=td(ZDt);var nj={};/* @license Shaka Player Copyright 2016 Google LLC SPDX-License-Identifier: Apache-2.0 */var rce;function JDt(){return rce||(rce=1,(function(e){(function(){var t=typeof window<"u"?window:aw,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}),v("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,N(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}}),v("WeakSet",function(i){function u(f){if(this.g=new WeakMap,f){f=_(f);for(var m;!(m=f.next()).done;)this.add(m.value)}}return(function(){if(!i||!Object.seal)return!1;try{var f=Object.seal({}),m=Object.seal({}),b=new i([f]);return!b.has(f)||b.has(m)?!1:(b.delete(f),b.add(m),!b.has(f)&&b.has(m))}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)}),v("Array.prototype.find",function(i){return i||function(u,f){return ge(this,u,f).v}}),v("String.prototype.startsWith",function(i){return i||function(u,f){var m=ze(this,u,"startsWith"),b=m.length,w=u.length;f=Math.max(0,Math.min(f|0,m.length));for(var A=0;A=w}}),v("Object.entries",function(i){return i||function(u){var f=[],m;for(m in u)Fe(u,m)&&f.push([m,u[m]]);return f}});var Qe=typeof Object.assign=="function"?Object.assign:function(i,u){for(var f=1;f1342177279)throw new RangeError("Invalid count value");u|=0;for(var m="";u;)u&1&&(m+=f),(u>>>=1)&&(f+=f);return m}}),v("Number.EPSILON",function(){return 2220446049250313e-31}),v("Number.MAX_SAFE_INTEGER",function(){return 9007199254740991}),v("Number.isFinite",function(i){return i||function(u){return typeof u!="number"?!1:!isNaN(u)&&u!==1/0&&u!==-1/0}}),v("Object.values",function(i){return i||function(u){var f=[],m;for(m in u)Fe(u,m)&&f.push(u[m]);return f}}),v("Math.log2",function(i){return i||function(u){return Math.log(u)/Math.LN2}}),v("String.prototype.endsWith",function(i){return i||function(u,f){var m=ze(this,u,"endsWith");f===void 0&&(f=m.length),f=Math.max(0,Math.min(f|0,m.length));for(var b=u.length;b>0&&f>0;)if(m[--f]!=u[--b])return!1;return b<=0}}),v("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 Je=this||self;function Te(i,u){i=i.split(".");var f=Je;i[0]in f||typeof f.execScript>"u"||f.execScript("var "+i[0]);for(var m;i.length&&(m=i.shift());)i.length||u===void 0?f[m]&&f[m]!==Object.prototype[m]?f=f[m]:f=f[m]={}:f[m]=u}function ve(i){this.g=Math.exp(Math.log(.5)/i),this.i=this.h=0}ve.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 be(i){return i.h/(1-Math.pow(i.g,i.i))}function Me(){this.h=new ve(2),this.j=new ve(5),this.g=0,this.i=128e3,this.l=16e3}Me.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)},Me.prototype.sample=function(i,u){if(!(u-1&&i.splice(u,1)}function sn(i,u,f){if(f||(f=Tt),i.length!=u.length)return!1;u=u.slice(),i=_(i);for(var m=i.next(),b={};!m.done;b={mi:void 0},m=i.next()){if(b.mi=m.value,m=u.findIndex((function(w){return function(A){return f(w.mi,A)}})(b)),m==-1)return!1;u[m]=u[u.length-1],u.pop()}return u.length==0}function ct(i,u,f){if(i===u)return!0;if(!i||!u)return i==u;if(f||(f=Tt),i.length!=u.length)return!1;for(var m=0;m0?m.i:m.h)(m.g,f,i,u)}function Qn(i,u,f,m){rt([f,"has been deprecated and will be removed in",u,". We are currently at version",i,". Additional information:",m].join(" "))}function mr(i,u,f,m){Xe([f,"has been deprecated and has been removed in",u,". We are now at version",i,". Additional information:",m].join(" "))}var yi=null;/* @license Copyright 2008 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */var Kt=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^/?#]*)@)?([^/#?]*?)(?::([0-9]+))?(?=[/#?]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#(.*))?$");/* @license Copyright 2006 The Closure Library Authors SPDX-License-Identifier: Apache-2.0 */function st(i){var u;i instanceof st?(zt(this,i.bc),this.hd=i.hd,fn(this,i.Db),on(this,i.Cd),this.Sb=i.Sb,pn(this,i.g.clone()),this.Rc=i.Rc):i&&(u=String(i).match(Kt))?(zt(this,u[1]||"",!0),this.hd=er(u[2]||""),fn(this,u[3]||"",!0),on(this,u[4]),this.Sb=er(u[5]||"",!0),pn(this,u[6]||"",!0),this.Rc=er(u[7]||"")):this.g=new oe(null)}l=st.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(Kr(u,Gt,!0),":"),u=this.Db){i.push("//");var f=this.hd;f&&i.push(Kr(f,Gt,!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(Kr(u,u.charAt(0)=="/"?gn:hn,!0))),(u=this.g.toString())&&i.push("?",u),(u=this.Rc)&&i.push("#",Kr(u,le)),i.join("")},l.resolve=function(i){var u=this.clone();u.bc==="data"&&(u=new st);var f=!!i.bc;f?zt(u,i.bc):f=!!i.hd,f?u.hd=i.hd:f=!!i.Db,f?fn(u,i.Db):f=i.Cd!=null;var m=i.Sb;if(f)on(u,i.Cd);else if(f=!!i.Sb){if(m.charAt(0)!="/")if(this.Db&&!this.Sb)m="/"+m;else{var b=u.Sb.lastIndexOf("/");b!=-1&&(m=u.Sb.substr(0,b+1)+m)}if(m==".."||m==".")m="";else if(m.indexOf("./")!=-1||m.indexOf("/.")!=-1){b=m.lastIndexOf("/",0)==0,m=m.split("/");for(var w=[],A=0;A1||w.length==1&&w[0]!="")&&w.pop(),b&&A==m.length&&w.push("")):(w.push(R),b=!0)}m=w.join("/")}}return f?u.Sb=m:f=i.g.toString()!=="",f?pn(u,i.g.clone()):f=!!i.Rc,f&&(u.Rc=i.Rc),u},l.clone=function(){return new st(this)};function zt(i,u,f){i.bc=f?er(u,!0):u,i.bc&&(i.bc=i.bc.replace(/:$/,""))}function fn(i,u,f){i.Db=f?er(u,!0):u}function on(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 pn(i,u,f){u instanceof oe?i.g=u:(f||(u=Kr(u,ln)),i.g=new oe(u))}function er(i,u){return i?u?decodeURI(i):decodeURIComponent(i):""}function Kr(i,u,f){return i!=null?(i=encodeURI(i).replace(u,wt),f&&(i=i.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),i):null}function wt(i){return i=i.charCodeAt(0),"%"+(i>>4&15).toString(16)+(i&15).toString(16)}var Gt=/[#\/\?@]/g,hn=/[#\?:]/g,gn=/[#\?]/g,ln=/[#\?@]/g,le=/#/g;function oe(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,m);b=u[f].substring(m+1)}else w=u[f];w=decodeURIComponent(w),b=b||"",i.add(w,decodeURIComponent(b))}}l=oe.prototype,l.eb=null,l.Sd=null;function J(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 m=f.value;f=encodeURIComponent(m),m=this.eb.get(m);for(var b=0;b=f+2&&(i[f]&224)==192&&(i[f+1]&192)==128?(m=(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?(m=(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&&(m=(i[f]&7)<<18|(i[f+1]&63)<<12|(i[f+2]&63)<<6|i[f+3]&63,f+=3),m<=65535)u+=String.fromCharCode(m);else{m-=65536;var b=m&1023;u+=String.fromCharCode(55296+(m>>10)),u+=String.fromCharCode(56320+b)}}return u}function Ot(i,u,f){if(!i)return"";if(!f&&i.byteLength%2!=0)throw new we(2,2,2004);f=Math.floor(i.byteLength/2);var m=new Uint16Array(f);i=it(i);for(var b=0;b=9&&f[m]<=126}if(!i)return"";var f=Re(i);if(f[0]==239&&f[1]==187&&f[2]==191)return at(f);if(f[0]==254&&f[1]==255)return Ot(f.subarray(2),!1);if(f[0]==255&&f[1]==254)return Ot(f.subarray(2),!0);if(f[0]==0&&f[2]==0)return Ot(i,!1);if(f[1]==0&&f[3]==0)return Ot(i,!0);if(u(0)&&u(1)&&u(2)&&u(3))return at(i);throw new we(2,2,2003)}function qt(i){if(o.TextEncoder&&!$e().rh()){var u=new TextEncoder;return Ce(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,m=RegExp(f.source);return i&&m.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||""}Te("shaka.util.StringUtils",nt),nt.resetFromCharCode=function(){fr.g=void 0},nt.toUTF16=yn,nt.toUTF8=qt,nt.fromBytesAutoDetect=Qt,nt.fromUTF16=Ot,nt.fromUTF8=at;var fr=new pt(function(){function i(f){try{var m=new Uint8Array(f);return String.fromCharCode.apply(null,m).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(m){for(var b="",w=0;w"u"&&rt("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,rn("LcevcDil","lcevc_dil.js is deprecated, please use lcevc_dec.js instead");else{rt("Could not find LCEVC Library on this page"),i=!1;break e}typeof this.h.SupportObject>"u"?(rt("Could not find LCEVC Library on this page"),i=!1):(this.h.SupportObject.SupportStatus||rt(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 li(i,u,f,m){m.type!=="video"||i.o&&!m.baseOriginalId||i.g&&i.g.appendBuffer(u,"video",m.id,-f,!i.o)}function tu(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}Te("shaka.lcevc.Dec",Go),Go.prototype.release=Go.prototype.release;function jo(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 hc(){var i=o.ManagedSourceBuffer||o.SourceBuffer;return!!i&&!!i.prototype&&!!i.prototype.changeType}function og(){var i=o.ManagedMediaSource||o.MediaSource;return i&&i.prototype?!!i.prototype.setLiveSeekableRange&&!!i.prototype.clearLiveSeekableRange:!1}var $f=new Map;function nu(){}nu.prototype.extract=function(){},nu.prototype.decode=function(){return[]},nu.prototype.clear=function(){},nu.prototype.getStreams=function(){return[]};function pc(){}pc.prototype.init=function(){},pc.prototype.parse=function(){return[]};function np(){}l=np.prototype,l.init=function(){},l.xf=function(){},l.Nd=function(){},l.remove=function(){},l.Vf=function(){},Te("shaka.media.IClosedCaptionParser",np);function Bs(i){this.h=new Map,this.i=0,this.j=new pc,(i=id(i.toLowerCase()))&&(this.j=i()),this.g=new nu,(i=Ou)&&(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 m=this.h.get(u);this.h.set(this.i,this.g),m?this.g=m:((m=Ou)&&(this.g=m()),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 m=this.h.get(f);m&&m.clear(),this.h.delete(f)}},l.Vf=function(){return this.g.getStreams()};function Bf(i,u){Vd.set(i,u)}function id(i){return Vd.get(i)}Te("shaka.media.ClosedCaptionParser",Bs),Bs.findDecoder=function(){return Ou},Bs.unregisterDecoder=function(){Ou=null},Bs.registerDecoder=function(i){Ou=i},Bs.findParser=id,Bs.unregisterParser=function(i){Vd.delete(i)},Bs.registerParser=Bf;var Vd=new Map,Ou=null;function tl(){this.id="",this.regionAnchorY=this.regionAnchorX=this.viewportAnchorY=this.viewportAnchorX=0,this.height=this.width=100,this.viewportAnchorUnits=this.widthUnits=this.heightUnits=Es,this.scroll=rp}Te("shaka.text.CueRegion",tl);var Es=1;tl.units={PX:0,PERCENTAGE:Es,LINES:2};var rp="";tl.scrollMode={NONE:rp,UP:"up"};function vc(i){this.h=i||"",this.g=0}function mc(i){$u(i,/[ \t]+/gm)}function $u(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 gc(i){return i.g==i.h.length?null:(i=$u(i,/[^ \t\n]*/gm))?i[0]:null}function Nf(i){if(i=$u(i,Jt),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 Lt(i){return i?Nf(new vc(i)):null}var Jt=/(?:(\d{1,}):)?(\d{2}):(\d{2})((\.(\d{1,3})))?/g;function un(){}function mn(i){function u(m){switch(typeof m){case"undefined":case"boolean":case"number":case"string":case"symbol":case"function":return m;default:if(!m||ArrayBuffer.isView(m))return m;if(f.has(m))return null;var b=Array.isArray(m);if(m.constructor!=Object&&!b)return null;f.add(m);var w=b?[]:{},A;for(A in m)w[A]=u(m[A]);return b&&(w.length=m.length),w}}var f=new WeakSet;return u(i)}function Dn(i){var u={},f;for(f in i)u[f]=i[f];return u}function tr(i){if(Array.isArray(i)){for(var u=[],f=0;f",b),A=i.substring(A,b);var N=A.indexOf(w);if(N==-1){var V=w.indexOf(".");V>0&&(N=A.indexOf(w.substring(0,V)))}if(N==-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"){N=i.indexOf("]]>",b),N==-1?(R.push(i.substr(b+9)),b=i.length):(R.push(i.substring(b+9,N)),b=N+3);continue}b++;continue}e:{V=A,b++;var G=m(),Z={};for(N=[];i.charCodeAt(b)!==62&&i[b];){var se=i.charCodeAt(b);if(se>64&&se<91||se>96&&se<123){se=m();for(var ce=i.charCodeAt(b);ce&&ce!==39&&ce!==34&&!(ce>64&&ce<91||ce>96&&ce<123)&&ce!==62;)b++,ce=i.charCodeAt(b);var pe=b+1;if(b=i.indexOf(i[b],pe),pe=i.slice(pe,b),ce===39||ce===34){if(b===-1){if(V={tagName:G,attributes:Z,children:N,parent:null},u)for(G=0;G0&&R.push(N):(R.length&&N.length==1&&N[0]==` `||N.trim().length>0)&&R.push(N),b++;return R}function m(){for(var w=b;`\r >/= `.indexOf(i[b])===-1&&i[b];)b++;return i.slice(w,b)}var b=0;return f("")}function Bu(i){return typeof i=="string"}function yc(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 Fr(i,u){var f=[];if(!i.children)return[];i=_(i.children);for(var m=i.next();!m.done;m=i.next())m=m.value,m.tagName===u&&f.push(m);return f}function xr(i){return typeof i=="string"?dn(i):(i=i.children.reduce(function(u,f){return typeof f=="string"?u+f:u},""),i===""?null:dn(i))}function mo(i){return Array.from(i.children).every(function(u){return typeof u=="string"})?((i=xr(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 m=i.next();!m.done;m=i.next())Aa(m.value,u,f)}return f}function si(i,u){return i=Fr(i,u),i.length!=1?null:i[0]}function Ia(i,u,f){return i=TS(i,u,f),i.length!=1?null:i[0]}function Bn(i,u,f,m){m=m===void 0?null:m;var b=null;return i=i.attributes[u],i!=null&&(b=f(i)),b??m}function Nu(i,u,f){return u=Ji(u),i.attributes[u+":"+f]||null}function TS(i,u,f){var m=Ji(u);if(u=[],i.children)for(f=m?m+":"+f:f,i=_(i.children),m=i.next();!m.done;m=i.next())(m=m.value)&&m.tagName===f&&u.push(m);return u}function Ns(i,u,f){u=_(u);for(var m=u.next();!m.done;m=u.next())if(m=Nu(i,m.value,f))return m;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 zd(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 AS(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 Ud(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 IS(i){return i=Number(i),isNaN(i)?null:i}function LS(i){return i?i.toLowerCase()==="true":!1}function Jbe(i){var u,f=(u=i.match(/^(\d+)\/(\d+)$/))?Number(u[1])/Number(u[2]):Number(i);return isNaN(f)?null:f}function DS(i){var u=[];i=dn(i).split(/\/+(?=(?:[^'"]*['"][^'"]*['"])*[^'"]*$)/),i=_(i);for(var f=i.next();!f.done;f=i.next()){f=f.value;var m=f.match(/^([\w]+)/);if(m){var b=f.match(/(@id='(.*?)')/),w=f.match(/(@t='(\d+)')/),A=f.match(/(@n='(\d+)')/),R=f.match(/\[(\d+)\]/);u.push({name:m[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 $K(i,u){var f=DS(u.attributes.sel||"");if(f.length){var m=f[f.length-1],b=u.attributes.pos||null;f=m.position,f==null&&(m.t!==null&&(f=BK(i,"t",m.t)),m.n!==null&&(f=BK(i,"n",m.n))),f===null?f=b==="prepend"?0:i.length:b==="prepend"?--f:b==="after"&&++f,b=u.tagName,(m=m.Cc)&&i[f]?NK(i[f],b,m,mo(u)||""):(b!=="remove"&&b!=="replace"||i.splice(f,1),b!=="add"&&b!=="replace"||i.splice.apply(i,[f,0].concat(T(u.children))))}}function BK(i,u,f){var m=0;i=_(i);for(var b=i.next();!b.done;b=i.next()){if(Number(b.value.attributes[u])===f)return m;m++}return null}function NK(i,u,f,m){u==="remove"?delete i.attributes[f]:(u==="add"||u==="replace")&&(i.attributes[f]=m)}function FK(i){var u="",f=i.tagName.split(":");f.length>0&&(u=f[0],u=CI.has(u)?CI.get(u):""),u=document.createElementNS(u,i.tagName);for(var m in i.attributes)u.setAttribute(m,i.attributes[m]);for(i=_(i.children),m=i.next();!m.done;m=i.next())m=m.value,f=void 0,typeof m=="string"?f=new Text(m):f=FK(m),u.appendChild(f);return u}function kI(i){if(!i)return null;var u={tagName:i.tagName,attributes:Dn(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=kI(f),f.parent=u),u.children.push(f);return u}var xI=new Map,CI=new Map;function Oi(i,u,f){this.startTime=i,this.endTime=u,this.payload=f,this.region=new tl,this.position=null,this.positionAlign=MS,this.size=0,this.textAlign=Hd,this.direction=w3,this.writingMode=W0,this.lineInterpretation=E3,this.line=null,this.lineHeight="",this.lineAlign=G0,this.displayAlign=C3,this.fontSize=this.border=this.backgroundImage=this.backgroundColor=this.color="",this.fontWeight=GK,this.fontStyle=TI,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 jK(i,u){return i=new Oi(i,u,""),i.lineBreak=!0,i}Oi.prototype.clone=function(){var i=new Oi(0,0,""),u;for(u in this)i[u]=this[u],Array.isArray(i[u])&&(i[u]=i[u].slice());return i};function PS(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(!ct(i.nestedCues,u.nestedCues,PS))return!1}else if(f=="region"||f=="cellResolution"){for(var m in i[f])if(i[f][m]!=u[f][m])return!1}else if(Array.isArray(i[f])){if(!ct(i[f],u[f]))return!1}else if(i[f]!=u[f])return!1}return!0}function RS(i,u){u=u===void 0?new Map:u;var f=i.payload;if(f.includes("<")){u.size===0&&VK(u);var m=f;f=[];for(var b=-1,w=0;w"&&b>0&&(b=m.substr(b,w-b),b.match(e_e)&&f.push(b),b=-1);for(f=_(f),w=f.next();!w.done;w=f.next())w=w.value,m=m.replace("<"+w+">",'
'),m+="
";e:{w=m,b=[];var A=-1;f="",m=!1;for(var R=0;R",R);if(N===-1){f=w;break e}if((N=w.substring(R+1,N))&&N=="v"){m=!0;var V=null;if(b.length&&(V=b[b.length-1]),V){if(V===N)f+="/"+N+">";else{if(!V.startsWith("v")){f+=w[R];continue}f+="/"+V+">"}R+=N.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("",""),m||(f+="")}f=Qbe(f),i.payload="",m=""+f.replace(/\n/g,"
")+"
";try{var G=ui(m,"span")}catch{}if(G)if(G=G.children,G.length!=1||G[0].tagName)for(G=_(G),f=G.next();!f.done;f=G.next())zK(f.value,i,u);else i.payload=dn(f);else i.payload=dn(f)}else i.payload=dn(f)}function VK(i){for(var u=_(Object.entries(HK)),f=u.next();!f.done;f=u.next()){var m=_(f.value);f=m.next().value,m=m.next().value;var b=new Oi(0,0,"");b.color=m,i.set("."+f,b)}for(u=_(Object.entries(WK)),f=u.next();!f.done;f=u.next())m=_(f.value),f=m.next().value,m=m.next().value,b=new Oi(0,0,""),b.backgroundColor=m,i.set("."+f,b)}function Qbe(i){var u={"< ":""," >":" >"},f=/(< +>|<\s|\s>)/g,m=RegExp(f.source);return i&&m.test(i)?i.replace(f,function(b){return u[b]||""}):i||""}function zK(i,u,f){var m=u.clone();if(m.nestedCues=[],m.payload="",m.rubyTag="",m.line=null,m.region=new tl,m.position=null,m.size=0,m.textAlign=Hd,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=m,A=f.get(A))&&(R.backgroundColor=x3(A.backgroundColor,R.backgroundColor),R.color=x3(A.color,R.color),R.fontFamily=x3(A.fontFamily,R.fontFamily),R.fontSize=x3(A.fontSize,R.fontSize),R.textShadow=x3(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":m=jK(m.startTime,m.endTime),u.nestedCues.push(m);return;case"b":m.fontWeight=sg;break;case"i":m.fontStyle=ag;break;case"u":m.textDecoration.push(jf);break;case"font":(w=i.attributes.color)&&(m.color=w);break;case"div":if(w=i.attributes.time,!w)break;(w=Lt(w))&&(m.startTime=w);break;case"ruby":case"rp":case"rt":m.rubyTag=w}}if(b=i.children,Bu(i)||b.length==1&&Bu(b[0]))for(f=xr(i).split(` `),i=!0,f=_(f),b=f.next();!b.done;b=f.next())b=b.value,i||(i=jK(m.startTime,m.endTime),u.nestedCues.push(i)),b.length>0&&(i=m.clone(),i.payload=dn(b),u.nestedCues.push(i)),i=!1;else for(u.nestedCues.push(m),u=_(b),i=u.next();!i.done;i=u.next())zK(i.value,m,f)}function x3(i,u){return i&&i.length>0?i:u}Te("shaka.text.Cue",Oi),Oi.parseCuePayload=RS,Oi.equal=PS,Oi.prototype.clone=Oi.prototype.clone;var MS="auto";Oi.positionAlign={LEFT:"line-left",RIGHT:"line-right",CENTER:"center",AUTO:MS};var Hd="center",wI={LEFT:"left",RIGHT:"right",CENTER:Hd,START:"start",END:"end"};Oi.textAlign=wI;var C3="after",UK={BEFORE:"before",CENTER:"center",AFTER:C3};Oi.displayAlign=UK;var w3="ltr";Oi.direction={HORIZONTAL_LEFT_TO_RIGHT:w3,HORIZONTAL_RIGHT_TO_LEFT:"rtl"};var W0="horizontal-tb";Oi.writingMode={HORIZONTAL_TOP_TO_BOTTOM:W0,VERTICAL_LEFT_TO_RIGHT:"vertical-lr",VERTICAL_RIGHT_TO_LEFT:"vertical-rl"};var E3=0;Oi.lineInterpretation={LINE_NUMBER:E3,PERCENTAGE:1};var G0="start",EI={CENTER:"center",START:G0,END:"end"};Oi.lineAlign=EI;var HK={white:"white",lime:"lime",cyan:"cyan",red:"red",yellow:"yellow",magenta:"magenta",blue:"blue",black:"black"};Oi.defaultTextColor=HK;var WK={bg_white:"white",bg_lime:"lime",bg_cyan:"cyan",bg_red:"red",bg_yellow:"yellow",bg_magenta:"magenta",bg_blue:"blue",bg_black:"black"};Oi.defaultTextBackgroundColor=WK;var GK=400,sg=700;Oi.fontWeight={NORMAL:GK,BOLD:sg};var TI="normal",ag="italic",KK={NORMAL:TI,ITALIC:ag,OBLIQUE:"oblique"};Oi.fontStyle=KK;var jf="underline";Oi.textDecoration={UNDERLINE:jf,LINE_THROUGH:"lineThrough",OVERLINE:"overline"};var e_e=/(?:(\d{1,}):)?(\d{2}):(\d{2})\.(\d{2,3})/g;function ip(){}ip.prototype.destroy=function(){};function Vf(i,u,f){AI.set(i.toLowerCase().split(";")[0]+"-"+f,{priority:f,yf:u})}function lg(i,u){for(var f=i.toLowerCase().split(";")[0],m=_([qK,LI,II,op]),b=m.next();!b.done;b=m.next())if(b=AI.get(f+"-"+b.value)){var w=b.yf(),A=w.isSupported(i,u);if(w.destroy(),A)return b.yf}return null}Te("shaka.transmuxer.TransmuxerEngine",ip),ip.findTransmuxer=lg,ip.unregisterTransmuxer=function(i,u){AI.delete(i.toLowerCase().split(";")[0]+"-"+u)},ip.registerTransmuxer=Vf,ip.prototype.destroy=ip.prototype.destroy;var AI=new Map,op=1,II=2,LI=3,qK=4;ip.PluginPriority={FALLBACK:op,PREFERRED_SECONDARY:II,PREFERRED:LI,APPLICATION:qK};function DI(){}function So(i,u){var f=i;return u&&!zf.includes(i)&&(f+='; codecs="'+u+'"'),f}function OS(i,u){return u&&(i+='; codecs="'+u+'"'),i}function PI(i,u,f){var m=So(i,u);return u=OS(i,u),lg(u)?(i=lg(u))?(i=i(),f=i.convertCodecs(f,u),i.destroy()):f=u:f=i!="video/mp2t"&&f=="audio"?m.replace("video","audio"):m,f}function T3(i){return i.split(";")[0].split("/")[1]}function Js(i){var u=YK(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 sp(i){var u=[];i=_(i.split(","));for(var f=i.next();!f.done;f=i.next())f=YK(f.value),u.push(f[0]);return u.sort().join(",")}function Ll(i){return i.split(";")[0]}function nl(i){return i=i.split(/ *; */),i.shift(),(i=i.find(function(u){return u.startsWith("codecs=")}))?i.split("=")[1].replace(/^"|"$/g,""):""}function A3(i){return i==="application/x-mpegurl"||i==="application/vnd.apple.mpegurl"}function YK(i){i=i.split(".");var u=i[0];return i.shift(),[u,i.join(".")]}Te("shaka.util.MimeUtils",DI),DI.getFullTypeWithAllCodecs=OS,DI.getFullType=So,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){D3.set(i,u)}function I3(i){return D3.get(i)}function L3(i){return D3.has(i)?!0:i=="application/cea-608"||i=="application/cea-708"?!!Ou:!1}Uf.prototype.destroy=function(){return this.l=this.i=null,this.j.clear(),Promise.resolve()};function t_e(i,u,f,m,b){var w,A,R,N,V,G,Z;return ie(function(se){if(se.g==1)return L(se,Promise.resolve(),2);if(!i.i||!i.l)return se.return();if(f==null||m==null)return i.i.parseInit(Re(u)),se.return();for(w=i.C?f:i.u,A={periodStart:i.u,segmentStart:f,segmentEnd:m,vttOffset:w},R=i.i.parseMedia(Re(u),A,b,[]),N=_(R),V=N.next();!V.done;V=N.next())G=V.value,i.B(G,b||null,A);Z=R.filter(function(ce){return ce.startTime>=i.m&&ce.startTime=u)return b.return();f&&i_e(m,i,u),m.l&&m.l.remove(i,u)&&m.g!=null&&(u<=m.g||i>=m.h||(i<=m.g&&u>=m.h?m.g=m.h=null:i<=m.g&&um.g&&u>=m.h&&(m.h=i)),JK(m)),B(b)})};function n_e(i,u,f){i.m=u,i.o=f}function XK(i,u,f){i.F=u,(u=i.j.get(u))&&(u=u.filter(function(m){return m.endTime<=f}),u.length&&i.l.append(u))}function ZK(i,u,f){u.startTime+=f,u.endTime+=f,u=_(u.nestedCues);for(var m=u.next();!m.done;m=u.next())ZK(i,m.value,f)}function r_e(i,u,f){var m=new Map;u=_(u);for(var b=u.next();!b.done;b=u.next()){var w=b.value;b=w.stream,w=w.cue,m.has(b)||m.set(b,[]),ZK(i,w,f),w.startTime>=i.m&&w.startTime=f}),i.j.set(b,w)}}function JK(i){for(var u=1/0,f=-1/0,m=_(i.j.values()),b=m.next();!b.done;b=m.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)))}Te("shaka.text.TextEngine",Uf),Uf.prototype.destroy=Uf.prototype.destroy,Uf.findParser=I3,Uf.unregisterParser=function(i){D3.delete(i)},Uf.registerParser=Vs;var D3=new Map;function P3(i){this.h=i,this.g=null}P3.prototype.ia=function(i){var u=this;this.stop();var f=!0,m=null;return this.g=function(){o.clearTimeout(m),f=!1},m=o.setTimeout(function(){f&&u.h()},i*1e3),this},P3.prototype.stop=function(){this.g&&(this.g(),this.g=null)};function yr(i){this.h=i,this.g=null}yr.prototype.Jb=function(){return this.stop(),this.h(),this},yr.prototype.ia=function(i){var u=this;return this.stop(),this.g=new P3(function(){u.h()}).ia(i),this},yr.prototype.Ea=function(i){var u=this;return this.stop(),this.g=new P3(function(){u.g.ia(i),u.h()}).ia(i),this},yr.prototype.stop=function(){this.g&&(this.g.stop(),this.g=null)},Te("shaka.util.Timer",yr),yr.prototype.stop=yr.prototype.stop,yr.prototype.tickEvery=yr.prototype.Ea,yr.prototype.tickAfter=yr.prototype.ia,yr.prototype.tickNow=yr.prototype.Jb;function o_e(i,u){return i.concat(u)}function s_e(){}function ap(i){return i!=null}function $S(i,u){return Promise.race([u,new Promise(function(f,m){new yr(m).ia(i)})])}function bc(){}function ug(i,u){return i=Xr(i),u=Xr(u),i.split("-")[0]==u.split("-")[0]}function R3(i,u){return i=Xr(i),u=Xr(u),i=i.split("-"),u=u.split("-"),i[0]==u[0]&&i.length==1&&u.length==2}function RI(i,u){return i=Xr(i),u=Xr(u),i=i.split("-"),u=u.split("-"),i.length==2&&u.length==2&&i[0]==u[0]}function Xr(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=QK.get(u)||u,f=f.toUpperCase(),(f?u+"-"+f:u)+(i?"-"+i:"")}function K0(i,u){return i=Xr(i),u=Xr(u),u==i?4:R3(u,i)?3:RI(u,i)?2:R3(i,u)?1:0}function BS(i){var u=i.indexOf("-");return i=u>=0?i.substring(0,u):i,i=i.toLowerCase(),i=QK.get(i)||i}function MI(i){return i.language?Xr(i.language):i.audio&&i.audio.language?Xr(i.audio.language):i.video&&i.video.language?Xr(i.video.language):"und"}function NS(i,u){i=Xr(i);var f=new Set;u=_(u);for(var m=u.next();!m.done;m=u.next())f.add(Xr(m.value));for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,m==i)return m;for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,R3(m,i))return m;for(u=_(f),m=u.next();!m.done;m=u.next())if(m=m.value,RI(m,i))return m;for(f=_(f),u=f.next();!u.done;u=f.next())if(u=u.value,R3(i,u))return u;return null}Te("shaka.util.LanguageUtils",bc),bc.findClosestLocale=NS,bc.getLocaleForVariant=MI,bc.getLocaleForText=function(i){return Xr(i.language||"und")},bc.getBase=BS,bc.relatedness=K0,bc.areSiblings=function(i,u){var f=BS(i),m=BS(u);return i!=f&&u!=m&&f==m},bc.normalize=Xr,bc.isSiblingOf=RI,bc.isParentOf=R3,bc.areLanguageCompatible=ug,bc.areLocaleCompatible=function(i,u){return i=Xr(i),u=Xr(u),i==u};var QK=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 eq(){}function tq(i,u,f,m,b){function w(Be){var Pe=String(Be.width||"")+String(Be.height||"")+String(Math.round(Be.frameRate||0))+(Be.hdr||"")+Be.fastSwitching;return Be.dependencyStream&&(Pe+=Be.dependencyStream.baseOriginalId||""),Be.roles&&(Pe+=Be.roles.sort().join("_")),Pe}function A(Be){var Pe=Be.language+(Be.channelsCount||0)+(Be.audioSamplingRate||0)+Be.roles.join(",")+Be.label+Be.groupId+Be.fastSwitching;return Be.dependencyStream&&(Pe+=Be.dependencyStream.baseOriginalId||""),Pe}if(b.length){var R=i.textStreams;b=_(b);for(var N=b.next(),V={};!N.done;V={Bh:void 0},N=b.next())if(V.Bh=N.value,N=R.filter((function(Be){return function(Pe){return!!(Pe.codecs.startsWith(Be.Bh)||Pe.mimeType.startsWith(Be.Bh))}})(V)),N.length){R=N;break}i.textStreams=R}if(R=i.variants,(u.length||f.length)&&(R=a_e(R,u,f)),m.length){for(u=new Ne,f=_(R),R=f.next();!R.done;R=f.next())R=R.value,u.push(String(R.video.width||0),R);var G=[];u.forEach(function(Be,Pe){Be=0;var Ke=[];Pe=_(Pe);for(var ot=Pe.next(),bt={};!ot.done;bt={Tf:void 0},ot=Pe.next())bt.Tf=ot.value,ot=m.filter((function(tt){return function(We){return tt.Tf.decodingInfos[0][We]}})(bt)).length,ot>Be?(Be=ot,Ke=[bt.Tf]):ot==Be&&Ke.push(bt.Tf);G.push.apply(G,T(Ke))}),R=G}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(Be,Pe){return Be.bandwidth-Pe.bandwidth});var Z=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,N=A(b),V=f.get(N)||[],V.length){var se=V[V.length-1],ce=Js(se.codecs),pe=Js(b.codecs);ce!=pe||b.bandwidth&&se.bandwidth&&!(b.bandwidth>se.bandwidth)||(V.push(b),Z.push(b.id))}else V.push(b),Z.push(b.id);f.set(N,V)}var me={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(Be,Pe){if(!Be.bandwidth||!Pe.bandwidth||Be.bandwidth==Pe.bandwidth){if(Be.codecs&&Pe.codecs&&Be.codecs!=Pe.codecs&&Be.width==Pe.width){var Ke=Js(Be.codecs),ot=Js(Pe.codecs);if(Ke!=ot)return(me[Ke]||1)-(me[ot]||1)}return Be.width-Pe.width}return Be.bandwidth-Pe.bandwidth}),u=hc();var ye=[];for(f=new Map,R=_(R),b=R.next();!b.done;b=R.next()){if(b=b.value,N=w(b),V=f.get(N)||[],V.length){if(se=V[V.length-1],!u&&(ce=Js(se.codecs),pe=Js(b.codecs),ce!==pe))continue;ce=Js(se.codecs),pe=Js(b.codecs),ce!=pe||b.bandwidth&&se.bandwidth&&!(b.bandwidth>se.bandwidth)||(V.push(b),ye.push(b.id))}else V.push(b),ye.push(b.id);f.set(N,V)}i.variants=i.variants.filter(function(Be){var Pe=Be.audio;return Be=Be.video,!(Pe&&!Z.includes(Pe.id)||Be&&!ye.includes(Be.id))})}function a_e(i,u,f){u=_(u);for(var m=u.next(),b={};!m.done;b={videoCodec:void 0},m=u.next())if(b.videoCodec=m.value,m=i.filter((function(w){return function(A){return A.video&&A.video.codecs.startsWith(w.videoCodec)}})(b)),m.length){i=m;break}for(f=_(f),u=f.next(),m={};!u.done;m={audioCodec:void 0},u=f.next())if(m.audioCodec=u.value,u=i.filter((function(w){return function(A){return A.audio&&A.audio.codecs.startsWith(w.audioCodec)}})(m)),u.length){i=u;break}return i}function l_e(i,u,f){i.variants=i.variants.filter(function(m){return FS(m,u,f)})}function FS(i,u,f){function m(R,N,V){return R>=N&&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),!m(w,u.minWidth,Math.min(u.maxWidth,f.width))||!m(A,u.minHeight,Math.min(u.maxHeight,f.height))||!m(b.width*b.height,u.minPixels,u.maxPixels))return!1}return!(i&&i.video&&i.video.frameRate&&!m(i.video.frameRate,u.minFrameRate,u.maxFrameRate)||i&&i.audio&&i.audio.channelsCount&&!m(i.audio.channelsCount,u.minChannelsCount,u.maxChannelsCount)||!m(i.bandwidth,u.minBandwidth,u.maxBandwidth))}function u_e(i,u,f,m){return f=f===void 0?[]:f,m=m===void 0?{}:m,ie(function(b){return b.g==1?L(b,nq(i,u,u.offlineSessionIds.length>0,f,m),2):(h_e(u),L(b,p_e(u),0))})}function nq(i,u,f,m,b){var w,A;return ie(function(R){if(R.g==1)return $e().Ui()&&c_e(u.variants),L(R,OI(u.variants,f,!1,m),2);w=null,i&&(A=i.g)&&(w=A.keySystem),u.variants=u.variants.filter(function(N){var V=d_e(N,w,b);if(!V){var G=[];N.audio&&G.push(uq(N.audio)),N.video&&G.push(uq(N.video))}return V}),B(R)})}function c_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 m=i.next();!m.done;m=i.next())m=m.value,m.video&&f.add(m.video);for(f=_(f),i=f.next();!i.done;i=f.next()){i=i.value,m=_(u);for(var b=m.next();!b.done;b=m.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 d_e(i,u,f){if(!i.decodingInfos.some(function(N){return!(!N.supported||u&&(N=N.keySystemAccess)&&(f[N.keySystem]||N.keySystem)!=u)}))return!1;var m=$e(),b=m.Nb()==="Xbox";m=m.Ua()==="MOBILE"&&m.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,!(m&&i&&i.encrypted&&i.codecs.toLowerCase().includes("opus")||i&&i.dependencyStream))}function rq(i,u){var f,m,b,w,A,R,N;return ie(function(V){if(V.g==1){for(f=function(G,Z){if(G){var se=Dn(G);return se.supported=G.supported&&Z.supported,se.powerEfficient=G.powerEfficient&&Z.powerEfficient,se.smooth=G.smooth&&Z.smooth,Z.keySystemAccess&&!se.keySystemAccess&&(se.keySystemAccess=Z.keySystemAccess),se}return Z},m=null,b=[],w=_(u),A=w.next(),R={};!A.done;R={cache:void 0,Pe:void 0},A=w.next())N=A.value,R.Pe=tr(N),R.cache=US,R.cache.has(R.Pe)?m=f(m,R.cache.get(R.Pe)):b.push(f_e(N).then((function(G){return function(Z){var se=null;Z=_(Z||[]);for(var ce=Z.next();!ce.done;ce=Z.next())se=f(se,ce.value);se&&(G.cache.set(G.Pe,se),m=f(m,se))}})(R)));return L(V,Promise.all(b),2)}m&&i.decodingInfos.push(m),B(V)})}function f_e(i){var u=[""];i.video&&(u=nl(i.video.contentType).split(","));var f=[""];i.audio&&(f=nl(i.audio.contentType).split(","));var m=[];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=mn(i),i.video&&(R.Qc.video.contentType=So(Ll(R.Qc.video.contentType),b)),i.audio&&(R.Qc.audio.contentType=So(Ll(R.Qc.audio.contentType),A)),m.push(new Promise((function(N){return function(V,G){($e().Ua()=="MOBILE"?$S(5,navigator.mediaCapabilities.decodingInfo(N.Qc)):navigator.mediaCapabilities.decodingInfo(N.Qc)).then(function(Z){V(Z)}).catch(G)}})(R)))}return Promise.all(m).catch(function(){return JSON.stringify(i),null})}function OI(i,u,f,m){var b,w,A,R,N,V,G,Z,se,ce,pe,me,ye,Be,Pe,Ke,ot,bt;return ie(function(tt){switch(tt.g){case 1:if(i.some(function(We){return We.decodingInfos.length}))return tt.return();b=_(m),w=b.next(),A={};case 2:if(w.done){tt.A(4);break}A.Ci=w.value,R=!1,N=_(i),V=N.next();case 5:if(V.done){tt.A(7);break}G=V.value,Z=iq(G,u,f).filter((function(We){return function(ht){return ht=ht[0],(ht.keySystemConfiguration&&ht.keySystemConfiguration.keySystem)===We.Ci}})(A)),se=_(Z),ce=se.next();case 8:if(ce.done){tt.A(10);break}return pe=ce.value,L(tt,rq(G,pe),9);case 9:ce=se.next(),tt.A(8);break;case 10:G.decodingInfos.some(function(We){return We.supported})&&(R=!0),V=N.next(),tt.A(5);break;case 7:if(R)return tt.return();A={Ci:void 0},w=b.next(),tt.A(2);break;case 4:me=_(i),ye=me.next();case 12:if(ye.done){tt.A(0);break}Be=ye.value,Pe=iq(Be,u,f).filter(function(We){return We=We[0],We=We.keySystemConfiguration&&We.keySystemConfiguration.keySystem,!We||!m.includes(We)}),Ke=_(Pe),ot=Ke.next();case 15:if(ot.done){ye=me.next(),tt.A(12);break}return bt=ot.value,L(tt,rq(Be,bt),16);case 16:ot=Ke.next(),tt.A(15)}})}function iq(i,u,f){var m=i.audio,b=i.video,w=[],A=[];if(b)for(var R=_(b.fullMimeTypes),N=R.next();!N.done;N=R.next()){N=N.value;var V=nl(N);if(V.includes(",")&&!m){var G=V.split(","),Z=Ll(N);V=bi("video",G),G=bi("audio",G),G=M3(G,Z),Z=PI(Z,G,"audio"),A.push({contentType:Z,channels:2,bitrate:i.bandwidth||1,samplerate:1,spatialRendering:!1})}if(V=oq(V),N={contentType:PI(Ll(N),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":N.transferFunction="pq";break;case"HLG":N.transferFunction="hlg"}b.colorGamut&&(N.colorGamut=b.colorGamut),w.push(N)}if(m)for(R=_(m.fullMimeTypes),N=R.next();!N.done;N=R.next())V=N.value,N=Ll(V),V=M3(nl(V),N),N=PI(N,V,"audio"),A.push({contentType:N,channels:m.channelsCount||2,bitrate:m.bandwidth||i.bandwidth||1,samplerate:m.audioSamplingRate||1,spatialRendering:m.spatialAudio});for(R=[],w.length==0&&w.push(null),A.length==0&&A.push(null),w=_(w),N=w.next();!N.done;N=w.next())for(N=N.value,V=_(A),Z=V.next();!Z.done;Z=V.next())Z=Z.value,G={type:f?"file":"media-source"},N&&(G.video=N),Z&&(G.audio=Z),R.push(G);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()),N=w.next();!N.done;N=w.next()){for(N=N.value,Z=f.get(N),V=new Map,Z=_(Z),G=Z.next();!G.done;G=Z.next()){G=G.value;var se=G.videoRobustness+","+G.audioRobustness;V.get(se)||V.set(se,[]),V.get(se).push(G)}for(V=_(V.values()),Z=V.next();!Z.done;Z=V.next()){Z=Z.value,G=[],se=_(R);for(var ce=se.next();!ce.done;ce=se.next()){ce=Object.assign({},ce.value);for(var pe={keySystem:N,initDataType:"cenc",persistentState:A,distinctiveIdentifier:"optional",sessionTypes:u},me=_(Z),ye=me.next();!ye.done;ye=me.next()){if(ye=ye.value,ye.initData&&ye.initData.length){for(var Be=new Set,Pe=_(ye.initData),Ke=Pe.next();!Ke.done;Ke=Pe.next())Be.add(Ke.value.initDataType);pe.initDataType=ye.initData[0].initDataType}ye.distinctiveIdentifierRequired&&(pe.distinctiveIdentifier="required"),ye.persistentStateRequired&&(pe.persistentState="required"),ye.sessionType&&(pe.sessionTypes=[ye.sessionType]),m&&(pe.audio?(ye.encryptionScheme&&(pe.audio.encryptionScheme=pe.audio.encryptionScheme||ye.encryptionScheme),pe.audio.robustness=pe.audio.robustness||ye.audioRobustness):(pe.audio={robustness:ye.audioRobustness},ye.encryptionScheme&&(pe.audio.encryptionScheme=ye.encryptionScheme)),pe.audio.robustness==""&&delete pe.audio.robustness),b&&(pe.video?(ye.encryptionScheme&&(pe.video.encryptionScheme=pe.video.encryptionScheme||ye.encryptionScheme),pe.video.robustness=pe.video.robustness||ye.videoRobustness):(pe.video={robustness:ye.videoRobustness},ye.encryptionScheme&&(pe.video.encryptionScheme=ye.encryptionScheme)),pe.video.robustness==""&&delete pe.video.robustness)}ce.keySystemConfiguration=pe,G.push(ce)}i.push(G)}}return i}function M3(i,u){var f=$e();return i.toLowerCase()=="flac"?f.Ha()!="WEBKIT"?"flac":"fLaC":i.toLowerCase()==="opus"?f.Ha()!="WEBKIT"?"opus":T3(u)=="mp4"?"Opus":"opus":i.toLowerCase()=="ac-3"&&f.oe()?"ec-3":i}function oq(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 h_e(i){i.textStreams=i.textStreams.filter(function(u){return u=So(u.mimeType,u.codecs),L3(u)})}function p_e(i){var u,f,m,b,w,A,R;return ie(function(N){switch(N.g){case 1:u=[],f=_(i.imageStreams),m=f.next();case 2:if(m.done){N.A(4);break}if(b=m.value,w=b.mimeType,w=="application/mp4"&&b.codecs=="mjpg"&&(w="image/jpg"),HS.has(w)){N.A(5);break}if(A=y_e.get(w),!A){HS.set(w,!1),N.A(5);break}return L(N,v_e(A),7);case 7:R=N.h,HS.set(w,R);case 5:HS.get(w)&&u.push(b),m=f.next(),N.A(2);break;case 4:i.imageStreams=u,B(N)}})}function v_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 q0(i){var u=i.audio,f=i.video,m=u?u.mimeType:null,b=f?f.mimeType:null,w=u?u.codecs:null,A=f?f.codecs:null,R=u?u.groupId:null,N=[];f&&N.push(f.mimeType),u&&N.push(u.mimeType),N=N[0]||null;var V=[];u&&V.push(u.kind),f&&V.push(f.kind),V=V[0]||null;var G=new Set;if(u)for(var Z=_(u.roles),se=Z.next();!se.done;se=Z.next())G.add(se.value);if(f)for(Z=_(f.roles),se=Z.next();!se.done;se=Z.next())G.add(se.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:N,audioMimeType:m,videoMimeType:b,codecs:"",audioCodec:w,videoCodec:A,primary:i.primary,roles:Array.from(G),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,(m=f.dependencyStream)&&(i.width=m.width||i.width,i.height=m.height||i.height,i.videoCodec=m.codecs||i.videoCodec,i.videoBandwidth&&m.bandwidth&&(i.videoBandwidth+=m.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=bi("video",b),i.audioCodec=bi("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 Y0(i){return{id:i.id,active:!1,type:Ln,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 $I(i){var u=i.width||null,f=i.height||null,m=null;i.segmentIndex&&(m=od(i.segmentIndex));var b=i.tilesLayout;return m&&(b=m.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 jS(i){return i.__shaka_id||(i.__shaka_id=g_e++),i.__shaka_id}function sq(i){var u={id:jS(i),active:i.mode!="disabled",type:Ln,bandwidth:0,language:Xr(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 VS(i,u){var f=i?i.language:null;if(f={id:jS(i||u),active:i?i.enabled:u.selected,type:"variant",bandwidth:0,language:Xr(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 O3(i){return i.allowedByApplication&&i.allowedByKeySystem&&i.disabledUntilTime==0}function zS(i){return i.filter(function(u){return O3(u)})}function cg(i,u,f,m){var b=i,w=i.filter(function(N){return N.primary});w.length&&(b=w);var A=b.length?b[0].language:"";if(b=b.filter(function(N){return N.language==A}),u){var R=NS(Xr(u),i.map(function(N){return N.language}));R&&(b=i.filter(function(N){return Xr(N.language)==R}))}if(b=b.filter(function(N){return N.forced==m}),f){if(i=aq(b,f),i.length)return i}else if(i=b.filter(function(N){return N.roles.length==0}),i.length)return i;return i=b.map(function(N){return N.roles}).reduce(o_e,[]),i.length?aq(b,i[0]):b}function aq(i,u){return i.filter(function(f){return f.roles.includes(u)})}function m_e(i){var u=[];return i.audio&&u.push(i.audio),i.video&&u.push(i.video),u}function lq(i,u){u.length&&(u=u.filter(function(f){return Js(i.codecs)==Js(f.codecs)}).sort(function(f,m){return f.bandwidth&&m.bandwidth&&f.bandwidth!=m.bandwidth?f.bandwidth-m.bandwidth:(f.width||0)-(m.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 uq(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 cq(i,u,f){if(f.autoShowText==0)return!1;if(f.autoShowText==1)return!0;var m=Xr(f.preferredTextLanguage);return u=Xr(u.language),f.autoShowText==2?ug(u,m):f.autoShowText==3?i?(i=Xr(i.language),ug(u,m)&&!ug(i,u)):!1:(rt("Invalid autoShowText setting!"),!1)}function dq(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 m={id:0,originalId:null,groupId:null,createSegmentIndex:function(){return Promise.resolve()},segmentIndex:null,mimeType:f?Ll(f):"",codecs:f?nl(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};m.fullMimeTypes.add(So(m.mimeType,m.codecs)),f.startsWith("audio/")?(m.type="audio",u.audio=m):u.video=m}return u}Te("shaka.util.StreamUtils",eq),eq.meetsRestrictions=FS;var US=new Map,g_e=0,HS=new Map().set("image/svg+xml",!0).set("image/png",!0).set("image/jpeg",!0).set("image/jpg",!0),y_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 Qi(){var i=this;this.H=null,this.B=!1,this.u=new Me,this.j=new De,navigator.connection&&navigator.connection.addEventListener&&this.j.D(navigator.connection,"change",function(){if(i.B&&i.g.useNetworkInformation){i.u=new Me,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 yr(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=Qi.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 m=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*m),f=Math.min(f,w*m)}if(b=this.o.filter(function(V){return V&&!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)}),b.length||(b=this.o),m=b,i&&b.length!=this.o.length&&(m=this.o.filter(function(V){return V&&!!(V.audio&&V.audio.fastSwitching||V.video&&V.video.fastSwitching)})),i=BI(this,this.g.restrictions,m,1/0,1/0),u!=1/0||f!=1/0){for(i=b_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=BI(this,this.g.restrictions,m,u,f)}for(u=this.getBandwidthEstimate(),m.length&&!i.length&&(i=BI(this,null,m,1/0,1/0),i=[i[0]]),f=i[0]||null,m=0;m=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&&fq(this)},l.trySuggestStreams=function(){this.B&&(this.C=Date.now(),fq(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 sn(i,this.o)?!1:(this.o=i,!0)},l.playbackRateChanged=function(i){this.I=i},l.setMediaElement=function(i){function u(){f.l.ia(__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(m){m.pictureInPictureWindow&&(f.i=m.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 fq(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 we(2,7,1010);return u=i.g,i.g++,u==0?m.return():(f=i.h*(1+(Math.random()*2-1)*i.o),L(m,new Promise(function(b){new yr(b).ia(f/1e3)}),2))}i.h*=i.m,B(m)})}function _c(){return{maxAttempts:2,baseDelay:1e3,backoffFactor:2,fuzzFactor:.5,timeout:3e4,stallTimeout:5e3,connectionTimeout:1e4}}function ci(){var i,u,f=new Promise(function(m,b){i=m,u=b});return f.resolve=i,f.reject=u,f}ci.prototype.resolve=function(){},ci.prototype.reject=function(){};function ko(i,u){this.promise=i,this.i=u,this.g=null}function lp(i){return new ko(Promise.reject(i),function(){return Promise.resolve()})}function FI(){var i=Promise.reject(new we(2,7,7001));return i.catch(function(){}),new ko(i,function(){return Promise.resolve()})}function fg(i){return new ko(Promise.resolve(i),function(){return Promise.resolve()})}function gq(i){return new ko(i,function(){return i.catch(function(){})})}ko.prototype.abort=function(){return this.g||(this.g=this.i()),this.g};function yq(i){return new ko(Promise.all(i.map(function(u){return u.promise})),function(){return Promise.all(i.map(function(u){return u.abort()}))})}ko.prototype.finally=function(i){return this.promise.then(function(){return i(!0)},function(){return i(!1)}),this},ko.prototype.Xa=function(i,u){function f(R){return function(N){if(b.g&&R)w.reject(A);else{var V=R?i:u;V?m=S_e(V,N,w):(R?w.resolve:w.reject)(N)}}}function m(){return w.reject(A),b.abort()}var b=this,w=new ci;w.catch(function(){});var A=new we(2,7,7001);return this.promise.then(f(!0),f(!1)),new ko(w,function(){return m()})};function S_e(i,u,f){try{var m=i(u);return m&&m.promise&&m.abort?(f.resolve(m.promise),function(){return m.abort()}):(f.resolve(m),function(){return Promise.resolve(m).then(function(){},function(){})})}catch(b){return f.reject(b),function(){return Promise.resolve()}}}p.Object.defineProperties(ko.prototype,{aborted:{configurable:!0,enumerable:!0,get:function(){return this.g!==null}}}),Te("shaka.util.AbortableOperation",ko),ko.prototype.chain=ko.prototype.Xa,ko.prototype.finally=ko.prototype.finally,ko.all=yq,ko.prototype.abort=ko.prototype.abort,ko.notAbortable=gq,ko.completed=fg,ko.aborted=FI,ko.failed=lp;function Tn(i,u){if(u)if(u instanceof Map)for(var f=_(u.keys()),m=f.next();!m.done;m=f.next())m=m.value,Object.defineProperty(this,m,{value:u.get(m),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 bq(i){var u=new Tn(i.type),f;for(f in i)Object.defineProperty(u,f,{value:i[f],writable:!0,enumerable:!0});return u}Tn.prototype.preventDefault=function(){this.cancelable&&(this.defaultPrevented=!0)},Tn.prototype.stopImmediatePropagation=function(){this.g=!0},Tn.prototype.stopPropagation=function(){},Te("shaka.util.FakeEvent",Tn);var qS={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 Zr(){this.ab=new Ne,this.Fe=this}Zr.prototype.addEventListener=function(i,u){this.ab&&this.ab.push(i,u)},Zr.prototype.removeEventListener=function(i,u){this.ab&&this.ab.remove(i,u)},Zr.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},Zr.prototype.release=function(){this.ab=null};function hg(){this.g=[]}function X0(i,u){i.g.push(u.finally(function(){Mt(i.g,u)}))}hg.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 Fi(i,u,f,m,b,w,A){Zr.call(this),this.i=null,this.j=!1,this.u=new hg,this.g=new Set,this.h=new Set,this.o=i||null,this.m=u||null,this.B=f||null,this.C=m||null,this.F=b||null,this.H=w||null,this.G=A||null,this.l=new Map}x(Fi,Zr),l=Fi.prototype,l.configure=function(i){this.i=i};function Hf(i,u,f,m){m=m===void 0?!1:m,f=f||Cq;var b=XS.get(i);(!b||f>=b.priority)&&XS.set(i,{priority:f,yf:u,Fk:m})}function _q(i,u){for(var f=_(i.g),m=f.next();!m.done;m=f.next())u.g.add(m.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 Vo(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(),Zr.prototype.release.call(this),this.u.destroy()},l.request=function(i,u,f){var m=this,b=new xq;if(this.j){var w=Promise.reject(new we(2,7,7001));return w.catch(function(){}),new YS(w,function(){return Promise.resolve()},b)}u.method=u.method||"GET",u.headers=u.headers||{},u.retryParameters=u.retryParameters?mn(u.retryParameters):_c(),u.uris=mn(u.uris),w=k_e(this,i,u,f);var A=w.Xa(function(){return Sq(m,i,u,f,new vq(u.retryParameters,!1),0,null,b)}),R=A.Xa(function(se){return x_e(m,i,se,f)}),N=Date.now(),V=0;w.promise.then(function(){V=Date.now()-N},function(){});var G=0;A.promise.then(function(){G=Date.now()},function(){});var Z=R.Xa(function(se){var ce=Date.now()-G,pe=se.response;return pe.timeMs+=V,pe.timeMs+=ce,se.fk||!m.o||pe.fromCache||u.method=="HEAD"||i!=Fu||m.o(pe.timeMs,pe.data.byteLength,kq(f),u,f),m.G&&m.G(i,pe,f),pe},function(se){throw se&&(se.severity=2),se});return w=new YS(Z.promise,function(){return Z.abort()},b),X0(this.u,w),w};function k_e(i,u,f,m){function b(R){w=w.Xa(function(){return f.body&&(f.body=Ce(f.body)),R(u,f,m)})}var w=fg(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 we&&R.code==7001?R:new we(2,1,1006,R)})}function Sq(i,u,f,m,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,m,f.uris[w],f.uris[w-1]);var N=new st(f.uris[w]),V=N.bc,G=!1;V||(V=location.protocol,V=V.slice(0,-1),zt(N,V),f.uris[w]=N.toString()),V=V.toLowerCase();var Z=(V=XS.get(V))?V.yf:null;if(!Z)return lp(new we(2,1,1e3,N));var se=V.Fk;(N=i.l.get(N.Db))&&(f.headers["common-access-token"]=N);var ce=null,pe=null,me=!1,ye=!1,Be;return gq(mq(b)).Xa(function(){if(i.j)return FI();Be=Date.now();var Pe=0;f.requestStartTime=Date.now();var Ke=Z(f.uris[w],f,u,function(tt,We,ht){ce&&ce.stop(),pe&&pe.ia(bt/1e3),i.o&&u==Fu&&(Pe++,f.packetNumber=Pe,i.o(tt,We,kq(m),f,m),G=!0,R.g=ht)},function(tt){ye=!0,f.timeToFirstByte=Date.now()-f.requestStartTime,i.m&&i.m(tt,f,u)},{minBytesForProgressEvents:i.i.minBytesForProgressEvents});if(!se)return Ke;var ot=f.retryParameters.connectionTimeout;ot&&(ce=new yr(function(){me=!0,Ke.abort()}),ce.ia(ot/1e3));var bt=f.retryParameters.stallTimeout;return bt&&(pe=new yr(function(){me=!0,Ke.abort()})),Ke}).Xa(function(Pe){ce&&ce.stop(),pe&&pe.stop(),Pe.timeMs==null&&(Pe.timeMs=Date.now()-Be);var Ke=Pe.headers["common-access-token"];if(Ke){var ot=new st(Pe.uri);i.l.set(ot.Db,Ke)}return Ke={response:Pe,fk:G},!ye&&i.m&&i.m(Pe.headers,f,u),i.B&&i.B(f,Pe),Ke},function(Pe){if(ce&&ce.stop(),pe&&pe.stop(),i.C){var Ke=null,ot=0;Pe instanceof we&&(Ke=Pe,Pe.code==1001&&(ot=Pe.data[1])),i.C(f,Ke,ot,me)}if(i.j)return FI();if(me&&(Pe=new we(1,1,1003,f.uris[w],u)),Pe instanceof we){if(Pe.code==7001)throw Pe;if(Pe.code==1010)throw A;if(Pe.severity==1){if(Ke=new Map().set("error",Pe),Ke=new Tn("retry",Ke),Ke.cancelable=!0,i.dispatchEvent(Ke),Ke.defaultPrevented)throw Pe;return w=(w+1)%f.uris.length,Sq(i,u,f,m,b,w,Pe,R)}}throw Pe})}function x_e(i,u,f,m){var b=fg(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 N=f.response;return N.data&&(N.data=Ce(N.data)),(0,R.Ji)(u,N,m)}})(A));return b.Xa(function(){return f},function(R){var N=2;if(R instanceof we){if(R.code==7001)throw R;N=R.severity}throw new we(N,1,1007,R)})}function kq(i){if(i){var u=i.segment;if(i=i.stream,u&&i&&i.fastSwitching&&u.Xc)return!1}return!0}Te("shaka.net.NetworkingEngine",Fi),Fi.prototype.request=Fi.prototype.request,Fi.prototype.destroy=Fi.prototype.destroy,Fi.makeRequest=Vo,Fi.defaultRetryParameters=function(){return _c()},Fi.prototype.clearCommonAccessTokenMap=Fi.prototype.Qh,Fi.prototype.clearAllResponseFilters=Fi.prototype.pj,Fi.prototype.unregisterResponseFilter=Fi.prototype.il,Fi.prototype.registerResponseFilter=Fi.prototype.Jk,Fi.prototype.clearAllRequestFilters=Fi.prototype.oj,Fi.prototype.unregisterRequestFilter=Fi.prototype.hl,Fi.prototype.registerRequestFilter=Fi.prototype.Ik,Fi.unregisterScheme=function(i){XS.delete(i)},Fi.registerScheme=Hf,Fi.prototype.configure=Fi.prototype.configure;function xq(){this.g=0}Fi.NumBytesRemainingClass=xq;function YS(i,u,f){ko.call(this,i,u),this.h=f}x(YS,ko),Fi.PendingRequest=YS;var Fu=1;Fi.RequestType={MANIFEST:0,SEGMENT:Fu,LICENSE:2,APP:3,TIMING:4,SERVER_CERTIFICATE:5,KEY:6,ADS:7,CONTENT_STEERING:8,CMCD:9},Fi.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 Cq=3;Fi.PluginPriority={FALLBACK:1,PREFERRED:2,APPLICATION:Cq};var XS=new Map;function pg(i){this.g=!1,this.h=new ci,this.i=i}pg.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 Ii(i,u){if(i.g)throw u instanceof we&&u.code==7003?u:new we(2,7,7003,u)}function jI(i,u){var f=[];i=_(i);for(var m=i.next();!m.done;m=i.next())f.push(u(m.value));return f}function C_e(i,u){i=_(i);for(var f=i.next();!f.done;f=i.next())if(!u(f.value))return!1;return!0}function vg(i){for(var u=new Map,f=_(Object.keys(i)),m=f.next();!m.done;m=f.next())m=m.value,u.set(m,i[m]);return u}function VI(i){var u={};return i.forEach(function(f,m){u[m]=f}),u}function $i(i,u){this.h=it(i),this.i=u==wq,this.g=0}l=$i.prototype,l.Ia=function(){return this.g2097151)throw new we(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,at(i)};function Wf(){return new we(2,3,3e3)}Te("shaka.util.DataViewReader",$i),$i.prototype.readTerminatedString=$i.prototype.Yc,$i.prototype.seek=$i.prototype.seek,$i.prototype.rewind=$i.prototype.Ki,$i.prototype.skip=$i.prototype.skip,$i.prototype.readBytes=$i.prototype.Tb,$i.prototype.readUint64=$i.prototype.Dd,$i.prototype.readInt32=$i.prototype.Zg,$i.prototype.readUint32=$i.prototype.U,$i.prototype.readUint16=$i.prototype.Ca,$i.prototype.readUint8=$i.prototype.Y,$i.prototype.getLength=$i.prototype.getLength,$i.prototype.getPosition=$i.prototype.Oa,$i.prototype.hasMoreData=$i.prototype.Ia;var wq=1;$i.Endianness={BIG_ENDIAN:0,LITTLE_ENDIAN:wq};function di(){this.i=new Map,this.h=new Map,this.g=!1}l=di.prototype,l.box=function(i,u){return i=Eq(i),this.i.set(i,w_e),this.h.set(i,u),this},l.S=function(i,u){return i=Eq(i),this.i.set(i,Tq),this.h.set(i,u),this},l.stop=function(){this.g=!0},l.parse=function(i,u,f){for(i=new $i(i,0),this.g=!1;i.Ia()&&!this.g;)this.zd(0,i,u,f)},l.zd=function(i,u,f,m){var b=u.Oa();if(m&&b+8>u.getLength())this.g=!0;else{var w=u.U(),A=u.U(),R=JS(A),N=!1;switch(w){case 0:w=u.getLength()-b;break;case 1:if(m&&u.Oa()+8>u.getLength()){this.g=!0;return}w=u.Dd(),N=!0}var V=this.h.get(A);if(V){var G=null,Z=null;if(this.i.get(A)==Tq){if(m&&u.Oa()+4>u.getLength()){this.g=!0;return}Z=u.U(),G=Z>>>24,Z&=16777215}A=b+w,f&&A>u.getLength()&&(A=u.getLength()),m&&A>u.getLength()?this.g=!0:(A-=u.Oa(),u=A>0?u.Tb(A,!1):new Uint8Array(0),u=new $i(u,0),V({name:R,parser:this,partialOkay:f||!1,stopOnPartial:m||!1,version:G,flags:Z,reader:u,size:w,start:b+i,has64BitSize:N}))}else u.skip(Math.min(b+w-u.Oa(),u.getLength()-u.Oa()))}};function ur(i){for(var u=up(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=up(i),f=i.reader.U(),m=0;m>24&255,i>>16&255,i>>8&255,i&255)}function up(i){return 8+(i.has64BitSize?8:0)+(i.flags!=null?4:0)}Te("shaka.util.Mp4Parser",di),di.headerSize=up,di.typeToString=JS,di.allData=mg,di.audioSampleEntry=ZS,di.visualSampleEntry=Dl,di.sampleDescription=Gf,di.children=ur,di.prototype.parseNext=di.prototype.zd,di.prototype.parse=di.prototype.parse,di.prototype.stop=di.prototype.stop,di.prototype.fullBox=di.prototype.S,di.prototype.box=di.prototype.box;var w_e=0,Tq=1;function zI(i){var u=this;this.g=[],this.h=[],this.data=[],new di().box("moov",ur).box("moof",ur).S("pssh",function(f){if(!(f.version>1)){var m=Re(f.reader.h,-12,f.size);if(u.data.push(m),m=f.reader.Tb(16,!1),u.g.push(Mn(m)),f.version>0){m=f.reader.U();for(var b=0;b0&&(w+=4+16*f.size);var A=new Uint8Array(w),R=it(A),N=0;if(R.setUint32(N,w),N+=4,R.setUint32(N,1886614376),N+=4,m<1?R.setUint32(N,0):R.setUint32(N,16777216),N+=4,A.set(u,N),N+=u.length,m>0)for(R.setUint32(N,f.size),N+=4,u=_(f),f=u.next();!f.done;f=u.next())f=ar(f.value),A.set(f,N),N+=f.length;return R.setUint32(N,b),A.set(i,N+4),A}function e6(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 De,this.i=new Map,this.X=[],this.C=new Map,this.K=!1,this.m=new ci,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 yr(function(){return $_e(u)}),this.R=!1,this.N=[],this.$=!1,this.G=new yr(function(){N_e(u)}),this.m.catch(function(){}),this.l=new pg(function(){return E_e(u)}),this.O=!1,this.H=this.I=null,this.V=function(){return!1}}l=e6.prototype,l.destroy=function(){return this.l.destroy()};function E_e(i){return ie(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,L(u,B3(i),2);case 2:if(!i.j){u.A(3);break}return j(u,4),L(u,i.j.setMediaKeys(null),6);case 6:H(u,5);break;case 4:K(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,B(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 T_e(i,u,f){return i.qa=!0,i.C=new Map,i.R=f,Iq(i,u,!1)}function Aq(i,u,f,m){m=m===void 0?!0:m,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,Iq(i,u,m)}function A_e(i,u,f,m,b,w){var A,R,N,V,G;return ie(function(Z){return Z.g==1?(A=[],w.length&&A.push(w[0].contentType),b.length&&A.push(b[0].contentType),R=function(se){return se=pr(u,se,null),se.licenseServerUri=f,se.serverCertificate=m,se.persistentStateRequired=!0,se.sessionType="persistent-license",se},N=dq(A),N.video&&(V=R(w[0].encryptionScheme||""),N.video.drmInfos.push(V)),N.audio&&(G=R(b[0].encryptionScheme||""),N.audio.drmInfos.push(G)),L(Z,OI([N],!0,i.O,[]),2)):(Ii(i.l),Z.return(Rq(i,[N])))})}function Iq(i,u,f){var m,b,w,A,R,N,V,G,Z,se,ce,pe,me,ye,Be,Pe,Ke,ot;return ie(function(bt){if(bt.g==1){for(Fq(i.h.clearKeys,u),m=u.some(function(tt){return!!(tt.video&&tt.video.drmInfos.length||tt.audio&&tt.audio.drmInfos.length)}),b=vg(i.h.servers),w=vg(i.h.advanced||{}),!m&&f&&j_e(u,b),A=new WeakSet,R=_(u),N=R.next();!N.done;N=R.next())for(V=N.value,G=Nq(V),Z=_(G),se=Z.next();!se.done;se=Z.next())ce=se.value,A.has(ce)||(A.add(ce),z_e(ce,b,w,i.h.keySystemsMapping));for(pe=function(tt,We){var ht=[];tt=_(tt);for(var yt=tt.next();!yt.done;yt=tt.next()){yt=yt.value;var mt=yt[We]||w.has(yt.keySystem)&&w.get(yt.keySystem)[We]||"",_t;if((_t=mt=="")&&(_t=(_t=yt.keySystem)?!!_t.match(/^com\.widevine\.alpha/):!1),_t&&(We=="audioRobustness"?mt=[i.h.defaultAudioRobustnessForWidevine]:We=="videoRobustness"&&(mt=[i.h.defaultVideoRobustnessForWidevine])),typeof mt=="string")ht.push(yt);else if(Array.isArray(mt))for(mt.length===0&&(mt=[""]),mt=_(mt),_t=mt.next();!_t.done;_t=mt.next()){var kt={};ht.push(Object.assign({},yt,(kt[We]=_t.value,kt)))}}return ht},me=new WeakSet,ye=_(u),Be=ye.next();!Be.done;Be=ye.next())Pe=Be.value,Pe.video&&!me.has(Pe.video)&&(Pe.video.drmInfos=pe(Pe.video.drmInfos,"videoRobustness"),Pe.video.drmInfos=pe(Pe.video.drmInfos,"audioRobustness"),me.add(Pe.video)),Pe.audio&&!me.has(Pe.audio)&&(Pe.audio.drmInfos=pe(Pe.audio.drmInfos,"videoRobustness"),Pe.audio.drmInfos=pe(Pe.audio.drmInfos,"audioRobustness"),me.add(Pe.audio));return L(bt,OI(u,i.R,i.O,i.h.preferredKeySystems),2)}return Ii(i.l),Ke=m||b.size>0,Ke?(ot=Rq(i,u),bt.return(m?ot:ot.catch(function(){}))):(i.T=!0,bt.return(Promise.resolve()))})}function Lq(i){var u;return ie(function(f){switch(f.g){case 1:if(i.j.mediaKeys)return f.return();if(!i.I){f.A(2);break}return L(f,i.I,3);case 3:return Ii(i.l),f.return();case 2:return j(f,4),i.I=i.j.setMediaKeys(i.B),L(f,i.I,6);case 6:H(f,5);break;case 4:u=K(f),i.u(new we(2,6,6003,u.message));case 5:Ii(i.l),B(f)}})}function I_e(i,u){return ie(function(f){if(f.g==1)return L(f,Lq(i),2);$3(i,u.initDataType,Re(u.initData)),B(f)})}l.fc=function(i){var u=this,f,m;return ie(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())HI(u,A.value);u.$=!0,u.N=[]}),u.j.remote?(u.o.D(u.j.remote,"connect",function(){return B3(u)}),u.o.D(u.j.remote,"connecting",function(){return B3(u)}),u.o.D(u.j.remote,"disconnect",function(){return B3(u)})):"webkitCurrentPlaybackTargetIsWireless"in u.j&&u.o.D(u.j,"webkitcurrentplaybacktargetiswirelesschanged",function(){return B3(u)}),u.H=u.g&&u.g.initData.find(function(w){return w.initData.length>0})||null,f=u.g.keySystem,(m=$e().Rg(f))||!u.H&&u.g.keySystem==="com.apple.fps"&&!u.C.size?b.A(2):L(b,Lq(u),2)):(u.o.Ba(i,"encrypted",function(){u.u(new we(2,6,6010))}),b.return());Dq(u).catch(function(){}),!m&&(u.H||u.C.size||u.h.parseInbandPsshEnabled)||u.o.D(u.j,"encrypted",function(w){return I_e(u,w)}),B(b)})};function L_e(i){var u,f,m,b,w;return ie(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=Vo([i.g.serverCertificateUri],i.h.retryParameters),j(A,3),f=i.F.tc.request(5,u,{isPreload:i.V()}),L(A,f.promise,5);case 5:m=A.h,i.g.serverCertificate=Re(m.data),H(A,4);break;case 3:throw b=K(A),new we(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),L(A,i.B.setServerCertificate(i.g.serverCertificate),8));case 8:H(A,0);break;case 6:throw w=K(A),new we(2,6,6004,w.message)}})}function D_e(i,u){var f,m,b;return ie(function(w){if(w.g==1)return L(w,Oq(i,u,{initData:null,initDataType:null}),2);if(w.g!=3)return f=w.h,f?(m=[],(b=i.i.get(f))&&(b.Kb=new ci,m.push(b.Kb)),m.push(f.remove()),L(w,Promise.all(m),3)):w.return();i.i.delete(f),B(w)})}function Dq(i){var u,f,m,b,w;return ie(function(A){if(A.g==1)return i.C.size?(i.C.forEach(function(R,N){Oq(i,N,R)}),L(A,i.m,3)):A.A(2);if(A.g!=2){if(u=i.g&&i.g.keyIds||new Set([]),u.size>0&&F_e(i))return A.return(i.m);i.K=!1,i.m=new ci,i.m.catch(function(){})}for(f=(i.g?i.g.initData:[])||[],m=_(f),b=m.next();!b.done;b=m.next())w=b.value,$3(i,w.initDataType,w.initData);return N3(i)&&i.m.resolve(),A.return(i.m)})}function $3(i,u,f){if(f.length){if(i.h.ignoreDuplicateInitData){var m=i.i.values();m=_(m);for(var b=m.next();!b.done;b=m.next())if(xe(f,b.value.initData))return;var w=!1;if(i.C.forEach(function(A){!w&&xe(f,A.initData)&&(w=!0)}),w)return}i.K=!0,i.i.size>0&&N3(i)&&(i.m.resolve(),i.K=!1,i.m=new ci,i.m.catch(function(){})),M_e(i,u,f,i.g.sessionType)}}function Pq(i){return i=i.i.keys(),i=jI(i,function(u){return u.sessionId}),Array.from(i)}l.Gg=function(){var i=this,u=this.i.keys();return u=jI(u,function(f){var m=i.i.get(f);return{sessionId:f.sessionId,sessionType:m.type,initData:m.initData,initDataType:m.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 P_e(i){return i.J?i.J:NaN}l.Xe=function(){return VI(this.ma)};function Rq(i,u){var f,m,b,w,A,R,N;return ie(function(V){switch(V.g){case 1:if(f=new Map,m=R_e(i,u,f),!m)throw navigator.requestMediaKeySystemAccess?new we(2,6,6001):new we(2,6,6020);Ii(i.l),j(V,2),m.getConfiguration();var G=b=i.h.keySystemsMapping[m.keySystem]||m.keySystem,Z=f.get(b),se=[],ce=[],pe=[],me=[],ye=[],Be=new Set,Pe=new Set;V_e(Z,se,ce,me,pe,ye,Be,Pe);var Ke=i.R?"persistent-license":"temporary";for(G={keySystem:G,encryptionScheme:se[0],licenseServerUri:ce[0],distinctiveIdentifierRequired:Z[0].distinctiveIdentifierRequired,persistentStateRequired:Z[0].persistentStateRequired,sessionType:Z[0].sessionType||Ke,audioRobustness:Z[0].audioRobustness||"",videoRobustness:Z[0].videoRobustness||"",serverCertificate:me[0],serverCertificateUri:pe[0],initData:ye,keyIds:Be},Pe.size>0&&(G.keySystemUris=Pe),Z=_(Z),Pe=Z.next();!Pe.done;Pe=Z.next())Pe=Pe.value,Pe.distinctiveIdentifierRequired&&(G.distinctiveIdentifierRequired=Pe.distinctiveIdentifierRequired),Pe.persistentStateRequired&&(G.persistentStateRequired=Pe.persistentStateRequired);if(i.g=G,!i.g.licenseServerUri)throw new we(2,6,6012,i.g.keySystem);return L(V,m.createMediaKeys(),4);case 4:if(w=V.h,Ii(i.l),i.B=w,!(i.h.minHdcpVersion!=""&&"getStatusForPolicy"in i.B)){V.A(5);break}return j(V,6),L(V,i.B.getStatusForPolicy({minHdcpVersion:i.h.minHdcpVersion}),8);case 8:if(A=V.h,A!="usable")throw new we(2,6,6018);Ii(i.l),H(V,5,2);break;case 6:throw R=K(V,2),R instanceof we?R:new we(2,6,6019,R.message);case 5:return i.T=!0,i.G.Ea(i.h.updateExpirationTime),L(V,L_e(i),9);case 9:Ii(i.l),H(V,0);break;case 2:throw N=K(V),Ii(i.l,N),i.g=null,N instanceof we?N:new we(2,6,6002,N.message)}})}function R_e(i,u,f){for(var m=_(u),b=m.next();!b.done;b=m.next()){b=_(Nq(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 we(2,6,6e3);m=i.h.preferredKeySystems,m.length||(b=vg(i.h.servers),b.size==1&&(m=Array.from(b.keys()))),b=_(m);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(Z){return function(se){return se.supported&&se.keySystemAccess!=null&&se.keySystemAccess.keySystem==Z.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 N=R.next();!N.done;N=R.next())if(N=N.value,N.supported&&N.keySystemAccess){var V=N.keySystemAccess.keySystem;if(!m.includes(V)){var G=f.get(V);for(!G&&i.h.keySystemsMapping[V]&&(G=f.get(i.h.keySystemsMapping[V])),V=_(G),G=V.next();!G.done;G=V.next())if(!!G.value.licenseServerUri==w)return N.keySystemAccess}}}return null}function UI(i){N3(i)&&i.m.resolve()}function Mq(i,u){new yr(function(){u.loaded=!0,UI(i)}).ia(H_e)}function Oq(i,u,f){var m,b,w,A,R,N,V;return ie(function(G){switch(G.g){case 1:try{m=i.B.createSession("persistent-license")}catch(Z){return b=new we(2,6,6005,Z.message),i.u(b),G.return(Promise.reject(b))}return i.o.D(m,"message",function(Z){i.j&&i.h.delayLicenseRequestUntilPlayed&&i.j.paused&&!i.$?i.N.push(Z):HI(i,Z)}),i.o.D(m,"keystatuseschange",function(Z){return $q(i,Z)}),w={initData:f.initData,initDataType:f.initDataType,loaded:!1,Ug:1/0,Kb:null,type:"persistent-license"},i.i.set(m,w),j(G,2),L(G,m.load(u),4);case 4:return A=G.h,Ii(i.l),A||(i.i.delete(m),R=i.h.persistentSessionOnlinePlayback?1:2,i.u(new we(R,6,6013)),w.loaded=!0),Mq(i,w),UI(i),G.return(m);case 2:N=K(G),Ii(i.l,N),i.i.delete(m),V=i.h.persistentSessionOnlinePlayback?1:2,i.u(new we(V,6,6005,N.message)),w.loaded=!0,UI(i);case 3:return G.return(Promise.resolve())}})}function M_e(i,u,f,m){try{var b=i.B.createSession(m)}catch(w){i.u(new we(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):HI(i,w)}),i.o.D(b,"keystatuseschange",function(w){return $q(i,w)}),i.i.set(b,{initData:f,initDataType:u,loaded:!1,Ug:1/0,Kb:null,type:m});try{f=i.h.initDataTransform(f,u,i.g)}catch(w){u=w,w instanceof we||(u=new we(2,6,6016,w)),i.u(u);return}i.h.logLicenseExchange&&Jn(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 we(2,6,6006,w.message,w,R))}})}function O_e(i){return ie(function(u){return u.g==1?i.K?L(u,i.m,3):u.A(0):L(u,Promise.all(i.X.map(function(f){return f.promise})),0)})}function HI(i,u){var f,m,b,w,A,R,N,V,G,Z,se,ce,pe,me,ye,Be;ie(function(Pe){switch(Pe.g){case 1:if(f=u.target,i.h.logLicenseExchange&&Jn(u.message),m=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=Vo([b],i.h.retryParameters),A.body=u.message,A.method="POST",A.licenseRequestType=u.messageType,A.sessionId=f.sessionId,A.drmInfo=i.g,m&&(A.initData=m.initData,A.initDataType=m.initDataType),w&&w.headers)for(R in w.headers)A.headers[R]=w.headers[R];if(i.g.keySystem==="org.w3.clearkey"){var Ke=A,ot=i.g;try{var bt=Qt(Ke.body);if(bt){var tt=JSON.parse(bt);tt.type||(tt.type=ot.sessionType,Ke.body=qt(JSON.stringify(tt)))}}catch{}}if(NI(i.g.keySystem))if(Ke=Ot(A.body,!0,!0),Ke.includes("PlayReadyKeyMessage")){for(Ke=ui(Ke,"PlayReadyKeyMessage"),ot=Aa(Ke,"HttpHeader"),ot=_(ot),bt=ot.next();!bt.done;bt=ot.next())tt=bt.value,bt=Aa(tt,"name")[0],tt=Aa(tt,"value")[0],A.headers[xr(bt)]=xr(tt);Ke=Aa(Ke,"Challenge")[0],A.body=hr(xr(Ke))}else A.headers["Content-Type"]="text/xml; charset=utf-8";return N=Date.now(),j(Pe,2),G=i.F.tc.request(2,A,{isPreload:i.V()}),i.X.push(G),L(Pe,G.promise,4);case 4:V=Pe.h,Mt(i.X,G),H(Pe,3);break;case 2:return Z=K(Pe),i.l.g||(se={sessionId:f.sessionId,sessionType:m.type,initData:m.initData,initDataType:m.initDataType},ce=new we(2,6,6007,Z,se),i.i.size==1?(i.u(ce),m&&m.Kb&&m.Kb.reject(ce)):(m&&m.Kb&&m.Kb.reject(ce),i.i.delete(f),N3(i)&&(i.m.resolve(),i.M.ia(.1)))),Pe.return();case 3:return i.l.g?Pe.return():(i.J+=(Date.now()-N)/1e3,i.h.logLicenseExchange&&Jn(V.data),j(Pe,5),L(Pe,f.update(V.data),7));case 7:H(Pe,6);break;case 5:return me=(pe=K(Pe))&&pe.message||String(pe),ye=new we(2,6,6008,me),i.u(ye),m&&m.Kb&&m.Kb.reject(ye),Pe.return();case 6:if(i.l.g)return Pe.return();Be=new Tn("drmsessionupdate"),i.F.onEvent(Be),m&&(m.Kb&&m.Kb.resolve(),Mq(i,m)),B(Pe)}})}function $q(i,u){u=u.target;var f=i.i.get(u),m=!1;u.keyStatuses.forEach(function(w,A){if(typeof A=="string"){var R=A;A=w,w=R}if(R=$e(),NI(i.g.keySystem)&&A.byteLength==16&&R.gh()){R=it(A);var N=R.getUint32(0,!0),V=R.getUint16(4,!0),G=R.getUint16(6,!0);R.setUint32(0,N,!1),R.setUint16(4,V,!1),R.setUint16(6,G,!1)}w!="status-pending"&&(f.loaded=!0),w=="expired"&&(m=!0),A=Mn(A).slice(0,32),i.aa.set(A,w)});var b=u.expiration-Date.now();(b<0||m&&b<1e3)&&f&&!f.Kb&&(i.i.delete(u),Bq(u)),N3(i)&&(i.m.resolve(),i.M.ia(W_e))}function $_e(i){var u=i.aa,f=i.ma;f.clear(),u.forEach(function(m,b){return f.set(b,m)}),u=Array.from(f.values()),u.length&&u.every(function(m){return m=="expired"})&&i.u(new we(2,6,6014)),i.F.vf(VI(f))}function B_e(){var i,u,f,m,b,w,A,R,N,V,G,Z,se,ce,pe,me,ye,Be,Pe,Ke,ot,bt,tt,We,ht,yt,mt,_t,kt,Nt,jt,It;return ie(function(Pt){if(Pt.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),m=f.next();!m.done;m=f.next())b=m.value,u[b]=null;return Pt.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"],N={"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"'}],G=[{contentType:'audio/mp4; codecs="mp4a.40.2"'},{contentType:'audio/webm; codecs="opus"'}],Z={videoCapabilities:V,audioCapabilities:G,initDataTypes:["cenc","sinf","skd","keyids"]},se=[null,"cenc","cbcs"],ce=new Map,pe=$e(),me=function(Yt,cn,nr){var In,Dr,_r,Qr,Cr,Fn,wi,Mr,Pr,vr,Ui,Vi,io;return ie(function(oi){switch(oi.g){case 1:return j(oi,2),L(oi,cn.createMediaKeys(),5);case 5:In=oi.h;case 4:H(oi,3);break;case 2:return K(oi),oi.return();case 3:if(_r=(Dr=cn.getConfiguration().sessionTypes)?Dr.includes("persistent-license"):!1,pe.ti()&&(_r=!1),Qr=cn.getConfiguration().videoCapabilities,Cr=cn.getConfiguration().audioCapabilities,Fn={persistentState:_r,encryptionSchemes:[],videoRobustnessLevels:[],audioRobustnessLevels:[],minHdcpVersions:[]},ce.get(Yt)?Fn=ce.get(Yt):ce.set(Yt,Fn),(wi=Qr[0].encryptionScheme)&&!Fn.encryptionSchemes.includes(wi)&&Fn.encryptionSchemes.push(wi),(Mr=Qr[0].robustness)&&!Fn.videoRobustnessLevels.includes(Mr)&&Fn.videoRobustnessLevels.push(Mr),(Pr=Cr[0].robustness)&&!Fn.audioRobustnessLevels.includes(Pr)&&Fn.audioRobustnessLevels.push(Pr),!(nr&&"getStatusForPolicy"in In)){oi.A(0);break}vr=_(w),Ui=vr.next();case 7:if(Ui.done){oi.A(0);break}if(Vi=Ui.value,Fn.minHdcpVersions.includes(Vi)){oi.A(8);break}return L(oi,In.getStatusForPolicy({minHdcpVersion:Vi}),10);case 10:if(io=oi.h,io=="usable")Fn.minHdcpVersions.includes(Vi)||Fn.minHdcpVersions.push(Vi);else{oi.A(0);break}case 8:Ui=vr.next(),oi.A(7)}})},ye=function(Yt,cn,nr,In,Dr){Dr=Dr===void 0?!1:Dr;var _r,Qr,Cr,Fn,wi,Mr,Pr,vr,Ui,Vi,io;return ie(function(oi){switch(oi.g){case 1:for(j(oi,2),_r=mn(Z),Qr=_(_r.videoCapabilities),Cr=Qr.next();!Cr.done;Cr=Qr.next())Fn=Cr.value,Fn.encryptionScheme=cn,Fn.robustness=nr;for(wi=_(_r.audioCapabilities),Mr=wi.next();!Mr.done;Mr=wi.next())Pr=Mr.value,Pr.encryptionScheme=cn,Pr.robustness=In;return vr=mn(_r),vr.persistentState="required",vr.sessionTypes=["persistent-license"],Ui=[vr,_r],io=$e(),io.Ua()=="MOBILE"?L(oi,$S(5,navigator.requestMediaKeySystemAccess(Yt,Ui)),7):L(oi,navigator.requestMediaKeySystemAccess(Yt,Ui),6);case 6:Vi=oi.h,oi.A(5);break;case 7:Vi=oi.h;case 5:return L(oi,me(Yt,Vi,Dr),8);case 8:H(oi,0);break;case 2:K(oi),B(oi)}})},Be=_(i),Pe=Be.next();!Pe.done;Pe=Be.next())Ke=Pe.value,ce.set(Ke,null);for(ot=function(Yt){return!($e().Ha()==="WEBKIT"&&Yt==="org.w3.clearkey")},bt=[],tt=_(i),We=tt.next();!We.done;We=tt.next())if(ht=We.value,ot(ht)){for(yt=!0,mt=_(se),_t=mt.next();!_t.done;_t=mt.next())kt=_t.value,bt.push(ye(ht,kt,"","",yt)),yt=!1;for(Nt=_(N[ht]||[]),jt=Nt.next();!jt.done;jt=Nt.next())It=jt.value,bt.push(ye(ht,null,It,"")),bt.push(ye(ht,null,"",It))}return L(Pt,Promise.all(bt),2)}return Pt.return(VI(ce))})}function Bq(i){return ie(function(u){if(u.g==1)return j(u,2),L(u,$S(U_e,Promise.all([i.close().catch(function(){}),i.closed])),4);if(u.g!=2)return H(u,0);K(u),B(u)})}function B3(i){var u;return ie(function(f){return u=Array.from(i.i.entries()),i.i.clear(),L(f,Promise.all(u.map(function(m){m=_(m);var b=m.next().value,w=m.next().value;return ie(function(A){if(A.g==1)return j(A,2),i.qa||i.C.has(b.sessionId)||w.type!=="persistent-license"||i.h.persistentSessionOnlinePlayback?L(A,Bq(b),5):L(A,b.remove(),5);if(A.g!=2)return H(A,0);K(A),B(A)})})),0)})}function Nq(i){return(i.video?i.video.drmInfos:[]).concat(i.audio?i.audio.drmInfos:[])}function N_e(i){i.i.forEach(function(u,f){var m=u.Ug,b=f.expiration;isNaN(b)&&(b=1/0),b!=m&&(i.F.onExpirationUpdated(f.sessionId,b),u.Ug=b)})}function N3(i){return i=i.i.values(),C_e(i,function(u){return u.loaded})}function F_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 j_e(i,u){var f=[];for(u.forEach(function(m,b){f.push({keySystem:b,licenseServerUri:m,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 V_e(i,u,f,m,b,w,A,R){var N=[];i=_(i);for(var V=i.next(),G={};!V.done;G={Ka:void 0},V=i.next()){if(G.Ka=V.value,u.includes(G.Ka.encryptionScheme)||u.push(G.Ka.encryptionScheme),G.Ka.keySystem=="org.w3.clearkey"&&G.Ka.licenseServerUri.startsWith("data:application/json;base64,")?N.includes(G.Ka.licenseServerUri)||N.push(G.Ka.licenseServerUri):f.includes(G.Ka.licenseServerUri)||f.push(G.Ka.licenseServerUri),b.includes(G.Ka.serverCertificateUri)||b.push(G.Ka.serverCertificateUri),G.Ka.serverCertificate&&(m.some((function(ce){return function(pe){return xe(pe,ce.Ka.serverCertificate)}})(G))||m.push(G.Ka.serverCertificate)),G.Ka.initData){V=_(G.Ka.initData);for(var Z=V.next(),se={};!Z.done;se={Lg:void 0},Z=V.next())se.Lg=Z.value,w.some((function(ce){return function(pe){var me=ce.Lg;return pe.keyId&&pe.keyId==me.keyId?!0:pe.initDataType==me.initDataType&&xe(pe.initData,me.initData)}})(se))||w.push(se.Lg)}if(G.Ka.keyIds)for(V=_(G.Ka.keyIds),Z=V.next();!Z.done;Z=V.next())A.add(Z.value);if(G.Ka.keySystemUris&&R)for(G=_(G.Ka.keySystemUris),V=G.next();!V.done;V=G.next())R.add(V.value)}if(N.length==1)f.push(N[0]);else if(N.length>0){for(u=[],N=_(N),m=N.next();!m.done;m=N.next())m=o.atob(m.value.split("data:application/json;base64,").pop()),m=JSON.parse(m),u.push.apply(u,T(m.keys));N=JSON.stringify({keys:u}),f.push("data:application/json;base64,"+o.btoa(N))}}function z_e(i,u,f,m){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)),m[b]&&(i.keySystem=m[b]),o.cast&&o.cast.__platform__&&b=="com.microsoft.playready"&&(i.keySystem="com.chromecast.playready"))}function Fq(i,u){if(i=vg(i),i.size!=0){i=qr(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 U_e=1,H_e=5,W_e=.5;function G_e(){this.g=gg,this.i=new Map().set(gg,2).set(Z0,1),this.h=0}function WI(i,u){var f=i.g!==u;return i.g=u,f&&u===gg&&(i.h=Date.now()),f}var Z0=0,gg=1;/* @license Shaka Player Copyright 2023 Google LLC SPDX-License-Identifier: Apache-2.0 */function GI(i,u,f){this.g=i,this.i=u,this.h=f}function jq(i,u){return ie(function(f){if(f.g==1)return L(f,u_e(i.h,u,i.g.drm.preferredKeySystems,i.g.drm.keySystemsMapping),2);if(i.g.streaming.dontChooseCodecs||tq(u,i.g.preferredVideoCodecs,i.g.preferredAudioCodecs,i.g.preferredDecodingAttributes,i.g.preferredTextFormats),!u.variants.some(O3))throw new we(2,4,4032);return f.return(zq(i,u))})}function Vq(i,u){var f=i.g.restrictions;i=i.i;var m=!1;u=_(u.variants);for(var b=u.next();!b.done;b=u.next()){b=b.value;var w=b.allowedByApplication;b.allowedByApplication=FS(b,f,i),w!=b.allowedByApplication&&(m=!0)}return m}function zq(i,u){var f=Vq(i,u);if(u){var m=i.h?i.h.g:null;if(m&&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())Uq(i,m.keySystem,w.value)}Hq(i,u)}return f}function Uq(i,u,f){f=_(f.drmInfos);for(var m=f.next();!m.done;m=f.next())if(m=m.value,m.keySystem==u){m=_(m.initData||[]);for(var b=m.next();!b.done;b=m.next())b=b.value,$3(i.h,b.initDataType,b.initData)}}function Hq(i,u){i=i.h?i.h.Xe():{};var f=Object.keys(i);f=f.length&&f[0]=="00";var m=!1,b=!1,w=new Set,A=new Set,R=new Set;u=_(u.variants);for(var N=u.next();!N.done;N=u.next())N=N.value,N.audio&&R.add(N.audio),N.video&&R.add(N.video),N.allowedByApplication?N.allowedByKeySystem&&(m=!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),N=u.next();!N.done;N=u.next()){N=N.value;var V=i[f?"00":N];V?Wq.includes(V)&&A.add(V):w.add(N)}if(!m)throw i={hasAppRestrictions:b,missingKeys:Array.from(w),restrictedKeyStatuses:Array.from(A)},new we(2,4,4012,i)}var Wq=["output-restricted","internal-error"];function F3(){}function J0(i,u){yg.set(i,u)}function K_e(){var i={};if($e(),Gd())for(var u=_(yg.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]=Gd()?yg.has(f):ev().canPlayType(f)!="";return i}function Gq(i,u){if(u){var f=yg.get(u.toLowerCase());if(f)return f}throw new we(2,4,4e3,i,u)}Te("shaka.media.ManifestParser",F3),F3.unregisterParserByMime=function(i){yg.delete(i)},F3.registerParserByMime=J0,F3.registerParserByExtension=function(){rn("ManifestParser.registerParserByExtension","Please use an ManifestParser with registerParserByMime function.")},F3.AccessibilityPurpose={zm:"visually impaired",Kl:"hard of hearing",gm:"spoken subtitles"};var yg=new Map;Te("shaka.config.CodecSwitchingStrategy",{RELOAD:"reload",SMOOTH:"smooth"});function t6(i,u){var f=null,m=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&&(m=i.U()),{trackId:A,Td:f,Ud:m,kj:b,Li:w}}function n6(i,u){return u==1?(u=i.U(),i=i.U(),{baseMediaDecodeTime:u*4294967296+i}):{baseMediaDecodeTime:i.U()}}function r6(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 i6(i,u,f){var m=i.U(),b=[],w=null;f&1&&(w=i.Zg()),f&4&&i.skip(4);for(var A=0;A0)var b=Ar("avcC",i.Ra);else{b=Ar;for(var w=7,A=[],R=[],N=0,V=0,G=0,Z=0;Z0&&(N=A[0][1],G=A[0][2],V=A[0][3]),w=new Uint8Array(w),Z=0,w[Z++]=1,w[Z++]=N,w[Z++]=G,w[Z++]=V,w[Z++]=255,w[Z++]=224|A.length,N=0;N>8,w[Z++]=A[N].length&255,w.set(A[N],Z),Z+=A[N].length;for(w[Z++]=R.length,A=0;A>8,w[Z++]=R[A].length&255,w.set(R[A],Z),Z+=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(Gi(f,2)),T(Gi(m,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])),m="avc1",R=Yq(i),A=new Uint8Array([]),i.encrypted&&(A=Q0(i.stream,i.codecs),m="encv"),m=Ar(m,f,b,R,A)}else i.codecs.includes("hvc1")&&(m=i.stream.width||0,b=i.stream.height||0,f=new Uint8Array([]),i.Ra.byteLength>0&&(f=Ar("hvcC",i.Ra)),m=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(Gi(m,2)),T(Gi(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=Yq(i),A=new Uint8Array([]),i.encrypted&&(A=Q0(i.stream,i.codecs),b="encv"),m=Ar(b,m,f,R,A));break;case"audio":f=="mp3"?i=Ar(".mp3",V3(i)):f=="ac-3"?(f=Ar("dac3",i.Ga),m="ac-3",b=new Uint8Array([]),i.encrypted&&(b=Q0(i.stream,i.codecs),m="enca"),i=Ar(m,V3(i),f,b)):f=="ec-3"?(f=Ar("dec3",i.Ga),m="ec-3",b=new Uint8Array([]),i.encrypted&&(b=Q0(i.stream,i.codecs),m="enca"),i=Ar(m,V3(i),f,b)):f=="opus"?(f=Ar("dOps",i.Ga),m="Opus",b=new Uint8Array([]),i.encrypted&&(b=Q0(i.stream,i.codecs),m="enca"),i=Ar(m,V3(i),f,b)):(i.Ga.byteLength>0?f=Ar("esds",i.Ga):(f=Ar,m=i.id+1,b=i.stream.channelsCount||2,A=i.stream.audioSamplingRate||44100,N=bi("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],(N==="mp4a.40.5"||N==="mp4a.40.29")&&(R=V[A*2]),A=parseInt(N.split(".").pop(),10),m=new Uint8Array([0,0,0,0,3,25].concat(T(Gi(m,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",m)),m="mp4a",b=new Uint8Array([]),i.encrypted&&(b=Q0(i.stream,i.codecs),m="enca"),i=Ar(m,V3(i),f,b)),m=i}return i=Ar("stsd",iSe.value(),m),u("stbl",i,Ar("stts",J_e.value()),Ar("stsc",Q_e.value()),Ar("stsz",tSe.value()),Ar("stco",eSe.value()))}function Yq(i){if(!i.Za&&!i.$a)return new Uint8Array([]);var u=i.$a;return i=new Uint8Array([].concat(T(Gi(i.Za,4)),T(Gi(u,4)))),Ar("pasp",i)}function V3(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(Gi(i.stream.audioSamplingRate||44100,2)),[0,0]))}function Q0(i,u){var f=Ar;u=new Uint8Array([].concat(T(Gi(Zq(u.split(".")[0]),4)))),u=Ar("frma",u);var m="cenc",b=i.drmInfos[0];b&&b.encryptionScheme&&(m=b.encryptionScheme),m=new Uint8Array([0,0,0,0].concat(T(Gi(Zq(m),4)),[0,1,0,0])),m=Ar("schm",m),b=Ar;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=Xq(R.value)}return i=new Uint8Array([0,0,0,0,0,0,1,8]),w=Ar("tenc",i,w),f("sinf",u,m,b("schi",w))}function z3(i){var u=[];i=_(i.g);for(var f=i.next();!f.done;f=i.next()){f=f.value;var m=u.push,b=m.apply,w=Ar,A=new Uint8Array([0,0,0,0].concat(T(Gi(f.data?f.data.sequenceNumber:0,4))));A=Ar("mfhd",A);var R,N=f.data?f.data.zb:[],V=new Uint8Array(4+N.length);for(R=0;R=0;u--)f.push(i>>8*u&255);return f}function Xq(i){for(var u=new Uint8Array(i.length/2),f=0;f=0;b--)m+=u[b].byteLength;for(b=new Uint8Array(m),b[0]=m>>24&255,b[1]=m>>16&255,b[2]=m>>8&255,b[3]=m&255,b.set(f,4),f=0,m=8;f=0;G--)V.push(2>>8*G&255);for(i.set(new Uint8Array(V),R),i.set(N,R+4),R=_(A),N=R.next();!N.done;N=R.next())N=N.value,o6(i,N.start,N.size+4)}}return i}function cSe(i,u,f,m,b,w){var A=Q0(i,m.name),R=u.subarray(m.start,m.start+m.size);for(i=new Uint8Array(m.size+A.byteLength),i.set(R,0),it(i).setUint32(4,w),i.set(A,m.size),o6(i,0,i.byteLength),w=new Uint8Array(u.byteLength+i.byteLength),m=$e().df()?m.start:m.start+m.size,A=u.subarray(m),w.set(u.subarray(0,m)),w.set(i,m),w.set(A,m+i.byteLength),u=_(b),b=u.next();!b.done;b=u.next())b=b.value,o6(w,b.start,b.size+i.byteLength);return i=it(w,f.start),f=up(f),u=i.getUint32(f),i.setUint32(f,u+1),w}function o6(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 dSe(i){function u(b){m.push({start:b.start,size:b.size}),ur(b)}var f=Re(i),m=[];return new di().box("moov",u).box("trak",u).box("mdia",u).box("minf",u).box("stbl",u).box("stsd",function(b){m.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()){qI(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=tY},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?Xe("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 eY(i,u){i.ba=u,i=_(i.g);for(var f=i.next();!f.done;f=i.next())eY(f.value,u)}Te("shaka.media.SegmentReference",zn),zn.prototype.getSegmentData=zn.prototype.Yb,zn.prototype.setSegmentData=zn.prototype.pe,zn.prototype.syncAgainst=zn.prototype.yh,zn.prototype.offset=zn.prototype.offset,zn.prototype.getThumbnailSprite=zn.prototype.Xj,zn.prototype.setThumbnailSprite=zn.prototype.If,zn.prototype.hasByterangeOptimization=zn.prototype.gk,zn.prototype.markAsByterangeOptimization=zn.prototype.oi,zn.prototype.isLastPartial=zn.prototype.lk,zn.prototype.markAsLastPartial=zn.prototype.pi,zn.prototype.isPartial=zn.prototype.nk,zn.prototype.markAsPartial=zn.prototype.ri,zn.prototype.isIndependent=zn.prototype.kk,zn.prototype.markAsNonIndependent=zn.prototype.wd,zn.prototype.isPreload=zn.prototype.isPreload,zn.prototype.markAsPreload=zn.prototype.Qg,zn.prototype.markAsUnavailable=zn.prototype.xk,zn.prototype.getStatus=zn.prototype.Jc,zn.prototype.getTileDuration=zn.prototype.Zj,zn.prototype.getTilesLayout=zn.prototype.$j,zn.prototype.getEndByte=zn.prototype.Gc,zn.prototype.getStartByte=zn.prototype.Ic,zn.prototype.getEndTime=zn.prototype.Ej,zn.prototype.getStartTime=zn.prototype.getStartTime,zn.prototype.getUris=zn.prototype.P;var Kf=0,tY=1;zn.Status={ql:Kf,xm:tY,Tl:2};function H3(i){return i.length==1&&i.end(0)-i.start(0)<1e-4}function nY(i){return!i||H3(i)?null:i.length==1&&i.start(0)<0?0:i.length?i.start(0):null}function s6(i){return!i||H3(i)?null:i.length?i.end(i.length-1):null}function YI(i,u){return!i||!i.length||H3(i)||u>i.end(i.length-1)?!1:u>=i.start(0)}function rY(i,u){if(!i||!i.length||H3(i))return 0;var f=0;i=_(qf(i));for(var m=i.next();!m.done;m=i.next()){var b=m.value;m=b.start,b=b.end,b>u&&(f+=b-Math.max(m,u))}return f}function fSe(i,u,f){return!i||!i.length||H3(i)?null:(i=qf(i).findIndex(function(m,b,w){return m.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;--m)i.removeChild(f[m]),u=!0;return i.src&&(i.removeAttribute("src"),u=!0),u}function W3(i){for(;i.firstChild;)i.removeChild(i.firstChild)}function ev(){return Sg||(ZI||(ZI=new yr(function(){Sg=null})),(Sg=document.getElementsByTagName("video")[0]||document.getElementsByTagName("audio")[0])||(Sg=document.createElement("video")),ZI.ia(1),Sg)}function hSe(i,u){var f,m,b,w,A;return ie(function(R){if(R.g==1)return"fonts"in document&&"FontFace"in o?L(R,document.fonts.ready,2):R.return();if(!("entries"in document.fonts))return R.return();for(f=function(N){N=N.entries();for(var V=[],G=N.next();G.done===!1;)V.push(G.value),G=N.next();return V},m=_(f(document.fonts)),b=m.next();!b.done;b=m.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),B(R)})}Te("shaka.util.Dom",XI),XI.removeAllChildren=W3,XI.clearSourceFromVideo=a6;var ZI=null,Sg=null;/* @license Shaka Player Copyright 2022 Google LLC SPDX-License-Identifier: Apache-2.0 */function JI(){}function oY(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 sY(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 QI(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 pSe(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 m=at(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=at(Re(i.data,3+f,w)),R;return m==="-->"?R=at(Re(i.data,4+f+w)):R=Ce(i.data.subarray(4+f+w)),u.mimeType=m,u.pictureType=b,u.description=A,u.data=R,u}return i.type==="TXXX"?i.size<2||i.data[0]!==3||(m=i.data.subarray(1).indexOf(0),m===-1)?null:(f=at(Re(i.data,1,m)),i=at(Re(i.data,2+m)).replace(/\0*$/,""),u.description=f,u.data=i,u):i.type==="WXXX"?i.size<2||i.data[0]!==3||(m=i.data.subarray(1).indexOf(0),m===-1)?null:(f=at(Re(i.data,1,m)),i=at(Re(i.data,2+m)).replace(/\0*$/,""),u.description=f,u.data=i,u):i.type==="PRIV"?i.size<2||(f=i.data.indexOf(0),f===-1)?null:(f=at(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=Ce(i.data.subarray(f.length+1)),u.data=i),u):i.type[0]==="T"?i.size<2||i.data[0]!==3?null:(i=at(i.data.subarray(1)).replace(/\0*$/,""),u.data=i,u):i.type[0]==="W"?(i=at(i.data).replace(/\0*$/,""),u.data=i,u):i.data?(u.data=Ce(i.data),u):null}function tv(i){for(var u=0,f=[];oY(i,u);){var m=QI(i,u+6);for(i[u+5]>>6&1&&(u+=10),u+=10,m=u+m;u+10>6&1&&(m+=10),m+=10,m+=QI(i,u+6),sY(i,u+10)&&(m+=10),u+=m;return m>0?i.subarray(f,f+m):new Uint8Array([])}Te("shaka.util.Id3Utils",JI),JI.getID3Data=kg,JI.getID3Frames=tv;function aY(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,m=0;m=2&&i[m]==3&&i[m-1]==0&&i[m-2]==0||(u[f]=i[m],f++);this.j=Re(u,0,f)}this.i=this.j.byteLength,this.g=this.h=0}function eL(i){var u=i.j.byteLength-i.i,f=new Uint8Array(4),m=Math.min(4,i.i);m!==0&&(f.set(i.j.subarray(u,u+m)),i.h=new $i(f,0).U(),i.g=m*8,i.i-=m)}function Rl(i,u){if(i.g<=u){u-=i.g;var f=Math.floor(u/8);u-=f*8,i.g-=f,eL(i)}i.h<<=u,i.g-=u}function wr(i,u){var f=Math.min(i.g,u),m=i.h>>>32-f;return i.g-=f,i.g>0?i.h<<=f:i.i>0&&eL(i),f=u-f,f>0?m<>>u)!==0)return i.h<<=u,i.g-=u,u;return eL(i),u+tL(i)}function zs(i){Rl(i,1+tL(i))}function kn(i){var u=tL(i);return wr(i,u+1)-1}function xg(i){return i=kn(i),1&i?1+i>>>1:-1*(i>>>1)}function $n(i){return wr(i,1)===1}function Jr(i){return wr(i,8)}function l6(i,u){for(var f=8,m=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 N=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 Z=R+5,se=G;se>2;){var ce=w[Z+1]+2;switch(w[Z]){case 5:var pe=Sn(w.subarray(Z+2,Z+ce));A.audio==-1&&pe==="Opus"?(A.audio=V,A.audioCodec="opus"):A.video==-1&&pe==="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"&&(pe=null,w[Z+2]===128&&(pe=w[Z+3]),pe!=null&&(this.H={channelCount:(pe&15)===0?2:pe&15,nj:pe,sampleRate:48e3}))}Z+=ce,se-=ce}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+=G+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),m&&!this.J&&(m=!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:m=!0}}return this};function nL(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 m=u[7];if(m&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=uY(b,i.u),i.u=f.pts,f.dts=f.pts,m&64&&(m=(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=m),f.dts=f.pts!=b?uY(m,i.o):m),i.o=f.dts}return i=u[8]+9,u.byteLength<=i?null:(f.data=u.subarray(i),f)}l.Ek=function(i){return rn("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 m=i.byteLength,b=1;this.m=="hvc"&&(b=2);var w=u.state||0,A=w,R=0,N=[],V=-1,G=0;for(w==-1&&(V=0,G=this.m=="hvc"?i[0]>>1&63:i[0]&31,w=0,R=1);R=0?N.push({data:i.subarray(V+b,Z),fullData:i.subarray(V,Z),type:G,time:f,state:null}):(w=N.length?N[N.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)),Z>0&&(Z=i.subarray(0,Z),w.data=lr(w.data,Z),w.fullData=lr(w.fullData,Z),w.state=0)),R>1&63:i[R]&31,V=R,w=0):w=-1):w=0:w=3:w=Z?0:1}return V>=0&&w>=0&&N.push({data:i.subarray(V+b,m),fullData:i.subarray(V,m),type:G,time:f,state:w}),!N.length&&u.ge&&(f=N.length?N[N.length-1]:u.ge)&&(f.data=lr(f.data,i),f.fullData=lr(f.fullData,i)),u.state=w,N},l.getMetadata=function(){for(var i=[],u=_(this.l),f=u.next();!f.done;f=u.next())f=lr.apply(or,T(f.value)),(f=nL(this,f))&&i.push({cueTime:f.pts?f.pts/9e4:null,data:f.data,frames:tv(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=lr.apply(or,T(u.value)),m=nL(this,f);u=this.h.length?this.h[this.h.length-1]:null,m&&m.pts!=null&&m.dts!=null&&(!u||u.pts!=m.pts&&u.dts!=m.dts)?this.h.push(m):this.h.length&&(f=m?m.data:f)&&(u=this.h.pop(),u.data=lr(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 m=lr.apply(or,T(f.value)),b=nL(this,m);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&&(m=b?b.data:m)&&(f=this.g.pop(),f.data=lr(f.data,m),this.g.push(f))}if(i){for(u={ge:null,state:null},f=[],m=_(this.g),b=m.next();!b.done;b=m.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(){rn("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"?gSe(this):mSe(this)};function lY(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 mSe(i){var u={height:null,width:null,codec:null,frameRate:null},f=i.$e();if(!f.length||(f=f.find(function(ce){return ce.type==7}),!f))return u;f=new Yf(f.data);var m=Jr(f),b=Jr(f),w=Jr(f);if(zs(f),ySe.includes(m)){var A=kn(f);if(A===3&&Rl(f,1),zs(f),zs(f),Rl(f,1),$n(f)){A=A!==3?8:12;for(var R=0;R0)for(Be=b;Be<8;Be++)wr(m,2);for(Be=0;Be>We&1)<<31-We;return tt>>>0})(N),A=A==1?"H":"L",w="hvc1"+("."+["","A","B","C"][w]+R),w+="."+m.toString(16).toUpperCase(),w+="."+A+pe,ce&&(w+="."+ce.toString(16).toUpperCase()),se&&(w+="."+se.toString(16).toUpperCase()),Z&&(w+="."+Z.toString(16).toUpperCase()),G&&(w+="."+G.toString(16).toUpperCase()),V&&(w+="."+V.toString(16).toUpperCase()),f&&(w+="."+f.toString(16).toUpperCase()),u.codec=w,u.frameRate=lY(i),u}function uY(i,u){var f=1;for(i>u&&(f=-1);Math.abs(u-i)>4294967296;)i+=f*8589934592;return i}function Cg(i){return!(rL(i)<0)}function rL(i){for(var u=Math.min(1e3,i.length-564),f=0;f0||i.B.dispatchAllEmsgBoxes;G&&V.S("emsg",function(pe){var me=b.emsgSchemeIdUris;if(pe.version===0)var ye=pe.reader.Yc(),Be=pe.reader.Yc(),Pe=pe.reader.U(),Ke=pe.reader.U(),ot=pe.reader.U(),bt=pe.reader.U(),tt=m.startTime+Ke/Pe;else Pe=pe.reader.U(),tt=pe.reader.Dd()/Pe+m.timestampOffset,Ke=tt-m.startTime,ot=pe.reader.U(),bt=pe.reader.U(),ye=pe.reader.Yc(),Be=pe.reader.Yc();pe=pe.reader.Tb(pe.reader.getLength()-pe.reader.Oa(),!0),(me&&me.includes(ye)||i.B.dispatchAllEmsgBoxes)&&(ye=="urn:mpeg:dash:event:2012"?i.O.Dk():(me=tt+ot/Pe,i.O.Bk({startTime:tt,endTime:me,schemeIdUri:ye,value:Be,timescale:Pe,presentationTimeDelta:Ke,eventDuration:ot,id:bt,messageData:pe}),(ye=="https://aomedia.org/emsg/ID3"||ye=="https://developer.apple.com/streaming/emsg-id3")&&(Pe=tv(pe),Pe.length&&i.O.onMetadata([{cueTime:tt,data:pe,frames:Pe,dts:tt,pts:tt}],0,me))))});var Z=m.ba.timescale;u=Z&&!isNaN(Z);var se=0,ce=!1;u&&V.S("prft",function(pe){var me=pe.reader,ye=pe.version;me.U(),pe=me.U();var Be=me.U();pe=pe*1e3+Be/4294967296*1e3,ye===0?me=me.U():(ye=me.U(),me=me.U(),me=ye*4294967296+me),pe=aY(pe),me=new Map().set("detail",{wallClockTime:pe,programStartDate:new Date(pe-me/Z*1e3)}),me=new Tn("prft",me),i.O.onEvent(me)}).box("moof",ur).box("traf",ur).S("tfdt",function(pe){ce||(se=n6(pe.reader,pe.version).baseMediaDecodeTime/Z,ce=!0,G||pe.parser.stop())}),(G||u)&&V.parse(f,!1,A),ce&&m.timestampOffset==0&&(R=se)}else w.includes("/mp4")||w.includes("/webm")||!Cg(V)||(i.$.has(u)||i.$.set(u,new Li),N=i.$.get(u),N.clearData(),N.Gf(m.i),N.parse(V),V=N.getStartTime(u),V!=null&&(R=V),N=N.getMetadata());return{timestamp:R,metadata:N}}function d6(i,u,f,m,b,w,A,R,N,V,G){A=A===void 0?!1:A,R=R===void 0?!1:R,N=N===void 0?!1:N,V=V===void 0?!1:V;var Z,se,ce,pe,me,ye,Be,Pe,Ke,ot,bt,tt,We,ht,yt,mt,_t,kt,Nt,jt;return ie(function(It){switch(It.g){case 1:if(Z=Yr,u!=Z.Na){It.A(2);break}if(i.X!="HLS"){It.A(3);break}return L(It,i.Ta,4);case 4:se=It.h,i.h.u=se;case 3:return L(It,t_e(i.h,f,m?m.startTime:null,m?m.endTime:null,m?m.P()[0]:null),5);case 5:return It.return();case 2:if(V||!i.m){It.A(6);break}return L(It,d6(i,Z.ka,f,m,b,w,A,R,N,!0),7);case 7:return L(It,d6(i,Z.Aa,f,m,b,w,A,R,N,!0),8);case 8:return It.return();case 6:if(!i.l.has(u))return It.return();if(ce=i.l.get(u).timestampOffset,pe=i.F.get(u),i.j.has(u)&&(pe=i.j.get(u).getOriginalMimeType()),m&&(me=xSe(i,u,f,m,b,pe,N),ye=me.timestamp,Be=me.metadata,ye!=null&&(i.V==null&&u==Z.Aa&&(i.V=ye,i.wa=m.startTime,i.T!=null&&(Pe=0,i.wa==i.qa&&(Pe=i.V-i.T),i.ma.resolve(Pe))),i.T==null&&u==Z.ka&&(i.T=ye,i.qa=m.startTime,i.V!=null&&(Ke=0,i.wa==i.qa&&(Ke=i.V-i.T),i.ma.resolve(Ke))),ot=ye,bt=zf,!i.I&&bt.includes(i.F.get(u))&&(ot=0),tt=m.startTime-ot,We=Math.abs(ce-tt),(We>=.001||A||R)&&(!N||tt>0||!ce)&&(ce=tt,i.ib&&(ts(i,u,function(){return Eg(i,u)},null),ts(i,u,function(){return Tg(i,u,ce)},null))),(u==Z.Aa||!i.l.has(Z.Aa))&&i.Ta.resolve(ce)),Be.length)&&i.O.onMetadata(Be,ce,m?m.endTime:null),w&&u==Z.Aa&&(i.h||c6(i,"application/cea-608",i.I,!1),i.J||(ht=pe.split(";",1)[0],i.J=new Bs(ht)),m?(yt=i.J.xf(f),yt.length&&r_e(i.h,yt,ce)):i.J.init(f,R,G)),!i.j.has(u)){It.A(9);break}return L(It,i.j.get(u).transmux(f,b,m,i.i.duration,u),10);case 10:mt=It.h,ArrayBuffer.isView(mt)?f=mt:(_t=mt,_t.init!=null&&(kt=_t.init,ts(i,u,function(){i.H&&li(i.H,kt,ce,b),i.l.get(u).appendBuffer(kt)},m?m.P()[0]:null)),f=_t.data);case 9:if(f=ISe(i,b,f,m,u),!m||!i.I||u==Z.Na){It.A(11);break}if(!A&&!R){It.A(11);break}if(Nt=m.startTime,i.X!="HLS"||i.m||u!=Z.ka||!i.l.has(Z.Aa)){It.A(13);break}return L(It,i.ma,14);case 14:jt=It.h,Math.abs(jt)>.15&&(Nt-=jt);case 13:ts(i,u,function(){return Eg(i,u)},null),ts(i,u,function(){return Tg(i,u,Nt)},null);case 11:return L(It,ts(i,u,function(){var Pt=f;i.H&&li(i.H,Pt,ce,b),i.l.get(u).appendBuffer(Pt)},m?m.P()[0]:null),15);case 15:B(It)}})}function CSe(i,u){var f=iv(i,"video")||0;XK(i.h,u,f)}function wSe(i){i.h&&XK(i.h,"",0)}l.remove=function(i,u,f,m){var b=this,w,A;return ie(function(R){return R.g==1?(w=Yr,i==w.Aa&&b.J&&(b.J.remove(m),A=b.h.g||0,b.h.remove(A,f,!0)),i==w.Na?L(R,b.h.remove(u,f),0):f>u?L(R,ts(b,i,function(){return f6(b,i,u,f)},null),5):R.A(0)):b.m?L(R,ts(b,w.ka,function(){return f6(b,w.ka,u,f)},null),0):R.A(0)})};function fY(i,u){var f;return ie(function(m){return m.g==1?(f=Yr,u==f.Na?i.h?L(m,i.h.remove(0,1/0),0):m.return():u===f.Aa&&i.J&&i.h?L(m,i.h.remove(0,1/0,!0),4):m.A(4)):m.g!=6?L(m,ts(i,u,function(){return f6(i,u,0,i.i.duration)},null),6):i.m?L(m,ts(i,f.ka,function(){return f6(i,f.ka,0,i.i.duration)},null),0):m.A(0)})}l.flush=function(i){var u=this,f;return ie(function(m){return m.g==1?(f=Yr,i==f.Na?m.return():L(m,ts(u,i,function(){u.g.currentTime-=.001,dp(u,i)},null),2)):u.m?L(m,ts(u,f.ka,function(){var b=f.ka;u.g.currentTime-=.001,dp(u,b)},null),0):m.A(0)})};function hY(i,u,f,m,b,w,A,R,N){var V,G,Z;return ie(function(se){return se.g==1?(V=Yr,u==V.Na?(w||(i.h.u=f),n_e(i.h,m,b),se.return()):(G=[],L(se,PSe(i,u,A,R,N),2))):(Z=se.h,Z||(G.push(ts(i,u,function(){return Eg(i,u)},null)),i.m&&G.push(ts(i,V.ka,function(){return Eg(i,V.ka)},null))),w||(G.push(ts(i,u,function(){return Tg(i,u,f)},null)),i.m&&G.push(ts(i,V.ka,function(){return Tg(i,V.ka,f)},null))),(m!=0||b!=1/0)&&(G.push(ts(i,u,function(){return pY(i,u,m,b)},null)),i.m&&G.push(ts(i,V.ka,function(){return pY(i,V.ka,m,b)},null))),G.length?L(se,Promise.all(G),0):se.A(0))})}function ESe(i,u,f){var m,b;return ie(function(w){return w.g==1?(m=Yr,u==m.Na||(u==m.Aa&&(i.Ta=new ci),!i.I||(b=iv(i,u))&&Math.abs(b-f)<.15)?w.return():(ts(i,u,function(){return Eg(i,u)},null),i.m&&ts(i,m.ka,function(){return Eg(i,m.ka)},null),L(w,ts(i,u,function(){return Tg(i,u,f)},null),2))):i.m?L(w,ts(i,m.ka,function(){return Tg(i,m.ka,f)},null),0):w.A(0)})}l.endOfStream=function(i){var u=this;return ie(function(f){return L(f,G3(u,function(){nv(u)||rv(u)||(i?u.i.endOfStream(i):u.i.endOfStream())}),0)})},l.Ab=function(i){var u=this;return ie(function(f){return L(f,G3(u,function(){if(u.B.durationReductionEmitsUpdateEnd&&i=u.o&&m&&!u.i)&&(u.j&&u.j(u.g,b),u.i=!0,u.g=f.g.currentTime),u=!m}u&&(u=i.g.currentTime,f=i.g.buffered,m=fSe(f,u,i.h.gapDetectionThreshold),m==null||m==0&&!i.B||(b=f.start(m),(w=i.h.gapPadding)&&(b=Math.ceil((b+w)*100)/100),b>=i.F.Gb()||b-u<.001||(m!=0&&f.end(m-1),OSe(i,b),u==i.l&&(i.l=b),i.G++,i.u(new Tn("gapjumped")))))}}}function OSe(i,u){i.C=!0,i.j.Ba(i.g,"seeked",function(){i.C=!1}),i.g.currentTime=u}function $Se(i){if(!i.h.stallEnabled)return null;var u=i.h.stallThreshold,f=i.h.stallSkip;return new _Y(new SY(i.g),u,function(){var m;return ie(function(b){if(b.g==1)return m=qf(i.g.buffered),m.length?f?(i.g.currentTime+=f,b.A(2)):L(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 Tn("stalldetected")),B(b)})})}function _Y(i,u,f){this.h=i,this.m=kY(i),this.g=i.g.currentTime,this.l=Date.now()/1e3,this.i=!1,this.o=u,this.j=f}_Y.prototype.release=function(){this.h&&this.h.release(),this.j=this.h=null};function SY(i){var u=this;this.g=i,this.h=new De,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 kY(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}SY.prototype.release=function(){this.h&&this.h.release(),this.h=null};function Ag(i,u,f,m){u==HTMLMediaElement.HAVE_NOTHING||i.readyState>=u?m():(u=BSe.value().get(u),f.Ba(i,u,m))}var BSe=new pt(function(){return new Map([[HTMLMediaElement.HAVE_METADATA,"loadedmetadata"],[HTMLMediaElement.HAVE_CURRENT_DATA,"loadeddata"],[HTMLMediaElement.HAVE_FUTURE_DATA,"canplay"],[HTMLMediaElement.HAVE_ENOUGH_DATA,"canplaythrough"]])});function xY(i,u,f,m){var b=this;this.g=i,this.m=u,this.u=f,this.l=null,this.j=function(){return b.l==null&&(b.l=m()),b.l},this.o=!1,this.h=new De,this.i=new TY(i),Ag(this.g,HTMLMediaElement.HAVE_METADATA,this.h,function(){wY(b,b.j())})}xY.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 fL(i){return i.o?i.g.currentTime:i.j()}function CY(i,u){i.g.readyState>0?AY(i.i,u):Ag(i.g,HTMLMediaElement.HAVE_METADATA,i.h,function(){wY(i,i.j())})}function wY(i,u){Math.abs(i.g.currentTime-u)<.001?EY(i):(i.h.Ba(i.g,"seeking",function(){EY(i)}),AY(i.i,i.g.currentTime&&i.g.currentTime!=0?i.g.currentTime:u))}function EY(i){i.o=!0,i.h.D(i.g,"seeking",function(){return i.m()}),i.u(i.g.currentTime)}function TY(i){var u=this;this.g=i,this.m=10,this.j=this.l=this.i=0,this.h=new yr(function(){u.i<=0||u.g.currentTime!=u.l||u.g.currentTime===u.j?u.h.stop():(u.g.currentTime=u.j,u.i--)})}TY.prototype.release=function(){this.h&&(this.h.stop(),this.h=null),this.g=null};function AY(i,u){i.l=i.g.currentTime,i.j=u,i.i=i.m,i.g.currentTime=u,i.h.Ea(.1)}function IY(i){this.g=i,this.i=!1,this.h=null,this.j=new De}l=IY.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,m=null;if(typeof u.h=="number")m=u.h;else if(u.h instanceof Date){var b=LY(u);b!==null&&(m=u.h.getTime()/1e3-b,m=DY(u,m))}m==null?u.i=!0:(m<0&&(m=Math.max(0,f+m)),f!=m?(u.j.Ba(u.g,"seeking",function(){u.i=!0}),u.g.currentTime=m):u.i=!0)}}var u=this;Ag(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-(LY(this)||0),i=DY(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=s6(this.g.buffered);return i!=null&&i>=this.g.duration-1};function LY(i){return i.g.getStartDate&&(i=i.g.getStartDate().getTime(),!isNaN(i))?i/1e3:null}function DY(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 PY(i,u,f,m,b,w){var A=this;this.h=i,this.g=u.presentationTimeline,this.l=f,this.u=b,this.o=null,this.i=new dL(i,u.presentationTimeline,f,w),this.j=new xY(i,function(){e:{var R=A.i;R.m=!0,R.B=!1,R.i&&R.i.Ea(R.h.gapJumpTimerTime),K3(R);var N=fL(A.j);if(R=OY(A,N),!og()&&Math.abs(R-N)>.001){N=!1;var V=$e().Mi();if(V){var G=Date.now()/1e3;(!A.o||A.o0&&!this.h.paused?$Y(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 RY(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),MY(i,$Y(i,u))}l.xi=function(){this.i.wf()},l.ki=function(){if(this.g.W()){var i=this.g.Hc(),u=s6(this.h.buffered);if(u!=null&&u>=i)return!0}return!1};function MY(i,u){var f=i.g.getDuration();return u>=f?f-i.l.durationBackoff:u}function OY(i,u){var f=i.l.rebufferingGoal,m=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),N=i.g.Xd(m);return f=i.g.Xd(f+m),u>=A?MY(i,u):u>w?w-i.l.safeSeekEndOffset:u=R||YI(i.h.buffered,u)?u:f}function $Y(i,u){var f=i.g.Xb();return ui?i:u)}function $r(i){this.g=i,this.m=null,this.i=0,this.o=!1}l=$r.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 od(i){return i.g[0]||null}l.find=function(i){for(var u=this.g.length-1,f=u;f>=0;--f){var m=this.g[f],b=f=m.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||m.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 zn(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 yr(function(){var m=u();m?f.g.push.apply(f.g,T(m)):(f.m.stop(),f.m=null)}),this.m.Ea(i))},$r.prototype[Symbol.iterator]=function(){return this.Vb(0)},$r.prototype.Vb=function(i,u,f){u=u===void 0?!1:u,f=f===void 0?!1:f;var m=this.find(i);if(m==null)return null;var b=this.get(m);f?m++:m--;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]},Te("shaka.media.SegmentIterator",ju),ju.prototype.resetToLastIndependent=ju.prototype.eh,ju.prototype.next=ju.prototype.next,ju.prototype.current=ju.prototype.current,ju.prototype.currentPosition=ju.prototype.tj,ju.prototype.setReverse=ju.prototype.Id;function eo(){$r.call(this,[]),this.h=[]}x(eo,$r),l=eo.prototype,l.clone=function(){var i=new eo;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 NSe(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),m=f.next();!m.done;m=f.next()){m=m.value;var b=m.find(i);if(b!=null)return b+u;u+=m.getNumEvicted()+m.getNumReferences()}return null};function FSe(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),m=f.next();!m.done;m=f.next()){m=m.value;var b=m.get(i-u);if(b)return b;b=m.getNumReferences(),u+=m.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(){},Te("shaka.media.MetaSegmentIndex",eo),eo.prototype.updateEvery=eo.prototype.Nf,eo.prototype.fit=eo.prototype.pd,eo.prototype.mergeAndEvict=eo.prototype.fe,eo.prototype.evict=eo.prototype.Ya,eo.prototype.merge=eo.prototype.nf,eo.prototype.offset=eo.prototype.offset,eo.prototype.get=eo.prototype.get,eo.prototype.find=eo.prototype.find,eo.prototype.forEachTopLevelReference=eo.prototype.Fb,eo.prototype.release=eo.prototype.release;function q3(i){var u=this;this.g=i,this.j=!1,this.i=this.g.Ye(),this.h=new yr(function(){u.g.ui(u.i*.25)})}q3.prototype.release=function(){this.set(this.Tc()),this.h&&(this.h.stop(),this.h=null),this.g=null},q3.prototype.set=function(i){this.i=i,hL(this)},q3.prototype.Tc=function(){return this.g.Tc()};function hL(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 pL(i){var u=this;this.j=i,this.h=new De,this.g=new Set,this.i=new yr(function(){BY(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()})}pL.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 BY(i,u){var f=i.j.currentTime;i=_(i.g);for(var m=i.next();!m.done;m=i.next())m.value.j(f,u)}function p6(i){Zr.call(this),this.g=new Map,this.h=i}x(p6,Zr),p6.prototype.release=function(){this.g.clear(),Zr.prototype.release.call(this)};function jSe(i,u){var f=i.g.get(u);return f||(f={me:[],lg:null,contentType:u},i.g.set(u,f)),f}function VSe(i,u,f){var m=jSe(i,u.contentType);zSe(i,m),i={xd:u,position:f},m=m.me,u=m.findIndex(function(b){return b.position>=f}),u>=0?m.splice(u,m[u].position==f?1:0,i):m.push(i)}p6.prototype.j=function(i){for(var u=_(this.g.values()),f=u.next();!f.done;f=u.next()){f=f.value;var m=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&&!(m===b||m&&b&&m.bandwidth==b.bandwidth&&m.audioSamplingRate==b.audioSamplingRate&&m.codecs==b.codecs&&m.contentType==b.contentType&&m.frameRate==b.frameRate&&m.height==b.height&&m.mimeType==b.mimeType&&m.channelsCount==b.channelsCount&&m.pixelAspectRatio==b.pixelAspectRatio&&m.width==b.width),A=b&&m&&b.label&&m.label&&m.label!==b.label;var R=b&&m&&b.language&&m.language&&m.language!==b.language;m=b&&m&&b.roles&&m.roles&&!ct(m.roles,b.roles),(A||R||m)&&NY(this,i,b.contentType)&&(f.lg=b,m=new Tn("audiotrackchange",new Map([["quality",b],["position",i]])),this.dispatchEvent(m)),w&&NY(this,i,b.contentType)&&(f.lg=b,JSON.stringify(b),f=new Tn("qualitychange",new Map([["quality",b],["position",i]])),this.dispatchEvent(f))}};function NY(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,m=i[i.length-1].end,b=u.me;u.me=b.filter(function(w,A){return!(w.position<=f&&A+1=m)})}else u.me=[]}function v6(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 Y3(i){Zr.call(this),this.h=new Map,this.i=i,this.g=null}x(Y3,Zr),Y3.prototype.release=function(){this.h.clear(),this.g&&(this.g.stop(),this.g=null),Zr.prototype.release.call(this)};function vL(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 Tn("regionadd",new Map([["region",u]])),i.dispatchEvent(u),USe(i))}function USe(i){i.g||(i.g=new yr(function(){for(var u=i.i(),f=_(i.h),m=f.next();!m.done;m=f.next()){var b=_(m.value);m=b.next().value,b=b.next().value,b.endTimem.endTime&&Z3(this,m);u&&mL(this)},m6.prototype.Id=function(i){this.o=i,this.h&&this.h.Id(i)};function mL(i){if(i.g.size)for(var u=Array.from(i.g.keys()),f=_(i.j.keys()),m=f.next(),b={};!m.done;b={Mg:void 0},m=f.next())b.Mg=m.value,u.some((function(w){return function(A){return U3(A.ba,w.Mg)}})(b))||Z3(i,b.Mg)}function VY(i,u){i.m=u;for(var f=Array.from(i.g.keys());f.length>u;){var m=f.pop();m&&Z3(i,m)}mL(i)}function WSe(i,u){u&&u!==i.i&&(sd(i),i.i=u)}function Z3(i,u){var f=i.g;u instanceof rl&&(f=i.j),i=f.get(u),f.delete(u),i&&i.abort()}function gL(i){this.g=i,this.je=this.wh=null}function zY(i,u,f){var m=new Uint8Array(0);return i.je=i.g(u,f,function(b){return ie(function(w){if(w.g==1)return m.byteLength>0?m=lr(m,b):m=b,i.wh?L(w,i.wh(m),3):w.A(0);m=new Uint8Array(0),B(w)})}),i.je.promise.catch(function(b){return b instanceof we&&b.code==7001?Promise.resolve():Promise.reject(b)})}gL.prototype.abort=function(){this.je&&this.je.abort()},Te("shaka.config.CrossBoundaryStrategy",{KEEP:"keep",RESET:"reset",RESET_TO_ENCRYPTED:"reset_to_encrypted",RESET_ON_ENCRYPTION_CHANGE:"RESET_ON_ENCRYPTION_CHANGE"});function yL(i){var u=Ll(i),f=u.split("/")[0];return i=nl(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 GSe(i,u,f){function m(We){Be=We.name;var ht=We.reader;ht.skip(24);var yt=ht.Ca(),mt=ht.Ca();ht.skip(50),se=String(yt),Z=String(mt),We.reader.Ia()&&ur(We)}function b(We){var ht=Kq(We.reader);ce=ht.channelCount,pe=ht.sampleRate,w(We.name)}function w(We){switch(We=We.toLowerCase(),We){case"avc1":case"avc3":R.push(We+".42E01E"),V=!0;break;case"hev1":case"hvc1":R.push(We+".1.6.L93.90"),V=!0;break;case"dvh1":case"dvhe":R.push(We+".05.04"),V=!0;break;case"vp09":R.push(We+".00.10.08"),V=!0;break;case"av01":R.push(We+".0.01M.08"),V=!0;break;case"mp4a":A.push("mp4a.40.2"),N=!0;break;case"ac-3":case"ec-3":case"ac-4":case"opus":case"flac":A.push(We),N=!0;break;case"apac":A.push("apac.31.00"),N=!0}}var A=[],R=[],N=!1,V=!1,G=null,Z=null,se=null,ce=null,pe=null,me=null,ye=null,Be;if(new di().box("moov",ur).box("trak",ur).box("mdia",ur).S("mdhd",function(We){G=r6(We.reader,We.version).language}).box("minf",ur).box("stbl",ur).S("stsd",Gf).box("mp4a",function(We){var ht=Kq(We.reader);ce=ht.channelCount,pe=ht.sampleRate,We.reader.Ia()?ur(We):w(We.name)}).box("esds",function(We){We=We.reader;for(var ht="mp4a",yt,mt;We.Ia();){yt=We.Y();for(var _t=We.Y();_t&128;)_t=We.Y();if(yt==3)We.Ca(),_t=We.Y(),_t&128&&We.Ca(),_t&64&&We.skip(We.Y()),_t&32&&We.Ca();else if(yt==4)mt=We.Y(),We.skip(12);else if(yt==5)break}mt&&(ht+="."+j3(mt),yt==5&&We.Ia()&&(yt=We.Y(),mt=(yt&248)>>3,mt===31&&We.Ia()&&(mt=32+((yt&7)<<3)+((We.Y()&224)>>5)),ht+="."+mt)),A.push(ht),N=!0}).box("ac-3",b).box("ec-3",b).box("ac-4",b).box("Opus",b).box("fLaC",b).box("apac",b).box("avc1",m).box("avc3",m).box("hev1",m).box("hvc1",m).box("dva1",m).box("dvav",m).box("dvh1",m).box("dvhe",m).box("vp09",m).box("av01",m).box("avcC",function(We){var ht=Be||"";switch(Be){case"dvav":ht="avc3";break;case"dva1":ht="avc1"}We=We.reader,We.skip(1),We=ht+"."+j3(We.Y())+j3(We.Y())+j3(We.Y()),R.push(We),V=!0}).box("hvcC",function(We){var ht=Be||"";switch(Be){case"dvh1":ht="hvc1";break;case"dvhe":ht="hev1"}var yt=We.reader;yt.skip(1),We=yt.Y();var mt=["","A","B","C"][We>>6],_t=We&31,kt=yt.U(),Nt=(We&32)>>5?"H":"L";We=[yt.Y(),yt.Y(),yt.Y(),yt.Y(),yt.Y(),yt.Y()],yt=yt.Y();for(var jt=0,It=0;It<32&&(jt|=kt&1,It!=31);It++)jt<<=1,kt>>=1;for(ht=ht+("."+mt+_t)+("."+j3(jt,!0)),ht+="."+Nt+yt,mt="",_t=We.length;_t--;)((Nt=We[_t])||mt)&&(mt="."+Nt.toString(16).toUpperCase()+mt);ht+=mt,R.push(ht),V=!0}).box("dvcC",function(We){var ht=Be||"";switch(Be){case"hvc1":ht="dvh1";break;case"hev1":ht="dvhe";break;case"avc1":ht="dva1";break;case"avc3":ht="dvav";break;case"av01":ht="dav1"}var yt=We.reader;yt.skip(2),We=yt.Y(),yt=yt.Y(),R.push(ht+"."+Pl(We>>1&127)+"."+Pl(We<<5&32|yt>>3&31)),V=!0}).box("dvvC",function(We){var ht=Be||"";switch(Be){case"hvc1":ht="dvh1";break;case"hev1":ht="dvhe";break;case"avc1":ht="dva1";break;case"avc3":ht="dvav";break;case"av01":ht="dav1"}var yt=We.reader;yt.skip(2),We=yt.Y(),yt=yt.Y(),R.push(ht+"."+Pl(We>>1&127)+"."+Pl(We<<5&32|yt>>3&31)),V=!0}).S("vpcC",function(We){var ht=Be||"",yt=We.reader;We=yt.Y();var mt=yt.Y();yt=yt.Y()>>4&15,R.push(ht+"."+Pl(We)+"."+Pl(mt)+"."+Pl(yt)),V=!0}).box("av1C",function(We){var ht=Be||"";switch(Be){case"dav1":ht="av01"}var yt=We.reader;yt.skip(1),We=yt.Y(),yt=yt.Y();var mt=We>>>5,_t=(yt&64)>>6;R.push(ht+"."+mt+"."+Pl(We&31)+(yt>>>7?"H":"M")+"."+Pl(mt===2&&_t?(yt&32)>>5?12:10:_t?10:8)+"."+((yt&16)>>4)+"."+((yt&8)>>3)+((yt&4)>>2)+(yt&3)+"."+Pl(1)+"."+Pl(1)+"."+Pl(1)+".0"),V=!0}).box("enca",ZS).box("encv",Dl).box("sinf",ur).box("frma",function(We){We=KI(We.reader).codec,w(We)}).box("colr",function(We){R=R.map(function(mt){if(mt.startsWith("av01.")){var _t=We.reader,kt=_t.Oa(),Nt=_t.Tb(4,!1),jt=String.fromCharCode(Nt[0]);if(jt+=String.fromCharCode(Nt[1]),jt+=String.fromCharCode(Nt[2]),jt+=String.fromCharCode(Nt[3]),jt==="nclx"){Nt=_t.Ca(),jt=_t.Ca();var It=_t.Ca(),Pt=_t.Y()>>7,Yt=mt.split(".");Yt.length==10&&(Yt[6]=Pl(Nt),Yt[7]=Pl(jt),Yt[8]=Pl(It),Yt[9]=String(Pt),mt=Yt.join("."))}_t.seek(kt)}return mt});var ht=q_e(We.reader),yt=ht.colorGamut;me=ht.ve,ye=yt}).parse(i||u,!0,!0),!A.length&&!R.length)return null;var Pe=N&&!V,Ke=new Map;if(V&&!f){f=new Bs("video/mp4"),i&&f.init(i);try{f.xf(u);for(var ot=_(f.Vf()),bt=ot.next();!bt.done;bt=ot.next()){var tt=bt.value;Ke.set(tt,tt)}}catch{}f.Nd()}return{type:Pe?"audio":"video",mimeType:Pe?"audio/mp4":"video/mp4",codecs:bL(A.concat(R)).join(", "),language:G,height:Z,width:se,channelCount:ce,sampleRate:pe,closedCaptions:Ke,ve:me,colorGamut:ye,frameRate:null}}function bL(i){var u=new Set,f=[];i=_(i);for(var m=i.next();!m.done;m=i.next()){m=m.value;var b=sp(m);u.has(b)||(f.push(m),u.add(b))}return u=Ta("audio",f),m=Ta("video",f),i=Ta(Ln,f),m=KSe(m),u=u.concat(m).concat(i),f.length&&!u.length?f:u}function KSe(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?jo('video/mp4; codecs="'+u+'"')?[u]:i.filter(function(f){return f!=u}):i}function qSe(i){var u=null;return new di().box("moov",ur).box("trak",ur).box("mdia",ur).box("minf",ur).box("stbl",ur).S("stsd",Gf).box("encv",Dl).box("enca",ZS).box("sinf",ur).box("schi",ur).S("tenc",function(f){f=f.reader,f.Y(),f.Y(),f.Y(),f.Y(),f=f.Tb(16,!1),u=Mn(f)}).parse(i,!0),u}function _L(i,u,f){var m,b,w,A,R;return ie(function(N){if(N.g==1)return m=u,m.cryptoKey?N.A(2):L(N,m.fetchKey(),3);if(b=m.iv,!b)for(b=Re(new ArrayBuffer(16)),w=m.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},N.return(o.crypto.subtle.decrypt(R,m.cryptoKey,i))})}function J3(i,u,f,m,b){return i=Vo(i,m,b),(u!=0||f!=null)&&(i.headers.Range=f?"bytes="+u+"-"+f:"bytes="+u+"-"),i}function UY(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 pg(function(){return YSe(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 yr(function(){if(f.j&&f.g)if(f.j.presentationTimeline.W()){var m=f.j.presentationTimeline.Xb(),b=f.j.presentationTimeline.Gb();b-m>1?TSe(f.g.Z,m,b):sL(f.g.Z)}else sL(f.g.Z),f.u&&f.u.stop();else f.u&&f.u.stop()}),this.I=null,this.J=!1,this.K=new yr(function(){var m=f.g.video;!m.ended&&f.I&&(f.J=!0,m.currentTime=f.I,f.I=null)}),this.G=new De}l=UY.prototype,l.destroy=function(){return this.l.destroy()};function YSe(i){var u,f,m,b,w,A,R;return ie(function(N){if(N.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()),m=f.next();!m.done;m=f.next())b=m.value,Xf(b),u.push(S6(b)),b.ha&&(sd(b.ha),b.ha=null);for(w=_(i.m.values()),A=w.next();!A.done;A=w.next())R=A.value,sd(R);return L(N,Promise.all(u),2)}i.h.clear(),i.m.clear(),i.g=null,i.j=null,i.i=null,i.I=null,B(N)})}l.configure=function(i){if(this.i=i,this.X=new vq({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&&(sd(u.ha),u.ha=null),u=_(this.m.keys());for(var f=u.next();!f.done;f=u.next())f=f.value,sd(this.m.get(f)),this.m.delete(f)}for(i.disableTextPrefetch&&(u=this.h.get(Ln))&&u.ha&&(sd(u.ha),u.ha=null),i.disableVideoPrefetch&&(u=this.h.get("video"))&&u.ha&&(sd(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?(VY(f.ha,i.segmentPrefetchLimit),i.segmentPrefetchLimit>0||(sd(f.ha),f.ha=null)):i.segmentPrefetchLimit>0&&(f.ha=kL(this,f.stream));i.disableAudioPrefetch||n6e(this)};function XSe(i,u,f){i.j.presentationTimeline.W()||(i.aa=u,i.$=f)}l.start=function(i){var u=this;return ie(function(f){if(f.g==1)return L(f,t6e(u,i||new Map),2);Ii(u.l),u.N=!0,B(f)})};function ZSe(i,u){var f,m,b,w,A,R;ie(function(N){switch(N.g){case 1:return f=Yr,i.V++,m=i.V,j(N,2),L(N,fY(i.g.Z,f.Na),4);case 4:H(N,3);break;case 2:b=K(N),i.g&&i.g.onError(b);case 3:w=So(u.mimeType,u.codecs),c6(i.g.Z,w,i.j.sequenceMode,u.external),A=i.g.Z.aa,(A.isTextVisible()||i.i.alwaysStreamText)&&i.V==m&&(R=y6(i,u),i.h.set(f.Na,R),va(i,R,0)),B(N)}})}function JSe(i){var u=i.h.get(Ln);u&&(Xf(u),S6(u).catch(function(){}),i.H=i.h.get(Ln),i.h.delete(Ln),u.stream&&u.stream.closeSegmentIndex&&u.stream.closeSegmentIndex()),i.B=null}function HY(i,u){for(var f=i.g.Ob()<0,m=_(i.h.values()),b=m.next();!b.done;b=m.next())b=b.value,b.ua&&b.ua.Id(f),b.ha&&b.ha.Id(f);for(m=_(i.m.values()),b=m.next();!b.done;b=m.next())b.value.Id(f);(f=i.h.get("video"))&&(m=f.stream)&&(u?(u=m.trickModeVideo)&&!f.Mc&&(Ig(i,u,!1,0,!1),f.Mc=m):(u=f.Mc)&&(f.Mc=null,Ig(i,u,!0,0,!1)))}function WY(i,u,f,m,b,w){f=f===void 0?!1:f,m=m===void 0?0:m,b=b===void 0?!1:b,w=w===void 0?!1:w,i.o=u,i.N&&(u.video&&Ig(i,u.video,f,m,b,w),u.audio&&Ig(i,u.audio,f,m,b,w))}function g6(i,u){ie(function(f){if(f.g==1)return i.H=null,i.B=u,i.N?u.segmentIndex?f.A(2):L(f,u.createSegmentIndex(),2):f.return();Ig(i,u,!0,0,!1),B(f)})}function QSe(i){var u=i.h.get(Ln);u&&Ig(i,u.stream,!0,0,!0)}function e6e(i,u){for(var f=_(i.M.entries()),m=f.next();!m.done;m=f.next()){var b=_(m.value);m=b.next().value,b=b.next().value,m.includes(u.type)&&(b(),i.M.delete(m))}}function Ig(i,u,f,m,b,w){var A=i.h.get(u.type);A||u.type!=Ln?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&&WSe(A.ha,u),u.type==Ln&&A.stream!=u&&(b=So(u.mimeType,u.codecs),c6(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=y6(i,u.dependencyStream):A.Ec=null,XY(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&&(S6(u).catch(function(){}),u.pb=null,u.qc=null,u.nc=null,SL(i,u),GY(i,u).catch(function(R){i.g&&i.g.onError(R)})))),f?A.Ub?A.Kd=!0:A.Ja?(A.ec=!0,A.ld=m,A.Kd=!0):(Xf(A),wL(i,A,!0,m).catch(function(R){i.g&&i.g.onError(R)})):A.Ja||A.qb||va(i,A,0),GY(i,A).catch(function(R){i.g&&i.g.onError(R)})):ZSe(i,u)}function GY(i,u){var f,m,b;return ie(function(w){if(w.g==1)return u.Va?(f=u.stream,m=u.Va,f.segmentIndex?w.A(2):L(w,f.createSegmentIndex(),2)):w.return();if(w.g!=4)return b=f.dependencyStream,!b||b.segmentIndex?w.A(4):L(w,b.createSegmentIndex(),4);if(u.Va!=m||u.stream!=f)return w.return();var A=i.g.lc(),R=iv(i.g.Z,u.type),N=u.stream.segmentIndex.find(u.La?u.La.endTime:A),V=N==null?null:u.stream.segmentIndex.get(N);N=V?qI(V):null,V&&!N&&(N=(V.endTime-V.getStartTime())*(u.stream.bandwidth||i.o.bandwidth)/8),N?((V=V.ba)&&(N+=(V.endByte?V.endByte+1-V.startByte:null)||0),V=i.g.getBandwidthEstimate(),A=N*8/V<(R||0)-A-i.i.rebufferingGoal||u.Va.h.g>N):A=!0,A&&u.Va.abort(),B(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 m=f.value;f=this.h.get(m);var b;if((b=!this.J)&&(b=this.g.Z,m==Ln?(b=b.h,b=b.g==null||b.h==null?!1:i>=b.g&&i0?new m6(i.i.segmentPrefetchLimit,u,function(m,b,w){return _6(m,b,w||null,i.i.retryParameters,i.g.tc)},i.g.Ob()<0,i.g.al):null}function n6e(i){for(var u=i.i.segmentPrefetchLimit,f=i.i.prefetchAudioLanguages,m=_(i.j.variants),b=m.next(),w={};!b.done;w={Mb:void 0},b=m.next())if(w.Mb=b.value,w.Mb.audio)if(i.m.has(w.Mb.audio)){if(b=i.m.get(w.Mb.audio),VY(b,u),!(u>0&&f.some((function(R){return function(N){return ug(R.Mb.audio.language,N)}})(w)))){var A=i.h.get(w.Mb.audio.type);b!==(A&&A.ha)&&sd(b),i.m.delete(w.Mb.audio)}}else u<=0||!f.some((function(R){return function(N){return ug(R.Mb.audio.language,N)}})(w))||!(b=kL(i,w.Mb.audio))||(w.Mb.audio.segmentIndex||w.Mb.audio.createSegmentIndex(),i.m.set(w.Mb.audio,b))}l.updateDuration=function(){var i=og(),u=this.j.presentationTimeline.getDuration();u<1/0?(i&&(this.u&&this.u.stop(),sL(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 r6e(i,u){var f,m,b,w,A,R,N,V,G;return ie(function(Z){switch(Z.g){case 1:if(Ii(i.l),f=Yr,u.Ja||u.qb==null||u.Ub)return Z.return();if(u.qb=null,!u.ec){Z.A(2);break}return L(Z,wL(i,u,u.Kd,u.ld),3);case 3:return Z.return();case 2:if(e6e(i,u),u.stream.segmentIndex){Z.A(4);break}return m=u.stream,j(Z,5),L(Z,u.stream.createSegmentIndex(),7);case 7:H(Z,6);break;case 5:return b=K(Z),L(Z,EL(i,u,b),8);case 8:return Z.return();case 6:if(m!=u.stream)return m.closeSegmentIndex&&m.closeSegmentIndex(),u.Ja||u.qb||va(i,u,0),Z.return();case 4:if(!u.Ec){Z.A(9);break}if(u.Ec.stream.segmentIndex){Z.A(9);break}return j(Z,11),L(Z,u.Ec.stream.createSegmentIndex(),13);case 13:H(Z,9);break;case 11:K(Z);case 9:j(Z,14),w=i6e(i,u),w!=null&&(va(i,u,w),u.Zd=!1),H(Z,15);break;case 14:return A=K(Z),L(Z,EL(i,u,A),16);case 16:return Z.return();case 15:if(u.type===f.Na)return Z.return();if(R=[u],N=u.type===f.ka?f.Aa:f.ka,(V=i.h.get(N))&&R.push(V),!i.N||!R.every(function(se){return se.endOfStream})){Z.A(0);break}return L(Z,i.g.Z.endOfStream(),18);case 18:Ii(i.l),G=i.g.Z.getDuration(),G!=0&&G=w)return f/2;if(R=!u.ua,N=KY(i,u,m,N),!N)return f;A=u.pb;var V=N.ba;A&&V&&U3(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 G=V.next();!G.done;G=V.next())G=G.value,CL(G)||G.ua&&!G.ua.current()||(R=Math.min(R,G.La?G.La.endTime:m));return b>=R+i.j.presentationTimeline.h?f:(u.ha&&u.ua&&!i.m.has(u.stream)&&(u.ha.Ya(N.startTime+.001),X3(u.ha,N.startTime).catch(function(){})),e2(i)&&u6e(i,u,N)||(o6e(i,u,m,N,A).catch(function(){}),u.Ec&&qY(i,u.Ec,m,w)),null)}function KY(i,u,f,m){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||m)return f=u.La?u.La.endTime:m,i=i.g.Ob()<0,u.stream.segmentIndex&&(u.ua=u.stream.segmentIndex.Vb(f,!1,i)),u.ua&&u.ua.next().value;m=i.j.sequenceMode||e2(i)?0:i.i.inaccurateManifestTolerance;var b=Math.max(f-m,0);i=i.g.Ob()<0;var w=null;return m&&(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 o6e(i,u,f,m,b){var w,A,R,N,V,G,Z,se,ce,pe,me,ye,Be,Pe,Ke,ot,bt;return ie(function(tt){switch(tt.g){case 1:if(w=Yr,A=u.stream,R=u.ua,u.Ja=!0,j(tt,2),m.Jc()==2)throw new we(1,1,1011);return L(tt,a6e(i,u,m,b),4);case 4:return Ii(i.l),i.F?tt.return():(N=A.mimeType=="video/mp4"||A.mimeType=="audio/mp4",V=o.ReadableStream,i.i.lowLatencyMode&&i.j.isLowLatency&&V&&N&&(i.j.type!="HLS"||m.o)?(se=new Uint8Array(0),pe=ce=!1,ye=function(We){var ht,yt,mt;return ie(function(_t){switch(_t.g){case 1:if(ce||(pe=!0,Ii(i.l),i.F))return _t.return();if(j(_t,2),se=lr(se,We),ht=!1,yt=0,new di().box("mdat",function(kt){yt=kt.size+kt.start,ht=!0}).parse(se,!1,!0),!ht){_t.A(4);break}return mt=se.subarray(0,yt),se=se.subarray(yt),L(_t,xL(i,u,f,A,m,mt,!0,b),5);case 5:u.ha&&u.ua&&X3(u.ha,m.startTime,!0);case 4:H(_t,0);break;case 2:me=K(_t),B(_t)}})},L(tt,Q3(i,u,m,ye),9)):(G=Q3(i,u,m),L(tt,G,7)));case 7:return Z=tt.h,Ii(i.l),i.F?tt.return():(Ii(i.l),u.ec?(u.Ja=!1,va(i,u,0),tt.return()):L(tt,xL(i,u,f,A,m,Z,!1,b),6));case 9:if(Be=tt.h,me)throw me;if(pe){tt.A(10);break}return ce=!0,Ii(i.l),i.F?tt.return():u.ec?(u.Ja=!1,va(i,u,0),tt.return()):L(tt,xL(i,u,f,A,m,Be,!1,b),10);case 10:u.ha&&u.ua&&X3(u.ha,m.startTime,!0);case 6:if(Ii(i.l),i.F)return tt.return();u.La=m,R.next(),u.Ja=!1,u.ah=!1,Pe=i.g.Z.Fc(),Ke=Pe[u.type],JSON.stringify(Ke),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(m,u.stream,ot.stream.isAudioMuxedInVideo):i.g.wf(m,u.stream,u.stream.codecs.includes(","))),Xf(u),va(i,u,0),H(tt,0);break;case 2:if(bt=K(tt),Ii(i.l,bt),i.F)return tt.return();if(u.Ja=!1,bt.code==7001)u.Ja=!1,Xf(u),va(i,u,0),tt.A(0);else if(u.type==w.Na&&i.i.ignoreTextStreamFailures)i.h.delete(w.Na),tt.A(0);else return bt.code==3017?L(tt,s6e(i,u,bt),0):(u.Zd=!0,bt.category==1&&u.ha&&Z3(u.ha,m),bt.severity=2,L(tt,EL(i,u,bt),0))}})}function qY(i,u,f,m){var b,w,A,R,N,V,G,Z,se,ce,pe;return ie(function(me){switch(me.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){me.A(0);break}if(N=R.ba,!N||U3(N,u.pb)){me.A(3);break}return u.pb=N,j(me,4),L(me,Q3(i,u,N),6);case 6:V=me.h;var ye=i.g.Z;ye.H&&li(ye.H,V,0,b),i.O=[],H(me,3);break;case 4:throw G=K(me),u.pb=null,G;case 3:if(u.La&&u.La==R){me.A(0);break}return u.La=R,j(me,8),L(me,Q3(i,u,R),10);case 10:Z=me.h,ye=i.g.Z,ye.H&&li(ye.H,Z,0,b),i.O.push(R.startTime),H(me,9);break;case 8:throw se=K(me),u.La=null,se;case 9:if(ce=Math.max.apply(Math,[0].concat(T(i.O))),pe=i.g.lc(),pe+m>ce)return L(me,qY(i,u,R.startTime,m),0);me.A(0)}})}function s6e(i,u,f){var m,b,w,A,R,N,V;return ie(function(G){switch(G.g){case 1:if(m=Array.from(i.h.values()),m.some(function(Z){return Z!=u&&Z.ah})){G.A(2);break}if(i.i.avoidEvictionOnQuotaExceededError)return b=TL(i,f),i.g.disableStream(u.stream,b)||va(i,u,4),G.return();if(w=Math.round(100*i.C),w>20){i.C-=.2,G.A(3);break}if(w>4){i.C-=.04,G.A(3);break}if(A=TL(i,f),R=i.g.disableStream(u.stream,A),!R){u.Zd=!0,i.F=!0,i.g.onError(f),G.A(5);break}return i.C=1,N=i.g.lc(),L(G,b6(i,u,N),5);case 5:return G.return();case 3:return u.ah=!0,V=i.g.lc(),L(G,b6(i,u,V),2);case 2:va(i,u,4),B(G)}})}function a6e(i,u,f,m){var b,w,A,R,N,V,G,Z,se,ce,pe,me,ye,Be,Pe,Ke;return ie(function(ot){switch(ot.g){case 1:if(b=Yr,w=u.La==null,A=[],R=Math.max(0,Math.max(f.appendWindowStart,i.aa)-.1),N=Math.min(f.appendWindowEnd,i.$)+.1,V=f.codecs||u.stream.codecs,G=sp(V),Z=Ll(f.mimeType||u.stream.mimeType),se=f.timestampOffset,se==u.kf&&R==u.qc&&N==u.nc&&G==u.hf&&Z==u.jf){ot.A(2);break}if(ce=u.hf&&u.jf&&RSe(i.g.Z,u.type,Z,V,x6(i)),!ce){ot.A(3);break}if(pe=null,u.type===b.Aa?pe=i.h.get(b.ka):u.type===b.ka&&(pe=i.h.get(b.Aa)),!pe){ot.A(3);break}return L(ot,S6(pe).catch(function(){}),5);case 5:pe.pb=null,pe.qc=null,pe.nc=null,SL(i,pe);case 3:return L(ot,YY(i,u,se,R,N,f,G,Z),2);case 2:return U3(f.ba,u.pb)||(u.pb=f.ba,f.l&&f.ba&&(me=Q3(i,u,f.ba),ye=function(){var bt,tt,We,ht,yt,mt,_t,kt,Nt,jt,It;return ie(function(Pt){switch(Pt.g){case 1:return j(Pt,2),L(Pt,me,4);case 4:return bt=Pt.h,Ii(i.l),tt=null,We=new Map,ht={projection:null,hfov:null},u.stream&&(yt=u.stream.videoLayout)&&(mt=yt.split("/"),mt.includes("PROJ-RECT")?ht.projection="rect":mt.includes("PROJ-EQUI")?ht.projection="equi":mt.includes("PROJ-HEQU")?ht.projection="hequ":mt.includes("PROJ-PRIM")?ht.projection="prim":mt.includes("PROJ-AIV")&&(ht.projection="hequ")),_t=new di,_t.box("moov",ur).box("trak",ur).box("mdia",ur).S("mdhd",function(Yt){tt=r6(Yt.reader,Yt.version).timescale}).box("hdlr",function(Yt){switch(Yt=Yt.reader,Yt.skip(8),Yt.Yc()){case"soun":We.set(b.ka,tt);break;case"vide":We.set(b.Aa,tt)}tt=null}),u.type!==b.Aa||ht.projection||_t.box("minf",ur).box("stbl",ur).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",ur).box("proj",ur).S("prji",function(Yt){Yt=Yt.reader.Yc(),ht.projection=Yt}).box("hfov",function(Yt){Yt=Yt.reader.U()/1e3,ht.hfov=Yt}),_t.parse(bt,!0,!0),u.type===b.Aa&&l6e(i,ht),We.has(u.type)?f.ba.timescale=We.get(u.type):tt!=null&&(f.ba.timescale=tt),kt=u.stream.segmentIndex,kt instanceof eo&&(Nt=FSe(kt,f.startTime)),jt=u.stream.closedCaptions&&u.stream.closedCaptions.size>0,L(Pt,i.g.Oh(u.type,bt),5);case 5:return L(Pt,d6(i.g.Z,u.type,bt,null,u.stream,jt,u.bd,m,!1,!1,Nt),6);case 6:H(Pt,0);break;case 2:throw It=K(Pt),u.pb=null,It}})},Be=f.startTime,w&&(Pe=iv(i.g.Z,u.type),Pe!=null&&(Be=Pe)),i.g.Ck(Be,f.ba),A.push(ye()))),Ke=u.La?u.La.i:-1,f.i!=Ke&&A.push(ESe(i.g.Z,u.type,f.startTime)),L(ot,Promise.all(A),0)}})}function YY(i,u,f,m,b,w,A,R){var N,V,G,Z,se;return ie(function(ce){switch(ce.g){case 1:if(N=Yr,V=x6(i),j(ce,2),u.qc=m,u.nc=b,A&&(u.hf=A),R&&(u.jf=R),u.kf=f,G=i.j.sequenceMode||i.j.type=="HLS",Z=null,u.type===N.Aa?Z=i.h.get(N.ka):u.type===N.ka&&(Z=i.h.get(N.Aa)),!(Z&&Z.stream&&Z.stream.isAudioMuxedInVideo)){ce.A(4);break}return L(ce,hY(i.g.Z,Z.type,f,m,b,G,Z.stream.mimeType,Z.stream.codecs,V),4);case 4:return L(ce,hY(i.g.Z,u.type,f,m,b,G,w.mimeType||u.stream.mimeType,w.codecs||u.stream.codecs,V),6);case 6:H(ce,0);break;case 2:throw se=K(ce),u.qc=null,u.nc=null,u.hf=null,u.jf=null,u.kf=null,se}})}function xL(i,u,f,m,b,w,A,R){A=A===void 0?!1:A,R=R===void 0?!1:R;var N,V,G,Z;return ie(function(se){switch(se.g){case 1:return N=m.closedCaptions&&m.closedCaptions.size>0,i.i.shouldFixTimestampOffset&&(V=m.mimeType=="video/mp4"||m.mimeType=="audio/mp4",G=null,b.ba&&(G=b.ba.timescale),V&&G&&m.type==="video"&&i.j.type=="DASH"&&new di().box("moof",ur).box("traf",ur).S("tfdt",function(ce){var pe,me,ye,Be,Pe,Ke;return ie(function(ot){return pe=n6(ce.reader,ce.version),me=pe.baseMediaDecodeTime,me?(ye=-me/G,Be=Number(u.kf)||0,BeN&&(Z=Math.max(R-w,V-N-A)),Z<=N?se.return():L(se,i.g.Z.remove(u.type,A,A+Z,b),2));if(se.g!=4)return Ii(i.l),i.H?L(se,b6(i,i.H,f),4):se.A(0);Ii(i.l),B(se)})}function CL(i){return i&&i.type==Ln&&(i.stream.mimeType=="application/cea-608"||i.stream.mimeType=="application/cea-708")}function Q3(i,u,f,m){var b,w,A,R,N;return ie(function(V){switch(V.g){case 1:if(b=f.Yb())return V.return(b);if(w=null,u.ha){var G=u.ha,Z=G.g;f instanceof rl&&(Z=G.j),Z.has(f)?(G=Z.get(f),m&&(G.wh=m),w=G.je):w=null}return w||(w=_6(f,u.stream,m||null,i.i.retryParameters,i.g.tc)),A=0,u.ua&&(A=u.ua.h),u.Va=w,L(V,w.promise,2);case 2:if(R=V.h,u.Va=null,N=R.data,!f.aesKey){V.A(3);break}return L(V,_L(N,f.aesKey,A),4);case 4:N=V.h;case 3:return V.return(N)}})}function _6(i,u,f,m,b,w){w=w===void 0?!1:w;var A=i instanceof zn?i:void 0,R=A?1:0;return i=J3(i.P(),i.startByte,i.endByte,m,f),i.contentType=u.type,b.request(Fu,i,{type:R,stream:u,segment:A,isPreload:w})}function wL(i,u,f,m){var b,w;return ie(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)&&sd(u.ha),m?(b=i.g.lc(),w=i.g.Z.getDuration(),L(A,i.g.Z.remove(u.type,b+m,w),3)):L(A,fY(i.g.Z,u.type),4);if(A.g!=3)return Ii(i.l),f?L(A,i.g.Z.flush(u.type),3):A.A(3);Ii(i.l),u.Ub=!1,u.endOfStream=!1,u.Ja||u.qb||va(i,u,0),B(A)})}function va(i,u,f){var m=u.type;(m!=Ln||i.h.has(m))&&(u.qb=new P3(function(){var b;return ie(function(w){if(w.g==1)return j(w,2),L(w,r6e(i,u),4);if(w.g!=2)return H(w,0);b=K(w),i.g&&i.g.onError(b),B(w)})}).ia(f))}function Xf(i){i.qb!=null&&(i.qb.stop(),i.qb=null)}function S6(i){return ie(function(u){return i.Va?L(u,i.Va.abort(),0):u.A(0)})}function EL(i,u,f){var m;return ie(function(b){if(b.g==1)return f.code==3024?(u.Ja=!1,Xf(u),va(i,u,0),b.return()):L(b,mq(i.X),2);if(Ii(i.l),f.category===1&&f.code!=1003){if(u.Mc)return HY(i,!1),b.return();m=TL(i,f),f.handled=i.g.disableStream(u.stream,m),f.handled&&(f.severity=1)}(!f.handled||f.code!=1011)&&i.g.onError(f),f.handled||i.i.failureCallback(f),B(b)})}function TL(i,u){return i.i.maxDisabledTime===0&&u.code==1011?1:i.i.maxDisabledTime}function k6(i,u){u=u===void 0?!1:u;var f,m,b,w,A,R;return ie(function(N){if(N.g==1){if(f=Date.now()/1e3,m=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!==Yr.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(T3(f.value));return i.size>1}}return!1}function XY(i){i.G.Pa(),e2(i)&&(i.G.D(i.g.video,"waiting",function(){return AL(i)}),i.G.D(i.g.video,"timeupdate",function(){return AL(i)}))}function AL(i){if(e2(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 u6e(i,u,f){if(u.type===Ln)return!1;var m=u.pb;if(!m)return!1;var b=f.ba;if(f=m.g!==b.g,i.i.crossBoundaryStrategy==="reset_to_encrypted"&&(m.encrypted||b.encrypted||(f=!1),m.encrypted&&(i.i.crossBoundaryStrategy="keep")),i.i.crossBoundaryStrategy==="RESET_ON_ENCRYPTION_CHANGE"&&m.encrypted==b.encrypted&&(f=!1),i.i.crossBoundaryStrategy==="keep"&&m.mimeType&&b.mimeType){var w=Js(nl(m.mimeType)),A=Js(nl(m.mimeType));m.mimeType==b.mimeType&&w==A&&(f=!1)}return f&&(i.J||u.bd)&&(i.J=!1,k6(i,!0).then(function(){var R=new Map().set("oldEncrypted",m.encrypted).set("newEncrypted",b.encrypted);i.g.onEvent(new Tn("boundarycrossed",R))})),f}function x6(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=iv(i.g.Z,A.type),N=i.g.lc();(A=KY(i,A,N,R))&&A.codecs&&A.mimeType&&(w.codecs=A.codecs,w.mimeType=A.mimeType)}}u=u===void 0?!1:u;var m=new Map,b=i.o.audio;return b&&(f(b),m.set("audio",b)),(b=i.o.video)&&(f(b),m.set("video",b)),u&&i.B&&m.set(Ln,i.B),m}function C6(){}function IL(i,u,f,m,b){var w=b in m,A=w?f.constructor==Object&&Object.keys(m).length==0:f.constructor==Object&&Object.keys(f).length==0,R=w||A,N=!0,V;for(V in u){var G=b+"."+V,Z=w?m[b]:f[V];R||V in f?u[V]===void 0?Z===void 0||R?delete i[V]:i[V]=mn(Z):A?i[V]=u[V]:Z.constructor==Object&&u[V]&&u[V].constructor==Object?(i[V]||(i[V]=mn(Z)),G=IL(i[V],u[V],Z,m,G),N=N&&G):typeof u[V]!=typeof Z||u[V]==null||typeof u[V]!="function"&&u[V].constructor!=Z.constructor?(Xe("Invalid config, wrong type for "+G),N=!1):typeof f[V]=="function"&&f[V].length!=u[V].length?(rt("Unexpected number of arguments for "+G),i[V]=u[V]):i[V]=Array.isArray(i[V])?u[V].slice():u[V]:(Xe("Invalid config, unrecognized key "+G),N=!1)}return N}function w6(i,u){for(var f={},m=f,b=0,w=0;b=i.indexOf(".",b),!(b<0);)(b==0||i[b-1]!="\\")&&(w=i.substring(w,b).replace(/\\\./g,"."),m[w]={},m=m[w],w=b+1),b+=1;return m[i.substring(w).replace(/\\\./g,".")]=u,f}function Lg(i,u){return i&&u}function ZY(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 N=w[R];Array.isArray(N)&&N.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 m(w,A){return Object.keys(w).reduce(function(R,N){var V=w[N];return A.hasOwnProperty(N)?V instanceof HTMLElement&&A[N]instanceof HTMLElement?V.isEqualNode(A[N])||(R[N]=V):b(V)&&b(A[N])?(V=m(V,A[N]),(Object.keys(V).length>0||!b(V))&&(R[N]=V)):Array.isArray(V)&&Array.isArray(A[N])?sn(V,A[N])||(R[N]=V):Number.isNaN(V)&&Number.isNaN(A[N])||V!==A[N]&&(R[N]=V):R[N]=V,R},{})}function b(w){return w&&typeof w=="object"&&!Array.isArray(w)}return i=m(i,u),f(i),i}Te("shaka.util.ConfigUtils",C6),C6.getDifferenceFromConfigObjects=ZY,C6.convertToConfigObject=w6,C6.mergeConfigObjects=IL,Te("shaka.config.RepeatMode",{OFF:0,ALL:1,SINGLE:2});function il(){}function JY(i){return i=Qt(i),new st(i).Db}function t2(i,u,f){function m(R){it(w).setUint32(A,R.byteLength,!0),A+=4,w.set(Re(R),A),A+=R.byteLength}if(!f||!f.byteLength)throw new we(2,6,6015);var b;typeof u=="string"?b=yn(u,!0):b=u,i=Qt(i),i=yn(i,!0);var w=new Uint8Array(12+i.byteLength+b.byteLength+f.byteLength),A=0;return m(i),m(b),m(f),w}function LL(i,u,f){return u!=="skd"?i:(u=f.serverCertificate,f=Qt(i).split("skd://").pop(),t2(i,f,u))}function E6(i,u){i===2&&(i=u.drmInfo)&&WS(i.keySystem)&&(u.headers["Content-Type"]="application/octet-stream")}Te("shaka.drm.FairPlay",il),il.commonFairPlayResponse=function(i,u){if(i===2&&(i=u.originalRequest.drmInfo)&&WS(i.keySystem)){try{var f=at(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 m=JSON.parse(f);m.ckc&&(f=m.ckc,i=!0),m.CkcMessage&&(f=m.CkcMessage,i=!0),m.License&&(f=m.License,i=!0)}catch{}i&&(u.data=Ce(hr(f)))}},il.muxFairPlayRequest=function(i,u){E6(i,u)},il.expressplayFairPlayRequest=function(i,u){if(i===2){var f=u.drmInfo;f&&WS(f.keySystem)&&E6(i,u)}},il.conaxFairPlayRequest=function(i,u){E6(i,u)},il.ezdrmFairPlayRequest=function(i,u){E6(i,u)},il.verimatrixFairPlayRequest=function(i,u){i===2&&(i=u.drmInfo)&&WS(i.keySystem)&&(i=Re(u.body),i=Jn(i),u.headers["Content-Type"]="application/x-www-form-urlencoded",u.body=qt("spc="+i))},il.muxInitDataTransform=function(i,u,f){return LL(i,u,f)},il.expressplayInitDataTransform=function(i,u,f){return LL(i,u,f)},il.conaxInitDataTransform=function(i,u,f){if(u!=="skd")return i;u=f.serverCertificate,f=Qt(i).split("skd://").pop().split("?").shift(),f=o.atob(f);var m=new ArrayBuffer(f.length*2);m=ut(m);for(var b=0,w=f.length;b2||b.channelsCount>2)&&m.channelsCount!=b.channelsCount||m.spatialAudio!==b.spatialAudio||u&&!QY(m,b))&&eX(m.roles,b.roles)&&m.groupId===b.groupId)}return!m&&(m=f.video&&i.video)&&(f=f.video,m=i.video,m=!((!u||QY(f,m))&&eX(f.roles,m.roles))),m?!1:(this.g.add(i),!0)},T6.prototype.values=function(){return this.g.values()};function QY(i,u){if(i.mimeType!=u.mimeType||(i=i.codecs.split(",").map(function(m){return sp(m)}),u=u.codecs.split(",").map(function(m){return sp(m)}),i.length!=u.length))return!1;i.sort(),u.sort();for(var f=0;fu)}).sort(function(f,m){return f.audio||m.audio?f.audio?m.audio?(m.audio.channelsCount||0)-(f.audio.channelsCount||0):1:-1:0})}function m6e(i,u){if(u=="AUTO"){var f=i.some(function(m){return!!(m.video&&m.video.hdr&&m.video.hdr=="HLG")});u=$e().sd(f)}return i.filter(function(m){return!(m.video&&m.video.hdr&&m.video.hdr!=u)})}function g6e(i,u){return i.filter(function(f){return!(f.video&&f.video.videoLayout&&f.video.videoLayout!=u)})}function y6e(i,u){return i.filter(function(f){return!(f.audio&&f.audio.spatialAudio!=u)})}function b6e(i,u){return i.filter(function(f){return!(f.audio&&f.audio.codecs!=u)})}function A6(){}function Dg(){var i=1/0,u=$e();navigator.connection&&navigator.connection.saveData&&(i=360);var f={retryParameters:_c(),servers:{},clearKeys:{},advanced:{},delayLicenseRequestUntilPlayed:!1,persistentSessionOnlinePlayback:!1,persistentSessionsMetadata:[],initDataTransform:function(R,N,V){return o.shakaMediaKeysPolyfill==="apple"&&N=="skd"&&(N=V.serverCertificate,V=JY(R),R=t2(R,V,N)),R},logLicenseExchange:!1,updateExpirationTime:1,preferredKeySystems:[],keySystemsMapping:{},parseInbandPsshEnabled:!1,minHdcpVersion:"",ignoreDuplicateInitData:!0,defaultAudioRobustnessForWidevine:"SW_SECURE_CRYPTO",defaultVideoRobustnessForWidevine:"SW_SECURE_DECODE"},m="reload";hc()&&u.Pc()&&(m="smooth");var b={retryParameters:_c(),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:I6,manifestPreprocessorTXml:L6,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:I6,manifestPreprocessorTXml:L6,sequenceMode:!1,keySystemsBySystemId:{"9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","79f0049a-4098-8642-ab92-e65be0885f95":"com.microsoft.playready"}}},w={trackSelectionCallback:function(R){return ie(function(N){return N.return(R)})},downloadSizeCallback:function(R){var N;return ie(function(V){return V.g==1?navigator.storage&&navigator.storage.estimate?L(V,navigator.storage.estimate(),3):V.return(!0):(N=V.h,V.return(N.usage+R0?L(A,Promise.all(f),0):A.A(0)})}function R6e(i){var u,f,m,b,w;return ie(function(A){return!i.o&&(u=sX(i))&&(i.o=u),i.o?(f=i.h.presentationTimeline.W(),m=[],b=i.o,b.video&&m.push(ML(i,b.video,f)),b.audio&&m.push(ML(i,b.audio,f)),(w=cg(i.h.textStreams,i.g.preferredTextLanguage,i.g.preferredTextRole,i.g.preferForcedSubs)[0]||null)&&cq(b.audio,w,i.g)&&(m.push(ML(i,w,f)),i.T=w),L(A,Promise.all(m),0)):A.A(0)})}function sX(i){if(!i.u){var u=i.g.abrFactory;i.u=u(),i.u.configure(i.g.abr)}return u=zS(i.h.variants),u=i.C.create(u),i.u.setVariants(Array.from(u.values())),i.u.chooseVariant(!0)}function ML(i,u,f){var m,b,w,A,R;return ie(function(N){return N.g==1?(m=i.g.streaming.segmentPrefetchLimit||2,b=new m6(m,u,function(V,G,Z){return _6(V,G,Z||null,i.g.streaming.retryParameters,i.Da,i.F)},!1),i.M.set(u.id,b),u.segmentIndex?N.A(2):L(N,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=od(u.segmentIndex)),R?f?R.ba?L(N,FY(b,R.ba),0):N.A(0):L(N,X3(b,R.startTime),0):N.A(0))})}l.ll=function(){return this.B},l.destroy=function(){var i=this,u,f,m;return ie(function(b){if(b.g==1)return i.j=!0,!i.l||i.qa?b.A(2):L(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):L(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())m=f.value,sd(m);B(b)})};function aX(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))}Te("shaka.media.PreloadManager",Vu),Vu.prototype.destroy=Vu.prototype.destroy,Vu.prototype.waitForFinish=Vu.prototype.ll,Vu.prototype.getPrefetchedTextTrack=Vu.prototype.Qj,Vu.prototype.getPrefetchedVariantTrack=Vu.prototype.Rj;function sv(i,u){Zr.call(this);var f=this;this.i=i,this.l=u,this.g=new Map,this.m=[{kd:null,jd:Pg,Uc:function(m,b){return Jf(f,"enter",m,b)}},{kd:i2,jd:Pg,Uc:function(m,b){return Jf(f,"enter",m,b)}},{kd:o2,jd:Pg,Uc:function(m,b){return Jf(f,"enter",m,b)}},{kd:Pg,jd:i2,Uc:function(m,b){return Jf(f,"exit",m,b)}},{kd:Pg,jd:o2,Uc:function(m,b){return Jf(f,"exit",m,b)}},{kd:i2,jd:o2,Uc:function(m,b){b?Jf(f,"skip",m,b):(Jf(f,"enter",m,b),Jf(f,"exit",m,b))}},{kd:o2,jd:i2,Uc:function(m,b){return Jf(f,"skip",m,b)}}],this.h=new De,this.h.D(this.i,"regionremove",function(m){f.g.delete(m.region)})}x(sv,Zr),sv.prototype.release=function(){this.i=null,this.g.clear(),this.h.release(),this.h=null,Zr.prototype.release.call(this)},sv.prototype.j=function(i,u){if(!this.l||i!=0){this.l=!1;for(var f=_(this.i.h.values()),m=f.next();!m.done;m=f.next()){m=m.value;var b=this.g.get(m),w=im.endTime?o2:Pg;this.g.set(m,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(m,u)}}};function Jf(i,u,f,m){u=new Tn(u,new Map([["region",f],["seeking",m]])),i.dispatchEvent(u)}var i2=1,Pg=2,o2=3;function av(i,u,f){var m,b,w,A,R,N,V;return ie(function(G){switch(G.g){case 1:return m=Rg(i),(b=M6e.get(m))?G.return(b):(w=0,A=Vo([i],f),j(G,2),A.method="HEAD",L(G,u.request(w,A).promise,4));case 4:R=G.h,b=R.headers["content-type"],H(G,3);break;case 2:if(N=K(G),!N||N.code!=1002&&N.code!=1001){G.A(3);break}return A.method="GET",L(G,u.request(w,A).promise,6);case 6:V=G.h,b=V.headers["content-type"];case 3:return G.return(b?b.toLowerCase().split(";").shift():"")}})}function Rg(i){return i=new st(i).Sb.split("/").pop().split("."),i.length==1?"":i.pop().toLowerCase()}var M6e=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 fp={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"},lX=_(Object.keys(fp)),OL=lX.next();!OL.done;OL=lX.next()){var uX=OL.value;fp[uX.toLowerCase()]=fp[uX]}function cX(i,u){if(i.lineBreak)return` `;if(i.nestedCues.length)return i.nestedCues.map(function(A){return cX(A,i)}).join("");if(!i.payload)return i.payload;var f=[],m=i.fontWeight>=sg,b=i.fontStyle==ag,w=i.textDecoration.includes(jf);return m&&f.push(["b"]),b&&f.push(["i"]),w&&f.push(["u"]),b=i.color,b==""&&u&&(b=u.color),m="",(b=dX(b))&&(m+="."+b),b=i.backgroundColor,b==""&&u&&(b=u.backgroundColor),(u=dX(b))&&(m+=".bg_"+u),m&&f.push(["c",m]),f.reduceRight(function(A,R){var N=_(R);return R=N.next().value,N=N.next().value,"<"+R+(N===void 0?"":N)+">"+A+""},i.payload)}function dX(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 $L(i,u){var f=[];i=_(fX(i));for(var m=i.next();!m.done;m=i.next())if(m=m.value,m.isContainer)f.push.apply(f,T($L(m.nestedCues,m)));else{var b=m.clone();b.nestedCues=[],b.payload=cX(m,u),f.push(b)}return f}function fX(i){var u=[];i=_(i);for(var f=i.next(),m={};!f.done;m={ig:void 0},f=i.next())m.ig=f.value,u.some((function(b){return function(w){return PS(b.ig,w)}})(m))||u.push(m.ig);return u}function O6e(i){function u(m){for(var b=5381,w=m.length;w;)b=b*33^m.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 hX(i,u){var f=$L(u),m=[];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=O6e(w.vd))&&m.push(b);for(u=m.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?m.indexOf(R)-m.indexOf(A):m.indexOf(A)-m.indexOf(R)}),u=_(u),f=u.next();!f.done;f=u.next())i.addCue(f.value)}function BL(i,u){var f=!1;i.mode==="disabled"&&(f=!0,i.mode="hidden");for(var m=0;m-1&&(f.has(u.g)?(m=f.get(u.g).track,m.mode==="disabled"&&(m.mode=u.u?"showing":"hidden")):u.g=-1),u.h=f},this.B=function(){if(!u.o){var f=u.j;u.o=new yr(function(){if(u.o=null,u.j===f){var m=-1,b=!1;if(u.h.has(u.g)){var w=u.h.get(u.g);w.track.mode==="showing"?(m=u.g,b=!0):w.track.mode==="hidden"&&(m=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"){m=w;break}else m<0&&A.track.mode==="hidden"&&(m=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!==m&&A.track.mode!=="disabled"&&(A.track.mode="disabled");u.g!==m&&(u.g=m,m>-1&&u.i.kh({id:m})),u.i.qh(m>-1&&u.h.get(m).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)&&BL(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)&&hX(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(m){return["captions","subtitles","forced"].includes(m.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 $6e(i){var u=$e();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"}Te("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(rn("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?(BL(this.g,function(f){return f.startTimei}),!0):!1},l.append=function(i){this.g&&hX(this.g,i)},l.destroy=function(){return this.g&&(BL(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&&pX(this),this.g&&(this.g.mode=i?"showing":"hidden")},l.setTextLanguage=function(){},l.enableTextDisplayer=function(){pX(this)};function pX(i){i.h&&!i.g&&(i.g=i.h.addTextTrack("subtitles",i.i),i.g.mode="hidden")}Te("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(){},Te("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 yr(function(){f.j.paused||hp(f)}),s2(this),this.l=new Map,this.i=new De,this.i.D(document,"fullscreenchange",function(){hp(f,!0)}),this.i.D(this.j,"seeking",function(){hp(f,!0)}),this.i.D(this.j,"ratechange",function(){s2(f)}),this.i.D(this.j,"resize",function(){var m=f.j,b=m.videoWidth;m=m.videoHeight,b&&m?f.u=b/m:f.u=null}),this.F=null,"ResizeObserver"in o&&(this.F=new ResizeObserver(function(){hp(f,!0)}),this.F.observe(this.g)),this.G=new Map}l=ta.prototype,l.configure=function(i){this.C=i,s2(this),hp(this,!0)},l.append=function(i){var u=[].concat(T(this.h));i=_(fX(i));for(var f=i.next(),m={};!f.done;m={jg:void 0},f=i.next())m.jg=f.value,u.some((function(b){return function(w){return PS(w,b.jg)}})(m))||this.h.push(m.jg);this.h.length&&s2(this),hp(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(m){return m.startTime=u}),hp(this,f>this.h.length),this.h.length||s2(this),!0},l.isTextVisible=function(){return this.m},l.setTextVisibility=function(i){(this.m=i)?(this.g.parentElement||this.o.appendChild(this.g),hp(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 s2(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 B6e(i,u){for(;u!=null;){if(u==i.g)return!0;u=u.parentElement}return!1}function vX(i,u,f,m,b){var w=!1,A=[],R=[];u=_(u);for(var N=u.next();!N.done;N=u.next()){N=N.value,b.push(N);var V=i.l.get(N),G=N.startTime<=m&&N.endTime>m,Z=V?V.gj:null;V&&(A.push(V.kg),V.$c&&A.push(V.$c),G||(w=!0,i.l.delete(N),V=null)),G&&(R.push(N),V?B6e(i,Z)||(w=!0):(N6e(i,N,b),V=i.l.get(N),Z=V.gj,w=!0)),N.nestedCues.length>0&&Z&&vX(i,N.nestedCues,Z,m,b),b.pop()}if(w){for(m=_(A),b=m.next();!b.done;b=m.next())b=b.value,b.parentElement&&b.parentElement.removeChild(b);for(R.sort(function(se,ce){return se.startTime!=ce.startTime?se.startTime-ce.startTime:se.endTime-ce.endTime}),R=_(R),m=R.next();!m.done;m=R.next())m=i.l.get(m.value),m.$c?(m.$c.contains(f)&&m.$c.removeChild(f),f.appendChild(m.$c),m.$c.appendChild(m.kg)):f.appendChild(m.kg)}}function hp(i,u){if(i.g){var f=i.j.currentTime;if(!i.m||u!==void 0&&u){u=_(i.G.values());for(var m=u.next();!m.done;m=u.next())W3(m.value);W3(i.g),i.l.clear(),i.G.clear()}i.m&&vX(i,i.h,i.g,f,[])}}function N6e(i,u,f){var m=f.length>1,b=m?"span":"div";u.lineBreak&&(b="br"),u.rubyTag&&(b=u.rubyTag),m=!m&&u.nestedCues.length>0;var w=document.createElement(b);if(b!="br"&&j6e(i,w,u,f,m),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==Es?"%":"px")+"-"+A.viewportAnchorX+"x"+A.viewportAnchorY+(A.viewportAnchorUnits==Es?"%":"px"),i.G.has(f))f=i.G.get(f);else{b=document.createElement("span");var N=A.heightUnits==Es?"%":"px",V=A.widthUnits==Es?"%":"px",G=A.viewportAnchorUnits==Es?"%":"px";b.id="shaka-text-region---"+f,b.classList.add("shaka-text-region"),b.style.position="absolute";var Z=A.height,se=A.width;A.heightUnits===2&&(Z=A.height*5.33,N="%"),A.widthUnits===2&&(se=A.width*R,V="%"),b.style.height=Z+N,b.style.width=se+V,A.viewportAnchorUnits===2?(R=A.viewportAnchorY/75*100,N=A.viewportAnchorX/(i.u===4/3?160:210)*100,R-=A.regionAnchorY*Z/100,N-=A.regionAnchorX*se/100,b.style.top=R+"%",b.style.left=N+"%"):(b.style.top=A.viewportAnchorY-A.regionAnchorY*Z/100+G,b.style.left=A.viewportAnchorX-A.regionAnchorX*se/100+G),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,m&&(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 F6e(i){var u=i.direction,f=i.positionAlign;return i=i.textAlign,f!==MS?f:i==="left"||i==="start"&&u===w3||i==="end"&&u==="rtl"?"line-left":i==="right"||i==="start"&&u==="rtl"||i==="end"&&u===w3?"line-right":"center"}function j6e(i,u,f,m,b){var w=u.style,A=f.nestedCues.length==0,R=m.length>1;w.whiteSpace="pre-wrap";var N=f.payload.replace(/\s+$/g,function(G){return" ".repeat(G.length)});if(w.webkitTextStrokeColor=f.textStrokeColor,w.webkitTextStrokeWidth=f.textStrokeWidth,w.color=f.color,w.direction=f.direction,w.opacity=f.opacity,w.paddingLeft=NL(f.linePadding,f,i.o),w.paddingRight=NL(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=V6e(m,function(G){return G.backgroundColor}))?V.style.backgroundColor=u:N&&(V.style.backgroundColor="rgba(0, 0, 0, 0.8)")),N&&(V.setAttribute("translate","no"),V.textContent=N)}R&&!m[m.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,m=i.C?i.C.fontScaleFactor:1,(m!==1||f.fontSize)&&(w.fontSize=NL(f.fontSize||"1em",f,i.o,m)),m=f.line,m!=null&&(A=f.lineInterpretation,A==E3&&(A=1,R=16,i.u&&i.u<1&&(R=32),m=m<0?100+m/R*100:m/R*100),A==1&&(w.position="absolute",f.writingMode==W0?(w.width="100%",f.lineAlign==G0?w.top=m+"%":f.lineAlign=="end"&&(w.bottom=100-m+"%")):f.writingMode=="vertical-lr"?(w.height="100%",f.lineAlign==G0?w.left=m+"%":f.lineAlign=="end"&&(w.right=100-m+"%")):(w.height="100%",f.lineAlign==G0?w.right=m+"%":f.lineAlign=="end"&&(w.left=100-m+"%")))),w.lineHeight=f.lineHeight,i=F6e(f),i=="line-left"?(w.cssFloat="left",f.position!==null&&(w.position="absolute",f.writingMode==W0?(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==W0?(w.right=100-f.position+"%",w.width="auto"):w.bottom=f.position+"%")):f.position!==null&&f.position!=50&&(w.position="absolute",f.writingMode==W0?(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==W0?w.width=f.size+"%":w.height=f.size+"%")}function NL(i,u,f,m){m=m===void 0?1:m;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,m*=b.value,i){case"%":return m/100*f.clientHeight/u.cellResolution.rows+"px";case"c":return f.clientHeight*m/u.cellResolution.rows+"px";default:return m+i}}function V6e(i,u){for(var f=i.length-1;f>=0;f--){var m=u(i[f]);if(m||m===0)return m}return null}Te("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 z6e(i,u){function f(w){for(var A=w,R=_(u),N=R.next();!N.done;N=R.next())N=N.value,N.end&&N.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 Hd: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}Te("shaka.text.WebVttGenerator",function(){});function FL(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 De,this.G=[],this.h=null}FL.prototype.setMediaElement=function(i){this.h=i,K6e(this)},FL.prototype.configure=function(i){this.g=i,q6e(this)};function U6e(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},mX(i),i.m={},i.h=null,i.i.Pa()}function H6e(i,u){i.o=u,i.o?i.l==B6?i.l=N6:i.l==F6&&(i.l=j6):i.l==N6?i.l=B6:i.l==j6&&(i.l=F6)}function W6e(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 G6e(i,u,f){try{if(!i.g.enabled)return u;var m=jL(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=R6;break e;case"video/webm":case"video/mp4":case"video/mpeg":case"video/mp2t":b=O6;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=CX;break e}b=void 0}m.ot=b,m.su=!0;var w=a2(m);return P6(u,w)}catch(A){return ft("CMCD_SRC_ERROR","Could not generate src CMCD data.",A),u}}function K6e(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 q6e(i){mX(i);var u=gX(i);u=_(u);for(var f=u.next();!f.done;f=u.next())if(f=f.value.timeInterval,f===void 0&&(f=ake),f>=1){var m=new yr(function(){return na(i,lke)});m.Ea(f),i.G.push(m)}}function mX(i){if(i.G)for(var u=_(i.G),f=u.next();!f.done;f=u.next())f.value.stop();i.G=[]}function gX(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===IX&&u.enabled}):[]}function yX(i){return(i=i.g.targets)?i.filter(function(u){return u.mode===AX&&u.enabled===!0}):[]}function jL(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=UL(i,u,IX),f=i.g.targets,!(i.g.version0&&!A.includes(R))||bX(i,w,b)}}}function Mg(i,u,f){if(i.g.enabled){f=UL(i,f,TX);var m=_X({mode:TX,useHeaders:i.g.useHeaders,includeKeys:i.g.includeKeys||[]});i.m[m]||(i.m[m]={request:1,response:1}),f.sn=i.m[m].request++,m=i.g.includeKeys||[];var b=i.g.version==WL?Array.from(new Set([].concat(T(GL),T(nke)))):wX;m=VL(m,b),f=zL(f,m),Y6e(f,u,i.g.useHeaders)}}function bX(i,u,f,m){var b=_c(),w=f.url;if(f.useHeaders){if(u=xX(u),!Object.keys(u).length)return;m&&Object.assign(m.headers,u),m=Vo([w],b),Object.assign(m.headers,u)}else{if(u=a2(u),!u)return;w=P6(w,u),m&&(m.uri=w),m=Vo([w],b)}i.j.Wb().request(9,m)}function Y6e(i,u,f){if(f)i=xX(i),Object.keys(i).length&&Object.assign(u.headers,i);else{var m=a2(i);m&&(u.uris=u.uris.map(function(b){return P6(b,m)}))}}function VL(i,u){if(!i||i.length===0)return u;for(var f=_(i),m=f.next();!m.done;m=f.next())u.includes(m.value);return i=i.filter(function(b){return u.includes(b)})}function zL(i,u){return Object.keys(i).reduce(function(f,m){return u.includes(m)&&(f[m]=i[m]),f},{})}function X6e(i){if(i.type===0)return Q6e;if(i=i.stream){var u=i.type;if(u=="video")return i.codecs&&i.codecs.includes(",")?O6:M6;if(u=="audio")return R6;if(u=="text")return i.mimeType==="application/mp4"?$6:HL}}function _X(i){var u=Object.keys(i).sort().reduce(function(f,m){return m!=="enabled"&&(f[m]=i[m]),f},{});return JSON.stringify(u)}function Z6e(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(m){return m.start<=f&&m.end>=f}))?(i.end-f)*1e3:NaN}function SX(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(m){return m.start<=f&&m.end>=f}))?(i.end-f)*1e3:0}function J6e(i,u){var f=i.j.mc();if(!f.length)return NaN;i=f[0],f=_(f);for(var m=f.next();!m.done;m=f.next())m=m.value,m.type==="variant"&&m.bandwidth>i.bandwidth&&(i=m);switch(u){case M6:return i.videoBandwidth||NaN;case R6:return i.audioBandwidth||NaN;default:return i.bandwidth}}function kX(i,u,f){var m=u.segment,b=0;m&&(b=m.endTime-m.startTime),b={d:b*1e3,st:i.j.W()?tke:eke},b.ot=X6e(u);var w=b.ot===M6||b.ot===R6||b.ot===O6||b.ot===$6;if(u=u.stream){var A=i.j.Ob();if(w&&(b.bl=Z6e(i,u.type),b.ot!==$6)){var R=SX(i,u.type);b.dl=A?R/Math.abs(A):R}if(u.bandwidth&&(b.br=u.bandwidth/1e3),u.segmentIndex&&m){if((A=u.segmentIndex.Vb(m.endTime,!0,A<0))&&(A=A.next().value)&&A!=m){if(f&&!ct(m.P(),A.P())){var N=A.P()[0];R=new URL(N);var V=new URL(f);if(R.origin!==V.origin)f=N;else{f=R.pathname.split("/").slice(1),N=V.pathname.split("/").slice(1,-1),V=Math.min(f.length,N.length);for(var G=0;G0&&f<=1?i*(1-f)+u*f:i};function LX(i){return i?i.toLowerCase()==="false"?!1:/^[-0-9]/.test(i)?parseInt(i,10):i.replace(/["]+/g,""):!0}Te("shaka.util.CmsdManager",zu),zu.prototype.getBandwidthEstimate=zu.prototype.getBandwidthEstimate,zu.prototype.getRoundTripTime=zu.prototype.Uj,zu.prototype.getResponseDelay=zu.prototype.Tj,zu.prototype.getEstimatedThroughput=zu.prototype.$h,zu.prototype.getMaxBitrate=zu.prototype.bi;var DX="etp",PX="mb",RX="rd",MX="rtt";function OX(){this.g=null,this.h=[]}function KL(i,u){return ie(function(f){if(f.g==1)return i.g?L(f,new Promise(function(m){return i.h.push(m)}),2):f.A(2);i.g=u,B(f)})}OX.prototype.release=function(){this.h.length>0?this.h.shift()():this.g=null};function $t(i,u,f){u=u===void 0?null:u,Zr.call(this);var m=this;this.m=G6,this.h=null,this.xe=u,this.$=!1,this.Ie=new De,this.ye=new De,this.j=new De,this.ac=new De,this.yc=new De,this.G=this.H=this.F=this.J=null,this.Je=0,this.ma=new OX,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=ad(this),this.Zf=tX(),this.V=null,this.Ke=-1,this.Zb=null,this.xa={width:1/0,height:1/0},this.Ae=new GI(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 FL(this,this.g.cmcd),this.wa=new zu(this.g.cmsd),this.J=zX(this),this.Jd=this.qa=this.Da=this.C=null,this.ag=!1,this.Yf=[],this.$f=new yr(function(){return ie(function(b){if(b.g==1)return m.qa?L(b,m.fc(m.Jd,!0),3):b.A(0);if(b.g!=4)return L(b,m.load(m.qa),4);m.ag?m.Jd.pause():m.Jd.play(),m.qa=null,m.ag=!1,B(b)})}),K6&&(this.C=K6(),this.C.configure(this.g.ads),this.yc.D(this.C,"ad-content-pause-requested",function(b){var w;return ie(function(A){if(A.g==1)return m.$f.stop(),m.qa?A.A(0):(m.Jd=m.h,m.ag=m.be(),w=b.saveLivePosition||!1,L(A,m.Uh(!0,w),3));m.qa=A.h,B(A)})}),this.yc.D(this.C,"ad-content-resume-requested",function(b){if(b=b.offset||0,m.qa){var w=m.qa;w.m&&b&&(typeof w.m=="number"?w.m+=b:w.m.setTime(w.m.getTime()+b*1e3))}m.$f.ia(.1)}),this.yc.D(this.C,"ad-content-attach-requested",function(){return ie(function(b){return m.h||!m.Jd?b.A(0):L(b,m.fc(m.Jd,!0),0)})})),q6&&(this.Da=q6(this),this.Da.configure(this.g.queue)),this.Ie.D(o,"online",function(){t7(m),m.fh()}),this.De=new yr(function(){for(var b=Date.now()/1e3,w=!1,A=!0,R=_(m.i.variants),N=R.next();!N.done;N=R.next())N=N.value,N.disabledUntilTime>0&&N.disabledUntilTime<=b&&(N.disabledUntilTime=0,w=!0),N.disabledUntilTime>0&&(A=!1);A&&m.De.stop(),w&&pp(m,!1,void 0,!1,!1)}),this.Ta=null,i&&(rn("Player w/ mediaElement","Please migrate from initializing Player with a mediaElement; use the attach method instead."),this.fc(i,!0)),this.u=null}x($t,Zr);function V6(i){i.T!=null&&(tu(i.T),i.T.release(),i.T=null)}function uke(i,u,f){f||u.lcevc.enabled?(V6(i),i.T==null&&(i.T=new Go(i.h,i.Kh,u.lcevc,f),i.H&&(i.H.H=i.T))):V6(i)}function _i(i,u){return new Tn(i,u)}l=$t.prototype,l.destroy=function(){var i=this,u;return ie(function(f){switch(f.g){case 1:return i.m==Sc?f.return():(V6(i),u=i.detach(),i.m=Sc,L(f,u,2));case 2:return L(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 L(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),Zr.prototype.release.call(i),B(f)}})};function $X(i,u){dZ.set(i,u)}function Og(i,u){i.dispatchEvent(_i("onstatechange",new Map().set("state",u)))}l.fc=function(i,u){u=u===void 0?!0:u;var f=this,m,b,w;return ie(function(A){switch(A.g){case 1:if(f.m==Sc)throw new we(2,7,7e3);if(m=f.h&&f.h==i,!f.h||f.h==i){A.A(2);break}return L(A,f.detach(),2);case 2:return L(A,qL(f,"attach"),4);case 4:if(A.h)return A.return();if(j(A,5,6),m||(Og(f,"attach"),b=function(){var R=n7(f,!1);R&&$g(f,R)},f.ye.D(i,"error",b),f.h=i,f.M&&f.M.setMediaElement(i)),$e(),!u||!Gd()||f.H){A.A(6);break}return L(A,YL(f),6);case 6:Y(A),f.ma.release(),ne(A,0);break;case 5:return w=K(A),L(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 ie(function(f){if(f.g==1){if(u.m==Sc)throw new we(2,7,7e3);return L(f,u.Bc(!1,i),2)}if(f.g!=3)return L(f,qL(u,"detach"),3);if(f.h)return f.return();try{u.h&&(u.ye.Pa(),u.h=null),Og(u,"detach"),u.C&&!i&&u.C.release()}finally{u.ma.release()}B(f)})};function qL(i,u){var f;return ie(function(m){return m.g==1?(f=++i.Je,L(m,KL(i.ma,u),2)):f!=i.Je?(i.ma.release(),m.return(!0)):m.return(!1)})}l.Bc=function(i,u){i=i===void 0?!0:i,u=u===void 0?!1:u;var f=this,m,b,w,A,R,N,V,G,Z,se,ce,pe,me,ye,Be,Pe;return ie(function(Ke){switch(Ke.g){case 1:return f.m!=Sc&&(f.m=G6),L(Ke,qL(f,"unload"),2);case 2:return Ke.h?Ke.return():(W(Ke,3),f.Sa=!1,Og(f,"unload"),V6(f),m=f.ze.map(function(ot){return ot()}),f.ze=[],L(Ke,Promise.all(m),5));case 5:if(f.dispatchEvent(_i("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){Ke.A(6);break}return L(Ke,f.I.stop(),7);case 7:f.I=null,f.xc=null;case 6:if(f.o&&f.o.stop(),!f.l){Ke.A(8);break}return L(Ke,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){Ke.A(10);break}return L(Ke,f.F.destroy(),11);case 11:f.F=null;case 10:if(!f.H){Ke.A(12);break}return L(Ke,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&&U6e(f.M),f.wa&&(f.wa.g=null),!f.u){Ke.A(14);break}return L(Ke,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=[],a6(f.h)&&f.h.load()}if(!f.F){Ke.A(16);break}return L(Ke,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),N=R.next();!N.done;N=R.next())for(V=N.value,G=_([V.audio,V.video]),Z=G.next();!Z.done;Z=G.next())(se=Z.value)&&se.segmentIndex&&se.segmentIndex.release();for(ce=_(f.i.textStreams),pe=ce.next();!pe.done;pe=ce.next())me=pe.value,me.segmentIndex&&me.segmentIndex.release()}for(f.g&&f.g.streaming.clearDecodingCache&&(US.clear(),dg.clear()),f.i=null,f.B=new D6,f.Jh=null,f.Zb=null,f.V=null,f.Ke=-1,f.Ge=[],ye=_(f.uc.values()),Be=ye.next();!Be.done;Be=ye.next())Pe=Be.value,Pe.stop();f.uc.clear(),f.kb=[],f.Xf=-1,f.J&&f.J.Qh(),l2(f);case 3:Y(Ke),f.ma.release(),ne(Ke,4);break;case 4:if($e(),i&&Gd()&&!f.H&&f.h)return L(Ke,YL(f),0);Ke.A(0)}})},l.kl=function(i){this.O=i},l.load=function(i,u,f){u=u===void 0?null:u;var m=this,b,w,A,R,N,V,G,Z,se,ce,pe,me,ye,Be;return ie(function(Pe){switch(Pe.g){case 1:if(m.m==Sc)throw new we(2,7,7e3);if(b=null,w="",i instanceof Vu){if(i.j)throw new we(2,7,7006);b=i,w=b.rd()||""}else w=i||"";return L(Pe,KL(m.ma,"load"),2);case 2:if(m.ma.release(),!m.h)throw new we(2,7,7002);if(!m.X){Pe.A(3);break}return m.X=w,L(Pe,m.Bc(!1),3);case 3:if(A=++m.Je,R=function(){return ie(function(Ke){if(Ke.g==1)return m.Je==A?Ke.A(0):b?L(Ke,b.destroy(),3):Ke.A(3);throw new we(2,7,7e3)})},N=function(Ke,ot){return ie(function(bt){switch(bt.g){case 1:return W(bt,2),L(bt,KL(m.ma,ot),4);case 4:return L(bt,R(),5);case 5:return L(bt,Ke(),6);case 6:return L(bt,R(),7);case 7:b&&m.g&&(b.g=m.g);case 2:Y(bt),m.ma.release(),ne(bt,0)}})},j(Pe,5,6),u==null&&b&&(u=b.getStartTime()),m.O=u,m.Sa=!1,m.dispatchEvent(_i("loading")),b){f=b.V,Pe.A(8);break}if(f){Pe.A(8);break}return L(Pe,N(function(){return ie(function(Ke){if(Ke.g==1)return L(Ke,jX(m,w),2);f=Ke.h,B(Ke)})},"guessMimeType_"),8);case 8:if(V=!!b,b){iX(b,m),m.B=b.getStats(),Pe.A(11);break}return L(Pe,NX(m,w,u,f,!0,m.g),12);case 12:(b=Pe.h)?(b.F=!1,iX(b,m),m.B=b.getStats(),b.start(),b.B.catch(function(){})):m.B=new D6;case 11:return G=!b,Z=Date.now()/1e3,m.B=b?b.getStats():new D6,m.X=w,m.aa=f||null,l2(m),se=function(){var Ke=m.h?m.h.buffered:null;return{start:nY(Ke)||0,end:s6(Ke)||0}},m.ya=new Y3(se),m.ya.addEventListener("regionadd",function(Ke){XL(m,Ke.region,"metadataadded")}),G?L(Pe,N(function(){return ie(function(Ke){return L(Ke,hke(m,f),0)})},"initializeSrcEqualsDrmInner_"),23):(m.ib=new Y3(se),L(Pe,N(function(){return ie(function(Ke){if(Ke.g==1)return L(Ke,Promise.race([b.ma,b.B]),2);m.xc=b.H;var ot=b;ot.qa=!0,m.I=ot.l,m.i=b.Hg(),B(Ke)})},"waitForFinish"),15));case 15:if(m.H){Pe.A(16);break}return L(Pe,N(function(){return ie(function(Ke){return L(Ke,YL(m),0)})},"initializeMediaSourceEngineInner_"),16);case 16:return m.i&&m.i.textStreams.length&&(m.u.enableTextDisplayer?m.u.enableTextDisplayer():rn("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method!')),L(Pe,N(function(){return ie(function(Ke){return L(Ke,b.B,0)})},"waitForFinish"),18);case 18:if(m.g=b.getConfiguration(),m.Ae=b.G,m.I&&m.I.setMediaElement&&m.h&&m.I.setMediaElement(m.h),m.we=A6e(b),m.ue=b.Fa,(ce=b.C)&&(m.K=ce),V&&m.h&&m.h.nodeName==="AUDIO"&&(cke(m),m.configure("manifest.disableVideo",!0)),b.i){Pe.A(19);break}return L(Pe,N(function(){return ie(function(Ke){return L(Ke,oX(b,m.h),0)})},"drmEngine_.init"),19);case 19:return m.F=I6e(b),L(Pe,N(function(){return ie(function(Ke){return L(Ke,m.F.fc(m.h),0)})},"drmEngine_.attach"),21);case 21:return pe=m.g.abrFactory,m.o&&m.Ce==pe||(m.Ce=pe,m.o&&m.o.release(),m.o=pe(),typeof m.o.setMediaElement!="function"&&(rn("AbrManager w/o setMediaElement","Please use an AbrManager with setMediaElement function."),m.o.setMediaElement=function(){}),typeof m.o.setCmsdManager!="function"&&(rn("AbrManager w/o setCmsdManager","Please use an AbrManager with setCmsdManager function."),m.o.setCmsdManager=function(){}),typeof m.o.trySuggestStreams!="function"&&(rn("AbrManager w/o trySuggestStreams","Please use an AbrManager with trySuggestStreams function."),m.o.trySuggestStreams=function(){}),m.o.configure(m.g.abr)),me=L6e(b),ye=b.o,L(Pe,N(function(){return ie(function(Ke){return L(Ke,fke(m,Z,ye,me),0)})},"loadInner_"),22);case 22:T6e(b),m.aa&&$e().aj()&&A3(m.aa)&&bSe(m.H,m.X,m.aa),Pe.A(14);break;case 23:return L(Pe,N(function(){return ie(function(Ke){return L(Ke,pke(m,Z,f),0)})},"srcEqualsInner_"),14);case 14:m.dispatchEvent(_i("loaded"));case 6:if(Y(Pe),!b){Pe.A(25);break}return L(Pe,b.destroy(),25);case 25:m.Ta=null,ne(Pe,0);break;case 5:if(Be=K(Pe),!Be||Be.code==7e3){Pe.A(27);break}return L(Pe,m.Bc(!1),27);case 27:throw Be}})};function cke(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(m){return m.audio})}l.dj=function(i,u){i=i===void 0?!0:i,u=u===void 0?!1:u;var f=this,m;return ie(function(b){return b.g==1?L(b,BX(f),2):b.g!=3?(m=b.h,L(b,f.Bc(i,u),3)):b.return(m)})},l.Uh=function(i,u){i=i===void 0?!1:i,u=u===void 0?!1:u;var f=this,m;return ie(function(b){return b.g==1?L(b,BX(f,u),2):b.g!=3?(m=b.h,L(b,f.detach(i),3)):b.return(m)})};function BX(i,u){u=u===void 0?!1:u;var f,m,b;return ie(function(w){if(w.g==1)return f=null,i.i&&i.I&&i.xc&&i.X&&i.g?(m=i.h.currentTime,i.W()&&!u&&(m=null),L(w,FX(i,i.X,m,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,N=i.xc;A.h=i.i,A.l=R,A.H=N,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,m){u=u===void 0?null:u;var b=this,w,A;return ie(function(R){return R.g==1?(w=ad(b),Zf(w,m||b.g,ad(b)),L(R,NX(b,i,u,f,!1,w),2)):((A=R.h)?A.start():$g(b,new we(2,7,7005)),R.return(A))})},l.ng=function(){var i=this,u,f,m,b;return ie(function(w){for(u=[],f=_(i.Ee),m=f.next();!m.done;m=f.next())b=m.value,b.j||u.push(b.destroy());return i.Ee=[],L(w,Promise.all(u),0)})};function NX(i,u,f,m,b,w){b=b===void 0?!1:b;var A,R,N;return ie(function(V){return V.g==1?m?V.A(2):L(V,jX(i,u),3):(V.g!=2&&(m=V.h),dke(i,m)?V.return(null):(A=w||i.g,R=!1,b&&i.h&&i.h.nodeName==="AUDIO"&&(R=!0),N=FX(i,u,f,m||null,A,!b,R),N=b?N.then(function(G){return G.F=!1,G}):N.then(function(G){return i.Ee.push(G),G}),V.return(N)))})}function FX(i,u,f,m,b,w,A){w=w===void 0?!0:w,A=A===void 0?!1:A;var R,N,V,G,Z,se,ce,pe,me,ye,Be,Pe,Ke,ot,bt;return ie(function(tt){return tt.g==1?(R=null,N=mn(b),A&&(N.manifest.disableVideo=!0),V=function(){return R.R&&R.j?null:R},G=function(){return V()?V().getConfiguration():i.g},i.xa.width!=1/0||i.xa.height!=1/0||i.g.ignoreHardwareResolution?tt.A(2):(Z=$e(),L(tt,Z.jc(),3))):(tt.g!=2&&(se=tt.h,i.xa.width=se.width,i.xa.height=se.height),ce=new GI(N,i.xa,null),pe={networkingEngine:i.J,filter:function(We){var ht,yt;return ie(function(mt){if(mt.g==1)return L(mt,jq(ce,We),2);if(mt.g!=4)return ht=mt.h,ht?(yt=_i("trackschanged"),L(mt,Promise.resolve(),4)):mt.A(0);R.dispatchEvent(yt),B(mt)})},makeTextStreamsForClosedCaptions:function(We){return Tke(i,We)},onTimelineRegionAdded:function(We){vL(R.I,We)},onEvent:function(We){return R.dispatchEvent(We)},onError:function(We){return R.onError(We)},isLowLatencyMode:function(){return G().streaming.lowLatencyMode},updateDuration:function(){i.l&&R.R&&i.l.updateDuration()},newDrmInfo:function(We){var ht=R.i,yt=ht?ht.g:null;yt&&ht.B&&Uq(ce,yt.keySystem,We)},onManifestUpdated:function(){var We=new Map().set("isLive",i.W());R.dispatchEvent(_i("manifestupdated",We)),r2(R,!1,function(){i.C&&i.C.onManifestUpdated(i.W())})},getBandwidthEstimate:function(){return i.o.getBandwidthEstimate()},onMetadata:function(We,ht,yt,mt){var _t=We;(We=="com.apple.hls.interstitial"||We=="com.apple.hls.overlay")&&(_t="com.apple.quicktime.HLS",We={startTime:ht,endTime:yt,values:mt},i.C&&i.C.onHLSInterstitialMetadata(i,i.h,We)),mt=_(mt),We=mt.next();for(var kt={};!We.done;kt={Yg:void 0},We=mt.next())kt.Yg=We.value,kt.Yg.name!="ID"&&r2(R,!1,(function(Nt){return function(){ZL(i,ht,yt,_t,Nt.Yg)}})(kt))},disableStream:function(We){return i.disableStream(We,i.g.streaming.maxDisabledTime)},addFont:function(We,ht){return i.addFont(We,ht)}},me=new Y3(function(){return i.Qa()}),me.addEventListener("regionadd",function(We){var ht=We.region;d2(i,"timelineregionadded",ht,R),r2(R,!1,function(){i.C&&(i.C.onDashTimedMetadata(ht),i.C.onDASHInterstitialMetadata(i,i.h,ht))})}),ye=null,N.streaming.observeQualityChanges&&(ye=new p6(function(){return i.Fc()}),ye.addEventListener("qualitychange",function(We){aZ(i,We.quality,We.position)}),ye.addEventListener("audiotrackchange",function(We){aZ(i,We.quality,We.position,!0)})),Be=!0,Pe={tc:i.J,onError:function(We){return R.onError(We)},vf:function(We){r2(R,!0,function(){i.F&&Ike(i,We)})},onExpirationUpdated:function(We,ht){var yt=_i("expirationupdated");R.dispatchEvent(yt),(yt=R.l)&&yt.onExpirationUpdated&&yt.onExpirationUpdated(We,ht)},onEvent:function(We){R.dispatchEvent(We),We.type=="drmsessionupdate"&&Be&&(Be=!1,We=Date.now()/1e3-R.ya,(i.B||R.getStats()).m=We,i.T&&tu(i.T))}},Ke=zX(i,V),_q(i.J,Ke),ot=function(){return i.md(Pe)},bt={config:N,wk:pe,Hk:me,Gk:ye,md:ot,vk:ce,networkingEngine:Ke,ij:w},R=new Vu(u,m,f,bt),tt.return(R))})}function jX(i,u){var f,m,b,w;return ie(function(A){return A.g==1?(f=i.g.manifest.retryParameters,L(A,av(u,i.J,f),2)):(m=A.h,m=="application/x-mpegurl"&&(b=$e(),b.Ha()==="WEBKIT"&&(m="application/vnd.apple.mpegurl")),m=="video/quicktime"&&(w=$e(),w.Ha()==="CHROMIUM"&&(m="video/mp4")),A.return(m))})}function dke(i,u){if(!Gd($e()))return!0;if(u){if((i.h||ev()).canPlayType(u)=="")return!1;if(!Gd($e())||!yg.has(u))return!0;if(A3(u))return $e().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 z6(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):rn("Text displayer w/ configure",'Text displayer should have a "configure" method!'),i.u.setTextLanguage||rn("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&&ASe(i.H,i.u),i.Jh=f,i.l&&QSe(i.l)):i.u&&i.u.configure&&i.u.configure(i.g.textDisplayer)}function YL(i){var u,f,m;return ie(function(b){if(b.g==1)return $e(),Og(i,"media-source"),i.g.mediaSource.useSourceElements&&a6(i.h),z6(i),u=kke(i.h,i.u,{Jj:function(){return i.keySystem()},onMetadata:function(w,A,R){w=_(w);for(var N=w.next();!N.done;N=w.next())if(N=N.value,N.data&&typeof N.cueTime=="number"&&N.frames){var V=N.cueTime+A,G=R;G&&V>G&&(G=V);for(var Z=_(N.frames),se=Z.next();!se.done;se=Z.next())ZL(i,V,G,"org.id3",se.value);i.C&&i.C.onHlsTimedMetadata(N,V)}},Bk:function(w){i.ib&&vL(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,m=f.segmentRelativeVttTiming,u.Fa=m,L(b,u.M,2);i.H=u,B(b)})}function VX(i,u,f){function m(){return QL(i)}if(i.j.D(u,"playing",m),i.j.D(u,"pause",m),i.j.D(u,"ended",m),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),JX(i,w)),w=_i("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 ie(function(w){if(w.g==1)return i.l&&u.remote.state=="disconnected"?L(w,k6(i.l),3):w.A(2);w.g!=2&&Qf(i),La(i),B(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&&z6(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":gke(i,w);break;case"chapters":yke(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 fke(i,u,f,m){var b,w,A,R,N,V,G,Z,se,ce,pe,me,ye,Be,Pe,Ke,ot,bt,tt,We,ht,yt,mt,_t,kt,Nt,jt,It;return ie(function(Pt){switch(Pt.g){case 1:for(Og(i,"load"),b=i.h,i.N=new q3({Ye:function(){return b.playbackRate},Tc:function(){return b.defaultPlaybackRate},ph:function(Yt){b.playbackRate=Yt},ui:function(Yt){b.currentTime+=Yt}}),VX(i,b,u),("onchange"in o.screen)&&i.j.D(o.screen,"change",function(){if(i.K.getConfiguration){var Yt=i.K.getConfiguration();Yt.hdrLevel=="AUTO"?lv(i):i.g.preferredVideoHdrLevel=="AUTO"&&i.g.abr.enabled&&(Yt.hdrLevel="AUTO",i.K.configure(Yt),lv(i))}}),w=!1,A=_(i.i.variants),R=A.next();!R.done;R=A.next())N=R.value,(V=N.video&&N.video.dependencyStream)&&(w=Il(V));uke(i,i.g,w),i.Fd=i.g.preferredTextLanguage,i.Md=i.g.preferredTextRole,i.Ld=i.g.preferForcedSubs,r7(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),i.o.init(function(Yt,cn,nr){i.i&&i.l&&Yt!=i.l.o&&u2(i,Yt,!0,cn===void 0?!1:cn,nr===void 0?0:nr)}),i.o.setMediaElement(b),i.o.setCmsdManager(i.wa),i.l=xke(i),i.l.configure(i.g.streaming),i.m=Us,i.dispatchEvent(_i("streaming")),G=f;case 2:for((se=i.l.o)||G||(G=eZ(i,!0)),ce=[],Z=se||G,pe=_([Z.video,Z.audio]),me=pe.next();!me.done;me=pe.next())(ye=me.value)&&!ye.segmentIndex&&(ce.push(ye.createSegmentIndex()),ye.dependencyStream&&ce.push(ye.dependencyStream.createSegmentIndex()));if(!(ce.length>0)){Pt.A(4);break}return L(Pt,Promise.all(ce),4);case 4:if(!Z||Z.disabledUntilTime!=0){Pt.A(2);break}if(i.I&&i.I.onInitialVariantChosen&&i.I.onInitialVariantChosen(Z),i.i.isLowLatency&&(i.g.streaming.lowLatencyMode?i.configure(i.Zf):rt("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&&(H6e(i.M,i.i.isLowLatency&&i.g.streaming.lowLatencyMode),W6e(i.M,u*1e3)),r7(i.i.presentationTimeline,i.g.playRangeStart,i.g.playRangeEnd),XSe(i.l,i.g.playRangeStart,i.g.playRangeEnd),i.Sa=!0,i.dispatchEvent(_i("canupdatestarttime")),Be=function(Yt){i.G=bke(i,Yt),i.ob=_ke(i,Yt),UX(i,b,!1)},i.g.streaming.startAtSegmentBoundary||(Pe=i.O,Pe==null&&i.i.startTime&&(Pe=i.i.startTime),Be(Pe)),se){Pt.A(7);break}if(!i.g.streaming.startAtSegmentBoundary){Pt.A(8);break}return Ke=i.i.presentationTimeline,i.O instanceof Date&&(bt=Ke.m||Ke.i,tt=i.O.getTime()/1e3-bt,tt!=null&&(ot=tt)),ot==null&&(ot=typeof i.O=="number"?i.O:i.h.currentTime),i.O==null&&i.i.startTime&&(ot=i.i.startTime),We=Ke.Xb(),ht=Ke.Gb(),otht&&(ot=ht),L(Pt,Ake(G,ot),9);case 9:yt=Pt.h,Be(yt);case 8:u2(i,G,!0,!1,0);case 7:return i.G.ready(),mt=i.Kc().find(function(Yt){return Yt.active}),mt||((_t=cg(i.i.textStreams,i.Fd,i.Md,i.Ld)[0]||null)&&PL(i.B.h,_t,!0),G&&(_t?(cq(G.audio,_t,i.g)&&(i.$=!0),i.$&&i.u.setTextVisibility(!0)):(i.$=!1,i.u.setTextVisibility(!1)),oZ(i)),_t&&(i.g.streaming.alwaysStreamText||i.Og())&&(g6(i.l,_t),c2(i))),L(Pt,i.l.start(m),10);case 10:i.g.abr.enabled&&(i.o.enable(),sZ(i)),La(i),i.i.variants.some(function(Yt){return Yt.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 QX(i)},i.j.D(b,"timeupdate",Nt)),kt||(jt=function(){return W6(i)},i.j.D(b,"timeupdate",jt),W6(i),i.i.nextUrl&&(i.g.streaming.preloadNextUrlWindow>0&&(It=function(){var Yt;return ie(function(cn){if(cn.g==1)return Yt=i.Qa().end-i.h.currentTime,isNaN(Yt)||!(Yt<=i.g.streaming.preloadNextUrlWindow)?cn.A(0):(i.j.Ma(b,"timeupdate",It),L(cn,i.preload(i.i.nextUrl),4));i.Ta=cn.h,B(cn)})},i.j.D(b,"timeupdate",It)),i.j.D(b,"ended",function(){i.load(i.Ta||i.i.nextUrl)}))),i.C&&i.C.onManifestUpdated(kt),B(Pt)}})}function hke(i,u){var f,m,b;return ie(function(w){return w.g==1?(f=Date.now()/1e3,m=!0,i.F=i.md({tc:i.J,onError:function(A){$g(i,A)},vf:function(){},onExpirationUpdated:function(){var A=_i("expirationupdated");i.dispatchEvent(A)},onEvent:function(A){i.dispatchEvent(A),A.type=="drmsessionupdate"&&m&&(m=!1,i.B.m=Date.now()/1e3-f)}}),i.F.configure(i.g.drm),b=dq([u]),i.F.O=!0,L(w,Aq(i.F,[b],[]),2)):L(w,i.F.fc(i.h),0)})}function pke(i,u,f){var m,b,w,A,R,N,V,G,Z,se,ce,pe;return ie(function(me){switch(me.g){case 1:if(Og(i,"src-equals"),m=i.h,i.G=new IY(m),b=!1,i.ze.push(function(){b=!0}),i.dispatchEvent(_i("canupdatestarttime")),i.O!=null&&i.G.Wf(i.O),i.ob=Ske(i,i.O||0),i.N=new q3({Ye:function(){return m.playbackRate},Tc:function(){return m.defaultPlaybackRate},ph:function(ye){m.playbackRate=ye},ui:function(ye){m.currentTime+=ye}}),UX(i,m,!0),m.textTracks&&(z6(i),w=function(ye){if(!(i.u instanceof ns)){var Be=U6(i).find(function(Pe){return Pe.mode!=="disabled"});Be&&(Be.mode=ye?"showing":"hidden"),i.u instanceof Qs&&(Be=Cke(i))&&(Be.mode=!ye&&i.u.isTextVisible()?"showing":"hidden")}},i.j.D(m,"enterpictureinpicture",function(){return w(!0)}),i.j.D(m,"leavepictureinpicture",function(){return w(!1)}),m.remote?(i.j.D(m.remote,"connect",function(){return w(!1)}),i.j.D(m.remote,"connecting",function(){return w(!1)}),i.j.D(m.remote,"disconnect",function(){return w(!1)})):"webkitCurrentPlaybackTargetIsWireless"in m&&i.j.D(m,"webkitcurrentplaybacktargetiswirelesschanged",function(){return w(!1)}),A=m,(A.webkitPresentationMode||A.webkitSupportsFullscreen)&&i.j.D(A,"webkitpresentationmodechanged",function(){A.webkitPresentationMode?w(A.webkitPresentationMode!=="inline"):A.webkitSupportsFullscreen&&w(A.webkitDisplayingFullscreen)})),VX(i,m,u),R=G6e(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){me.A(2);break}return L(me,i.H.destroy(),3);case 3:i.H=null;case 2:return a6(m),m.src=R,N=$e(),N.Ua()=="TV"&&m.load(),m.preload!="none"&&!m.autoplay&&A3(f)&&N.Ha()==="WEBKIT"&&m.load(),i.m=Ml,i.dispatchEvent(_i("streaming")),V=new ci,Ag(m,HTMLMediaElement.HAVE_METADATA,i.j,function(){i.G.ready(),i.aa&&A3(i.aa)||V.resolve()}),G=function(){return new Promise(function(ye){var Be=new yr(ye);i.j.D(m.textTracks,"change",function(){return Be.ia(.5)}),Be.ia(.5)})},Ag(m,HTMLMediaElement.HAVE_CURRENT_DATA,i.j,function(){var ye,Be,Pe,Ke,ot;return ie(function(bt){if(bt.g==1)return L(bt,G(),2);if(b)return bt.return();if(vke(i),ye=U6(i),ye.some(function(tt){return tt.mode==="showing"})&&(i.$=!0,i.u.setTextVisibility(!0)),!(i.u instanceof ns))for(ye.length&&(i.u.enableTextDisplayer?i.u.enableTextDisplayer():rn("Text displayer w/ enableTextDisplayer",'Text displayer should have a "enableTextDisplayer" method')),Be=!1,Pe=_(ye),Ke=Pe.next();!Ke.done;Ke=Pe.next())ot=Ke.value,ot.mode!=="disabled"&&(Be?(ot.mode="disabled",rt("Found more than one enabled text track, disabling it",ot)):(YX(i,ot),Be=!0));mke(i),i.aa&&A3(i.aa)&&V.resolve(),B(bt)})}),m.error?V.reject(n7(i)):m.preload=="none"&&(rt('With